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 NULL
----
127

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5615
SELECT DISTINCT + MAX( - col0 ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-5615
SELECT DISTINCT + MAX ( - col0 ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-51
3

query I rowsort
SELECT ALL - + 45 + col1 - col2 FROM tab2 AS cor0
----
-17
-36
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT 78 IN ( + + 14 )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * - col2 col1 FROM tab1
----
-4425
-5100
-7200

query II rowsort
SELECT - col0 AS col2, col2 + col0 + - col1 * - col2 * - col2 FROM tab0
----
-15
-178867
-87
-2003
-97
-9605

query II rowsort
SELECT ALL + + 52 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
52
-15
52
-87
52
-97

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

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

query I rowsort
SELECT + 32 + + 67 FROM tab1 AS cor0
----
99
99
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 73 IS NULL
----

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

query II rowsort
SELECT DISTINCT ( - col1 ) * + col2 - col0 AS col0, 17 FROM tab0
----
-196
17
-297
17
-3822
17

query I rowsort
SELECT ALL - + col1 * - col0 * + 12 AS col0 FROM tab1 AS cor0
----
5100
51324
8568

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT + COUNT( * ) * - MAX( col0 ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT + COUNT ( * ) * - MAX ( col0 ) FROM tab0 AS cor0
----
-291

query I rowsort
SELECT ALL + col1 + - - col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT - MIN( DISTINCT - 20 ) - + ( - 89 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
109

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT - MIN ( DISTINCT - 20 ) - + ( - 89 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col2 * + - col2 * 22 col2 FROM tab1
----
14
-202752
47
-101728
5
-76582

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= + - 94 + col2
----

query I rowsort
SELECT ALL + col0 * + - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - 2 * + + col2 * + col1 FROM tab2 AS cor0
----
-2346
-6160
-7772

query I rowsort
SELECT - col1 + + 23 FROM tab1 cor0 WHERE NOT ( ( + - col1 ) ) * + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - 89 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-89
-89
-89

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + 49, col1, - 92 + - col2, 47 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5637
SELECT ALL + 94 DIV - col1 + - col0 AS col0, col2 DIV - CAST( 14 AS SIGNED ) FROM tab0 AS cor0
----
-16
-3
-191
-7
-91
0

skipif mysql # not compatible
query II rowsort label-5637
SELECT ALL + 94 / - col1 + - col0 AS col0, col2 / - CAST ( 14 AS INTEGER ) FROM tab0 AS cor0
----
-16
-3
-191
-7
-91
0

query I rowsort
SELECT ALL 31 AS col0 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT DISTINCT MAX( ALL + - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT MAX ( ALL + - col2 ) FROM tab1 AS cor0
----
-59

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

query I rowsort
SELECT DISTINCT col0 * - + col0 * + col1 AS col1 FROM tab2
----
-107916
-315392
-376875

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5643
SELECT ALL - 18 DIV + col1 col1 FROM tab0
----
-18
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5643
SELECT ALL - 18 / + col1 col1 FROM tab0
----
-18
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT - CAST( + 31 AS SIGNED ) + + col2 - + - 75 + + 97 FROM tab1 AS cor0
----
200
209
237

skipif mysql # not compatible
query I rowsort label-5645
SELECT - CAST ( + 31 AS INTEGER ) + + col2 - + - 75 + + 97 FROM tab1 AS cor0
----
200
209
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT + COUNT( * ) + - 11 col1 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5646
SELECT + COUNT ( * ) + - 11 col1 FROM tab2 AS cor0
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 45 col2 FROM tab2 AS cor0
----
103
68
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT - COUNT( * ) + - 65 AS col1 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5649
SELECT - COUNT ( * ) + - 65 AS col1 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT ALL + + 52 FROM tab2 WHERE NULL BETWEEN - ( col2 ) AND 51
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL 39 * + COUNT( * ) * + 35 AS col0 FROM tab2
----
4095

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL 39 * + COUNT ( * ) * + 35 AS col0 FROM tab2
----
4095

query I rowsort
SELECT col2 * + 47 FROM tab0 AS cor0
----
2209
4653
470

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

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

query II rowsort
SELECT ALL - + col2 + + - col1 AS col1, + 59 FROM tab1 AS cor0
----
-110
59
-115
59
-64
59

query I rowsort
SELECT + col2 * + col0 * + col1 - col1 AS col2 FROM tab2 AS cor0
----
197043
291383
53907

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

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

query II rowsort
SELECT DISTINCT col1 + - 22 AS col2, 56 AS col1 FROM tab1 AS cor0
----
-17
56
-8
56
25
56

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - col1 BETWEEN - - 87 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + 86 + - MIN( + col0 ) + 56 AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5661
SELECT + 86 + - MIN ( + col0 ) + 56 AS col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5662
SELECT - MIN( DISTINCT - col0 ) + + COUNT( - - 36 ) - + 75 DIV - COUNT( DISTINCT - col2 ) AS col2 FROM tab2
----
103

skipif mysql # not compatible
query I rowsort label-5662
SELECT - MIN ( DISTINCT - col0 ) + + COUNT ( - - 36 ) - + 75 / - COUNT ( DISTINCT - col2 ) AS col2 FROM tab2
----
103

query I rowsort
SELECT DISTINCT - col2 - - col0 * - col0 AS col1 FROM tab2
----
-2139
-4136
-5683

query I rowsort
SELECT DISTINCT ( - + 29 ) - - col1 FROM tab0
----
-28
-8
52

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

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

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

query I rowsort
SELECT DISTINCT + col1 + 19 FROM tab1
----
24
33
66

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT + col2 < ( 22 / + col0 )
----
-15
-87
-97

query I rowsort
SELECT ALL - 6 - col0 FROM tab0
----
-103
-21
-93

query I rowsort
SELECT col1 + ( col0 ) AS col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT ALL + COUNT( * ) FROM tab2 WHERE ( + 4 ) NOT BETWEEN - col2 AND ( 54 )
----
0

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL + COUNT ( * ) FROM tab2 WHERE ( + 4 ) NOT BETWEEN - col2 AND ( 54 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN ( + 62 ) AND 59 * col2
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
1
21
81

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

query I rowsort
SELECT + 88 + + 79 * col1 AS col0 FROM tab1
----
1194
3801
483

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT ALL - MAX( ALL col0 ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( col2 * + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL - MAX ( ALL col0 ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( col2 * + 9 )
----
NULL

query I rowsort
SELECT 6 FROM tab1 WHERE NOT ( col2 ) NOT IN ( - 2 + 27 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5682
SELECT 52 DIV col1 + - 30 * col1 AS col1 FROM tab2
----
-1529
-2010
-2310

skipif mysql # not compatible
query I rowsort label-5682
SELECT 52 / col1 + - 30 * col1 AS col1 FROM tab2
----
-1529
-2010
-2310

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE ( col2 ) > ( col1 * - 17 )
----
-3

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE ( col2 ) > ( col1 * - 17 )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - ( + col1 + 39 * - col0 ) col1 FROM tab0
----
-3351
-3781
-423

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT DISTINCT ( + col0 ) DIV col2 + ( col2 ) FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT ( + col0 ) / col2 + ( col2 ) FROM tab2
----
25
41
59

query I rowsort
SELECT DISTINCT 89 FROM tab0 cor0
----
89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 86 * + 54 + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 ) > - 93
----
85
5
59
91
47
68

query I rowsort
SELECT col2 + 27 FROM tab0
----
126
37
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT DISTINCT - 61 + + COUNT( * ) * 23 AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT - 61 + + COUNT ( * ) * 23 AS col1 FROM tab2
----
8

query I rowsort
SELECT - ( - 87 ) * + ( + col2 ) + col1 * - col1 FROM tab0 AS cor0
----
-2472
429
8612

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

query I rowsort
SELECT ALL + col1 * + 5 AS col0 FROM tab1 AS cor0 WHERE NOT col1 <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( CAST( - col0 AS SIGNED ) ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( CAST ( - col0 AS INTEGER ) ) = ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-5697
SELECT - col2 / + col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT ALL + col1 + 96 AS col2 FROM tab1 AS cor0
----
101
110
143

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT COUNT( * ) AS col0 FROM tab0 WHERE 20 / col1 + 85 <= 83 - + col1
----
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE 20 / col1 + 85 <= 83 - + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT ALL + ( - col1 ) DIV col1 + - col2 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL + ( - col1 ) / col1 + - col2 FROM tab1
----
-60
-69
-97

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

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

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

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

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

query I rowsort
SELECT 99 * col1 * 87 FROM tab1
----
120582
404811
43065

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

query I rowsort
SELECT + col2 - + col2 * - 46 AS col0 FROM tab0
----
2209
4653
470

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

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

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

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

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

query I rowsort
SELECT + col2 * + 48 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
2832
3264
4608

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

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

skipif mysql # not compatible
query I rowsort label-5714
SELECT - + COUNT ( * ) * 35 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT SUM( + - 82 ) AS col1 FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-5715
SELECT SUM ( + - 82 ) AS col1 FROM tab2
----
-246

query I rowsort
SELECT col2 + col2 FROM tab2 WHERE NOT ( ( + 17 ) NOT IN ( - col0 + col1 ) )
----

query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab1 WHERE NOT + ( 84 ) < ( NULL )
----

query I rowsort
SELECT ALL - 30 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT COUNT( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5719
SELECT COUNT ( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col1 * + 33 ) AND col1
----
0

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col1 * + 33 ) AND col1
----
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - - col2 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT - + 50 * - ( COUNT( ALL 97 ) ) col0 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5726
SELECT - + 50 * - ( COUNT ( ALL 97 ) ) col0 FROM tab2 AS cor0
----
150

query I rowsort
SELECT ALL - col1 + - 60 FROM tab2 AS cor0
----
-111
-127
-137

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 25
----

query I rowsort
SELECT + + col0 * - - col1 + - + 83 * col1 AS col0 FROM tab1 cor0
----
-448
10
376

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT + 75 BETWEEN ( - col0 / col1 ) AND ( col2 )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT + MIN( DISTINCT + ( + 87 ) ) * + COUNT( * ) * 86 AS col2 FROM tab0
----
22446

skipif mysql # not compatible
query I rowsort label-5731
SELECT + MIN ( DISTINCT + ( + 87 ) ) * + COUNT ( * ) * 86 AS col2 FROM tab0
----
22446

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

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

query I rowsort
SELECT - 22 + col1 FROM tab2 WHERE NOT - 38 * + col0 < col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 36 * - col2 <> col1 + ( col2 )
----

query I rowsort
SELECT + col2 * + 64 * - ( col2 ) FROM tab2
----
-102400
-215296
-33856

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT ALL MIN( 69 ) AS col1 FROM tab0 WHERE + col1 NOT IN ( 7 * - col0 )
----
69

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL MIN ( 69 ) AS col1 FROM tab0 WHERE + col1 NOT IN ( 7 * - col0 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5738
SELECT ALL col0 + + ( + 83 ) DIV ( - col2 ) - col2 col0 FROM tab0
----
-2
-33
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5738
SELECT ALL col0 + + ( + 83 ) / ( - col2 ) - col2 col0 FROM tab0
----
-2
-33
69

query I rowsort
SELECT DISTINCT 27 * - col2 AS col0 FROM tab2
----
-1080
-1566
-621

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT DISTINCT 54 DIV 83 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT 54 / 83 FROM tab1
----
0

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

query I rowsort
SELECT DISTINCT ( - col2 ) * + + col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL + col0 + - col2 AS col0 FROM tab0 AS cor0 WHERE col2 * 18 / + col2 + - col1 <> NULL
----

query I rowsort
SELECT - - 86 + + - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-42
-6
-64

query I rowsort
SELECT ALL 5 + col2 AS col1 FROM tab2 AS cor0
----
28
45
63

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

query I rowsort
SELECT - 61 - - col2 FROM tab1 AS cor0
----
-2
35
7

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

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

query I rowsort
SELECT col1 - + col0 AS col0 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT - - col2 + - ( + 87 ) FROM tab2 AS cor0
----
-29
-47
-64

query I rowsort
SELECT + 55 + 39 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT + - col2 * + + 26 * - 77 FROM tab0 cor0
----
198198
20020
94094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT ALL - 90 + - + CAST( + 56 AS SIGNED ) AS col0 FROM tab0
----
-146
-146
-146

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL - 90 + - + CAST ( + 56 AS INTEGER ) AS col0 FROM tab0
----
-146
-146
-146

query I rowsort
SELECT - 57 + + col1 AS col0 FROM tab0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
-36
-56
24

query I rowsort
SELECT + + 21 AS col1 FROM tab1 WHERE NOT - 3 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT 9 * + SUM( + col0 ) FROM tab2
----
1665

skipif mysql # not compatible
query I rowsort label-5756
SELECT 9 * + SUM ( + col0 ) FROM tab2
----
1665

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT - - 82 + - MIN( DISTINCT + + 23 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-5757
SELECT - - 82 + - MIN ( DISTINCT + + 23 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
59

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5762
SELECT + MIN( DISTINCT - + 8 ) AS col0, - MIN( + ( 32 ) ) AS col0 FROM tab2 AS cor0
----
-8
-32

skipif mysql # not compatible
query II rowsort label-5762
SELECT + MIN ( DISTINCT - + 8 ) AS col0, - MIN ( + ( 32 ) ) AS col0 FROM tab2 AS cor0
----
-8
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT 43 + - MIN( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT 43 + - MIN ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - MIN( - col2 ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT - MIN ( - col2 ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 89 + col2 + + - col2 * - col2 * 99 FROM tab1
----
344767
457933
912569

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 32 + - col1 < - + ( + - col2 ) / - + col0 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5769
SELECT - 51 DIV + - 12 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5769
SELECT - 51 / + - 12 FROM tab1
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5770
SELECT + 17 DIV + + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5770
SELECT + 17 / + + col0 AS col1 FROM tab1
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 57 NOT BETWEEN 19 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-5773
SELECT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 WHERE + 12 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ( - 62 ) * 47 + + COUNT( col0 ) AS col0 FROM tab2
----
-2911

skipif mysql # not compatible
query I rowsort label-5774
SELECT ( - 62 ) * 47 + + COUNT ( col0 ) AS col0 FROM tab2
----
-2911

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT ALL - COUNT( DISTINCT - + 84 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL - COUNT ( DISTINCT - + 84 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT - 73 * + COUNT( 65 ) AS col0 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT - 73 * + COUNT ( 65 ) AS col0 FROM tab0 AS cor0
----
-219

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 78 * + 28 col2 FROM tab0
----
190008
211848
32760

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL SUM( ALL - 54 ) AS col1 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL SUM ( ALL - 54 ) AS col1 FROM tab1
----
-162

query I rowsort
SELECT DISTINCT - 79 * + + 37 AS col0 FROM tab0
----
-2923

query I rowsort
SELECT ALL col2 * + 60 FROM tab2 cor0
----
1380
2400
3480

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 44 NOT BETWEEN + col2 AND + 12
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - ( + col0 ) col1 FROM tab1
----
-425
-4277
-714

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

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

query I rowsort
SELECT + col1 * - - col1 * + - col2 AS col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT DISTINCT - + MAX( col0 ) + - - 58 * + - 1 FROM tab1 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT - + MAX ( col0 ) + - - 58 * + - 1 FROM tab1 AS cor0
----
-149

query I rowsort
SELECT DISTINCT - 41 + + - ( col0 ) + 80 FROM tab0 AS cor0
----
-48
-58
24

query I rowsort
SELECT DISTINCT col1 + + + 41 AS col1 FROM tab2
----
108
118
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + + col1 * col0 + + + 67 col1, ( col1 ) AS col0 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT + + SUM( + col0 ) AS col0 FROM tab2 WHERE ( ( ( NULL >= ( NULL ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT + + SUM ( + col0 ) AS col0 FROM tab2 WHERE ( ( ( NULL >= ( NULL ) ) ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 97 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( ( ( 40 <> + + col1 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( ( ( 40 <> + + col1 ) ) )
----
0

query I rowsort
SELECT + 55 + - col0 + 63 AS col1 FROM tab0 AS cor0
----
103
21
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5802
SELECT DISTINCT COUNT( * ) DIV 37 - + + COUNT( col2 ) + + 7 AS col2 FROM tab0 AS cor0
----
4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT MAX( - 67 ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5805
SELECT MAX ( - 67 ) FROM tab1 AS cor0
----
-67

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

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

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

query I rowsort
SELECT DISTINCT 10 * + col2 FROM tab1 AS cor0
----
590
680
960

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

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

query I rowsort
SELECT + - col2 * - 2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL COUNT( * ) + MIN( ALL - 1 ) FROM tab1 WHERE NULL IS NULL
----
2

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL COUNT ( * ) + MIN ( ALL - 1 ) FROM tab1 WHERE NULL IS NULL
----
2

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 20 + col1 * col0 >= - col2
----

query I rowsort
SELECT ALL 37 * + - 97 * - 27 * - col1 FROM tab0
----
-2034963
-7849143
-96903

onlyif mysql # aggregate syntax: 
query II rowsort label-5816
SELECT ALL - COUNT( * ) * + + 53 AS col1, - COUNT( * ) FROM tab1
----
-159
-3

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL - COUNT ( * ) * + + 53 AS col1, - COUNT ( * ) FROM tab1
----
-159
-3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT 90 + + MAX( ALL col1 ) * - - MIN( DISTINCT 6 ) + - 98 AS col2 FROM tab1 AS cor0
----
274

skipif mysql # not compatible
query I rowsort label-5819
SELECT 90 + + MAX ( ALL col1 ) * - - MIN ( DISTINCT 6 ) + - 98 AS col2 FROM tab1 AS cor0
----
274

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

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

query I rowsort
SELECT - 92 + + - col0 + + col1 FROM tab2 AS cor0
----
-100
-79
-87

query I rowsort
SELECT + 97 + - col1 AS col0 FROM tab1 AS cor0
----
50
83
92

query I rowsort
SELECT ALL ( - 93 ) FROM tab1 AS cor0
----
-93
-93
-93

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

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL - 43 + 99 + + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT DISTINCT - MAX( DISTINCT + col0 ) FROM tab0 WHERE NOT - + col0 / - - ( - 32 ) + + + col1 NOT IN ( - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT - MAX ( DISTINCT + col0 ) FROM tab0 WHERE NOT - + col0 / - - ( - 32 ) + + + col1 NOT IN ( - 98 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5828
SELECT ALL - 12 + - COUNT( * ) DIV + COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - 12 + - COUNT ( * ) / + COUNT ( * ) FROM tab0
----
-13

query II rowsort
SELECT - 19, col1 FROM tab0
----
-19
1
-19
21
-19
81

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - + 72 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT + 86 - MIN( - col0 ) + - 51 AS col2 FROM tab2
----
110

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + 86 - MIN ( - col0 ) + - 51 AS col2 FROM tab2
----
110

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

query II rowsort
SELECT DISTINCT col1 AS col2, col0 * + - col0 FROM tab0
----
1
-9409
21
-7569
81
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5835
SELECT - CAST( 48 AS SIGNED ) - + 43 AS col2 FROM tab1 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-5835
SELECT - CAST ( 48 AS INTEGER ) - + 43 AS col2 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT ALL + ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 = - col2
----
46
64
75

query I rowsort
SELECT ALL + + 57 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 12 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5841
SELECT DISTINCT SUM ( + ( + col1 ) ) col2 FROM tab0 AS cor0
----
103

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

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

query I rowsort
SELECT ALL - 97 * - - 4 AS col2 FROM tab1
----
-388
-388
-388

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE ( NOT ( - col0 ) IS NULL )
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5845
SELECT DISTINCT 71 AS col0, 54 DIV + + col2 AS col1 FROM tab0
----
71
0
71
1
71
5

skipif mysql # not compatible
query II rowsort label-5845
SELECT DISTINCT 71 AS col0, 54 / + + col2 AS col1 FROM tab0
----
71
0
71
1
71
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5847
SELECT DISTINCT * FROM tab2 WHERE ( NULL <> ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-5847
SELECT DISTINCT * FROM tab2 WHERE ( NULL <> ( CAST ( NULL AS INTEGER ) ) )
----

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

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

skipif mysql # not compatible
query I rowsort label-5849
SELECT + CAST ( - 27 AS INTEGER ) FROM tab0 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL - 86 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL - 86 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-258

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5852
SELECT + - col1 DIV 31 + + 69 AS col2, col2 * CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
67
NULL
69
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-5852
SELECT + - col1 / 31 + + 69 AS col2, col2 * CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
67
NULL
69
NULL
69
NULL

query II rowsort
SELECT DISTINCT + col0 * - col2 AS col2, col2 FROM tab1
----
-4896
96
-5015
59
-6188
68

query I rowsort
SELECT 27 + 10 FROM tab1
----
37
37
37

query I rowsort
SELECT + col2 + 70 FROM tab0
----
117
169
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT SUM( - col2 ) * - 18 FROM tab0 AS cor0
----
2808

skipif mysql # not compatible
query I rowsort label-5856
SELECT SUM ( - col2 ) * - 18 FROM tab0 AS cor0
----
2808

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT DISTINCT + col2 + + + col0 + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
195
59
97

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT + col2 + + + col0 + col2 / - col0 AS col1 FROM tab0 AS cor0
----
195
59
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5859
SELECT DISTINCT + - col0 + col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - CAST( NULL AS DECIMAL ) - + col0
----

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT + - col0 + col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - CAST ( NULL AS REAL ) - + col0
----

query I rowsort
SELECT ALL - + col1 + + 24 - - 7 FROM tab2 AS cor0
----
-20
-36
-46

query I rowsort
SELECT DISTINCT 51 + - col0 AS col1 FROM tab0 AS cor0
----
-36
-46
36

query I rowsort
SELECT + col1 * - - 24 * + - col1 - - ( + + col0 ) * 38 * - 45 AS col2 FROM tab0 AS cor0
----
-159354
-165894
-183114

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - - ( + + col0 ) + 21
----

query II rowsort
SELECT ALL ( - + 20 ) + col1, col0 - - col0 AS col2 FROM tab2
----
31
92
47
150
57
128

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT DISTINCT - col2 DIV - 6 FROM tab0
----
1
16
7

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT - col2 / - 6 FROM tab0
----
1
16
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 - + col1 col0 FROM tab0
----
-13
47
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NOT 39 BETWEEN - 89 AND - - col0 + + col2 * - col2
----
3

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE NOT 39 BETWEEN - 89 AND - - col0 + + col2 * - col2
----
3

query I rowsort
SELECT col1 * + 16 AS col2 FROM tab0 AS cor0
----
1296
16
336

query I rowsort
SELECT ALL col2 + + + 52 * + + 50 FROM tab2 AS cor0
----
2623
2640
2658

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT ALL - 67 DIV ( - col1 ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL - 67 / ( - col1 ) FROM tab2
----
0
1
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT - ( - ( - 95 ) ) IS NOT NULL
----

query I rowsort
SELECT + 40 + + - 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT ( - 10 ) FROM tab1
----
-10

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

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT - MIN ( + 87 ) AS col1 FROM tab2 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5875
SELECT DISTINCT + ( col2 ), - 53 * - col0 + + col1 FROM tab0 cor0 WHERE col2 BETWEEN - col0 - + CAST( NULL AS SIGNED ) + - 94 AND + ( - 66 )
----

skipif mysql # not compatible
query II rowsort label-5875
SELECT DISTINCT + ( col2 ), - 53 * - col0 + + col1 FROM tab0 cor0 WHERE col2 BETWEEN - col0 - + CAST ( NULL AS INTEGER ) + - 94 AND + ( - 66 )
----

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

query II rowsort
SELECT - + col1 AS col0, + 16 * col1 - col0 FROM tab1 AS cor0
----
-14
173
-47
661
-5
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 67 <> NULL
----

query II rowsort
SELECT ALL - 24 AS col2, 94 AS col1 FROM tab2 cor0
----
-24
94
-24
94
-24
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5880
SELECT * FROM tab2 WHERE NOT - col2 + col1 + + 20 < ( + CAST( NULL AS SIGNED ) ) * + - 79 * + col1 * + + 8 + col0
----

skipif mysql # not compatible
query III rowsort label-5880
SELECT * FROM tab2 WHERE NOT - col2 + col1 + + 20 < ( + CAST ( NULL AS INTEGER ) ) * + - 79 * + col1 * + + 8 + col0
----

query I rowsort
SELECT ALL 98 * - col2 FROM tab0
----
-4606
-9702
-980

query II rowsort
SELECT ALL - col2 * ( - - 89 ), col1 FROM tab0
----
-4183
81
-8811
1
-890
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + ( + SUM( ALL 20 ) ) AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5883
SELECT + ( + SUM ( ALL 20 ) ) AS col2 FROM tab0
----
60

query II rowsort
SELECT - col0 * - col2 AS col2, col0 - col1 AS col2 FROM tab1
----
4896
37
5015
80
6188
44

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT DISTINCT + - MAX( col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT + - MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
-97

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5890
SELECT ALL * FROM tab0 AS cor0 WHERE 27 >= + + 6 * col0 * - CAST( NULL AS DECIMAL ) * - 39
----

skipif mysql # not compatible
query III rowsort label-5890
SELECT ALL * FROM tab0 AS cor0 WHERE 27 >= + + 6 * col0 * - CAST ( NULL AS REAL ) * - 39
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5891
SELECT 46 AS col0, - CAST( NULL AS DECIMAL ) + - - col1 FROM tab1
----
46
NULL
46
NULL
46
NULL

skipif mysql # not compatible
query II rowsort label-5891
SELECT 46 AS col0, - CAST ( NULL AS REAL ) + - - col1 FROM tab1
----
46
NULL
46
NULL
46
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5893
SELECT + COUNT( * ) col1, COUNT( * ) - - 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5893
SELECT + COUNT ( * ) col1, COUNT ( * ) - - 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
101

query I rowsort
SELECT - col0 + col1 + col0 + - 85 FROM tab1
----
-38
-71
-80

query I rowsort
SELECT ALL - - 58 AS col1 FROM tab1 AS cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col2 col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT ALL col1 + + col2 FROM tab0 AS cor0 WHERE NOT + ( col1 ) BETWEEN NULL AND + - 33
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL + + SUM( + col0 ) + + 76 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL + + SUM ( + col0 ) + + 76 FROM tab2 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT - COUNT( * ) + + AVG ( DISTINCT - col0 ) + - + ( COUNT( * ) ) * - - AVG ( + + col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - COUNT ( * ) + + AVG ( DISTINCT - col0 ) + - + ( COUNT ( * ) ) * - - AVG ( + + col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5900
SELECT DISTINCT - - 88 DIV - - 85 + col2 - - col0 FROM tab2 cor0
----
105
134
70

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT - - 88 / - - 85 + col2 - - col0 FROM tab2 cor0
----
105
134
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL + + MAX( - - col0 ) FROM tab1 AS cor0 WHERE NULL <> + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + + MAX ( - - col0 ) FROM tab1 AS cor0 WHERE NULL <> + 53
----
NULL

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

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

query I rowsort
SELECT + col1 * + 68 FROM tab2
----
3468
4556
5236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( + 57 ) NOT BETWEEN 39 AND - 92 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5906
SELECT + COUNT( * ) col1, + 1 + - - COUNT( * ) FROM tab0, tab1 AS cor0 WHERE NOT - 10 IS NULL
----
9
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5906
SELECT + COUNT ( * ) col1, + 1 + - - COUNT ( * ) FROM tab0, tab1 AS cor0 WHERE NOT - 10 IS NULL
----
9
10

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

skipif mysql # not compatible
query I rowsort label-5907
SELECT COUNT ( * ) * - ( + - ( CAST ( NULL AS REAL ) ) ) - + - SUM ( ALL + 96 ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5910
SELECT ALL - 83 - - col2 DIV - col1 * + - 60 AS col1 FROM tab2 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL - 83 - - col2 / - col1 * + - 60 AS col1 FROM tab2 AS cor0
----
-83
-83
-83

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 27 * - 94 IS NOT NULL
----

query I rowsort
SELECT + ( + + 49 ) * - + 23 + - 58 + + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-1244
-1253
-1281

query II rowsort
SELECT DISTINCT + 40 * + col1, col1 * + col2 AS col2 FROM tab2 AS cor0
----
2040
1173
2680
3886
3080
3080

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 44 ) * + 97 col2 FROM tab1 AS cor0
----
4268
4268
4268

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT - MAX( DISTINCT + 41 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-41

skipif mysql # not compatible
query I rowsort label-5916
SELECT - MAX ( DISTINCT + 41 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-41

query I rowsort
SELECT ALL col1 * - ( 61 ) FROM tab1
----
-2867
-305
-854

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

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

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

query I rowsort
SELECT ALL + + col0 * - - 31 FROM tab2 AS cor0
----
1426
1984
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT - - COUNT( * ) * - - MIN( ALL - col0 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 73 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - - COUNT ( * ) * - - MIN ( ALL - col0 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 73 IS NULL
----
NULL

query I rowsort
SELECT ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 43 > NULL
----

query II rowsort
SELECT DISTINCT - 63 AS col2, - 16 FROM tab2
----
-63
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 87 col0, 39 AS col2 FROM tab2
----
87
39
87
39
87
39

query I rowsort
SELECT 4 * - 8 FROM tab2
----
-32
-32
-32

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

query I rowsort
SELECT col0 * + + 25 FROM tab0
----
2175
2425
375

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5929
SELECT DISTINCT * FROM tab2 WHERE NOT 84 + CAST( + 8 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5929
SELECT DISTINCT * FROM tab2 WHERE NOT 84 + CAST ( + 8 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL 97 AS col1 FROM tab1 cor0
----
97
97
97

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

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

query I rowsort
SELECT + + col1 * col2 + - ( - + col2 ) FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5934
SELECT ALL + CAST( - - col0 AS SIGNED ) + - + col2 + + 58 + + col2 AS col0 FROM tab0 AS cor0
----
145
155
73

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + CAST ( - - col0 AS INTEGER ) + - + col2 + + 58 + + col2 AS col0 FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT - ( + col2 ) - 63 FROM tab2 cor0
----
-103
-121
-86

query I rowsort
SELECT DISTINCT - - col2 * 17 FROM tab1 cor0
----
1003
1156
1632

query I rowsort
SELECT + col0 - 42 * + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
29625
36627
403423

query II rowsort
SELECT ALL col1 + + + col2, col0 FROM tab0 AS cor0
----
100
97
128
15
31
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5939
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - col2 + ( + + col1 ) NOT BETWEEN col0 AND + 90
----

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - col2 + ( + + col1 ) NOT BETWEEN col0 AND + 90
----

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

query I rowsort
SELECT DISTINCT - + 12 - 64 + col0 + - - col2 * - 0 * + col2 FROM tab1 AS cor0
----
-25
15
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL COUNT( * ) * + 44 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL COUNT ( * ) * + 44 FROM tab1
----
132

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5943
SELECT + col0 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT NULL <> + 65 * - - 97
----

query I rowsort
SELECT + 85 AS col1 FROM tab2 AS cor0 WHERE NOT 29 + - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ALL - COUNT( * ) * - 60 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL - COUNT ( * ) * - 60 FROM tab2 AS cor0
----
180

query I rowsort
SELECT ALL + col1 * - + col1 + col0 FROM tab1 AS cor0
----
-145
-2118
60

query I rowsort
SELECT + + col2 * + - 5 + 8 AS col0 FROM tab0 AS cor0
----
-227
-42
-487

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + col1 * 42 + col0 - - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT - 67 / CAST( NULL AS SIGNED ) / 52 FROM tab2 WHERE NOT ( 70 + col1 * 45 ) = 51
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT - 67 / CAST ( NULL AS INTEGER ) / 52 FROM tab2 WHERE NOT ( 70 + col1 * 45 ) = 51
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + - 12 FROM tab1 cor0
----
-12
-12
-12

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

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

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

query I rowsort
SELECT DISTINCT col2 + - 55 - + col1 FROM tab1
----
-1
-34
27

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

query I rowsort
SELECT DISTINCT 65 * col2 * - 24 * col1 * + col0 FROM tab0 WHERE NOT NULL > col2 + - - col2 - + ( - col1 ) / - col1 / + + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + 80 ) + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 69 NOT IN ( - + 53, 62, - 40 - + col2, col1 * - - col1 - - col1 + - - 79 - + + 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + 57 + - + 45 FROM tab1
----
12
12
12

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

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

query I rowsort
SELECT + col0 * + 81 + - col1 FROM tab0 AS cor0
----
1134
7026
7856

query I rowsort
SELECT 61 * + 26 FROM tab1 AS cor0
----
1586
1586
1586

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

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL - MIN ( - col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT - col2 + - + col2 FROM tab2 cor0
----
-116
-46
-80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + MAX( + col0 ) FROM tab1 WHERE NOT - - 21 <> - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT + MAX ( + col0 ) FROM tab1 WHERE NOT - - 21 <> - + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT ALL - col1 * 39 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL - col1 * 39 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL - ( - - col2 ) FROM tab1 cor0
----
-59
-68
-96

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

skipif mysql # not compatible
query I rowsort label-5975
SELECT + col1 * + CAST ( - col1 AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5976
SELECT - col2 AS col2, ( + 20 ) DIV + col2 * - - 14 + + 6 - + col1 FROM tab2
----
-23
-45
-40
-71
-58
-61

skipif mysql # not compatible
query II rowsort label-5976
SELECT - col2 AS col2, ( + 20 ) / + col2 * - - 14 + + 6 - + col1 FROM tab2
----
-23
-45
-40
-71
-58
-61

query I rowsort
SELECT - + 91 AS col0 FROM tab2, tab2 AS cor0 WHERE - 47 IS NOT NULL
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

query I rowsort
SELECT 20 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL col1 * + - col0 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT - COUNT( * ) * + - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5981
SELECT - COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT 43 * COUNT( * ) AS col1 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT 43 * COUNT ( * ) AS col1 FROM tab0
----
129

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5984
SELECT ALL MIN( ALL col1 ) DIV COUNT( + col2 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL MIN ( ALL col1 ) / COUNT ( + col2 ) FROM tab2 AS cor0
----
17

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 64 * - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5987
SELECT DISTINCT - ( COUNT( * ) ) + + 46 + + 70, COUNT( * ) AS col2 FROM tab0 AS cor0
----
113
3

skipif mysql # not compatible
query II rowsort label-5987
SELECT DISTINCT - ( COUNT ( * ) ) + + 46 + + 70, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
113
3

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

query I rowsort
SELECT ALL + - 50 + + - ( - col1 ) FROM tab2 AS cor0
----
1
17
27

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

query I rowsort
SELECT - col0 * 92 AS col2 FROM tab1
----
-4692
-7820
-8372

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT + 95 * + + SUM( - 41 ) AS col2 FROM tab2
----
-11685

skipif mysql # not compatible
query I rowsort label-5993
SELECT + 95 * + + SUM ( - 41 ) AS col2 FROM tab2
----
-11685

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT DISTINCT - 47 + + col1 + col2 DIV + col2 col2 FROM tab1
----
-32
-41
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5994
SELECT DISTINCT - 47 + + col1 + col2 / + col2 col2 FROM tab1
----
-32
-41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL + 49 * - - 17 + MIN( ALL - + col2 ) / - 17 + + COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL + 49 * - - 17 + MIN ( ALL - + col2 ) / - 17 + + COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT DISTINCT 36 DIV - 2 FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT 36 / - 2 FROM tab0 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT - + COUNT( * ) + + 19 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6000
SELECT - + COUNT ( * ) + + 19 FROM tab0 AS cor0
----
16

query I rowsort
SELECT ALL + col2 + - col0 * 6 FROM tab0 AS cor0
----
-43
-483
-512

query II rowsort
SELECT DISTINCT + 90 * - + col0 + + 33 + ( + col2 ) + + col1 - + - col2 / - col1 * + 70, - col1 + - col0 * col0 * + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT DISTINCT COUNT( * ) DIV + 36 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT COUNT ( * ) / + 36 AS col2 FROM tab1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ( + + ( + SUM( DISTINCT 44 ) ) ) - 92 AS col0 FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6005
SELECT ( + + ( + SUM ( DISTINCT 44 ) ) ) - 92 AS col0 FROM tab1 cor0
----
-48

query I rowsort
SELECT - + col2 - + col0 * - col0 + - col2 FROM tab0 AS cor0
----
131
7549
9211

query I rowsort
SELECT col1 + + 42 - + col1 AS col0 FROM tab1 cor0
----
42
42
42

query II rowsort
SELECT DISTINCT col2, 54 + col0 + col0 FROM tab0 AS cor0
----
10
228
47
84
99
248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT ALL + AVG ( + ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + col1 ) * - 8 + - col2 - + col2 IN ( + 2 * + 55 - + col2 * + + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + AVG ( + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + col1 ) * - 8 + - col2 - + col2 IN ( + 2 * + 55 - + col2 * + + 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT - COUNT( * ) * + - 81 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-6010
SELECT - COUNT ( * ) * + - 81 FROM tab0 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT + SUM( DISTINCT - 20 ) * - 3 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6011
SELECT + SUM ( DISTINCT - 20 ) * - 3 FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6012
SELECT DISTINCT - + COUNT( * ) AS col1, - CAST( 99 AS SIGNED ) FROM tab1 AS cor0
----
-3
-99

skipif mysql # not compatible
query II rowsort label-6012
SELECT DISTINCT - + COUNT ( * ) AS col1, - CAST ( 99 AS INTEGER ) FROM tab1 AS cor0
----
-3
-99

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

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

query II rowsort
SELECT 4, 8 AS col2 FROM tab0
----
4
8
4
8
4
8

query II rowsort
SELECT - 69 AS col0, + col2 - - col0 FROM tab0
----
-69
196
-69
62
-69
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT DISTINCT - - COUNT( * ) AS col2, - COUNT( * ) FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6016
SELECT DISTINCT - - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2 cor0
----
3
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col2, col1 + + col1 col2 FROM tab0 AS cor0
----
-210
42
-3807
162
-99
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6019
SELECT CAST( NULL AS DECIMAL ) * + + AVG ( - + 79 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT CAST ( NULL AS REAL ) * + + AVG ( - + 79 ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 * + + 58 FROM tab0
----
1218
4698
58

query I rowsort
SELECT - col1 + + - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-113
-3
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT - 66 + SUM( - - col0 ) AS col2 FROM tab1 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-6022
SELECT - 66 + SUM ( - - col0 ) AS col2 FROM tab1 AS cor0
----
161

query I rowsort
SELECT ALL - col1 + + - 18 + col2 + + - col2 * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
1545
3337
483

query I rowsort
SELECT col2 + - - ( + - 76 ) FROM tab0 AS cor0
----
-29
-66
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = + 78 * + col1 * + col2 / col2 * - col2 + - - ( + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6025
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = + 78 * + col1 * + col2 / col2 * - col2 + - - ( + 96 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT + col1 + + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0 WHERE 76 BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query I rowsort label-6026
SELECT + col1 + + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0 WHERE 76 BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL - 81 + - ( - 92 ) AS col0 FROM tab2
----
11
11
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ALL 40 + - + COUNT( * ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL 40 + - + COUNT ( * ) FROM tab1
----
37

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6030
SELECT DISTINCT COUNT ( * ) * 57 col1 FROM tab1
----
171

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 69 * + col2 + 54 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6035
SELECT - col1 AS col2, + col2 DIV - col1 * - - col1 FROM tab2
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-6035
SELECT - col1 AS col2, + col2 / - col1 * - - col1 FROM tab2
----
-51
0
-67
0
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT - MAX( - col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT - MAX ( - col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * + + col0 col2 FROM tab0
----
1155
6699
7469

query I rowsort
SELECT + col0 + + 14 FROM tab0 cor0
----
101
111
29

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

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

query I rowsort
SELECT + 77 + - col1 AS col1 FROM tab0
----
-4
56
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6041
SELECT col1 DIV + col1 + - col2 + + - col1 * - + col1 * - col0 * - - col0 FROM tab2
----
-24285223
-25250682
-5503738

skipif mysql # not compatible
query I rowsort label-6041
SELECT col1 / + col1 + - col2 + + - col1 * - + col1 * - col0 * - - col0 FROM tab2
----
-24285223
-25250682
-5503738

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT col2 DIV ( + 16 ) AS col1 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-6044
SELECT col2 / ( + 16 ) AS col1 FROM tab1
----
3
4
6

query I rowsort
SELECT - col1 * - 85 FROM tab2
----
4335
5695
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT MAX( DISTINCT + 95 ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT MAX ( DISTINCT + 95 ) FROM tab0
----
95

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

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

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

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

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

query I rowsort
SELECT DISTINCT 63 * - + col0 FROM tab1 AS cor0 WHERE NOT NULL <> + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6052
SELECT + + col2 + - col2 - 28 AS col2, - ( col1 ) - - col0 + + + col1 DIV + 26 AS col2 FROM tab2 AS cor0
----
-28
-11
-28
-4
-28
10

skipif mysql # not compatible
query II rowsort label-6052
SELECT + + col2 + - col2 - 28 AS col2, - ( col1 ) - - col0 + + + col1 / + 26 AS col2 FROM tab2 AS cor0
----
-28
-11
-28
-4
-28
10

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 98 col1 FROM tab0
----
113
185
195

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6055
SELECT ALL + COUNT ( * ) col2, + COUNT ( * ) AS col0 FROM tab1 cor0
----
3
3

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 59 <= + - 60
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6058
SELECT DISTINCT - 17 DIV + 24 + + COUNT( * ) * - 28 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - 17 / + 24 + + COUNT ( * ) * - 28 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT ( - col2 ) * - 43 + 48 FROM tab0
----
2069
4305
478

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

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

query I rowsort
SELECT + col2 * col1 + - + col1 FROM tab1
----
1330
290
3149

query II rowsort
SELECT col1 - + col1 * 30 AS col1, col1 - + col2 AS col2 FROM tab0
----
-2349
34
-29
-98
-609
11

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col1 AND NOT + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT + 70 * - 44 + + COUNT( * ) + - + 26 AS col1 FROM tab1 WHERE NOT - + 14 <= - col0
----
-3103

skipif mysql # not compatible
query I rowsort label-6064
SELECT + 70 * - 44 + + COUNT ( * ) + - + 26 AS col1 FROM tab1 WHERE NOT - + 14 <= - col0
----
-3103

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT + SUM( + - 42 ) FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-6065
SELECT + SUM ( + - 42 ) FROM tab1
----
-126

query II rowsort
SELECT + - 42 * 19 - + col0, + col0 AS col2 FROM tab1 AS cor0
----
-849
51
-883
85
-889
91

query I rowsort
SELECT + 31 * - + col2 - + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1280
-1856
-736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6068
SELECT + 4 / col0 * CAST( NULL AS SIGNED ) * + col1 AS col1, - 21 * + + col0 AS col1 FROM tab0 AS cor0
----
NULL
-1827
NULL
-2037
NULL
-315

skipif mysql # not compatible
query II rowsort label-6068
SELECT + 4 / col0 * CAST ( NULL AS INTEGER ) * + col1 AS col1, - 21 * + + col0 AS col1 FROM tab0 AS cor0
----
NULL
-1827
NULL
-2037
NULL
-315

query I rowsort
SELECT - - 39 * - 19 FROM tab0 AS cor0
----
-741
-741
-741

query I rowsort
SELECT + ( 2 ) * + + col2 FROM tab0 cor0
----
198
20
94

query I rowsort
SELECT + - 69 * col2 AS col1 FROM tab1 cor0
----
-4071
-4692
-6624

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6073
SELECT DISTINCT CAST( - MAX( DISTINCT 58 ) AS SIGNED ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT CAST ( - MAX ( DISTINCT 58 ) AS INTEGER ) AS col1 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6074
SELECT ALL + 18 DIV 76 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL + 18 / 76 AS col2 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT ALL - col0 + + 38 - - 25 FROM tab2 AS cor0
----
-1
-12
17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT DISTINCT 6 AS col0 FROM tab1 AS cor0 WHERE + col2 + 60 + + - ( + col0 ) / + col2 NOT IN ( - + col2 + - + col0, + 67 * + 1, - 97, + + col2, CAST( - + col0 AS SIGNED ) * - 18 )
----
6

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT 6 AS col0 FROM tab1 AS cor0 WHERE + col2 + 60 + + - ( + col0 ) / + col2 NOT IN ( - + col2 + - + col0, + 67 * + 1, - 97, + + col2, CAST ( - + col0 AS INTEGER ) * - 18 )
----
6

query I rowsort
SELECT - + ( - 73 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ALL 64 * - col2 + + ( + col2 ) FROM tab1
----
-3717
-4284
-6048

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT DISTINCT + + COUNT( col1 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT + + COUNT ( col1 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1
----
0

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

query I rowsort
SELECT ALL 45 + + 59 FROM tab2
----
104
104
104

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT + CAST( - 89 AS SIGNED ) * ( - col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
4071
5656
6617

skipif mysql # not compatible
query I rowsort label-6085
SELECT + CAST ( - 89 AS INTEGER ) * ( - col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
4071
5656
6617

query I rowsort
SELECT DISTINCT - col0 * col1 + + col2 + + 11 FROM tab2 AS cor0
----
-2312
-4877
-4956

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

query I rowsort
SELECT - 3 + col0 FROM tab0 cor0
----
12
84
94

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

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

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

query I rowsort
SELECT DISTINCT col0 + - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-113
-3
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6092
SELECT DISTINCT + col0 - + - CAST( col1 AS SIGNED ) DIV + col0 col2, col2 FROM tab1
----
51
96
85
59
91
68

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) * - - col2 * - - 64 + 90 col1 FROM tab1
----
-222694
-295846
-589734

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

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

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

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

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

query I rowsort
SELECT ALL 33 + + col0 + - 52 * 11 FROM tab0
----
-442
-452
-524

query I rowsort
SELECT ALL 20 * ( - col2 ) AS col1 FROM tab1
----
-1180
-1360
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ( - COUNT( * ) ) - - - 48 AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6100
SELECT ( - COUNT ( * ) ) - - - 48 AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + 68 - + + COUNT( * ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 68 - + + COUNT ( * ) FROM tab1 AS cor0
----
65

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT + MAX( DISTINCT + - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6105
SELECT + MAX ( DISTINCT + - col1 ) FROM tab0
----
-1

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

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

query I rowsort
SELECT DISTINCT + col1 * + 80 FROM tab2 AS cor0
----
4080
5360
6160

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

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL - CAST ( - - col2 AS INTEGER ) + - 10 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6109
SELECT DISTINCT 28 * 93 DIV + col1, - 33 AS col0 FROM tab1 AS cor0
----
186
-33
520
-33
55
-33

skipif mysql # not compatible
query II rowsort label-6109
SELECT DISTINCT 28 * 93 / + col1, - 33 AS col0 FROM tab1 AS cor0
----
186
-33
520
-33
55
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6110
SELECT ALL - CAST( 71 AS SIGNED ) AS col1, ( - COUNT( * ) ) FROM tab2 cor0
----
-71
-3

skipif mysql # not compatible
query II rowsort label-6110
SELECT ALL - CAST ( 71 AS INTEGER ) AS col1, ( - COUNT ( * ) ) FROM tab2 cor0
----
-71
-3

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

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

query I rowsort
SELECT + - col1 * + 60 * + + 74 FROM tab0 AS cor0
----
-359640
-4440
-93240

query I rowsort
SELECT col2 * + - col2 * 89 AS col1 FROM tab1
----
-309809
-411536
-820224

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

query I rowsort
SELECT ALL - 70 * + 23 FROM tab2
----
-1610
-1610
-1610

query II rowsort
SELECT col2, - 13 AS col1 FROM tab0
----
10
-13
47
-13
99
-13

query I rowsort
SELECT ALL col2 + col0 - - col0 - col0 + 26 FROM tab0 AS cor0
----
123
222
88

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

query I rowsort
SELECT ( 84 ) AS col0 FROM tab0
----
84
84
84

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

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

query I rowsort
SELECT + ( col2 ) * - col2 FROM tab2 WHERE NOT ( - 75 ) IS NULL
----
-1600
-3364
-529

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6125
SELECT DISTINCT col0 FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT col0 FROM tab2 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 55 + - 54 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT COUNT( DISTINCT - col0 ) FROM tab2 WHERE + col2 + + col0 * 4 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6127
SELECT COUNT ( DISTINCT - col0 ) FROM tab2 WHERE + col2 + + col0 * 4 IS NOT NULL
----
3

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

query I rowsort
SELECT ALL + 55 * - col1 AS col1 FROM tab2
----
-2805
-3685
-4235

query I rowsort
SELECT - 86 + col1 FROM tab2
----
-19
-35
-9

query I rowsort
SELECT DISTINCT col2 + 37 FROM tab2
----
60
77
95

query I rowsort
SELECT ALL col0 * 32 AS col0 FROM tab1
----
1632
2720
2912

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT + 7 * + CAST( + col1 * + col0 AS SIGNED ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query I rowsort label-6134
SELECT + 7 * + CAST ( + col1 * + col0 AS INTEGER ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT - COUNT( - 93 ) AS col2 FROM tab1 WHERE NULL >= 92
----
0

skipif mysql # not compatible
query I rowsort label-6135
SELECT - COUNT ( - 93 ) AS col2 FROM tab1 WHERE NULL >= 92
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 43 * col2 ) > col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL 60 + col1 * ( + col1 + col0 ) FROM tab2
----
10917
5007
9574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6140
SELECT ( + 95 ) + MAX( DISTINCT + col0 + 79 DIV 99 ) * + 5 FROM tab1
----
550

skipif mysql # not compatible
query I rowsort label-6140
SELECT ( + 95 ) + MAX ( DISTINCT + col0 + 79 / 99 ) * + 5 FROM tab1
----
550

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

query I rowsort
SELECT - col2 + 61 AS col1 FROM tab0
----
-38
14
51

query I rowsort
SELECT - 88 * + col2 FROM tab1 WHERE NOT + 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT 96 - + COUNT( * ) FROM tab1 WHERE NOT NULL IN ( + col0 )
----
96

skipif mysql # not compatible
query I rowsort label-6144
SELECT 96 - + COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( + col0 )
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col2 FROM tab2 WHERE NOT NULL < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6147
SELECT DISTINCT + 1 DIV col2 col2 FROM tab2
----
0

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ( COUNT( * ) ) * - 86 AS col0 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-6150
SELECT ( COUNT ( * ) ) * - 86 AS col0 FROM tab1 AS cor0
----
-258

query I rowsort
SELECT ALL 17 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT 83 * 48 FROM tab2 AS cor0
----
3984
3984
3984

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < 14 + col0
----

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab0 WHERE ( col1 + - 78 ) IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6156
SELECT + CAST ( + col1 AS INTEGER ) col1 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 + 4 col2 FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL NOT IN ( - 68 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 61 col2 FROM tab2 AS cor0
----
-1403
-2440
-3538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6159
SELECT ALL MAX( DISTINCT col0 ) DIV + 45 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL MAX ( DISTINCT col0 ) / + 45 FROM tab2 AS cor0
----
1

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 11 >= col0 * col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 70 * + col2 > ( NULL )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= col2 + 67 / col1
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT - col2 + CAST( - col1 - ( + 10 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT - col2 + CAST ( - col1 - ( + 10 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT DISTINCT col1 DIV - - col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT col1 / - - col0 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6169
SELECT col1 DIV - ( col1 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6169
SELECT col1 / - ( col1 ) FROM tab1
----
-1
-1
-1

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

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

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

query I rowsort
SELECT ALL col0 * + ( + col0 ) FROM tab1
----
2601
7225
8281

query I rowsort
SELECT 2 AS col2 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ALL + 70 + COUNT( * ) FROM tab1 cor0 WHERE NOT 97 * - 89 - col0 * 49 IS NULL
----
73

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL + 70 + COUNT ( * ) FROM tab1 cor0 WHERE NOT 97 * - 89 - col0 * 49 IS NULL
----
73

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

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT col2 / - - col2 FROM tab0 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> col2 * CAST ( NULL AS INTEGER )
----
0

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

query I rowsort
SELECT - 7 + + col1 - + col2 FROM tab2
----
2
21
30

query III rowsort
SELECT * FROM tab1 WHERE - col0 * col1 <= 36 / 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + 73 + - MIN( - + col0 ) FROM tab2
----
148

skipif mysql # not compatible
query I rowsort label-6181
SELECT + 73 + - MIN ( - + col0 ) FROM tab2
----
148

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

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT col0 / + 62 FROM tab1
----
0
1

query I rowsort
SELECT 39 * - 72 FROM tab0, tab1 AS cor0 WHERE ( NULL ) <> 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT - ( - MIN( ALL + 67 ) ) FROM tab0 WHERE ( - + 14 * col1 ) NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT - ( - MIN ( ALL + 67 ) ) FROM tab0 WHERE ( - + 14 * col1 ) NOT BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT ( col0 ) + - 72 + - 13 AS col1 FROM tab0
----
-70
12
2

query II rowsort
SELECT DISTINCT + col1 AS col2, + 10 + - - 86 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
51
625
67
3460
77
1696

query I rowsort
SELECT ALL + 64 + + col2 AS col1 FROM tab0 AS cor0
----
111
163
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6188
SELECT + CAST( col1 AS SIGNED ) + + + 83 * + ( 6 * col1 ) col1 FROM tab1 AS cor0
----
23453
2495
6986

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6188
SELECT + CAST ( col1 AS INTEGER ) + + + 83 * + ( 6 * col1 ) col1 FROM tab1 AS cor0
----
23453
2495
6986

query I rowsort
SELECT DISTINCT col2 + - 8 FROM tab0 cor0
----
2
39
91

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 81 + + col2 AND + 68
----

query I rowsort
SELECT ALL - col0 + - 20 FROM tab2 AS cor0
----
-66
-84
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 62 * - col2 ) <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6195
SELECT DISTINCT col1 DIV - + col1 - col1 + + 59 - col0 DIV - 13 AS col0 FROM tab2
----
-15
-4
10

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT col1 / - + col1 - col1 + + 59 - col0 / - 13 AS col0 FROM tab2
----
-15
-4
10

query III rowsort
SELECT * FROM tab2 WHERE - - ( + 18 ) NOT BETWEEN NULL AND - 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT DISTINCT ( - - col1 ) DIV col1 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT ( - - col1 ) / col1 AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + 1 + - col0 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - COUNT( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6200
SELECT - COUNT ( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 * - - col1 < ( 94 * + col0 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) < - col2 + + col0 + - col0
----
6

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) < - col2 + + col0 + - col0
----
6

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

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL ( + MAX ( ALL + col2 ) ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6205
SELECT * FROM tab0 WHERE NOT ( NULL ) < ( 29 + - + ( - + col0 ) + - col2 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6205
SELECT * FROM tab0 WHERE NOT ( NULL ) < ( 29 + - + ( - + col0 ) + - col2 * - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + 59 * + 28 AS col2 FROM tab1 WHERE + col1 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6207
SELECT DISTINCT - COUNT( * ) * - + ( + 84 ) AS col0, + 65 AS col1 FROM tab2
----
252
65

skipif mysql # not compatible
query II rowsort label-6207
SELECT DISTINCT - COUNT ( * ) * - + ( + 84 ) AS col0, + 65 AS col1 FROM tab2
----
252
65

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab0 cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT - MAX( col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT - MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6210
SELECT ALL + - CAST( - SUM( - 69 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL + - CAST ( - SUM ( - 69 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL COUNT( * ) * COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( - col2 / + col0 ) <= 74
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6211
SELECT ALL COUNT ( * ) * COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( - col2 / + col0 ) <= 74
----
9

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT 87 * - SUM( 83 ) FROM tab1 AS cor0
----
-21663

skipif mysql # not compatible
query I rowsort label-6214
SELECT 87 * - SUM ( 83 ) FROM tab1 AS cor0
----
-21663

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

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

query I rowsort
SELECT ALL col2 * - 88 + - col1 + + col2 FROM tab0 AS cor0
----
-4170
-8614
-891

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

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

query I rowsort
SELECT ALL ( ( + - 47 ) ) + + + col1 AS col0 FROM tab0
----
-26
-46
34

query I rowsort
SELECT DISTINCT + 99 * - - 56 * - col0 AS col2 FROM tab2
----
-255024
-354816
-415800

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT 87 * COUNT( * ) AS col1 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-6220
SELECT 87 * COUNT ( * ) AS col1 FROM tab1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT DISTINCT ( + MAX( ALL - col2 ) ) FROM tab1 WHERE NOT ( ( NULL ) = + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT ( + MAX ( ALL - col2 ) ) FROM tab1 WHERE NOT ( ( NULL ) = + - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6222
SELECT 36 * - + CAST( 21 AS SIGNED ) DIV col2 DIV ( + 88 ) + col1 * col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-6222
SELECT 36 * - + CAST ( 21 AS INTEGER ) / col2 / ( + 88 ) + col1 * col1 FROM tab0 AS cor0
----
1
441
6561

query II rowsort
SELECT DISTINCT - 94, - 17 AS col2 FROM tab1 cor0
----
-94
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT + 78 * - ( + 97 ) + - - MAX( col0 ) FROM tab1 cor0
----
-7475

skipif mysql # not compatible
query I rowsort label-6224
SELECT + 78 * - ( + 97 ) + - - MAX ( col0 ) FROM tab1 cor0
----
-7475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + - col2 col1, - col1 AS col1 FROM tab0
----
-198
-1
-20
-21
-94
-81

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6227
SELECT CAST( NULL AS SIGNED ) - - COUNT( ALL - CAST( + col0 AS DECIMAL ) ) FROM tab0 WHERE + + col1 * + col2 + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT CAST ( NULL AS INTEGER ) - - COUNT ( ALL - CAST ( + col0 AS REAL ) ) FROM tab0 WHERE + + col1 * + col2 + + col0 IS NOT NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT DISTINCT + + 77 * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 >= - col1
----
-77

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + + 77 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 >= - col1
----
-77

query I rowsort
SELECT ALL col2 + + col1 FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
117
125
74

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

query I rowsort
SELECT ALL - - col1 * col0 * - col2 + + col2 FROM tab1 AS cor0
----
-25016
-290768
-68448

query II rowsort
SELECT ALL - - col1 + + 32 * - - col1 * col2 * + - col1, 56 AS col2 FROM tab0 AS cor0
----
-141099
56
-3167
56
-9867663
56

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * - col1 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6235
SELECT - COUNT( * ) + + - 83, SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * + - 20 + + 67 col1 FROM tab0 AS cor0
----
-86
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6235
SELECT - COUNT ( * ) + + - 83, SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + - 20 + + 67 col1 FROM tab0 AS cor0
----
-86
NULL

query I rowsort
SELECT + 84 * col2 AS col0 FROM tab0
----
3948
8316
840

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 68 + + 81 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 * + - 40 * ( + 18 ) + - 90 + - col0 * + col2 * col0 ) IS NOT NULL
----

query I rowsort
SELECT + 13 FROM tab0 WHERE NOT col2 IS NULL
----
13
13
13

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

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

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

query II rowsort
SELECT col0 AS col0, + col0 * + col2 AS col0 FROM tab0 AS cor0
----
15
705
87
870
97
9603

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

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

query I rowsort
SELECT ALL + - 63 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col1 col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-2601
-4489
-5929

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6248
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + - 52 <> NULL
----

skipif mysql # not compatible
query III rowsort label-6248
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + - 52 <> NULL
----

query I rowsort
SELECT DISTINCT col2 * + col0 + - + col0 - - ( - - 72 ) + col2 + - ( - - col1 ) AS col0 FROM tab0 AS cor0
----
728
844
9676

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6250
SELECT - COUNT( ALL CAST( + 14 AS DECIMAL ) ) + 72 FROM tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-6250
SELECT - COUNT ( ALL CAST ( + 14 AS REAL ) ) + 72 FROM tab2 cor0
----
69

query I rowsort
SELECT - 17 + + col2 AS col0 FROM tab0 AS cor0
----
-7
30
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6252
SELECT + 58 * - CAST( NULL AS SIGNED ) / col0 FROM tab1 AS cor0 WHERE + 21 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6252
SELECT + 58 * - CAST ( NULL AS INTEGER ) / col0 FROM tab1 AS cor0 WHERE + 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6253
SELECT 76 * - - col2 * CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IN ( + col2, 92 * + 95 - ( col2 ), - - col2 )
----

skipif mysql # not compatible
query I rowsort label-6253
SELECT 76 * - - col2 * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IN ( + col2, 92 * + 95 - ( col2 ), - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL - MAX( - + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL - MAX ( - + col0 ) AS col1 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6255
SELECT 48 DIV - 11 col0 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6255
SELECT 48 / - 11 col0 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT 56 * - col0 AS col2 FROM tab0
----
-4872
-5432
-840

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

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

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

query I rowsort
SELECT 79 * - col0 FROM tab0 AS cor0
----
-1185
-6873
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT 49 - + SUM( DISTINCT + col0 ) * - - COUNT( * ) FROM tab1 AS cor0
----
-632

skipif mysql # not compatible
query I rowsort label-6260
SELECT 49 - + SUM ( DISTINCT + col0 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-632

query I rowsort
SELECT ALL + 37 + - - col0 AS col0 FROM tab2 AS cor0
----
101
112
83

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

query I rowsort
SELECT col0 * col1 * - + 55 AS col1 FROM tab0
----
-100485
-5335
-66825

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT ALL - 35 - MAX( DISTINCT - 2 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL - 35 - MAX ( DISTINCT - 2 ) FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6265
SELECT DISTINCT + MIN( - - CAST( col1 AS SIGNED ) ) * + COUNT( * ) * + 23 * 11 FROM tab0 AS cor0
----
759

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT + MIN ( - - CAST ( col1 AS INTEGER ) ) * + COUNT ( * ) * + 23 * 11 FROM tab0 AS cor0
----
759

query I rowsort
SELECT DISTINCT + col2 * + 60 FROM tab2 cor0
----
1380
2400
3480

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL + MIN( + 4 ) AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL + MIN ( + 4 ) AS col1 FROM tab1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6271
SELECT + CAST( NULL AS SIGNED ) * - 7 / 37, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-6271
SELECT + CAST ( NULL AS INTEGER ) * - 7 / 37, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6274
SELECT - 63 AS col0, 77 DIV + ( SUM( ALL - - col2 ) ) AS col2 FROM tab1 AS cor0
----
-63
0

skipif mysql # not compatible
query II rowsort label-6274
SELECT - 63 AS col0, 77 / + ( SUM ( ALL - - col2 ) ) AS col2 FROM tab1 AS cor0
----
-63
0

query I rowsort
SELECT ALL + 46 FROM tab2 AS cor0 WHERE 51 IS NULL
----

query I rowsort
SELECT - col1 * col1 * - + 10 FROM tab0 AS cor0
----
10
4410
65610

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT + - MIN( ALL - + 75 ) col0 FROM tab1 AS cor0
----
75

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

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

query III rowsort
SELECT * FROM tab0 WHERE - 16 * + col1 - col0 < + + 4 * 33 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT + 76 + + col2 AS col0 FROM tab0 AS cor0
----
123
175
86

query I rowsort
SELECT ALL + 28 + + - col1 FROM tab0 AS cor0
----
-53
27
7

query II rowsort
SELECT + col0 * col2 AS col2, - col1 FROM tab0 AS cor0
----
705
-81
870
-21
9603
-1

query I rowsort
SELECT - col1 * + - col0 - + col0 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT DISTINCT 29 - col2 AS col2 FROM tab1
----
-30
-39
-67

query I rowsort
SELECT ALL - 18 * + - col1 AS col1 FROM tab1 AS cor0
----
252
846
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6288
SELECT ALL ( + col2 ) DIV 5 * + col1 FROM tab1 AS cor0
----
266
55
611

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL ( + col2 ) / 5 * + col1 FROM tab1 AS cor0
----
266
55
611

query I rowsort
SELECT + 98 * + col0 * - - col1 FROM tab1 AS cor0
----
41650
419146
69972

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

query I rowsort
SELECT ALL + 49 * + - col1 AS col2 FROM tab1 AS cor0
----
-2303
-245
-686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6292
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN - col1 + - + 16 AND - - col2
----
1

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN - col1 + - + 16 AND - - col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT + COUNT( * ) * - 34 * - 0 - - - MAX( - ( 67 ) ) AS col2 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT + COUNT ( * ) * - 34 * - 0 - - - MAX ( - ( 67 ) ) AS col2 FROM tab0 AS cor0
----
67

query I rowsort
SELECT ALL + 25 * 95 AS col2 FROM tab2 AS cor0
----
2375
2375
2375

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - MIN( + - col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6299
SELECT - MIN ( + - col1 ) AS col2 FROM tab2
----
77

query II rowsort
SELECT ALL col1 AS col1, - 49 FROM tab0
----
1
-49
21
-49
81
-49

query I rowsort
SELECT 1 * - + ( + col2 ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT DISTINCT COUNT( * ) * + COUNT( ALL + - col2 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT COUNT ( * ) * + COUNT ( ALL + - col2 ) AS col0 FROM tab2
----
9

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

skipif mysql # not compatible
query I rowsort label-6303
SELECT COUNT ( - 26 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL col0 * col1 * + col1 FROM tab2
----
119646
336675
379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * + 94 col0 FROM tab2
----
4606
4606
4606

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT ALL + col0 * col1 DIV col0 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-6306
SELECT ALL + col0 * col1 / col0 col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT DISTINCT 43 * - + ( + + COUNT( * ) ) + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT 43 * - + ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, - 43, + + col1, + col0 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 64 * col2 FROM tab2 AS cor0 WHERE NOT - 81 * + + col0 IS NULL
----
1472
2560
3712

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT + + COUNT( + col1 ) + + COUNT( * ) DIV + 26 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6314
SELECT + + COUNT ( + col1 ) + + COUNT ( * ) / + 26 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT + + MIN( ALL + col0 ) + 96 AS col2 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-6315
SELECT + + MIN ( ALL + col0 ) + 96 AS col2 FROM tab1 AS cor0
----
147

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL - COUNT( * ) FROM tab0 WHERE - + 97 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - + 97 IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ALL COUNT( * ) - - + 87 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL COUNT ( * ) - - + 87 FROM tab2
----
90

query I rowsort
SELECT DISTINCT + ( - + col1 ) + + col1 * - - ( + col2 ) FROM tab0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT ALL + COUNT( * ), - 26 AS col1 FROM tab1
----
3
-26

skipif mysql # not compatible
query II rowsort label-6322
SELECT ALL + COUNT ( * ), - 26 AS col1 FROM tab1
----
3
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT ALL col1 DIV + 58 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL col1 / + 58 AS col2 FROM tab0
----
0
0
1

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 + + 70 + + + col2 FROM tab2
----
23
116
40
150
58
186

query I rowsort
SELECT 56 - + 84 FROM tab2
----
-28
-28
-28

query I rowsort
SELECT DISTINCT ( col0 ) + - + ( + - 35 ) + col2 AS col0 FROM tab1 AS cor0
----
179
182
194

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - col0
----

query I rowsort
SELECT + col2 - - + 85 AS col0 FROM tab2 AS cor0
----
108
125
143

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6330
SELECT + COUNT( * ) * COUNT( * ) * 14 - - 9 + + 86 * COUNT( * ) * 12 - CAST( - 76 AS DECIMAL ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT + COUNT ( * ) * COUNT ( * ) * 14 - - 9 + + 86 * COUNT ( * ) * 12 - CAST ( - 76 AS REAL ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6332
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - 54 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - 54 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - MIN ( + col1 ) AS col0 FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6334
SELECT ALL 90 * + - col0 col0, - col0 * - CAST( NULL AS SIGNED ) / - 46 * - col0 col1 FROM tab0 AS cor0
----
-1350
NULL
-7830
NULL
-8730
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6334
SELECT ALL 90 * + - col0 col0, - col0 * - CAST ( NULL AS INTEGER ) / - 46 * - col0 col1 FROM tab0 AS cor0
----
-1350
NULL
-7830
NULL
-8730
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT ALL col0 / + CAST( col2 AS SIGNED ) + - 38 FROM tab2 AS cor0 WHERE NOT + col2 + + + col2 <> - 71
----

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL col0 / + CAST ( col2 AS INTEGER ) + - 38 FROM tab2 AS cor0 WHERE NOT + col2 + + + col2 <> - 71
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6336
SELECT + col2 DIV + col1 AS col0, 71 FROM tab2 cor0
----
0
71
0
71
0
71

skipif mysql # not compatible
query II rowsort label-6336
SELECT + col2 / + col1 AS col0, 71 FROM tab2 cor0
----
0
71
0
71
0
71

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

skipif mysql # not compatible
query I rowsort label-6337
SELECT col1 / - ( - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT + 79 >= NULL
----

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

query I rowsort
SELECT ( - col1 ) * col0 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col1 * + col0 * 92 FROM tab1
----
39100
393484
65688

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ( ( - COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6342
SELECT ( ( - COUNT ( * ) ) ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-6343
SELECT ( + col0 ) DIV + 63 col0, col0 * + col0 FROM tab0
----
0
225
1
7569
1
9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6343
SELECT ( + col0 ) / + 63 col0, col0 * + col0 FROM tab0
----
0
225
1
7569
1
9409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT DISTINCT 27 * + MIN( - col2 ) AS col0 FROM tab2
----
-1566

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT 27 * + MIN ( - col2 ) AS col0 FROM tab2
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT + COUNT( * ) FROM tab0 WHERE NOT 13 * - 33 + - 62 NOT BETWEEN - 78 * - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT + COUNT ( * ) FROM tab0 WHERE NOT 13 * - 33 + - 62 NOT BETWEEN - 78 * - col1 AND NULL
----
0

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

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

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

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

query II rowsort
SELECT - 9 AS col2, 37 FROM tab1
----
-9
37
-9
37
-9
37

query I rowsort
SELECT - - 84 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query II rowsort
SELECT ALL - 44, + 19 AS col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
-44
19
-44
19
-44
19

query I rowsort
SELECT DISTINCT + 22 + ( - - 65 ) - + col0 AS col2 FROM tab2 AS cor0
----
12
23
41

query I rowsort
SELECT ALL + + ( - 64 ) * - + col1 FROM tab2 AS cor0
----
3264
4288
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT - + 33 DIV - col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6355
SELECT - + 33 / - col0 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT - - COUNT( * ) + + 12 col1 FROM tab0 AS cor0
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL COUNT( * ) + + - COUNT( 13 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL COUNT ( * ) + + - COUNT ( 13 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6358
SELECT + 71 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6358
SELECT + 71 / - col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + 43 - - 45 * + 12 FROM tab1 AS cor0
----
583
583
583

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE - ( + col0 ) < col1
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-6361
SELECT ALL - - 23 DIV col0 + + - col1 + col0, + 20 col2 FROM tab2 AS cor0
----
-13
20
-5
20
8
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6361
SELECT ALL - - 23 / col0 + + - col1 + col0, + 20 col2 FROM tab2 AS cor0
----
-13
20
-5
20
8
20

query I rowsort
SELECT col0 + + col1 + - 28 FROM tab0
----
68
70
80

query I rowsort
SELECT DISTINCT col0 + 18 AS col2 FROM tab2
----
64
82
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6364
SELECT DISTINCT col1 - + + col0 DIV col2 col0 FROM tab1
----
14
4
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6364
SELECT DISTINCT col1 - + + col0 / col2 col0 FROM tab1
----
14
4
46

query II rowsort
SELECT DISTINCT - col1 - - 38, col0 AS col2 FROM tab2
----
-13
46
-29
75
-39
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6366
SELECT ALL * FROM tab0 WHERE NOT + col2 / col2 / - 86 + col2 - 57 IN ( CAST( + col2 AS SIGNED ) + - col1 - col0, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6366
SELECT ALL * FROM tab0 WHERE NOT + col2 / col2 / - 86 + col2 - 57 IN ( CAST ( + col2 AS INTEGER ) + - col1 - col0, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2 col2, col1 AS col2 FROM tab0
----
2
1
2
21
2
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ALL COUNT( * ) + - + SUM( ALL + - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL COUNT ( * ) + - + SUM ( ALL + - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6372
SELECT DISTINCT - COUNT( * ) AS col2, + COUNT( ALL + + CAST( col2 AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6372
SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( ALL + + CAST ( col2 AS REAL ) ) AS col0 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT - + col2 FROM tab1 cor0 WHERE NOT col2 * + col1 * 63 * - col2 IS NULL
----
-59
-68
-96

query II rowsort
SELECT - 63 AS col2, - 36 FROM tab0 AS cor0
----
-63
-36
-63
-36
-63
-36

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT + 38 * CAST( col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
2242
2584
3648

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6376
SELECT + 38 * CAST ( col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
2242
2584
3648

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

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

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

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) < + + col1 + + ( col2 )
----

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

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - 7 < col1 - - 36
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col2 / - ( + - col0 ) < - ( + 52 ) )
----

query I rowsort
SELECT - 37 * - + 6 AS col0 FROM tab0
----
222
222
222

query I rowsort
SELECT DISTINCT + - 76 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + col0 FROM tab0 WHERE + col0 BETWEEN - ( + col2 ) AND ( - col2 + col2 + col0 + col1 * + col1 )
----
-66
66
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6388
SELECT - - CAST( - 71 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-6388
SELECT - - CAST ( - 71 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-71
-71
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT IN ( col2 * 93 * + col2 * - col2, - 83 * - - 42 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * + 88 FROM tab0
----
4136
8712
880

query I rowsort
SELECT ALL ( - col2 ) * - col2 AS col1 FROM tab0
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + - + col1 col2 FROM tab1
----
30
63
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6393
SELECT ( + COUNT( * ) ) DIV + 14 + + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6393
SELECT ( + COUNT ( * ) ) / + 14 + + COUNT ( * ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6394
SELECT + + col1 * + 35 + + - CAST( - + col0 AS SIGNED ) + 21 DIV 3 + col1 - col1 DIV - + 50 FROM tab0 AS cor0
----
140
2939
850

skipif mysql # not compatible
query I rowsort label-6394
SELECT + + col1 * + 35 + + - CAST ( - + col0 AS INTEGER ) + 21 / 3 + col1 - col1 / - + 50 FROM tab0 AS cor0
----
140
2939
850

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

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

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

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

query II rowsort
SELECT DISTINCT - 36 + 5 + - col2 + - - col0 * - 26 AS col0, 79 + + - 92 FROM tab2 AS cor0
----
-1250
-13
-1735
-13
-2039
-13

query II rowsort
SELECT ALL + 32 AS col0, 11 FROM tab2 AS cor0
----
32
11
32
11
32
11

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

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

query I rowsort
SELECT DISTINCT col2 + - + col1 + + col2 - - col0 * + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-249518
-426162
-563019

query I rowsort
SELECT + - col2 FROM tab1 WHERE + + 16 IS NOT NULL
----
-59
-68
-96

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

query I rowsort
SELECT 21 * 19 - + 63 * + col0 FROM tab2
----
-2499
-3633
-4326

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

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

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

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

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - 86
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6409
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) / + 65 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + + 73 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

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

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-18

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 52 > - 72
----

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

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

query I rowsort
SELECT - - col2 * col2 AS col0 FROM tab0 cor0 WHERE NOT NULL <> 76
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT + COUNT( * ) * + 70 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-6420
SELECT + COUNT ( * ) * + 70 FROM tab1
----
210

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL + 66 + + COUNT( * ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL + 66 + + COUNT ( * ) AS col2 FROM tab0
----
69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND + + 59 - - - col2
----

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

query I rowsort
SELECT ALL + col0 + col1 * + 20 AS col1 FROM tab1 AS cor0
----
1031
185
331

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

skipif mysql # not compatible
query II rowsort label-6426
SELECT 88 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
88
3

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + COUNT( DISTINCT - col0 ) + + ( + + COUNT( * ) ) col1 FROM tab0 AS cor0
----
6

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

query I rowsort
SELECT - - 5 + + + col0 + ( + + col2 ) AS col0 FROM tab2 AS cor0
----
109
138
74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 13 * - 9 + + col2 NOT IN ( + 51 / + col0, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL col1 * - ( - + col0 ) - 98 AS col2 FROM tab2
----
2248
4830
4927

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT SUM( DISTINCT col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT SUM ( DISTINCT col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 52 + - 27 FROM tab0
----
25

query I rowsort
SELECT + col0 FROM tab0 WHERE 95 IS NULL
----

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

query II rowsort
SELECT + col2 * - + col0, - col1 AS col2 FROM tab0 WHERE NOT col0 * + + col2 = - 11 - - col2 * + - col2 * - col0
----
-705
-81
-870
-21
-9603
-1

query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab2 WHERE NOT ( col2 * + + 48 / - col2 + - - col0 / 81 IS NULL )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT 75 * + COUNT( * ) * 97 col2 FROM tab2 AS cor0
----
21825

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6443
SELECT 75 * + COUNT ( * ) * 97 col2 FROM tab2 AS cor0
----
21825

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE 87 BETWEEN NULL AND + + ( - + 25 )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6446
SELECT 61, - 1 + - col2 DIV ( 47 ) AS col1 FROM tab0
----
61
-1
61
-2
61
-3

skipif mysql # not compatible
query II rowsort label-6446
SELECT 61, - 1 + - col2 / ( 47 ) AS col1 FROM tab0
----
61
-1
61
-2
61
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL 71 * - COUNT( * ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL 71 * - COUNT ( * ) FROM tab1
----
-213

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

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

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 44 > - + 89
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6453
SELECT col0 * - 72 * - - col2 + col0 AS col2, + 77 DIV - 72 + + col0 + - col0 col1 FROM tab2 cor0
----
-184256
-1
-313125
-1
-76130
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6453
SELECT col0 * - 72 * - - col2 + col0 AS col2, + 77 / - 72 + + col0 + - col0 col1 FROM tab2 cor0
----
-184256
-1
-313125
-1
-76130
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6454
SELECT col1, + col0 AS col0 FROM tab0 WHERE NOT NULL IN ( + + 25, - CAST( NULL AS SIGNED ), + col2 / 76, + + ( - 43 ), - - col0 )
----

skipif mysql # not compatible
query II rowsort label-6454
SELECT col1, + col0 AS col0 FROM tab0 WHERE NOT NULL IN ( + + 25, - CAST ( NULL AS INTEGER ), + col2 / 76, + + ( - 43 ), - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6455
SELECT - col2 * - - CAST( NULL AS SIGNED ), - 17 * + - col2 * - col1 AS col0 FROM tab1
----
NULL
-22848
NULL
-5015
NULL
-54332

skipif mysql # not compatible
query II rowsort label-6455
SELECT - col2 * - - CAST ( NULL AS INTEGER ), - 17 * + - col2 * - col1 AS col0 FROM tab1
----
NULL
-22848
NULL
-5015
NULL
-54332

query I rowsort
SELECT ALL + ( + 94 ) FROM tab1 WHERE NOT NULL IS NOT NULL OR NULL > NULL
----
94
94
94

query I rowsort
SELECT + 63 * + col2 FROM tab1
----
3717
4284
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT 82 * - - COUNT( + + col2 ) AS col1 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-6458
SELECT 82 * - - COUNT ( + + col2 ) AS col1 FROM tab2
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT DISTINCT - COUNT( * ) * + + MIN( + col2 ) * 94 AS col2 FROM tab2
----
-6486

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT - COUNT ( * ) * + + MIN ( + col2 ) * 94 AS col2 FROM tab2
----
-6486

onlyif mysql # aggregate syntax: 
query II rowsort label-6460
SELECT ALL 45 + + COUNT( * ), + 95 AS col2 FROM tab0 AS cor0
----
48
95

skipif mysql # not compatible
query II rowsort label-6460
SELECT ALL 45 + + COUNT ( * ), + 95 AS col2 FROM tab0 AS cor0
----
48
95

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

query I rowsort
SELECT ALL - 85 AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT - col0 + - + col2 + col2 DIV - col0 AS col0 FROM tab1
----
-144
-148
-159

skipif mysql # not compatible
query I rowsort label-6463
SELECT - col0 + - + col2 + col2 / - col0 AS col0 FROM tab1
----
-144
-148
-159

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

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

query I rowsort
SELECT - 88 * + + col0 FROM tab0 AS cor0
----
-1320
-7656
-8536

query I rowsort
SELECT DISTINCT - col1 * + - 62 * + 23 AS col0 FROM tab2 cor0
----
109802
72726
95542

query I rowsort
SELECT ALL + - 91 * 77 FROM tab1 AS cor0
----
-7007
-7007
-7007

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

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

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

query I rowsort
SELECT DISTINCT - col1 + - - col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 + col0 * + - 66, - col1 + col1 col0 FROM tab2 cor0
----
-2985
0
-4147
0
-4883
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6475
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) <= - 15
----

skipif mysql # not compatible
query III rowsort label-6475
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) <= - 15
----

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

query I rowsort
SELECT - 31 * + col2 AS col2 FROM tab2 cor0
----
-1240
-1798
-713

query I rowsort
SELECT col2 * + 21 FROM tab0
----
2079
210
987

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6480
SELECT + AVG ( DISTINCT 90 ) FROM tab2 cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT + AVG ( DISTINCT 90 ) FROM tab2 cor0 WHERE NOT - CAST ( NULL AS REAL ) * - col0 IS NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT - ( - col0 ) * col0 AS col0 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT 75 + + - col2 AS col1 FROM tab0 AS cor0
----
-24
28
65

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

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

query I rowsort
SELECT - col0 * - 40 AS col2 FROM tab2 AS cor0
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL - MAX( ALL + + col2 ) * - MAX( ALL - 89 ) AS col0 FROM tab1 AS cor0
----
-8544

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL - MAX ( ALL + + col2 ) * - MAX ( ALL - 89 ) AS col0 FROM tab1 AS cor0
----
-8544

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT DISTINCT col1 / + 67 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT col1 / + 67 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6491
SELECT DISTINCT 53, COUNT( * ) * + + 94 + + 91 AS col0 FROM tab0
----
53
373

skipif mysql # not compatible
query II rowsort label-6491
SELECT DISTINCT 53, COUNT ( * ) * + + 94 + + 91 AS col0 FROM tab0
----
53
373

query II rowsort
SELECT col0 * - 38, - ( col0 ) AS col2 FROM tab1
----
-1938
-51
-3230
-85
-3458
-91

query I rowsort
SELECT col1 + + + 20 AS col1 FROM tab1
----
25
34
67

query I rowsort
SELECT DISTINCT - ( + 21 ) * - - col0 + col0 FROM tab2
----
-1280
-1500
-920

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 50 IS NULL
----

query I rowsort
SELECT col0 + + 65 FROM tab1 cor0
----
116
150
156

query I rowsort
SELECT DISTINCT - col2 + + + 74 AS col2 FROM tab1 AS cor0
----
-22
15
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + + col1, col2 col0, col2 AS col2 FROM tab0 AS cor0
----
9 values hashing to 12bca8bc35c45674eb23a450c962beb0

query I rowsort
SELECT - ( 82 ) FROM tab2
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT ALL col0 DIV - col1 - 85 FROM tab1 AS cor0
----
-102
-86
-88

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL col0 / - col1 - 85 FROM tab1 AS cor0
----
-102
-86
-88

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

query II rowsort
SELECT col2, 13 FROM tab0
----
10
13
47
13
99
13

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 WHERE + 41 * + col1 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + col2 * + 31 AS col1 FROM tab2
----
1240
1798
713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63 col1, + col2 * - col2 + - - 8 FROM tab2
----
63
-1592
63
-3356
63
-521

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL + SUM( 1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL + SUM ( 1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 83 IS NULL
----

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

skipif mysql # not compatible
query III rowsort label-6508
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = CAST ( col0 AS REAL )
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > 54
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + + col1 + - + ( + col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
-1087
-1796
3

query I rowsort
SELECT - 14 + - 92 AS col2 FROM tab2 AS cor0
----
-106
-106
-106

query I rowsort
SELECT DISTINCT col0 + + 1 FROM tab2
----
47
65
76

query I rowsort
SELECT DISTINCT 36 + - col0 AS col0 FROM tab1
----
-15
-49
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6517
SELECT CAST( 69 AS SIGNED ) * + COUNT( * ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-6517
SELECT CAST ( 69 AS INTEGER ) * + COUNT ( * ) FROM tab1
----
207

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6519
SELECT col0 AS col1, - CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
15
-47
87
-10
97
-99

skipif mysql # not compatible
query II rowsort label-6519
SELECT col0 AS col1, - CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
15
-47
87
-10
97
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + + col0 + + + 53 * + - col1 + ( + 41 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT ALL + COUNT( ALL + 9 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + COUNT ( ALL + 9 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 18 >= + col1 * - + ( - 18 ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE + 9 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6524
SELECT DISTINCT COUNT( * ) DIV - 18 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT COUNT ( * ) / - 18 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT CAST( - 89 AS SIGNED ) FROM tab1
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-6525
SELECT CAST ( - 89 AS INTEGER ) FROM tab1
----
-89
-89
-89

query I rowsort
SELECT DISTINCT + 82 + + col0 FROM tab1 AS cor0
----
133
167
173

query I rowsort
SELECT + + col1 AS col2 FROM tab0 AS cor0 WHERE - 61 + - col2 < - col1
----
1
21
81

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

query II rowsort
SELECT DISTINCT 81 * ( col2 ) + + 10, 26 AS col2 FROM tab0
----
3817
26
8029
26
820
26

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

query I rowsort
SELECT - 22 + + col2 + 30 FROM tab0
----
107
18
55

query I rowsort
SELECT 80 * + col0 + - col0 FROM tab1
----
4029
6715
7189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6533
SELECT ALL col2, - CAST( - ( - col1 ) AS SIGNED ) * + col1 + - col1 FROM tab0
----
10
-462
47
-6642
99
-2

skipif mysql # not compatible
query II rowsort label-6533
SELECT ALL col2, - CAST ( - ( - col1 ) AS INTEGER ) * + col1 + - col1 FROM tab0
----
10
-462
47
-6642
99
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6534
SELECT CAST( NULL AS SIGNED ), MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6534
SELECT CAST ( NULL AS INTEGER ), MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6535
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - 64 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6535
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - 64 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL - + col1, 65 * col0 AS col2 FROM tab1 AS cor0
----
-14
3315
-47
5915
-5
5525

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6537
SELECT * FROM tab1 AS cor0 WHERE NOT + 25 + - CAST( NULL AS SIGNED ) + - col0 + 78 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6537
SELECT * FROM tab1 AS cor0 WHERE NOT + 25 + - CAST ( NULL AS INTEGER ) + - col0 + 78 IS NULL
----

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

query I rowsort
SELECT ALL - 33 AS col1 FROM tab0 AS cor0
----
-33
-33
-33

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT col2 DIV + ( col0 ) AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6541
SELECT col2 / + ( col0 ) AS col0 FROM tab1
----
0
0
1

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

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

query I rowsort
SELECT - ( ( - col0 ) ) * + 84 AS col0 FROM tab2
----
3864
5376
6300

query II rowsort
SELECT ( - col1 ) AS col2, - col1 AS col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 58 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 73 IS NULL
----

query I rowsort
SELECT ALL + ( col0 ) + + - 94 FROM tab1 cor0
----
-3
-43
-9

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

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

query I rowsort
SELECT + ( + col1 ) * 40 FROM tab2
----
2040
2680
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT - COUNT( * ) * + + 25 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-6550
SELECT - COUNT ( * ) * + + 25 FROM tab0
----
-75

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

query I rowsort
SELECT DISTINCT - 68 + + col2 AS col1 FROM tab0 AS cor0
----
-21
-58
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL > col1 + + col0 * - - ( + 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL > col1 + + col0 * - - ( + 48 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT col1 + - ( - ( - + col1 ) ) - - 2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT col1 + - ( - ( - + col1 ) ) - - 2 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - + col1 - - 97 - - 46 * - 33 * 40 * 98 - + col2 * + 61 + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + col0 * - col1 FROM tab0
----
-1200
-1740
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6557
SELECT COUNT( ALL - + col0 ) + - CAST( NULL AS DECIMAL ) + COUNT( * ) * - + COUNT( * ) col2 FROM tab1
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6559
SELECT ALL + COUNT( * ) + - - CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 WHERE NULL >= - col2 / + - col0 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + COUNT ( * ) + - - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NULL >= - col2 / + - col0 + - col0
----
0

query I rowsort
SELECT ALL + col0 - col1 + 82 FROM tab2
----
69
77
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6561
SELECT + col1 + 79 * + 52 * ( - - CAST( - - ( - + col0 ) AS DECIMAL ) ) col0 FROM tab2 WHERE - col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6561
SELECT + col1 + 79 * + 52 * ( - - CAST ( - - ( - + col0 ) AS REAL ) ) col0 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT - col0 + 56 + - - col1 FROM tab2
----
48
61
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT - 35 * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-105

skipif mysql # not compatible
query I rowsort label-6563
SELECT - 35 * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-105

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + 35 / col1 * + col2 + 36 < col2
----
15
81
47

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

skipif mysql # not compatible
query I rowsort label-6565
SELECT - MIN ( + 41 ) FROM tab0 AS cor0
----
-41

query I rowsort
SELECT + - 3 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ALL 19 * - MIN( + 63 ) + - 5 FROM tab0 AS cor0
----
-1202

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL 19 * - MIN ( + 63 ) + - 5 FROM tab0 AS cor0
----
-1202

query I rowsort
SELECT ALL + - 7 * col0 FROM tab0 cor0
----
-105
-609
-679

query II rowsort
SELECT DISTINCT 10 AS col0, - 5 AS col0 FROM tab2 AS cor0
----
10
-5

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

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

query I rowsort
SELECT ALL - ( - 64 ) FROM tab1 AS cor0
----
64
64
64

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

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE + col0 BETWEEN col0 / + col0 AND col0 + 60 * 49
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT - ( + - 91 ) * - CAST( - + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
4641
6097
7007

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6576
SELECT - ( + - 91 ) * - CAST ( - + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
4641
6097
7007

query I rowsort
SELECT DISTINCT + 32 * + + 28 AS col0 FROM tab0 AS cor0
----
896

query I rowsort
SELECT 19 * + - 40 FROM tab1 AS cor0
----
-760
-760
-760

query I rowsort
SELECT ALL - col0 / - 61 + - 41 + col0 AS col1 FROM tab1 WHERE NOT NULL <= ( + 7 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6580
SELECT DISTINCT - col2 AS col0, col2 DIV - - 77 col1 FROM tab1
----
-59
0
-68
0
-96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6580
SELECT DISTINCT - col2 AS col0, col2 / - - 77 col1 FROM tab1
----
-59
0
-68
0
-96
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT DISTINCT + 17 AS col0, 70 + + 55 - COUNT( * ) FROM tab2
----
17
122

skipif mysql # not compatible
query II rowsort label-6581
SELECT DISTINCT + 17 AS col0, 70 + + 55 - COUNT ( * ) FROM tab2
----
17
122

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT + col2 DIV - + col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-6583
SELECT + col2 / - + col1 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT ALL 19 * + + col2 AS col1 FROM tab1
----
1121
1292
1824

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

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

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

query I rowsort
SELECT ALL - - col2 + - - ( - - col1 ) + + + col1 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT - col1 * - - col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT DISTINCT - SUM( ALL - + 86 ) + 91 + 58 AS col1 FROM tab0
----
407

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT - SUM ( ALL - + 86 ) + 91 + 58 AS col1 FROM tab0
----
407

query I rowsort
SELECT - col2 + - 76 FROM tab1
----
-135
-144
-172

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6593
SELECT DISTINCT 95 + - 73 DIV - col2 FROM tab1 AS cor0
----
95
96

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT 95 + - 73 / - col2 FROM tab1 AS cor0
----
95
96

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

skipif mysql # not compatible
query I rowsort label-6594
SELECT - - ( + COUNT ( * ) ) AS col2 FROM tab1 cor0 WHERE ( col2 ) NOT BETWEEN NULL AND col2
----
0

query I rowsort
SELECT ALL 24 AS col1 FROM tab1 cor0 WHERE 38 NOT BETWEEN 70 AND - col0
----
24
24
24

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6597
SELECT ALL + CAST( ( + col1 ) AS SIGNED ) DIV - + ( + col1 ) + ( ( - col1 ) ) AS col0 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL + CAST ( ( + col1 ) AS INTEGER ) / - + ( + col1 ) + ( ( - col1 ) ) AS col0 FROM tab1
----
-15
-48
-6

query I rowsort
SELECT DISTINCT + 61 - + col1 AS col1 FROM tab0
----
-20
40
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6599
SELECT - CAST( NULL AS SIGNED ) AS col0, - col1 + + - col1 DIV - col2 AS col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-6599
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col1 + + - col1 / - col2 AS col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) * col0 + - 91 - col2 col0 FROM tab0
----
-18371
-57243
-9793

query II rowsort
SELECT + col1 * 55 - + 0, + 7 AS col2 FROM tab1
----
2585
7
275
7
770
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6602
SELECT - col1 / + col0 - + CAST( NULL AS SIGNED ), col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6602
SELECT - col1 / + col0 - + CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab1 WHERE + + ( - col2 ) > + - col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6604
SELECT - col0 * - col0 * - CAST( NULL AS SIGNED ) - + col0 * - + 25 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT - col0 * - col0 * - CAST ( NULL AS INTEGER ) - + col0 * - + 25 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT + col1 - + CAST( - 50 AS SIGNED ) + - ( 7 ) FROM tab0 AS cor0
----
124
44
64

skipif mysql # not compatible
query I rowsort label-6605
SELECT + col1 - + CAST ( - 50 AS INTEGER ) + - ( 7 ) FROM tab0 AS cor0
----
124
44
64

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6606
SELECT ALL - 38 * + CAST ( NULL AS REAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT DISTINCT + COUNT( * ) * - 86 AS col1 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT + COUNT ( * ) * - 86 AS col1 FROM tab1 AS cor0
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-6608
SELECT DISTINCT - + ( col0 ) DIV 92 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT - + ( col0 ) / 92 AS col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - col2 - + col0 FROM tab2 WHERE NOT NULL <> - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 63 < ( 34 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 24 ) FROM tab0 WHERE ( + col2 ) <> col0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT 18 + SUM( ALL - 63 ) FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-6612
SELECT 18 + SUM ( ALL - 63 ) FROM tab2
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6613
SELECT + CAST( - col2 AS SIGNED ) FROM tab2 WHERE NOT NULL < - 1
----

skipif mysql # not compatible
query I rowsort label-6613
SELECT + CAST ( - col2 AS INTEGER ) FROM tab2 WHERE NOT NULL < - 1
----

query I rowsort
SELECT 55 + 87 FROM tab0
----
142
142
142

query I rowsort
SELECT ALL + ( ( col2 ) ) - - ( col0 ) * - col1 AS col2 FROM tab0
----
-1168
-1817
2

query I rowsort
SELECT ALL - col1 * - 7 + - col1 FROM tab2
----
306
402
462

query I rowsort
SELECT col1 + + 60 FROM tab2
----
111
127
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT DISTINCT - 15 + SUM( DISTINCT - col1 ) AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT - 15 + SUM ( DISTINCT - col1 ) AS col2 FROM tab1
----
-81

query I rowsort
SELECT col0 / 79 FROM tab0 WHERE NOT - col1 * col2 NOT IN ( col1 )
----

query I rowsort
SELECT - col2 + col1 * - 68 FROM tab1
----
-1048
-3264
-399

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

query I rowsort
SELECT DISTINCT - 38 * - col1 FROM tab0 WHERE ( NULL ) IS NULL
----
3078
38
798

query I rowsort
SELECT DISTINCT + col0 + col1 * + col1 AS col1 FROM tab0
----
528
6576
98

query I rowsort
SELECT DISTINCT 57 + col0 AS col2 FROM tab0
----
144
154
72

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

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

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

query I rowsort
SELECT + 8 * 46 - - 31 * 94 FROM tab2
----
3282
3282
3282

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

query I rowsort
SELECT DISTINCT 68 + + col0 AS col2 FROM tab1 WHERE NOT col0 BETWEEN NULL AND + 58
----
153
159

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - 40
----

query I rowsort
SELECT 92 AS col0 FROM tab1 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6633
SELECT ALL - CAST( + 91 AS SIGNED ) + + MIN( + 56 ) AS col1 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL - CAST ( + 91 AS INTEGER ) + + MIN ( + 56 ) AS col1 FROM tab1 AS cor0
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6634
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + col0 BETWEEN 22 AND col2
----

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * + col0 BETWEEN 22 AND col2
----

query I rowsort
SELECT col2 + + 99 FROM tab0 AS cor0
----
109
146
198

query I rowsort
SELECT ALL + ( + 53 ) * - col2 FROM tab1 AS cor0 WHERE + 30 IS NOT NULL
----
-3127
-3604
-5088

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( ( - 29 ) / + col2 + - col2 )
----

query I rowsort
SELECT DISTINCT col0 * col2 + 81 FROM tab1 AS cor0
----
4977
5096
6269

query I rowsort
SELECT + 87 * - 3 + col2 FROM tab1 AS cor0
----
-165
-193
-202

query I rowsort
SELECT ALL - 56 + - col2 FROM tab0 AS cor0
----
-103
-155
-66

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

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

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

query I rowsort
SELECT 1 * col1 AS col2 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6644
SELECT col1 DIV ( ( + col0 ) * - 20 ) FROM tab2 WHERE + col1 + col0 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6644
SELECT col1 / ( ( + col0 ) * - 20 ) FROM tab2 WHERE + col1 + col0 IS NOT NULL
----
0
0
0

query I rowsort
SELECT col2 + col0 * - 59 FROM tab0 WHERE - col1 < col0
----
-5123
-5624
-838

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT + + 70 - + COUNT( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6649
SELECT + + 70 - + COUNT ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 16 - - 85 ) IN ( - ( - col0 ) * - col0 )
----

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

query I rowsort
SELECT - col1 - 40 AS col0 FROM tab1 AS cor0
----
-45
-54
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6653
SELECT DISTINCT ( COUNT( * ) ) + COUNT( * ) DIV 23 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT ( COUNT ( * ) ) + COUNT ( * ) / 23 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6654
SELECT - - COUNT( * ) - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT DISTINCT COUNT( * ) * - MIN( + 86 ) + + 86 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-172

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT COUNT ( * ) * - MIN ( + 86 ) + + 86 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-172

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT - - col1 DIV - 75 + + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6656
SELECT - - col1 / - 75 + + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - 72 * col0 AS col0 FROM tab0 AS cor0 WHERE ( + 91 + + col0 ) NOT BETWEEN 67 + col2 * 52 AND NULL
----
-1080
-6264
-6984

query I rowsort
SELECT + col2 + col1 * col0 AS col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6659
SELECT ALL - SUM( 89 ) + - 33 DIV 18 FROM tab1 AS cor0
----
-268

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL - SUM ( 89 ) + - 33 / 18 FROM tab1 AS cor0
----
-268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 + - 45 * col1 col2 FROM tab0 AS cor0
----
-34
-3634
-934

query I rowsort
SELECT DISTINCT col0 - + col2 * - ( - col2 * col0 ) FROM tab2 AS cor0
----
-102336
-24288
-252225

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 52 * + + col2 * + 10 FROM tab0
----
24440
51480
5200

query III rowsort
SELECT * FROM tab0 WHERE ( + 38 ) * - col2 < 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 - + 13 AS col0 FROM tab0
----
2
74
84

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

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab2 WHERE NOT ( ( col2 ) ) IN ( 58 )
----
-1058
-2560

query I rowsort
SELECT 79 FROM tab2 WHERE col2 = + 78
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( ( - 25 ) )
----

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

skipif mysql # not compatible
query I rowsort label-6673
SELECT col0 + + col0 * CAST ( + ( ( col1 ) ) AS INTEGER ) FROM tab1 WHERE NULL IN ( 75 )
----

query I rowsort
SELECT DISTINCT ( - - 43 ) FROM tab1
----
43

query I rowsort
SELECT 15 * col0 FROM tab0 cor0 WHERE NOT - col0 NOT IN ( 14 + col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT + 72 + - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND + 7
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6677
SELECT DISTINCT + 72 + - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND + 7
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 86 NOT BETWEEN ( col0 ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 86 NOT BETWEEN ( col0 ) AND col2
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 * col0 col1 FROM tab1 WHERE NOT + col2 + + col0 * - col1 NOT IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - 19 * col2 IS NOT NULL )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 ) > - col2
----
51
14
96

query I rowsort
SELECT + col0 * - col2 + - 65 FROM tab1 cor0
----
-4961
-5080
-6253

query II rowsort
SELECT DISTINCT - col2 AS col1, + 52 + - col0 - + col0 AS col2 FROM tab1 AS cor0
----
-59
-118
-68
-130
-96
-50

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

query I rowsort
SELECT ALL + col2 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
3481
4624
9216

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL + 17 - + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < ( NULL )
----
17

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL + 17 - + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < ( NULL )
----
17

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

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

query I rowsort
SELECT ALL + col2 * 57 FROM tab2 AS cor0
----
1311
2280
3306

query I rowsort
SELECT + ( 91 ) + 44 - ( 54 ) * - col2 * 26 AS col0 FROM tab2 cor0
----
32427
56295
81567

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - - col1 col1, + col2 + + col2 AS col0 FROM tab0
----
1215
94
1827
20
97
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT ALL + SUM( ALL - 19 ) AS col2 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL + SUM ( ALL - 19 ) AS col2 FROM tab1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL + 38 / MAX( DISTINCT + col0 ) + + AVG ( DISTINCT + 50 ) * + COUNT( * ) FROM tab2 WHERE NOT ( col2 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + 38 / MAX ( DISTINCT + col0 ) + + AVG ( DISTINCT + 50 ) * + COUNT ( * ) FROM tab2 WHERE NOT ( col2 ) <= NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6701
SELECT 73 DIV + col2 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6701
SELECT 73 / + col2 AS col2 FROM tab1
----
0
1
1

query II rowsort
SELECT DISTINCT 98 * - col2 AS col1, 17 + 70 AS col2 FROM tab1
----
-5782
87
-6664
87
-9408
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6703
SELECT DISTINCT + CAST( NULL AS SIGNED ) + ( col0 ) * col0 FROM tab2 cor0 WHERE 19 - - col2 = ( - ( - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( col0 ) * col0 FROM tab2 cor0 WHERE 19 - - col2 = ( - ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ALL ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE col0 * + 98 IN ( col0 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE col0 * + 98 IN ( col0 + - col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 IN ( 3 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT DISTINCT - col2 + col1 + ( 26 ) DIV col1 AS col1 FROM tab0 AS cor0
----
-72
12
34

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT - col2 + col1 + ( 26 ) / col1 AS col1 FROM tab0 AS cor0
----
-72
12
34

query I rowsort
SELECT ALL 44 + - col2 + + col0 + - + 57 FROM tab2
----
10
11
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - ( - col1 ) + col2 * - col1 * col1 col2 FROM tab1
----
-150350
-1565
-18881

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT 40 * COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-6710
SELECT 40 * COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6711
SELECT + + CAST( + col1 AS SIGNED ) + 61 AS col0, - 44 FROM tab0 AS cor0
----
142
-44
62
-44
82
-44

skipif mysql # not compatible
query II rowsort label-6711
SELECT + + CAST ( + col1 AS INTEGER ) + 61 AS col0, - 44 FROM tab0 AS cor0
----
142
-44
62
-44
82
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6712
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * 67 / + - CAST( + col1 AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6712
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * 67 / + - CAST ( + col1 AS INTEGER ) = ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT - MAX ( - 32 ) AS col0 FROM tab0 AS cor0
----
32

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT + - 79 + - COUNT( * ) col1 FROM tab2 AS cor0
----
-82

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6716
SELECT ALL + + COUNT( + + col0 ) - 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-6716
SELECT ALL + + COUNT ( + + col0 ) - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6718
SELECT COUNT( * ) + + ( MAX( - col0 ) ) AS col1 FROM tab1 WHERE + col2 BETWEEN ( CAST( + col0 AS SIGNED ) + col2 * 98 ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT COUNT ( * ) + + ( MAX ( - col0 ) ) AS col1 FROM tab1 WHERE + col2 BETWEEN ( CAST ( + col0 AS INTEGER ) + col2 * 98 ) AND col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6719
SELECT COUNT ( DISTINCT + - 79 ) - - - COUNT ( * ) FROM tab0
----
-2

query III rowsort
SELECT * FROM tab1 WHERE - 86 * col2 >= NULL
----

query I rowsort
SELECT col1 * - 17 - - 96 AS col0 FROM tab0
----
-1281
-261
79

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT COUNT( * ) * 36 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-6726
SELECT COUNT ( * ) * 36 FROM tab2
----
108

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

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

query I rowsort
SELECT ( + 55 ) * + + ( - col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-143055
-246895
-326095

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, - col2 * - 7 col2 FROM tab0 AS cor0
----
-15
329
-87
70
-97
693

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

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

query II rowsort
SELECT col1 * + 92, 65 * col0 AS col2 FROM tab0
----
1932
5655
7452
975
92
6305

query I rowsort
SELECT - 50 * ( + col1 ) FROM tab0
----
-1050
-4050
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 * - col0 col1 FROM tab2
----
-1288
-1792
-2100

query III rowsort
SELECT ALL * FROM tab1 WHERE 47 / col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6737
SELECT * FROM tab2 AS cor0 WHERE NOT + 23 + - + col2 * + CAST( + - col1 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6737
SELECT * FROM tab2 AS cor0 WHERE NOT + 23 + - + col2 * + CAST ( + - col1 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 35 FROM tab0 cor0
----
35
35
35

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6739
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6739
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT 50 * - COUNT( * ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT 50 * - COUNT ( * ) FROM tab0 AS cor0
----
-150

query I rowsort
SELECT col0 * 25 AS col1 FROM tab2 AS cor0
----
1150
1600
1875

query II rowsort
SELECT ALL + + col1 * + col2 AS col2, col1 + + 51 FROM tab2 AS cor0
----
1173
102
3080
128
3886
118

query I rowsort
SELECT ALL + - col0 * col2 * col2 FROM tab0 AS cor0 WHERE + col2 * col0 <= + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col2 - - 8 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + 20 IS NOT NULL )
----
15
55
87
18
97
107

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6746
SELECT COUNT( ALL - - col0 ) DIV + 78 * - 78 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6746
SELECT COUNT ( ALL - - col0 ) / + 78 * - 78 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT DISTINCT 69 * - COUNT( * ) FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT 69 * - COUNT ( * ) FROM tab1
----
-207

query I rowsort
SELECT ALL col0 * + 68 FROM tab1
----
3468
5780
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT DISTINCT - - MAX( ALL col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT - - MAX ( ALL col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT DISTINCT col1 DIV 62 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT col1 / 62 FROM tab2
----
0
1

query I rowsort
SELECT 7 + + + col1 FROM tab2 AS cor0
----
58
74
84

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

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

query I rowsort
SELECT ALL col1 - - 61 + col1 AS col0 FROM tab0
----
103
223
63

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT 65 * - col2 + + col0 - - col2 * + 63 * - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-47455
-55373
-611327

skipif mysql # not compatible
query I rowsort label-6757
SELECT 65 * - col2 + + col0 - - col2 * + 63 * - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-47455
-55373
-611327

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6758
SELECT 46 + ( - COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) + + 60 + COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

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

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

query II rowsort
SELECT DISTINCT + 92 * - col0 AS col2, col1 FROM tab1 AS cor0
----
-4692
14
-7820
5
-8372
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT 26 DIV 4 FROM tab0 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-6761
SELECT 26 / 4 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT ALL + col1 DIV - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + col1 / - - col0 FROM tab1
----
0
0
0

query II rowsort
SELECT 91, col0 FROM tab2
----
91
46
91
64
91
75

query I rowsort
SELECT DISTINCT - 0 + + col0 AS col0 FROM tab1 WHERE + col1 - - + col1 IS NULL
----

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab1 WHERE NULL <> + col1 + + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT ALL + MAX( DISTINCT - 10 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL + MAX ( DISTINCT - 10 ) FROM tab1
----
-10

query I rowsort
SELECT - col1 / col2 * + col2 / - 27 / col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL + col2 * - + col2 + + col2 + + ( - col0 ) + - - col1 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
-156
-2096
-9798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * - col2 col0 FROM tab0 AS cor0
----
-4559
-9603
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT DISTINCT - COUNT( * ) * - MAX( ALL + + ( - 69 ) ) * - - COUNT( * ) FROM tab2 AS cor0
----
-621

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT - COUNT ( * ) * - MAX ( ALL + + ( - 69 ) ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-621

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

query I rowsort
SELECT 67 * + col2 AS col2 FROM tab0 AS cor0
----
3149
6633
670

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

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - MAX ( 65 ) AS col2 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - - 35 AS col2 FROM tab0 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col0 + + ( + col1 ) * - - ( - + 22 ) FROM tab1 cor0
----
14
-257
47
-943
5
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT - 24 + - + COUNT( DISTINCT - col1 ) - 98 FROM tab2 AS cor0
----
-125

skipif mysql # not compatible
query I rowsort label-6777
SELECT - 24 + - + COUNT ( DISTINCT - col1 ) - 98 FROM tab2 AS cor0
----
-125

query I rowsort
SELECT + 33 + col1 + + 86 AS col0 FROM tab0 AS cor0
----
120
140
200

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT - 0 * - - COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) <= col1
----
0

skipif mysql # not compatible
query I rowsort label-6779
SELECT - 0 * - - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) <= col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6780
SELECT - AVG ( ALL + 61 ) * - MAX( DISTINCT - ( - col1 ) ) col1 FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) < - col2 - + col1
----
NULL

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

query I rowsort
SELECT DISTINCT + col2 * - col0 + - - col1 AS col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL - 9 + - + COUNT( ALL + col0 ) AS col2 FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL - 9 + - + COUNT ( ALL + col0 ) AS col2 FROM tab1 cor0
----
-12

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

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

query I rowsort
SELECT - - col1 AS col0 FROM tab1 WHERE - - 98 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT ALL - MAX( DISTINCT 44 ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL - MAX ( DISTINCT 44 ) FROM tab0
----
-44

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

skipif mysql # not compatible
query I rowsort label-6787
SELECT MIN ( + col0 ) FROM tab0
----
15

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

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

query I rowsort
SELECT ALL + 99 + 35 FROM tab0 AS cor0
----
134
134
134

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) <= + 60
----
46
51
23

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 IN ( - - col1, 79 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6795
SELECT DISTINCT - col2 AS col0, - CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6795
SELECT DISTINCT - col2 AS col0, - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT - - MIN( - ( - 20 ) ) AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-6796
SELECT - - MIN ( - ( - 20 ) ) AS col0 FROM tab0 AS cor0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT ( - col1 ) DIV col0 + - col1 * - 46 - + 46 AS col0 FROM tab1
----
184
2116
598

skipif mysql # not compatible
query I rowsort label-6797
SELECT ( - col1 ) / col0 + - col1 * - 46 - + 46 AS col0 FROM tab1
----
184
2116
598

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

query I rowsort
SELECT DISTINCT - 3 + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
20
37
55

query II rowsort
SELECT DISTINCT 42 * + 79 AS col0, col1 FROM tab1 AS cor0
----
3318
14
3318
47
3318
5

query I rowsort
SELECT DISTINCT + + col2 * + 41 FROM tab1 AS cor0
----
2419
2788
3936

query I rowsort
SELECT ALL - + 31 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

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

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

skipif mysql # not compatible
query II rowsort label-6804
SELECT 90, - COUNT ( * ) + - ( + 84 ) AS col2 FROM tab0 AS cor0
----
90
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 92 col1 FROM tab0 AS cor0
----
-5
5
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6806
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 / + - col2 AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6806
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 / + - col2 AND - CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 + ( 83 ) + - - 56 * 84 / + 25 * + col2 BETWEEN col0 AND + + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT MIN( ALL + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6808
SELECT MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 NOT BETWEEN + - col2 AND + + 34 * - col1 * - 76 * - 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 54 + + 78 AS col1 FROM tab0 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT - + COUNT( * ) + 96 AS col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6811
SELECT - + COUNT ( * ) + 96 AS col0 FROM tab0 AS cor0
----
93

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

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

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

query I rowsort
SELECT + col1 * - 40 * + col1 + col0 FROM tab0
----
-17553
-262425
57

query I rowsort
SELECT ALL 48 - col2 AS col0 FROM tab1
----
-11
-20
-48

query I rowsort
SELECT col2 * - col2 + + + col0 FROM tab1
----
-3396
-4533
-9165

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + + - 49 col1 FROM tab1
----
-100
-134
-140

query I rowsort
SELECT ALL col0 + col0 + + - 63 FROM tab0
----
-33
111
131

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - col1 ) - - 61 + col1 / - col0 / + col2 + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 53 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + 81
----

query II rowsort
SELECT DISTINCT - col1, + col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6824
SELECT 67 * CAST( NULL AS SIGNED ) + - 26 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 93 + + col2 * + col2 * - - 40 ) IS NULL
----

query I rowsort
SELECT + + col0 * - + 86 FROM tab0 AS cor0
----
-1290
-7482
-8342

query I rowsort
SELECT DISTINCT 2 * + + 9 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT ( + 1 ) - - col1 FROM tab1
----
15
48
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT DISTINCT - col2 * - CAST( 92 AS SIGNED ) FROM tab2 AS cor0
----
2116
3680
5336

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - col2 * - CAST ( 92 AS INTEGER ) FROM tab2 AS cor0
----
2116
3680
5336

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT + + 11 * + 90 + - + MAX( - 21 ) col0 FROM tab0 AS cor0
----
1011

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6834
SELECT + + 11 * + 90 + - + MAX ( - 21 ) col0 FROM tab0 AS cor0
----
1011

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT col1 IN ( + + 47 )
----
51
85

query II rowsort
SELECT ALL + + col0 * - col0, col1 FROM tab0 AS cor0
----
-225
81
-7569
21
-9409
1

query II rowsort
SELECT ( + - 77 ) AS col1, + col1 AS col0 FROM tab2 AS cor0
----
-77
51
-77
67
-77
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT + - 88 * + MIN( ALL 37 ) * - + ( - SUM( col1 ) ) * MAX( + col2 ) + + - ( - - 35 ) FROM tab1 AS cor0
----
-20630051

skipif mysql # not compatible
query I rowsort label-6839
SELECT + - 88 * + MIN ( ALL 37 ) * - + ( - SUM ( col1 ) ) * MAX ( + col2 ) + + - ( - - 35 ) FROM tab1 AS cor0
----
-20630051

query II rowsort
SELECT DISTINCT col0, col0 * + col1 FROM tab1
----
51
714
85
425
91
4277

query I rowsort
SELECT - 7 * + + 26 AS col1 FROM tab1
----
-182
-182
-182

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

query I rowsort
SELECT ALL col0 * + 15 AS col2 FROM tab0
----
1305
1455
225

query I rowsort
SELECT + + col2 * + 36 AS col0 FROM tab0 AS cor0
----
1692
3564
360

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6847
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + col1 / + col1 / + + col0 / CAST( NULL AS DECIMAL ) + col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-6847
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + col1 / + col1 / + + col0 / CAST ( NULL AS REAL ) + col1 * - col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col0 ) * - 18 * - col1 col2, 87 col1 FROM tab1 AS cor0
----
-12852
87
-7650
87
-76986
87

query I rowsort
SELECT + + col2 + - col1 + + - col1 * - col1 FROM tab0 AS cor0
----
430
6527
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT + - COUNT( * ) + 83 AS col2 FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-6852
SELECT + - COUNT ( * ) + 83 AS col2 FROM tab0 cor0
----
80

query I rowsort
SELECT ( col1 ) + + 48 * + - col1 - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1372
-6486
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6854
SELECT ALL + COUNT( * ) DIV + 29 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL + COUNT ( * ) / + 29 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - + col1 ) > NULL
----

query I rowsort
SELECT DISTINCT + col1 + 69 - + ( 21 ) + - col0 FROM tab0
----
-18
-48
114

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

query II rowsort
SELECT col0, + col2 * + - col0 FROM tab0
----
15
-705
87
-870
97
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT MIN( DISTINCT col0 ) FROM tab0 WHERE ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT MIN ( DISTINCT col0 ) FROM tab0 WHERE ( NULL ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT COUNT( + ( - + 92 ) ) - 33 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-6860
SELECT COUNT ( + ( - + 92 ) ) - 33 FROM tab0
----
-30

query I rowsort
SELECT DISTINCT - 59 + col1 AS col1 FROM tab2 AS cor0
----
-8
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT MAX( - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6862
SELECT MAX ( - col0 ) AS col2 FROM tab1
----
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6864
SELECT DISTINCT + + 51 AS col1, + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - + col1 * - col1 FROM tab0 AS cor0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-6864
SELECT DISTINCT + + 51 AS col1, + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + col1 * - col1 FROM tab0 AS cor0
----
51
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col2 AS col0, + 76 AS col0, col2 col1 FROM tab0 AS cor0
----
9 values hashing to d12ccd25d32a2e2066dceb5df89bece3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 42 * + col0 AS col2 FROM tab1 cor0
----
2142
3570
3822

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT - - col0 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT col2 / + CAST( NULL AS SIGNED ) * ( + 66 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT col2 / + CAST ( NULL AS INTEGER ) * ( + 66 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT DISTINCT - 11 * - - SUM( ALL col2 ) FROM tab2
----
-1331

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT - 11 * - - SUM ( ALL col2 ) FROM tab2
----
-1331

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

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

query II rowsort
SELECT col1 * - col1 AS col0, col2 AS col0 FROM tab0
----
-1
99
-441
10
-6561
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6873
SELECT DISTINCT - col0, - CAST( NULL AS SIGNED ) FROM tab2 WHERE col1 BETWEEN ( - col0 * - + col0 ) AND ( NULL )
----

skipif mysql # not compatible
query II rowsort label-6873
SELECT DISTINCT - col0, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 BETWEEN ( - col0 * - + col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 92 * + col0 col1 FROM tab0
----
111780
168084
8924

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-6875
SELECT - + CAST( NULL AS DECIMAL ) col0, - MIN( - 89 ) AS col1, - + 37 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
NULL
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6875
SELECT - + CAST ( NULL AS REAL ) col0, - MIN ( - 89 ) AS col1, - + 37 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
NULL
-37

query I rowsort
SELECT - col2 * col0 + - + col0 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT COUNT( * ) + 76 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT COUNT ( * ) + 76 FROM tab0 AS cor0
----
79

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

query I rowsort
SELECT - 64 * + col2 FROM tab2
----
-1472
-2560
-3712

query I rowsort
SELECT ALL col2 + - 23 + - 50 FROM tab0 AS cor0
----
-26
-63
26

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

skipif mysql # not compatible
query II rowsort label-6881
SELECT ALL col2 + col2 / + col1 AS col1, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

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

query I rowsort
SELECT DISTINCT - 7 + + 53 AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT 60 + - 42 FROM tab0
----
18
18
18

query I rowsort
SELECT ALL + col2 + + + 25 AS col0 FROM tab1
----
121
84
93

query I rowsort
SELECT DISTINCT col2 - 87 AS col1 FROM tab0
----
-40
-77
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT 40 + + COUNT( * ) - COUNT( DISTINCT + col2 ) * + 95 - COUNT( * ) FROM tab0
----
-245

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT 40 + + COUNT ( * ) - COUNT ( DISTINCT + col2 ) * + 95 - COUNT ( * ) FROM tab0
----
-245

query I rowsort
SELECT + col0 + - + 10 AS col0 FROM tab0
----
5
77
87

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

query I rowsort
SELECT ALL ( + + 93 ) AS col1 FROM tab1 AS cor0
----
93
93
93

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

query I rowsort
SELECT DISTINCT col1 + + - col0 * + col1 FROM tab1 AS cor0
----
-420
-4230
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 66 col2 FROM tab0 AS cor0
----
-1386
-5346
-66

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

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

query I rowsort
SELECT + 4 * - - 7 AS col0 FROM tab0 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - + col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col2 FROM tab0 AS cor0
----
1
21
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT COUNT( * ) * - MAX( ALL + + 22 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6902
SELECT COUNT ( * ) * - MAX ( ALL + + 22 ) AS col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6903
SELECT ALL - COUNT( * ), 93 AS col2 FROM tab2
----
-3
93

skipif mysql # not compatible
query II rowsort label-6903
SELECT ALL - COUNT ( * ), 93 AS col2 FROM tab2
----
-3
93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 49 * + col0 * + 24 col1 FROM tab1
----
3058776
8496600
9738456

query II rowsort
SELECT DISTINCT 23 AS col2, - 33 AS col2 FROM tab0
----
23
-33

query I rowsort
SELECT ALL + 85 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + + 49 AS col0 FROM tab2 AS cor0
----
49
49
49

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

query I rowsort
SELECT ALL + col2 + + ( col2 ) AS col2 FROM tab2 cor0
----
116
46
80

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL < + 38
----

query I rowsort
SELECT col0 * - col0 + 41 AS col2 FROM tab0
----
-184
-7528
-9368

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT + MIN( DISTINCT col0 ) + + + 70 AS col0 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-6913
SELECT + MIN ( DISTINCT col0 ) + + + 70 AS col0 FROM tab0
----
85

query I rowsort
SELECT ALL + - 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6915
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6915
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

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

query II rowsort
SELECT + col1 + - - col1 AS col2, - ( - + col0 ) + col2 AS col0 FROM tab0 AS cor0
----
162
62
2
196
42
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT DISTINCT - MAX( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT - MAX ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - 82
----

query I rowsort
SELECT - 10 * + col1 FROM tab2 AS cor0
----
-510
-670
-770

query I rowsort
SELECT + 83 AS col2 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - 18 AND - col2 - - col1
----
83
83

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

skipif mysql # not compatible
query I rowsort label-6922
SELECT 29 - - COUNT ( * ) AS col2 FROM tab0
----
32

query I rowsort
SELECT DISTINCT + col2 + col0 + + + col0 * 32 FROM tab1
----
1779
2864
3071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6924
SELECT ALL ( + + COUNT( * ) ) - AVG ( CAST( NULL AS SIGNED ) ) + - MIN( 80 ) + + - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL ( + + COUNT ( * ) ) - AVG ( CAST ( NULL AS INTEGER ) ) + - MIN ( 80 ) + + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + - col2 col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT DISTINCT + MIN( DISTINCT - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT + MIN ( DISTINCT - col2 ) FROM tab2
----
-58

query II rowsort
SELECT ALL 66, - 12 + - col0 + + + col0 AS col1 FROM tab0 AS cor0
----
66
-12
66
-12
66
-12

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

query II rowsort
SELECT + 34 + col2, - ( - col0 ) * - - col2 * 78 FROM tab2 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT MIN ( DISTINCT + ( + - 81 ) ) AS col1 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT 77 AS col1 FROM tab2 cor0 WHERE NOT NULL >= 10
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6932
SELECT ALL 29 AS col1, COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND - - 87
----
29
0

skipif mysql # not compatible
query II rowsort label-6932
SELECT ALL 29 AS col1, COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND - - 87
----
29
0

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

query I rowsort
SELECT ALL - col2 * col2 + + 94 FROM tab0 AS cor0
----
-2115
-6
-9707

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

query I rowsort
SELECT ( - 11 ) AS col1 FROM tab0
----
-11
-11
-11

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

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

query I rowsort
SELECT col1 * col0 * - 53 + + + col1 FROM tab0
----
-5140
-64314
-96810

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

query I rowsort
SELECT - + col0 - - - 25 FROM tab2 cor0
----
-100
-71
-89

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

skipif mysql # not compatible
query I rowsort label-6941
SELECT ( + + 6 ) * - CAST ( NULL AS INTEGER ) * col1 + + - 75 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 96 + - + col1 AS col2 FROM tab1 AS cor0
----
49
82
91

query I rowsort
SELECT 83 FROM tab2 AS cor0 WHERE + 31 >= + col1 * - col0
----
83
83
83

query I rowsort
SELECT - 79 + 80 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT - - COUNT( ALL + col0 ) + SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-6945
SELECT - - COUNT ( ALL + col0 ) + SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
159

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 99 <= + col1 * 94 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + 10 * + 48 + col0 * col0 * + col1 / - col0 * - col2 / - col1 < NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6951
SELECT + COUNT( DISTINCT - CAST( - col0 AS DECIMAL ) ) AS col1, - MIN( ALL col0 ) AS col0 FROM tab0
----
3
-15

skipif mysql # not compatible
query II rowsort label-6951
SELECT + COUNT ( DISTINCT - CAST ( - col0 AS REAL ) ) AS col1, - MIN ( ALL col0 ) AS col0 FROM tab0
----
3
-15

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

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

query I rowsort
SELECT + col1 * + 83 AS col2 FROM tab0 AS cor0
----
1743
6723
83

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

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

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

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

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

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

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

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

query I rowsort
SELECT + ( 76 ) + - + col1 AS col2 FROM tab1 AS cor0
----
29
62
71

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT 98 - + 69 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6960
SELECT DISTINCT - COUNT( * ) DIV - 10 - - - 79 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT - COUNT ( * ) / - 10 - - - 79 FROM tab1 AS cor0
----
-79

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

query II rowsort
SELECT DISTINCT + + 42 * + col0, 34 * + 11 * col2 + + 56 AS col0 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL + - col1 + - + 98 FROM tab1 AS cor0
----
-103
-112
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT + COUNT( * ) + + 1 AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6964
SELECT + COUNT ( * ) + + 1 AS col0 FROM tab0 AS cor0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6965
SELECT ALL MIN( DISTINCT - - CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2
----
-75

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

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

query I rowsort
SELECT DISTINCT - col1 + + + 60 + + col0 FROM tab2
----
47
55
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT IN ( + col0 )
----

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

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

query I rowsort
SELECT - 52 * col1 * - col0 AS col2 FROM tab1
----
22100
222404
37128

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

skipif mysql # not compatible
query I rowsort label-6972
SELECT CAST ( NULL AS REAL ) * + 90 / 11 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - - 60 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6974
SELECT ALL + ( - + 88 ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) < - 11 * col2
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL + ( - + 88 ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) < - 11 * col2
----
-88
-88
-88

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

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

query I rowsort
SELECT ALL + col1 + - - 20 + + 7 + - + col0 + - + 56 + - col2 * 61 * + ( + col2 ) * + + col0 * - + col1 AS col2 FROM tab1 AS cor0
----
1206387655
401393598
90244816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 * + - 1 + + 79 col1 FROM tab1 AS cor0
----
4975
5094
6267

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

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT + COUNT ( * ) + + 22 FROM tab0
----
25

query I rowsort
SELECT - 92 + + col0 FROM tab0
----
-5
-77
5

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6981
SELECT + CAST( COUNT( * ) AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0 WHERE col2 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6981
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 * - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ALL + COUNT( * ) + 93 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + COUNT ( * ) + 93 FROM tab0 AS cor0
----
96

query II rowsort
SELECT DISTINCT + - col0 AS col0, + 38 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
38
-64
38
-75
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT - SUM( DISTINCT - - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6985
SELECT - SUM ( DISTINCT - - col2 ) FROM tab2
----
-121

query II rowsort
SELECT col2, col0 - + + ( + - 99 ) FROM tab0
----
10
186
47
114
99
196

query II rowsort
SELECT ALL col0, - col1 FROM tab0 WHERE - + col1 * + col1 + + 49 + 30 + - 52 * 74 * + col2 < ( col1 )
----
15
-81
87
-21
97
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * 86 * - - 21 + - col1 + - - col0 < 11
----

query II rowsort
SELECT ALL - col1, col2 AS col0 FROM tab2
----
-51
23
-67
58
-77
40

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

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

query II rowsort
SELECT 45 AS col1, - col2 * col2 AS col2 FROM tab2
----
45
-1600
45
-3364
45
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6992
SELECT - COUNT( * ) + - AVG ( CAST( + col1 AS SIGNED ) ), - CAST( + ( + + SUM( DISTINCT + + col0 ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - 44 + + + col1 NOT IN ( 57 + + col0, col2 + 25 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6992
SELECT - COUNT ( * ) + - AVG ( CAST ( + col1 AS INTEGER ) ), - CAST ( + ( + + SUM ( DISTINCT + + col0 ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - 44 + + + col1 NOT IN ( 57 + + col0, col2 + 25 )
----
NULL
NULL

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

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT ( - col2 ) IS NULL
----
51
85
91

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 70 IS NULL
----

query II rowsort
SELECT - col0 AS col0, col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
14
-85
5
-91
47

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

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

query II rowsort
SELECT + + ( + col2 ) AS col1, 46 FROM tab1 AS cor0
----
59
46
68
46
96
46

query I rowsort
SELECT ALL ( col1 ) * - - col0 FROM tab1
----
425
4277
714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL - - MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - - MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT ALL - 65 AS col2, 38 + - 35 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT MAX( + col2 ) * + + COUNT( * ) * + ( - SUM( col2 ) ) AS col2 FROM tab1 AS cor0
----
-64224

skipif mysql # not compatible
query I rowsort label-7005
SELECT MAX ( + col2 ) * + + COUNT ( * ) * + ( - SUM ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-64224

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT - 80 - - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-7007
SELECT - 80 - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-71

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 65 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 52 + + col2 * - 25 col2 FROM tab2 WHERE + - 80 IS NOT NULL
----
-1435
-576
-975

query I rowsort
SELECT ALL + col0 + 87 FROM tab1 WHERE NOT ( NULL <= col1 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * 85 * - + col1 BETWEEN - col2 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7013
SELECT + CAST( - - col2 AS SIGNED ) * - 17 AS col1 FROM tab2 AS cor0
----
-391
-680
-986

skipif mysql # not compatible
query I rowsort label-7013
SELECT + CAST ( - - col2 AS INTEGER ) * - 17 AS col1 FROM tab2 AS cor0
----
-391
-680
-986

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7014
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + 69 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7014
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + 69 AS INTEGER ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT - - 63 * - COUNT( * ) FROM tab0 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7016
SELECT - - 63 * - COUNT ( * ) FROM tab0 cor0
----
-189

query II rowsort
SELECT - 24 * + 95, col1 AS col1 FROM tab0 cor0
----
-2280
1
-2280
21
-2280
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT DISTINCT + + 16 AS col1 FROM tab0 WHERE NOT - 17 / - - 12 * - col0 - + + col0 / - + CAST( NULL AS SIGNED ) > + ( col0 ) + col0
----

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT + + 16 AS col1 FROM tab0 WHERE NOT - 17 / - - 12 * - col0 - + + col0 / - + CAST ( NULL AS INTEGER ) > + ( col0 ) + col0
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 7 IN ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL - 52 * MAX( + - 98 ) AS col2 FROM tab2
----
5096

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL - 52 * MAX ( + - 98 ) AS col2 FROM tab2
----
5096

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7023
SELECT ALL col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - - col1 ) >= - 36
----

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - - col1 ) >= - 36
----

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

query I rowsort
SELECT col1 * + + col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7026
SELECT + 65 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7026
SELECT + 65 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - 69 * - col1 FROM tab0 AS cor0
----
1449
5589
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 > NULL
----

query I rowsort
SELECT DISTINCT + 91 * + 36 AS col2 FROM tab2
----
3276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7030
SELECT ALL MIN( + - col0 ) DIV - - 69 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL MIN ( + - col0 ) / - - 69 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * + 63 * ( + + 6 ) col1 FROM tab0
----
30618
378
7938

query I rowsort
SELECT DISTINCT 55 * + + 36 FROM tab1
----
1980

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col0 ) / - col2 + - + col1 = NULL
----

query I rowsort
SELECT DISTINCT + - ( - 35 ) * + col1 + col0 + + 79 + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
114
2914
814

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + 0 AND col2 * - 48 + 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + + - col1 - - - 84 AS col1 FROM tab2 AS cor0
----
-84

query II rowsort
SELECT ALL col2 AS col1, - ( - 79 ) * - 56 * + col2 + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
-260957
68
-300764
96
-424608

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + 35 * ( ( - 8 ) ) FROM tab1
----
-289

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + 35 * ( ( - 8 ) ) FROM tab1
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL + - COUNT( * ) - - + 95 * 75 * - + 83 + + 3 * + SUM( DISTINCT - col1 ) + 87 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL + - COUNT ( * ) - - + 95 * 75 * - + 83 + + 3 * + SUM ( DISTINCT - col1 ) + 87 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col2
----
NULL

query I rowsort
SELECT + 94 * + - ( + ( + col1 ) ) AS col1 FROM tab2
----
-4794
-6298
-7238

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7045
SELECT + 61 * + 91, COUNT( * ) AS col1 FROM tab2
----
5551
3

skipif mysql # not compatible
query II rowsort label-7045
SELECT + 61 * + 91, COUNT ( * ) AS col1 FROM tab2
----
5551
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - 27 * COUNT( * ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7046
SELECT - 27 * COUNT ( * ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT ALL - col1 + col0 * - 81 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4145
-6890
-7418

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

query I rowsort
SELECT - ( + - col2 ) + col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL - + 89 * col0 + + - 72 FROM tab0 cor0
----
-1407
-7815
-8705

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

query I rowsort
SELECT DISTINCT col0 + - col0 + ( + col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + 3 * + 80 * + col2 - - col1 AS col1 FROM tab1
----
14165
16367
23054

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

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

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

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

query II rowsort
SELECT 74 AS col2, + 24 FROM tab0 AS cor0
----
74
24
74
24
74
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL + SUM( + - 88 ) col0 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7058
SELECT ALL + SUM ( + - 88 ) col0 FROM tab1 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL + SUM( - 80 ) AS col2 FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + SUM ( - 80 ) AS col2 FROM tab0 AS cor0
----
-240

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

query I rowsort
SELECT ALL + - col0 * + - 90 + ( + - col1 ) + - 48 FROM tab2 AS cor0
----
4041
5635
6635

query II rowsort
SELECT ALL 99 / - + col2, + col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT MAX( - col2 ) col2 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7065
SELECT MAX ( - col2 ) col2 FROM tab0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT ( - - col1 ) DIV col2 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7066
SELECT ( - - col1 ) / col2 AS col2 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7067
SELECT - CAST( - - AVG ( col1 ) AS SIGNED ) col1 FROM tab0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7067
SELECT - CAST ( - - AVG ( col1 ) AS INTEGER ) col1 FROM tab0
----
-34

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

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

query I rowsort
SELECT DISTINCT ( + + 39 ) FROM tab0
----
39

query I rowsort
SELECT ALL - 69 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + 56 ) * - - 46 AS col0 FROM tab1
----
2576
2576
2576

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT DISTINCT - COUNT( * ) + 56 + - MAX( ALL + col1 ) FROM tab0 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT - COUNT ( * ) + 56 + - MAX ( ALL + col1 ) FROM tab0 cor0
----
-28

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

query I rowsort
SELECT DISTINCT col0 * - - 92 FROM tab2 AS cor0
----
4232
5888
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL - COUNT( * ) + - 65 AS col0 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL - COUNT ( * ) + - 65 AS col0 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT 64 * + 97 FROM tab1
----
6208
6208
6208

query I rowsort
SELECT ALL - col0 * - col2 * - + col1 AS col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT 33 * + + COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7079
SELECT 33 * + + COUNT ( * ) FROM tab2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7080
SELECT 93 * COUNT( * ) + CAST( + 63 AS SIGNED ) FROM tab2 WHERE col2 IS NULL
----
63

skipif mysql # not compatible
query I rowsort label-7080
SELECT 93 * COUNT ( * ) + CAST ( + 63 AS INTEGER ) FROM tab2 WHERE col2 IS NULL
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT ALL + 7 + - - COUNT( * ) DIV + 82 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + 7 + - - COUNT ( * ) / + 82 FROM tab1
----
7

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 51 < - ( - + 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 34 ) + col1 col2 FROM tab2 AS cor0
----
17
33
43

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

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

query I rowsort
SELECT 51 + 33 FROM tab2
----
84
84
84

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

skipif mysql # not compatible
query I rowsort label-7089
SELECT - COUNT ( * ) + - 75 AS col1 FROM tab0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7090
SELECT CAST( NULL AS SIGNED ) - 91 * - - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7090
SELECT CAST ( NULL AS INTEGER ) - 91 * - - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL - 58 - - - 36 * + COUNT( * ) AS col2 FROM tab1
----
-166

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL - 58 - - - 36 * + COUNT ( * ) AS col2 FROM tab1
----
-166

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

query I rowsort
SELECT col0 FROM tab1 WHERE NULL IN ( - - 24, + 42, + 87, col0, - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( + col0 * 76 * + - col2 )
----

query I rowsort
SELECT + 57 AS col1 FROM tab2 WHERE NULL IS NULL
----
57
57
57

query I rowsort
SELECT DISTINCT + - 54 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL + 88 * + col0 FROM tab0 AS cor0
----
1320
7656
8536

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7099
SELECT DISTINCT + col0 DIV + col0 col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7099
SELECT DISTINCT + col0 / + col0 col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL SUM( DISTINCT + col0 ) col0 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7100
SELECT ALL SUM ( DISTINCT + col0 ) col0 FROM tab1
----
227

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + + 23 * ( - 5 ) AS col0 FROM tab1 AS cor0
----
-115
-115
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7103
SELECT - CAST( NULL AS SIGNED ) * - SUM( ALL - col1 ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT - CAST ( NULL AS INTEGER ) * - SUM ( ALL - col1 ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 60 ) * + ( col0 ) AS col1 FROM tab0 AS cor0
----
5220
5820
900

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

query I rowsort
SELECT + col0 * - 66 + + col2 FROM tab0 AS cor0
----
-5732
-6303
-943

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 88 NOT BETWEEN + ( - 47 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT 90 DIV - col2 col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7109
SELECT 90 / - col2 col2 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + 0 / + - 69 - + 48 AS col2 FROM tab2 WHERE NOT + + 16 * + + col0 < NULL
----

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

query I rowsort
SELECT + + 70 AS col0 FROM tab2 cor0
----
70
70
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT - MIN( ALL + - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - MIN ( ALL + - col0 ) FROM tab0 AS cor0
----
97

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

query I rowsort
SELECT ALL 56 + + col2 AS col0 FROM tab1
----
115
124
152

query I rowsort
SELECT - col0 * 40 AS col2 FROM tab1
----
-2040
-3400
-3640

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT MAX( DISTINCT + col2 ) DIV COUNT( * ) + 67 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-7120
SELECT MAX ( DISTINCT + col2 ) / COUNT ( * ) + 67 FROM tab2
----
86

query I rowsort
SELECT ALL - 77 + - col1 FROM tab2
----
-128
-144
-154

query I rowsort
SELECT + col2 * + 4 AS col0 FROM tab2
----
160
232
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL MIN( DISTINCT + ( 60 ) ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL MIN ( DISTINCT + ( 60 ) ) AS col1 FROM tab2
----
60

query I rowsort
SELECT + 14 * 31 AS col2 FROM tab2
----
434
434
434

query I rowsort
SELECT 53 * 25 FROM tab1
----
1325
1325
1325

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( ( ( 62 ) ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT SUM( DISTINCT + col1 ) FROM tab1 WHERE NOT + 48 - 72 < + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT SUM ( DISTINCT + col1 ) FROM tab1 WHERE NOT + 48 - 72 < + col2
----
NULL

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE col2 NOT BETWEEN 60 * col0 AND ( + col1 / - col2 )
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7134
SELECT - COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 40 * ( - col2 ) + 50 FROM tab1
----
-2310
-2670
-3790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT col2 * - col1 + 54 * + CAST( 6 AS SIGNED ) AS col1 FROM tab0
----
-3483
114
225

skipif mysql # not compatible
query I rowsort label-7136
SELECT col2 * - col1 + 54 * + CAST ( 6 AS INTEGER ) AS col1 FROM tab0
----
-3483
114
225

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT + 74 IN ( col0 )
----
1
21
81

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

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

query I rowsort
SELECT 20 + + col2 AS col1 FROM tab0 AS cor0
----
119
30
67

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

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

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

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7144
SELECT ALL CAST( - col1 AS SIGNED ) * + 48 FROM tab1 AS cor0 WHERE + 59 NOT BETWEEN - col2 * - col0 AND NULL
----
-2256
-240
-672

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL CAST ( - col1 AS INTEGER ) * + 48 FROM tab1 AS cor0 WHERE + 59 NOT BETWEEN - col2 * - col0 AND NULL
----
-2256
-240
-672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7145
SELECT ALL 67 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL 67 / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
22

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

query I rowsort
SELECT DISTINCT ( 86 ) * 16 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 90 ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT - + 97 * - col0 FROM tab0 AS cor0
----
1455
8439
9409

query I rowsort
SELECT col1 * + 23 FROM tab1 AS cor0
----
1081
115
322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7153
SELECT 76 DIV - 70 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7153
SELECT 76 / - 70 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-1

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7157
SELECT - CAST( - col0 AS SIGNED ) DIV col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7157
SELECT - CAST ( - col0 AS INTEGER ) / col2 AS col0 FROM tab1
----
0
1
1

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

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

query I rowsort
SELECT - - col0 + + ( 84 ) FROM tab2 AS cor0
----
130
148
159

query I rowsort
SELECT ALL - 46 + - col2 AS col0 FROM tab0 AS cor0
----
-145
-56
-93

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

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + + MIN ( DISTINCT - col2 ) + + SUM ( DISTINCT - 26 ) AS col2 FROM tab2 AS cor0
----
-84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> ( col0 / + 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7163
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7163
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT 3 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ALL 71 + 8 + - COUNT( * ) AS col0 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL 71 + 8 + - COUNT ( * ) AS col0 FROM tab1
----
76

query I rowsort
SELECT - col0 * - - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ALL MIN( DISTINCT col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL MIN ( DISTINCT col0 ) AS col1 FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7168
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2, tab1 AS cor0
----
-9

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

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

query I rowsort
SELECT 13 + - col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( 0 * + col2 * - col1 )
----

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - 32 NOT BETWEEN ( 12 + col1 ) AND ( ( col0 ) )
----
51
14
96
91
47
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT DISTINCT + MAX( - col1 ) + 67 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-7175
SELECT DISTINCT + MAX ( - col1 ) + 67 FROM tab1 AS cor0
----
62

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

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

query I rowsort
SELECT col2 + + - 7 FROM tab2 AS cor0
----
16
33
51

query I rowsort
SELECT + col1 + + col0 * 62 FROM tab1 AS cor0
----
3176
5275
5689

query I rowsort
SELECT ALL + 73 + - - col2 + + 46 FROM tab0 AS cor0
----
129
166
218

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 + col1 + + 20 col1 FROM tab1 cor0
----
-29
-48
46

query I rowsort
SELECT - col1 + - - 89 + 22 AS col0 FROM tab1
----
106
64
97

query I rowsort
SELECT ALL 39 FROM tab1 WHERE NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT ALL + 75 - - + MIN( ALL ( - 80 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + 75 - - + MIN ( ALL ( - 80 ) ) FROM tab1
----
-5

query I rowsort
SELECT ALL + 90 + col1 + - col0 + + + col1 * - col2 FROM tab1
----
-1291
-285
-3150

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT col1 DIV + col2 + + + col2 FROM tab0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-7187
SELECT col1 / + col2 + + + col2 FROM tab0
----
12
48
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7188
SELECT DISTINCT - CAST( col1 AS SIGNED ) - + - 32 * - + 93 FROM tab1
----
-2981
-2990
-3023

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT - CAST ( col1 AS INTEGER ) - + - 32 * - + 93 FROM tab1
----
-2981
-2990
-3023

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

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT COUNT ( * ) - + 28 FROM tab0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT - 68 col2 FROM tab2 WHERE NULL NOT BETWEEN ( - + ( + col2 ) ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7190
SELECT - 68 col2 FROM tab2 WHERE NULL NOT BETWEEN ( - + ( + col2 ) ) AND ( CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT DISTINCT COUNT( ALL + + col0 ) * - MIN( DISTINCT - + col1 ) - - 39 AS col1 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT COUNT ( ALL + + col0 ) * - MIN ( DISTINCT - + col1 ) - - 39 AS col1 FROM tab0
----
282

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7193
SELECT ALL * FROM tab1 WHERE NOT + + col1 < CAST( - col0 AS DECIMAL ) * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7193
SELECT ALL * FROM tab1 WHERE NOT + + col1 < CAST ( - col0 AS REAL ) * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 * - - col1 col1 FROM tab1
----
1120
3760
400

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

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

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

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

query I rowsort
SELECT DISTINCT - 69 * - 95 * + col1 FROM tab1 AS cor0
----
308085
32775
91770

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + - 26 * SUM( ALL + + ( + ( 62 ) ) ) * - 56 + 11 AS col1 FROM tab2 AS cor0
----
270827

skipif mysql # not compatible
query I rowsort label-7200
SELECT + - 26 * SUM ( ALL + + ( + ( 62 ) ) ) * - 56 + 11 AS col1 FROM tab2 AS cor0
----
270827

query I rowsort
SELECT + + col2 + + + col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT + col0 + + + col0 - - 86 FROM tab2 AS cor0
----
178
214
236

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

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

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

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

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

query I rowsort
SELECT ALL 26 + - - col0 AS col2 FROM tab2 AS cor0
----
101
72
90

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

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

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

query I rowsort
SELECT AVG ( 76 ) / 85 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT + SUM( - + col1 ) * 44 AS col1 FROM tab1 AS cor0
----
-2904

skipif mysql # not compatible
query I rowsort label-7211
SELECT + SUM ( - + col1 ) * 44 AS col1 FROM tab1 AS cor0
----
-2904

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT ALL + COUNT( * ) + ( + COUNT( * ) ) + - - 1 * - - 29 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
47

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL + COUNT ( * ) + ( + COUNT ( * ) ) + - - 1 * - - 29 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
47

query I rowsort
SELECT - col1 FROM tab2 WHERE ( NULL ) > + col2 + - + 11 * - col2 * + col2 / - col1
----

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

query I rowsort
SELECT + + 52 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - 56 * col2 FROM tab0 AS cor0
----
-2632
-5544
-560

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab0 cor0 WHERE NOT 97 > NULL
----

query I rowsort
SELECT ALL - col2 * + 62 * + col2 + col0 FROM tab2 cor0
----
-208493
-32752
-99136

query I rowsort
SELECT DISTINCT - 96 + + - col0 FROM tab2 AS cor0
----
-142
-160
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-7222
SELECT 24 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 / - + col1 * + col0 IS NOT NULL
----
24
3

skipif mysql # not compatible
query II rowsort label-7222
SELECT 24 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 / - + col1 * + col0 IS NOT NULL
----
24
3

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <> + + 61
----

query I rowsort
SELECT ALL - + col1 * - 66 + - + col0 AS col0 FROM tab0 AS cor0
----
-31
1299
5331

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 63 > col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ( - 45 ) + - ( + MAX( ALL - col1 ) ) AS col1 FROM tab1 WHERE NOT 46 < + 36
----
-40

skipif mysql # not compatible
query I rowsort label-7227
SELECT ( - 45 ) + - ( + MAX ( ALL - col1 ) ) AS col1 FROM tab1 WHERE NOT 46 < + 36
----
-40

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

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

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

skipif mysql # not compatible
query II rowsort label-7229
SELECT ALL 46 AS col1, COUNT ( * ) AS col2 FROM tab2
----
46
3

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7232
SELECT ALL - col2 col1, col1 DIV + col1 AS col0 FROM tab1
----
-59
1
-68
1
-96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7232
SELECT ALL - col2 col1, col1 / + col1 AS col0 FROM tab1
----
-59
1
-68
1
-96
1

query I rowsort
SELECT - col1 * 94 FROM tab0 WHERE NOT col0 IS NULL
----
-1974
-7614
-94

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL NOT IN ( - col0, - 93 * 18 + + ( + col0 ) + - + col0 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 13 col1 FROM tab2 AS cor0
----
1001
663
871

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 50 * - + col2, - 62, col1 )
----

query I rowsort
SELECT ALL 70 AS col0 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN ( - col1 ) AND NULL
----
70
70
70

query II rowsort
SELECT + col1 AS col2, col2 * - + col2 FROM tab0 AS cor0
----
1
-9801
21
-100
81
-2209

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

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

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

query I rowsort
SELECT DISTINCT + - col0 * - col0 * + col1 AS col2 FROM tab0 AS cor0
----
158949
18225
9409

query II rowsort
SELECT DISTINCT - 83 + 61, + col0 AS col2 FROM tab1 AS cor0
----
-22
51
-22
85
-22
91

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NULL AND NOT NULL <= + + col2 - 46
----

query I rowsort
SELECT - col0 + + col0 + 45 FROM tab0
----
45
45
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7251
SELECT DISTINCT COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7252
SELECT DISTINCT 76, COUNT( * ) * - SUM( + - 43 ) col1 FROM tab1
----
76
387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7252
SELECT DISTINCT 76, COUNT ( * ) * - SUM ( + - 43 ) col1 FROM tab1
----
76
387

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT MIN( ALL ( col2 ) ) AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL >= ( + - 47 + + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT MIN ( ALL ( col2 ) ) AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL >= ( + - 47 + + col2 ) )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 <= + 61 - 95
----

query I rowsort
SELECT ALL + - ( - + col2 ) + + 48 FROM tab1 AS cor0
----
107
116
144

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 82 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT DISTINCT 33 DIV + 95 - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT 33 / + 95 - col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - - 50 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col2 IN ( 73, col0, + col2 * 89, - 39 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7266
SELECT ALL - CAST( NULL AS SIGNED ) - col2 + 88 * - CAST( NULL AS DECIMAL ) * - 46 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL - CAST ( NULL AS INTEGER ) - col2 + 88 * - CAST ( NULL AS REAL ) * - 46 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7268
SELECT + - col1 / + - col2 + - - col1 col2 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT - + SUM( + 16 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - + SUM ( + 16 ) FROM tab0 AS cor0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT ALL col0 DIV - - ( + - col0 ) 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-7270
SELECT ALL col0 / - - ( + - col0 ) col1 FROM tab1 AS cor0
----
-1
-1
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - col1 * col0 / + col1 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col0 FROM tab1
----
196
2209
25

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83 * col1 col0, - col0 + ( - col0 ) FROM tab0
----
1743
-174
6723
-30
83
-194

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT - + 89 * + 27 * - 59 * + + SUM( DISTINCT - 98 ) col1 FROM tab1 AS cor0
----
-13894146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7280
SELECT - + 89 * + 27 * - 59 * + + SUM ( DISTINCT - 98 ) col1 FROM tab1 AS cor0
----
-13894146

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7282
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 80 + 46 AS col2 FROM tab1 AS cor0 WHERE 39 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 80 + 46 AS col2 FROM tab1 AS cor0 WHERE 39 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col2, - col2 - - - col1 AS col0 FROM tab2
----
23
-74
40
-117
58
-125

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

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

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

query I rowsort
SELECT + - 84 + - - 65 AS col2 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + col0 * - 42 + - 61 + 32 FROM tab2 AS cor0
----
-1961
-2717
-3179

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE - 68 IS NULL
----

query I rowsort
SELECT - col0 + + - ( - col1 ) * + 40 AS col1 FROM tab0 AS cor0
----
-57
3225
753

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NULL IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 74 IS NULL
----

query I rowsort
SELECT 69 + - - 5 + + 79 - col0 FROM tab1 AS cor0
----
102
62
68

query I rowsort
SELECT DISTINCT col0 + + col1 * - col1 FROM tab2 cor0
----
-2555
-4414
-5865

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 > + col1
----
75
67
58

query I rowsort
SELECT DISTINCT - col1 * + 90 + - col0 + 17 * - col2 AS col0 FROM tab0
----
-1870
-2147
-8104

query II rowsort
SELECT DISTINCT col0 * - 67 AS col2, col0 AS col1 FROM tab2
----
-3082
46
-4288
64
-5025
75

query I rowsort
SELECT ALL col1 + - + 32 FROM tab0
----
-11
-31
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ( MAX( ALL - 85 ) ) FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-7299
SELECT ( MAX ( ALL - 85 ) ) FROM tab0
----
-85

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7301
SELECT ALL + 67 DIV + + MAX( DISTINCT + col2 ) + + 4 AS col0 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL + 67 / + + MAX ( DISTINCT + col2 ) + + 4 AS col0 FROM tab2
----
5

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

skipif mysql # not compatible
query III rowsort label-7302
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND col0
----

query I rowsort
SELECT col1 * - col1 - + - col1 + - - col1 AS col1 FROM tab1 AS cor0
----
-15
-168
-2115

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> + 64
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT DISTINCT + 23 DIV + 49 + ( + + 47 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT + 23 / + 49 + ( + + 47 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
47

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

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

query I rowsort
SELECT DISTINCT - col2 * + 22 AS col1 FROM tab2 AS cor0
----
-1276
-506
-880

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 80 - + col1 <> NULL
----

query I rowsort
SELECT ALL 76 * + 54 FROM tab1 AS cor0
----
4104
4104
4104

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

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

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

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

query II rowsort
SELECT + ( + 59 ), + col1 AS col0 FROM tab0
----
59
1
59
21
59
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT DISTINCT 34 * + + COUNT( DISTINCT + - col2 ) * - - 4 AS col1 FROM tab2
----
408

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT 34 * + + COUNT ( DISTINCT + - col2 ) * - - 4 AS col1 FROM tab2
----
408

query I rowsort
SELECT col2 * + 46 AS col1 FROM tab2
----
1058
1840
2668

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7317
SELECT + col2 + - col2 FROM tab1 WHERE NOT - CAST( + col1 AS SIGNED ) * - 73 > + CAST( NULL AS SIGNED ) + + col0 - - 15 * + col2 * 66
----

skipif mysql # not compatible
query I rowsort label-7317
SELECT + col2 + - col2 FROM tab1 WHERE NOT - CAST ( + col1 AS INTEGER ) * - 73 > + CAST ( NULL AS INTEGER ) + + col0 - - 15 * + col2 * 66
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7318
SELECT ALL + col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7318
SELECT ALL + col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT - 17 AS col2 FROM tab1 WHERE NOT + - 46 IS NOT NULL
----

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

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

query II rowsort
SELECT ALL - ( - col2 ), + 54 AS col1 FROM tab0 cor0
----
10
54
47
54
99
54

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

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

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - 74 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT ALL + - col0 + - col0 * 27 FROM tab2 AS cor0
----
-1288
-1792
-2100

query I rowsort
SELECT DISTINCT - ( + col2 ) + - ( + 55 ) FROM tab2 AS cor0
----
-113
-78
-95

query I rowsort
SELECT - col0 * - ( col0 ) + col1 AS col0 FROM tab2 AS cor0
----
2167
4173
5692

query I rowsort
SELECT + 62 + - 42 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7328
SELECT ALL COUNT( * ) DIV COUNT( * ) - + SUM( - col2 ) FROM tab0
----
157

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL COUNT ( * ) / COUNT ( * ) - + SUM ( - col2 ) FROM tab0
----
157

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT ALL col1 - + - col2 DIV + 99 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL col1 - + - col2 / + 99 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL COUNT( * ) * + MIN( 66 ) AS col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL COUNT ( * ) * + MIN ( 66 ) AS col0 FROM tab1 AS cor0
----
198

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

query I rowsort
SELECT ALL - col1 * - col0 * + 60 FROM tab0 AS cor0
----
109620
5820
72900

query II rowsort
SELECT col1 * - ( - - ( - 64 ) ), + 63 AS col2 FROM tab2 AS cor0
----
3264
63
4288
63
4928
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT + ( 10 ) DIV + - col1 AS col2 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7337
SELECT + ( 10 ) / + - col1 AS col2 FROM tab1 AS cor0
----
-2
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT 84 * COUNT( * ) AS col0 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-7340
SELECT 84 * COUNT ( * ) AS col0 FROM tab0
----
252

query II rowsort
SELECT DISTINCT col2 / - 9 / + - col1, col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND 81 * + - col1 - - col1
----

query I rowsort
SELECT DISTINCT - 29 * - col2 + + col0 AS col0 FROM tab2 cor0
----
1224
1757
713

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

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

query I rowsort
SELECT DISTINCT 40 * + 36 * + ( col1 ) + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
11043
117345
31110

query I rowsort
SELECT ALL - + 23 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT DISTINCT - SUM( - - col1 ) + + 29 * - + COUNT( ALL 4 ) - + 57 + 56 AS col1 FROM tab2
----
-283

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT - SUM ( - - col1 ) + + 29 * - + COUNT ( ALL 4 ) - + 57 + 56 AS col1 FROM tab2
----
-283

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7352
SELECT ALL - + col0 + + + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT - - 32 < NULL
----

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - + col0 + + + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT - - 32 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT DISTINCT - SUM( col1 ) - - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - SUM ( col1 ) - - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 - + + ( 59 ) AS col2 FROM tab0
----
-44
28
38

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT ( + - col1 ) - - col0 + + CAST( col0 AS SIGNED ) * + 54 FROM tab2
----
2479
3443
4058

skipif mysql # not compatible
query I rowsort label-7356
SELECT ( + - col1 ) - - col0 + + CAST ( col0 AS INTEGER ) * + 54 FROM tab2
----
2479
3443
4058

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 81 > + 2 + + col0
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + ( + ( - 17 ) ) col1 FROM tab1 AS cor0
----
-12
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT ALL - - SUM( + - 61 ) + - + 45 - COUNT( * ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL - - SUM ( + - 61 ) + - + 45 - COUNT ( * ) FROM tab2 AS cor0
----
-231

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab2 cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT - + col2 DIV 77 + + col2 FROM tab0 cor0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-7361
SELECT - + col2 / 77 + + col2 FROM tab0 cor0
----
10
47
98

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

query I rowsort
SELECT DISTINCT + 82 * col2 * ( - + col2 ) FROM tab1
----
-285442
-379168
-755712

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT - - 17 AS col1, SUM( - ( + col2 ) ) FROM tab1 AS cor0
----
17
-223

skipif mysql # not compatible
query II rowsort label-7366
SELECT - - 17 AS col1, SUM ( - ( + col2 ) ) FROM tab1 AS cor0
----
17
-223

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

query I rowsort
SELECT DISTINCT - col0 * + - col1 FROM tab2 AS cor0
----
2346
4928
5025

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

query II rowsort
SELECT ALL - col1 AS col1, col0 * - col1 FROM tab0 AS cor0
----
-1
-97
-21
-1827
-81
-1215

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7373
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL 73 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query II rowsort
SELECT ALL - col2 * - col1 AS col2, col0 AS col1 FROM tab0
----
210
87
3807
15
99
97

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

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

query I rowsort
SELECT col0 * - ( + col0 ) AS col0 FROM tab1
----
-2601
-7225
-8281

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7379
SELECT ALL MIN( ALL + col1 ) * MIN( - 55 ) DIV COUNT( ALL col0 ) AS col0 FROM tab2
----
-935

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL MIN ( ALL + col1 ) * MIN ( - 55 ) / COUNT ( ALL col0 ) AS col0 FROM tab2
----
-935

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT ALL col0 DIV + 24 FROM tab1
----
2
3
3

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL col0 / + 24 FROM tab1
----
2
3
3

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

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT - - CAST ( + 27 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
81

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7383
SELECT - COUNT( * ) + - MIN( - - 73 ) AS col0, MAX( ALL 90 ) AS col1 FROM tab2 AS cor0
----
-76
90

skipif mysql # not compatible
query II rowsort label-7383
SELECT - COUNT ( * ) + - MIN ( - - 73 ) AS col0, MAX ( ALL 90 ) AS col1 FROM tab2 AS cor0
----
-76
90

onlyif mysql # DIV for integer division: 
query II rowsort label-7384
SELECT col2 * + + col2 + + + ( + - col1 ) + + col1, + 9 DIV + col1 AS col2 FROM tab2 AS cor0
----
1600
0
3364
0
529
0

skipif mysql # not compatible
query II rowsort label-7384
SELECT col2 * + + col2 + + + ( + - col1 ) + + col1, + 9 / + col1 AS col2 FROM tab2 AS cor0
----
1600
0
3364
0
529
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT DISTINCT 65 * + - 65 * + col0 + + CAST( col1 AS SIGNED ) * + 21 AS col2 FROM tab2 AS cor0
----
-193279
-268783
-315468

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT 65 * + - 65 * + col0 + + CAST ( col1 AS INTEGER ) * + 21 AS col2 FROM tab2 AS cor0
----
-193279
-268783
-315468

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + - col1 * + ( + - ( + - col0 ) ) / + + col0 + + col2 < 30 * - + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT ALL 59 - COUNT( * ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL 59 - COUNT ( * ) FROM tab2
----
56

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

query I rowsort
SELECT + 75 * + col2 * - col1 FROM tab0 AS cor0
----
-15750
-285525
-7425

query II rowsort
SELECT ALL + - col0 AS col1, 62 AS col1 FROM tab1 AS cor0
----
-51
62
-85
62
-91
62

query I rowsort
SELECT - col2 * + + col1 * col0 AS col2 FROM tab1 cor0
----
-25075
-290836
-68544

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7396
SELECT + COUNT( * ) * ( + CAST( NULL AS DECIMAL ) ) + 83 * - COUNT( - col0 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT + COUNT ( * ) * ( + CAST ( NULL AS REAL ) ) + 83 * - COUNT ( - col0 ) AS col0 FROM tab2 AS cor0
----
NULL

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

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

query II rowsort
SELECT + 13 * - 43 AS col1, + 3 FROM tab0
----
-559
3
-559
3
-559
3

query II rowsort
SELECT ALL + ( 8 ) AS col1, col1 FROM tab1
----
8
14
8
47
8
5

query I rowsort
SELECT ALL + - 29 * - 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 95ccf7cac32c5f7f5dc47cb0847b5adc

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT - SUM( + col2 ) * COUNT( * ) - + 42 FROM tab1 AS cor0
----
-711

skipif mysql # not compatible
query I rowsort label-7402
SELECT - SUM ( + col2 ) * COUNT ( * ) - + 42 FROM tab1 AS cor0
----
-711

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7404
SELECT + SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT + SUM ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * 57 * col0 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 > + - 40
----

query II rowsort
SELECT 95 + - col1 + 81 AS col0, - col2 AS col2 FROM tab2 WHERE NOT - + 79 / col1 + - + 12 IS NULL
----
109
-58
125
-23
99
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7409
SELECT - col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT - col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT ALL CAST( NULL AS SIGNED ) * + - col1 * 16 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL CAST ( NULL AS INTEGER ) * + - col1 * 16 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7411
SELECT ALL col1 DIV ( - col1 ) * - col2 + - col1 + + col1 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL col1 / ( - col1 ) * - col2 + - col1 + + col1 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT + ( + col2 ) * col2 - - ( col1 ) * + - 95 * 92 + col0 FROM tab0 AS cor0
----
-183353
-705716
1158

query I rowsort
SELECT DISTINCT - 42 + - col1 FROM tab1 AS cor0
----
-47
-56
-89

query I rowsort
SELECT + 32 * + + col0 + - - col2 * 73 AS col0 FROM tab2
----
3151
4968
6634

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT ALL col0 DIV - + ( + - col1 ) FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL col0 / - + ( + - col1 ) FROM tab1
----
1
17
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT + COUNT( - - 32 ) * + - 22 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7417
SELECT + COUNT ( - - 32 ) * + - 22 FROM tab0 AS cor0
----
-66

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

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

query I rowsort
SELECT ALL col1 * + - col2 + col1 FROM tab0 AS cor0
----
-189
-3726
-98

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

query I rowsort
SELECT ALL - 77 + + + col2 FROM tab1 cor0
----
-18
-9
19

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 44 * - 20 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7423
SELECT * FROM tab2 AS cor0 WHERE - 37 <= 91 * - - col1 + - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7423
SELECT * FROM tab2 AS cor0 WHERE - 37 <= 91 * - - col1 + - - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT + SUM( ALL col0 ) - + 74 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-7424
SELECT + SUM ( ALL col0 ) - + 74 FROM tab1
----
153

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 NOT IN ( + - col0, col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + 5 AS col2 FROM tab2
----
28
45
63

query I rowsort
SELECT + col1 - col2 + - 90 AS col2 FROM tab2
----
-53
-62
-81

query I rowsort
SELECT ALL col2 - + 47 FROM tab2 WHERE ( - 9 ) >= 12 - - col2
----

query I rowsort
SELECT 46 - + col0 FROM tab1
----
-39
-45
-5

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

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT + MAX ( DISTINCT - col1 ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT COUNT( 31 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7431
SELECT COUNT ( 31 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col2 + col1 + col1 - + 45 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-113
-19
-94

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + ( + - col0 ) AS col2 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT + col2 AS col1, - col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7437
SELECT CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 >= + 62
----
-10
-99

skipif mysql # not compatible
query I rowsort label-7437
SELECT CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 >= + 62
----
-10
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7438
SELECT col2, - col2 + CAST( NULL AS SIGNED ) * - col0 AS col0, + col0 * 21 + - col1 FROM tab1 AS cor0
----
9 values hashing to f170570483db241e78eb104f3067e987

skipif mysql # not compatible
query III rowsort label-7438
SELECT col2, - col2 + CAST ( NULL AS INTEGER ) * - col0 AS col0, + col0 * 21 + - col1 FROM tab1 AS cor0
----
9 values hashing to f170570483db241e78eb104f3067e987

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL + COUNT( * ) * - - 88 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL + COUNT ( * ) * - - 88 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT - 79 * col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab2 AS cor0 WHERE ( col1 IS NOT NULL )
----
6

query I rowsort
SELECT ALL + 34 + 1 + + col0 + + + 12 AS col2 FROM tab1 cor0
----
132
138
98

query I rowsort
SELECT ALL - col1 * 22 FROM tab0 AS cor0
----
-1782
-22
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7444
SELECT DISTINCT + COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL 47 * 90 AS col2 FROM tab0
----
4230
4230
4230

query III rowsort
SELECT * FROM tab2 WHERE - ( 95 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT COUNT( * ) * - ( - 70 ) + + 80 FROM tab1
----
290

skipif mysql # not compatible
query I rowsort label-7447
SELECT COUNT ( * ) * - ( - 70 ) + + 80 FROM tab1
----
290

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT 51 - + col1 / col1 NOT BETWEEN - col0 AND + col1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + - 14 ) col1, col0 FROM tab0 AS cor0
----
-14
15
-14
87
-14
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT + 16 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7450
SELECT + 16 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7451
SELECT DISTINCT col0 * + - col1 + - col2 * + - 98 + - - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
2319
5298
8598

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT col0 * + - col1 + - col2 * + - 98 + - - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
2319
5298
8598

query I rowsort
SELECT ALL - col0 + + col0 * - + col1 AS col1 FROM tab2 AS cor0
----
-2392
-4992
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 79 = + 97 * col1 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 79 = + 97 * col1 + - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT SUM( ALL - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT SUM ( ALL - col2 ) FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7456
SELECT - col0 * + col1 - - - CAST( - - 83 AS SIGNED ) FROM tab0
----
-1298
-180
-1910

skipif mysql # not compatible
query I rowsort label-7456
SELECT - col0 * + col1 - - - CAST ( - - 83 AS INTEGER ) FROM tab0
----
-1298
-180
-1910

query I rowsort
SELECT + 25 * - + col2 AS col0 FROM tab0 AS cor0 WHERE NULL < - 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7458
SELECT DISTINCT - col0 AS col2, 46 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + col2 IS NOT NULL
----
-15
46
-87
46
-97
46

skipif mysql # not compatible
query II rowsort label-7458
SELECT DISTINCT - col0 AS col2, 46 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + col2 IS NOT NULL
----
-15
46
-87
46
-97
46

query I rowsort
SELECT ALL + col2 + 35 FROM tab2 AS cor0
----
58
75
93

query II rowsort
SELECT - col2 * 0, col2 * col2 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT - COUNT( * ) + + - COUNT( * ) + - 56 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7461
SELECT - COUNT ( * ) + + - COUNT ( * ) + - 56 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT + col2 + - col1 + + col2 FROM tab1 AS cor0
----
113
178
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT 44 + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7464
SELECT 44 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT ALL - COUNT( - ( - col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL - COUNT ( - ( - col1 ) ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 15 - - - 78 AS col0, + col1 col0 FROM tab2 WHERE NULL IS NULL
----
-63
51
-63
67
-63
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7467
SELECT + ( - COUNT( * ) ) col1, 73 col2 FROM tab0
----
-3
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7467
SELECT + ( - COUNT ( * ) ) col1, 73 col2 FROM tab0
----
-3
73

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 * - col2 + - + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7469
SELECT + SUM( DISTINCT col0 ) DIV 1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7469
SELECT + SUM ( DISTINCT col0 ) / 1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL + + col0 * + + col1 FROM tab2 AS cor0
----
2346
4928
5025

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab2
----
-16
-16
-16

query I rowsort
SELECT + 57 + - col0 FROM tab0 AS cor0
----
-30
-40
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT - col2 + CAST( + - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-196
-62
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7474
SELECT - col2 + CAST ( + - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT COUNT( * ) + - 21 - - - MIN( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7475
SELECT COUNT ( * ) + - 21 - - - MIN ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT + col0 + - col2 * CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT + col0 + - col2 * CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT - MAX( DISTINCT - 70 ) FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-7477
SELECT - MAX ( DISTINCT - 70 ) FROM tab1 cor0
----
70

query I rowsort
SELECT ALL 32 * - col2 + + col2 FROM tab0 AS cor0
----
-1457
-3069
-310

onlyif mysql # aggregate syntax: 
query II rowsort label-7479
SELECT ALL - COUNT( * ) AS col0, - 76 col2 FROM tab2 AS cor0
----
-3
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7479
SELECT ALL - COUNT ( * ) AS col0, - 76 col2 FROM tab2 AS cor0
----
-3
-76

query I rowsort
SELECT DISTINCT + - 35 + - + 2 AS col1 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT ALL 11 + + col0 * - col2 + + 21 * - col2 AS col1 FROM tab2
----
-1530
-3389
-5557

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 96, + col1 col2 FROM tab0
----
-96
1
-96
21
-96
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 * + col2 + - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NULL = - - col1 + col1 / + col2 + 35 + + col2 * col2
----
0

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL = - - col1 + col1 / + col2 + 35 + + col2 * col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL ( + ( - ( - COUNT( ALL 38 ) ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL ( + ( - ( - COUNT ( ALL 38 ) ) ) ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT col0 AS col1, - col2 AS col0 FROM tab1
----
51
-96
85
-59
91
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 19 AND - 28
----

query I rowsort
SELECT DISTINCT ( 68 ) AS col2 FROM tab1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 + + 37 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT + 78 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT + 78 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - - 89 - + col2 FROM tab2 AS cor0
----
2024
3520
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL - + MIN( ALL - 97 ) * + 36 AS col1 FROM tab1 AS cor0
----
3492

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL - + MIN ( ALL - 97 ) * + 36 AS col1 FROM tab1 AS cor0
----
3492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7494
SELECT - 61 * + + col2 * + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT - 61 * + + col2 * + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT + + ( + + 1 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7495
SELECT + + ( + + 1 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + 62 * - + col2, 79 AS col1 FROM tab1 AS cor0
----
-3658
79
-4216
79
-5952
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 82 * + + 23 + - col1 col2 FROM tab0 AS cor0
----
1805
1865
1885

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT - + col1 - - col0 - + col2 + + - col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-23
-53
32

skipif mysql # not compatible
query I rowsort label-7498
SELECT - + col1 - - col0 - + col2 + + - col2 / - col1 AS col0 FROM tab1 AS cor0
----
-23
-53
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL - COUNT( ALL - col2 ) * + + 98 col1 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7499
SELECT ALL - COUNT ( ALL - col2 ) * + + 98 col1 FROM tab1 AS cor0
----
-294

query I rowsort
SELECT ALL + 23 + + + 95 - col1 + col2 * + 67 + - 94 * + + col0 AS col2 FROM tab2 cor0
----
-2716
-3113
-3295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7501
SELECT ALL - 53 DIV - ( ( + 79 ) ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL - 53 / - ( ( + 79 ) ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7503
SELECT DISTINCT + - MAX( DISTINCT - col2 ) AS col2, + 27 col1 FROM tab2 AS cor0
----
23
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7503
SELECT DISTINCT + - MAX ( DISTINCT - col2 ) AS col2, + 27 col1 FROM tab2 AS cor0
----
23
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT DISTINCT MAX( DISTINCT - - 85 ) AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT MAX ( DISTINCT - - 85 ) AS col0 FROM tab1
----
85

query II rowsort
SELECT ALL - col2 AS col0, col0 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT DISTINCT MIN( - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT MIN ( - col1 ) AS col0 FROM tab2
----
-77

query I rowsort
SELECT + col2 * - - 14 AS col0 FROM tab1
----
1344
826
952

query I rowsort
SELECT ALL col1 * + 40 FROM tab1
----
1880
200
560

query I rowsort
SELECT ALL 3 * + + 65 FROM tab1
----
195
195
195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - + 38 ) = NULL
----

query I rowsort
SELECT col0 + - col1 * + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 + - col1 FROM tab1 AS cor0 WHERE NOT col0 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7513
SELECT 81 DIV + col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7513
SELECT 81 / + col2 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT DISTINCT + + 34 + - - COUNT( * ) * - 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-848

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT + + 34 + - - COUNT ( * ) * - 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT + 1 * - CAST( NULL AS SIGNED ) * COUNT( * ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7515
SELECT + 1 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7517
SELECT ALL + - MIN( ALL + + 64 ) AS col0, + 11 * ( - - 25 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-64
275

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7517
SELECT ALL + - MIN ( ALL + + 64 ) AS col0, + 11 * ( - - 25 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-64
275

query I rowsort
SELECT + 52 + + 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + 4 AS col2 FROM tab2 AS cor0 WHERE NOT 38 IS NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT - + 39 + COUNT( * ) FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT - + 39 + COUNT ( * ) FROM tab0 cor0
----
-36

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN - + col1 AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7522
SELECT - col0 * 52 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
-2392
-3328
-3900

skipif mysql # not compatible
query I rowsort label-7522
SELECT - col0 * 52 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
-2392
-3328
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL + - ( + COUNT( DISTINCT - col0 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL + - ( + COUNT ( DISTINCT - col0 ) ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / - + 77 IS NULL
----

query I rowsort
SELECT DISTINCT 95 + + col2 AS col2 FROM tab1 AS cor0
----
154
163
191

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 WHERE NOT - ( - col1 ) = - - ( col2 ) AND NOT + 99 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - ( - col1 ) = - - ( col2 ) AND NOT + 99 IS NOT NULL
----
0

query II rowsort
SELECT 37 + 95 + + col2 AS col1, col2 FROM tab0
----
142
10
179
47
231
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + + 82
----

query III rowsort
SELECT col0 + - col0 * + 66 + + + ( col2 ) AS col1, 36 AS col2, 41 FROM tab2
----
9 values hashing to 4ea41f1b6f86b777c09c6bee791baa53

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT DISTINCT 75 * + ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT 75 * + ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
225

query II rowsort
SELECT - + col0 AS col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT DISTINCT + 85 + + COUNT( * ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT + 85 + + COUNT ( * ) FROM tab2 AS cor0
----
88

query II rowsort
SELECT + - col2, col2 + + + 87 + + col1 AS col1 FROM tab1 AS cor0
----
-59
151
-68
202
-96
197

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - - col0 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL - 82 - + - COUNT( * ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL - 82 - + - COUNT ( * ) FROM tab0
----
-79

query I rowsort
SELECT ALL - + col1 + - - 20 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 26 * col2 FROM tab0 AS cor0
----
-1222
-2574
-260

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 - - - ( - 10 ) FROM tab1 AS cor0
----
51
61
85
95
91
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT + 39 * - COUNT( * ) FROM tab1 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7539
SELECT + 39 * - COUNT ( * ) FROM tab1 cor0
----
-117

query I rowsort
SELECT - - col2 * col1 + 15 AS col1 FROM tab1 AS cor0
----
1359
310
3211

onlyif mysql # aggregate syntax: 
query III rowsort label-7541
SELECT + COUNT( * ), 3, + 52 col0 FROM tab0 AS cor0
----
3
3
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7541
SELECT + COUNT ( * ), 3, + 52 col0 FROM tab0 AS cor0
----
3
3
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7542
SELECT ALL + MAX( - CAST( + 28 AS SIGNED ) ) AS col0 FROM tab2 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL + MAX ( - CAST ( + 28 AS INTEGER ) ) AS col0 FROM tab2 cor0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7543
SELECT ALL - COUNT( * ) * - + 63 AS col2, SUM( + + col0 ) AS col0 FROM tab2
----
189
185

skipif mysql # not compatible
query II rowsort label-7543
SELECT ALL - COUNT ( * ) * - + 63 AS col2, SUM ( + + col0 ) AS col0 FROM tab2
----
189
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT COUNT( DISTINCT 98 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7544
SELECT COUNT ( DISTINCT 98 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - 67 FROM tab1 AS cor0 WHERE NULL >= 17 * - - col2
----

query I rowsort
SELECT ALL 11 / + - col1 * - 16 FROM tab0 cor0 WHERE ( + col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT - COUNT( * ) * + 44 AS col0 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT - COUNT ( * ) * + 44 AS col0 FROM tab1
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7548
SELECT ALL - 1 DIV - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - 1 / - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 + + col2 + - col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7550
SELECT + MAX( - col1 ) + + 69, - 69 AS col1 FROM tab2 AS cor0
----
18
-69

skipif mysql # not compatible
query II rowsort label-7550
SELECT + MAX ( - col1 ) + + 69, - 69 AS col1 FROM tab2 AS cor0
----
18
-69

query I rowsort
SELECT - col1 + col2 + col1 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col0 + + col1 * 1 col1 FROM tab2 AS cor0
----
2167
4173
5692

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 76 * + 6 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + ( - col0 ) AS col0 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT ALL - col0 * - ( + col2 ) * + 71 * - - 20 + col1 + - col1 AS col2 FROM tab2 AS cor0
----
1502360
3635200
6177000

query I rowsort
SELECT ALL - - col0 + - + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-28
-50
-53

query I rowsort
SELECT DISTINCT col0 + + + 29 - + 49 FROM tab1 AS cor0
----
31
65
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT + col0 AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) < - + ( + - 64 ) - col1
----

skipif mysql # not compatible
query I rowsort label-7559
SELECT + col0 AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) < - + ( + - 64 ) - col1
----

query III rowsort
SELECT * FROM tab0 WHERE - ( - col0 ) < + col0
----

query I rowsort
SELECT DISTINCT ( - - 36 ) AS col2 FROM tab2
----
36

query I rowsort
SELECT DISTINCT ( - 64 ) AS col1 FROM tab0
----
-64

query I rowsort
SELECT 14 - + col1 * col1 AS col2 FROM tab2
----
-2587
-4475
-5915

query I rowsort
SELECT ALL ( 69 ) * col0 * ( col0 ) FROM tab1
----
179469
498525
571389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT DISTINCT 65 DIV - COUNT( * ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT 65 / - COUNT ( * ) FROM tab0
----
-21

query I rowsort
SELECT + col0 * + 16 + 4 AS col0 FROM tab1 AS cor0
----
1364
1460
820

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > - 81
----

query I rowsort
SELECT - 97 * - col0 - 3 FROM tab2 AS cor0
----
4459
6205
7272

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7569
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * - col2 NOT BETWEEN NULL AND + col1 * - + CAST( NULL AS SIGNED ) + - ( + 44 )
----

skipif mysql # not compatible
query III rowsort label-7569
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * - col2 NOT BETWEEN NULL AND + col1 * - + CAST ( NULL AS INTEGER ) + - ( + 44 )
----

query I rowsort
SELECT + - 5 FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT col1 > - 69 / - col0 + 38 * + + col1
----
3

skipif mysql # not compatible
query I rowsort label-7571
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 > - 69 / - col0 + 38 * + + col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL - MAX( + 42 ) AS col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - MAX ( + 42 ) AS col1 FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT - MIN( DISTINCT + 49 ) FROM tab0 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7573
SELECT - MIN ( DISTINCT + 49 ) FROM tab0 cor0
----
-49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN 29 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL + ( COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7575
SELECT ALL + ( COUNT ( * ) ) col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 57 AS col0, ( ( col2 ) ) AS col1 FROM tab2
----
57
23
57
40
57
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT COUNT( 28 ) * + COUNT( - col0 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7577
SELECT COUNT ( 28 ) * + COUNT ( - col0 ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT + COUNT( * ) * 10 AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT + COUNT ( * ) * 10 AS col0 FROM tab2
----
30

query II rowsort
SELECT ALL col1, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7580
SELECT ALL + + CAST( + col0 AS SIGNED ) AS col2, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-7580
SELECT ALL + + CAST ( + col0 AS INTEGER ) AS col2, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT - MIN( ALL - - 23 ) AS col2 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7581
SELECT - MIN ( ALL - - 23 ) AS col2 FROM tab1 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7582
SELECT - 55 DIV col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7582
SELECT - 55 / col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT - 38 * + 70 FROM tab1
----
-2660

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7584
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7584
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col1 + 57 AS col0, col1 + col0 + 4 AS col2 FROM tab2 AS cor0
----
108
101
124
146
134
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT - - COUNT( * ) * - COUNT( * ) + + COUNT( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7586
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( * ) + + COUNT ( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7587
SELECT ALL + CAST( + COUNT( DISTINCT 63 ) AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL + CAST ( + COUNT ( DISTINCT 63 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7588
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT - - COUNT( * ) + + COUNT( * ) + - 2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7589
SELECT - - COUNT ( * ) + + COUNT ( * ) + - 2 FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT + COUNT( * ) + + - 12 - - 26 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7590
SELECT + COUNT ( * ) + + - 12 - - 26 FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT CAST( + 57 AS SIGNED ) + - col1 * - 42 FROM tab0
----
3459
939
99

skipif mysql # not compatible
query I rowsort label-7591
SELECT CAST ( + 57 AS INTEGER ) + - col1 * - 42 FROM tab0
----
3459
939
99

query I rowsort
SELECT ALL + 87 FROM tab2 WHERE ( ( NULL ) > - + 5 )
----

query I rowsort
SELECT - col1 * + - col2 * 89 + + + col2 AS col0 FROM tab0
----
18700
338870
8910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7594
SELECT ALL + CAST( 28 AS SIGNED ) AS col1 FROM tab0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL + CAST ( 28 AS INTEGER ) AS col1 FROM tab0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT ALL CAST( 26 AS SIGNED ) FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL CAST ( 26 AS INTEGER ) FROM tab1
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT ALL + 60 + col2 + 33 * 64 DIV + col1 FROM tab2 AS cor0
----
124
127
149

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL + 60 + col2 + 33 * 64 / + col1 FROM tab2 AS cor0
----
124
127
149

query II rowsort
SELECT ALL col0, + 35 FROM tab2 AS cor0
----
46
35
64
35
75
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7598
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE + CAST( - + col0 AS SIGNED ) * col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-7598
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE + CAST ( - + col0 AS INTEGER ) * col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT col0 DIV col2 * - 8 - 82 AS col2 FROM tab1 AS cor0
----
-82
-90
-90

skipif mysql # not compatible
query I rowsort label-7599
SELECT col0 / col2 * - 8 - 82 AS col2 FROM tab1 AS cor0
----
-82
-90
-90

query I rowsort
SELECT DISTINCT 97 + ( col0 ) FROM tab1
----
148
182
188

query I rowsort
SELECT DISTINCT + ( 15 ) AS col0 FROM tab1
----
15

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - col0 + - col0 FROM tab1
----
-4947
-5100
-6279

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 / 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7605
SELECT - col0 DIV col1 FROM tab2 WHERE NOT ( - col1 + col2 ) BETWEEN - 82 + + col1 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-7605
SELECT - col0 / col1 FROM tab2 WHERE NOT ( - col1 + col2 ) BETWEEN - 82 + + col1 AND + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT DISTINCT SUM( - 72 ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT SUM ( - 72 ) FROM tab0
----
-216

query I rowsort
SELECT ( - 44 ) AS col2 FROM tab0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT + 18 + COUNT( * ) * COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-7608
SELECT + 18 + COUNT ( * ) * COUNT ( * ) FROM tab0
----
27

query III rowsort
SELECT * FROM tab2 WHERE + 40 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT CAST( + 64 AS SIGNED ) FROM tab2
----
64
64
64

skipif mysql # not compatible
query I rowsort label-7610
SELECT CAST ( + 64 AS INTEGER ) FROM tab2
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 23 + col1 / 29 ) IS NOT NULL
----

query I rowsort
SELECT col0 * - 92 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1380
-8004
-8924

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT ALL ( + COUNT( * ) ) FROM tab1 WHERE NOT NULL = col1
----
0

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL ( + COUNT ( * ) ) FROM tab1 WHERE NOT NULL = col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT + MAX( + col0 ) * 61 + + 41 FROM tab0 WHERE NOT ( NULL ) <> - ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT + MAX ( + col0 ) * 61 + + 41 FROM tab0 WHERE NOT ( NULL ) <> - ( + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT CAST( NULL AS SIGNED ) * + col0 - CAST( col2 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT CAST ( NULL AS INTEGER ) * + col0 - CAST ( col2 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 77 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 * col1 ) BETWEEN NULL AND ( col2 - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + 52 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 84 ) <= ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT ALL col0 + + col0 DIV ( + col1 * col2 + - col0 ) FROM tab0
----
145
15
87

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL col0 + + col0 / ( + col1 * col2 + - col0 ) FROM tab0
----
145
15
87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) * + 50 = + col0 * col2
----

query I rowsort
SELECT DISTINCT + col2 * + col0 + col1 AS col0 FROM tab2
----
1109
2637
4417

query I rowsort
SELECT ALL 44 FROM tab2 WHERE 25 >= - col2
----
44
44
44

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN ( NULL ) AND 63 - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( + col2 * - col2 )
----

query I rowsort
SELECT col2 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT DISTINCT + 81 + - col2 FROM tab0 cor0
----
-18
34
71

query I rowsort
SELECT 52 AS col0 FROM tab0 WHERE ( 87 ) IN ( + ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT col0 * + 54 + + ( + col2 + col1 ) DIV 86 FROM tab1
----
2755
4590
4915

skipif mysql # not compatible
query I rowsort label-7630
SELECT col0 * + 54 + + ( + col2 + col1 ) / 86 FROM tab1
----
2755
4590
4915

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT MAX( col2 ) FROM tab1 WHERE ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT MAX ( col2 ) FROM tab1 WHERE ( col1 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7632
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7632
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - 59 + + 55 * + col2 AS col2 FROM tab1 AS cor0
----
3304
3799
5339

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT + MIN( + ( + col0 ) ) FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT + MIN ( + ( + col0 ) ) FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT ALL col2 / + 95 AS col1 FROM tab2 AS cor0 WHERE ( - col2 + col1 / 29 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - ( 68 ) AS col0 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT DISTINCT - col0 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT - SUM( ALL - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7640
SELECT - SUM ( ALL - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7641
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * CAST( + col0 * - col1 AS SIGNED ) >= ( 6 * col2 + col0 )
----

skipif mysql # not compatible
query III rowsort label-7641
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * CAST ( + col0 * - col1 AS INTEGER ) >= ( 6 * col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT DISTINCT 30 * COUNT( * ) FROM tab0 AS cor0 WHERE ( 31 ) IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT 30 * COUNT ( * ) FROM tab0 AS cor0 WHERE ( 31 ) IS NOT NULL
----
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 51 * - col2 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL 62 + + COUNT( - col0 ) FROM tab1 cor0
----
65

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL 62 + + COUNT ( - col0 ) FROM tab1 cor0
----
65

query I rowsort
SELECT DISTINCT + col2 + col1 AS col2 FROM tab1 WHERE NOT + 48 + 35 IS NULL
----
110
115
64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 49 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7647
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 - 78 FROM tab1
----
1266
217
3118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL col1 * + col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL col1 * + col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 83 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT + ( - + MAX( + 46 ) ) * - COUNT( * ) + 38 col1 FROM tab2
----
176

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7651
SELECT + ( - + MAX ( + 46 ) ) * - COUNT ( * ) + 38 col1 FROM tab2
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT ALL col1 - + ( col1 ) + + col2 DIV - 86 * col1 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL col1 - + ( col1 ) + + col2 / - 86 * col1 AS col2 FROM tab0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 96 + - col0 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT - - SUM( ALL + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT - - SUM ( ALL + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7655
SELECT DISTINCT + + 71 * - - ( MIN( CAST( NULL AS DECIMAL ) ) ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT + + 71 * - - ( MIN ( CAST ( NULL AS REAL ) ) ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT ALL - CAST( col2 AS SIGNED ) * col0 FROM tab0 cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL - CAST ( col2 AS INTEGER ) * col0 FROM tab0 cor0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < col2 * - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 92 * + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - MIN( + col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7659
SELECT - MIN ( + col2 ) FROM tab2 cor0
----
-23

query I rowsort
SELECT ALL + col0 + col0 FROM tab2 AS cor0 WHERE NOT + 90 IS NULL
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT DISTINCT col2 DIV - + col2 + - 11 - 3 AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT col2 / - + col2 + - 11 - 3 AS col0 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT ALL ( - 20 ) AS col2 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( 28 ) AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( 28 ) AND + col2
----
0

query I rowsort
SELECT - + col2 * + + col1 - - col1 FROM tab2 cor0
----
-1122
-3003
-3819

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT COUNT( DISTINCT + + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7666
SELECT COUNT ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + + 3 + - col2 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT - + COUNT( - col1 ) * + + 3 * COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7669
SELECT - + COUNT ( - col1 ) * + + 3 * COUNT ( * ) FROM tab2 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT DISTINCT - 81 DIV col1 FROM tab0
----
-1
-3
-81

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT - 81 / col1 FROM tab0
----
-1
-3
-81

query I rowsort
SELECT ALL col1 / + col2 AS col2 FROM tab1 WHERE + - col1 - - col1 - col1 * + col1 > + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7672
SELECT 10 DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7672
SELECT 10 / col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT + MIN( + col1 ) + - + CAST( NULL AS SIGNED ) * + COUNT( * ) * 53 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT + MIN ( + col1 ) + - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 53 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7674
SELECT + col2 + + 75 + - + col1 DIV + col1 - col0 * col0 AS col0 FROM tab0
----
-104
-7485
-9236

skipif mysql # not compatible
query I rowsort label-7674
SELECT + col2 + + 75 + - + col1 / + col1 - col0 * col0 AS col0 FROM tab0
----
-104
-7485
-9236

query I rowsort
SELECT col1 FROM tab0 WHERE + 38 NOT BETWEEN ( NULL ) AND + col0 * + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col1 ) - - col1 NOT IN ( - col0 / - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL + ( - MIN( ALL - + 52 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
52

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + ( - MIN ( ALL - + 52 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT DISTINCT - CAST( + + MAX( + + col0 ) AS SIGNED ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT - CAST ( + + MAX ( + + col0 ) AS INTEGER ) AS col1 FROM tab0
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 * ( ( 84 ) ) ) >= ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT + COUNT( * ) * COUNT( * ) col1 FROM tab2 AS cor0 WHERE col0 * ( - col2 ) NOT BETWEEN + + 2 AND NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7680
SELECT + COUNT ( * ) * COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col0 * ( - col2 ) NOT BETWEEN + + 2 AND NULL
----
9

query I rowsort
SELECT + - col1 + - + col2 * - col2 * + 67 AS col0 FROM tab0 AS cor0
----
147922
656666
6679

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT + + MAX( DISTINCT + 81 ) + - COUNT( * ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + + MAX ( DISTINCT + 81 ) + - COUNT ( * ) FROM tab0 AS cor0
----
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 + 80 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 * col0 col2 FROM tab0 AS cor0
----
-1440
-8352
-9312

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE - 5 + + col1 / col1 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT col0 DIV + 70 + + 64 * 35 AS col1 FROM tab2 AS cor0
----
2240
2240
2241

skipif mysql # not compatible
query I rowsort label-7686
SELECT col0 / + 70 + + 64 * 35 AS col1 FROM tab2 AS cor0
----
2240
2240
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - - 60 + + - COUNT( * ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - - 60 + + - COUNT ( * ) FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL COUNT( * ) - ( - + COUNT( * ) ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL COUNT ( * ) - ( - + COUNT ( * ) ) AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE + 68 * - col0 * - ( + ( - 2 ) ) * - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7689
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE + 68 * - col0 * - ( + ( - 2 ) ) * - col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7690
SELECT + 53, + MAX( - + CAST( col2 AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab1
----
53
-62

skipif mysql # not compatible
query II rowsort label-7690
SELECT + 53, + MAX ( - + CAST ( col2 AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab1
----
53
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL + COUNT( * ) + + + 71 + + MIN( DISTINCT 2 ) AS col1 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL + COUNT ( * ) + + + 71 + + MIN ( DISTINCT 2 ) AS col1 FROM tab0
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7692
SELECT ALL + CAST( NULL AS DECIMAL ) * - col2 FROM tab2 WHERE col2 * col1 + + 44 < NULL
----

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + CAST ( NULL AS REAL ) * - col2 FROM tab2 WHERE col2 * col1 + + 44 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7693
SELECT + COUNT( - 90 ) * - CAST( - 89 AS SIGNED ) col1 FROM tab0 WHERE NOT + col0 > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7693
SELECT + COUNT ( - 90 ) * - CAST ( - 89 AS INTEGER ) col1 FROM tab0 WHERE NOT + col0 > NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 81 / col1 - 22 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT MAX( ALL - col0 ) * - 79 * - 99 + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 27 / + - 75 IS NULL
----
-359769

skipif mysql # not compatible
query I rowsort label-7695
SELECT MAX ( ALL - col0 ) * - 79 * - 99 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 27 / + - 75 IS NULL
----
-359769

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL - MIN( + col0 ) * MAX( 55 ) FROM tab2 AS cor0
----
-2530

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - MIN ( + col0 ) * MAX ( 55 ) FROM tab2 AS cor0
----
-2530

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 <= 93
----

query II rowsort
SELECT ALL + 33, - 54 + col1 * + 96 AS col0 FROM tab0 AS cor0
----
33
1962
33
42
33
7722

query I rowsort
SELECT DISTINCT - 15 * - - 61 AS col2 FROM tab2
----
-915

onlyif mysql # DIV for integer division: 
query I rowsort label-7700
SELECT DISTINCT - + 45 DIV + col0 * - col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT - + 45 / + col0 * - col0 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + col0 NOT BETWEEN ( NULL ) AND 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT DISTINCT + col1 DIV + - col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + col1 / + - col1 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 52 ) IS NOT NULL
----

query I rowsort
SELECT + col1 * + + ( - col0 ) + + col0 + - col1 + col1 * + + col1 * col0 AS col0 FROM tab0 AS cor0
----
36606
96
97134

query I rowsort
SELECT + - 92 * + - col2 AS col0 FROM tab2 AS cor0
----
2116
3680
5336

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL - - SUM( ALL + 56 ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL - - SUM ( ALL + 56 ) FROM tab0 AS cor0
----
168

query I rowsort
SELECT DISTINCT 8 + col1 * - 77 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + 78 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - - col1 * col2 * - col0 + col1 AS col2 FROM tab2 AS cor0
----
-197043
-291383
-53907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7712
SELECT MIN( ( col1 ) ) + - COUNT( CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT - 68 * - col2 * + col0 IN ( - - col2 * + col2 + + + 73 )
----
2

skipif mysql # not compatible
query I rowsort label-7712
SELECT MIN ( ( col1 ) ) + - COUNT ( CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT - 68 * - col2 * + col0 IN ( - - col2 * + col2 + + + 73 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7713
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) + + 52 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7713
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) + + 52 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL 27 + - + COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL 27 + - + COUNT ( * ) FROM tab1
----
24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / + col1 * ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT + CAST( + - col2 AS SIGNED ) + + ( - - col2 ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7716
SELECT + CAST ( + - col2 AS INTEGER ) + + ( - - col2 ) FROM tab0 cor0
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT + col2 + 51 AS col2 FROM tab0
----
150
61
98

query I rowsort
SELECT ALL col1 - + - 13 * + col2 AS col2 FROM tab2
----
350
597
821

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) <> + col0 * - col1
----

query I rowsort
SELECT ALL + col1 * - 46 * + - col0 AS col2 FROM tab2 cor0
----
107916
226688
231150

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT DISTINCT ( COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT ( COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - 74 + + col2 FROM tab0 AS cor0
----
-27
-64
25

query I rowsort
SELECT + 33 * col2 - + col2 AS col2 FROM tab1 AS cor0
----
1888
2176
3072

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * 55 AS col0 FROM tab0
----
-2585
-5445
-550

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN + + 35 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * col0 * - + 13 FROM tab0
----
-1261
-15795
-23751

query I rowsort
SELECT DISTINCT col0 * - 64 AS col2 FROM tab2
----
-2944
-4096
-4800

query I rowsort
SELECT 26 * col0 AS col0 FROM tab2
----
1196
1664
1950

query II rowsort
SELECT + - 15 AS col2, 90 AS col0 FROM tab2 AS cor0
----
-15
90
-15
90
-15
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7732
SELECT - 51 DIV COUNT( * ) AS col0 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-7732
SELECT - 51 / COUNT ( * ) AS col0 FROM tab2
----
-17

query I rowsort
SELECT col2 + + col1 * + - 60 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3037
-3962
-4580

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - 6
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7735
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7735
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - col2 + + 31 AS col2 FROM tab0 AS cor0
----
-16
-68
21

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col2 * + col1 * 97 + - 15
----

query I rowsort
SELECT + 94 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
4794
6298
7238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT ALL + 71 * col1 * + CAST( 11 AS SIGNED ) FROM tab2
----
39831
52327
60137

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL + 71 * col1 * + CAST ( 11 AS INTEGER ) FROM tab2
----
39831
52327
60137

onlyif mysql # DIV for integer division: 
query I rowsort label-7741
SELECT DISTINCT + ( + - col2 ) DIV col1 + col0 AS col0 FROM tab0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + ( + - col2 ) / col1 + col0 AS col0 FROM tab0
----
-2
15
87

query I rowsort
SELECT ( - col2 ) + 11 AS col1 FROM tab1
----
-48
-57
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 62 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 / ( + 14 ) - - + 93 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7745
SELECT ALL + + 20 DIV + col1 + + col1 col1 FROM tab0 cor0
----
21
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7745
SELECT ALL + + 20 / + col1 + + col1 col1 FROM tab0 cor0
----
21
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT - - COUNT( * ) + + MAX( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT - - COUNT ( * ) + + MAX ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT ALL 40 + + col2 FROM tab0 AS cor0
----
139
50
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT MIN( DISTINCT - - col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT MIN ( DISTINCT - - col1 ) FROM tab2 cor0
----
51

query I rowsort
SELECT ALL 30 + col0 + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 4 ) IS NULL
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7750
SELECT DISTINCT 91 DIV + - col0 + + col2 + + ( - 43 ) + + col1 DIV 65 + - 21 * - + 30 * 66 + + col2 * - 32 AS col0 FROM tab0 cor0
----
38468
40075
41226

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT 91 / + - col0 + + col2 + + ( - 43 ) + + col1 / 65 + - 21 * - + 30 * 66 + + col2 * - 32 AS col0 FROM tab0 cor0
----
38468
40075
41226

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT ALL - COUNT( * ) * - 31 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL - COUNT ( * ) * - 31 FROM tab2 AS cor0
----
93

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( NOT + 33 <> + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT - CAST( - - COUNT( ALL + 92 ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7753
SELECT - CAST ( - - COUNT ( ALL + 92 ) AS INTEGER ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL - COUNT( - 33 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL - COUNT ( - 33 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( - col0 ) * 65 <> NULL
----

query I rowsort
SELECT + ( 64 ) AS col1 FROM tab0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT - COUNT( ALL + + 93 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7757
SELECT - COUNT ( ALL + + 93 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ( + + COUNT( + col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7758
SELECT ( + + COUNT ( + col2 ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT + col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * 71 IN ( + - col0, - col1 / + - col0 + + + col2, 2 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL - COUNT( * ) * + + MIN( 43 ) AS col0 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL - COUNT ( * ) * + + MIN ( 43 ) AS col0 FROM tab0
----
-129

query I rowsort
SELECT DISTINCT col0 + + 30 AS col2 FROM tab0 AS cor0
----
117
127
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT - + 45 * - CAST( + 26 AS SIGNED ) + - + COUNT( * ) + + ( + MAX( 19 ) ) FROM tab2 cor0
----
1186

skipif mysql # not compatible
query I rowsort label-7763
SELECT - + 45 * - CAST ( + 26 AS INTEGER ) + - + COUNT ( * ) + + ( + MAX ( 19 ) ) FROM tab2 cor0
----
1186

query I rowsort
SELECT DISTINCT + - 63 AS col1 FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT - CAST( NULL AS SIGNED ) + - 27 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT - CAST ( NULL AS INTEGER ) + - 27 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7766
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + CAST( NULL AS SIGNED ) * - col0 ) AND NULL OR NOT 95 * + + col2 / + 33 > - col2
----

skipif mysql # not compatible
query III rowsort label-7766
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + CAST ( NULL AS INTEGER ) * - col0 ) AND NULL OR NOT 95 * + + col2 / + 33 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT + SUM( - col2 ) col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7767
SELECT + SUM ( - col2 ) col0 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7768
SELECT col0 * + 98 + - + CAST( - 41 AS SIGNED ) - + col2 FROM tab1 AS cor0
----
4943
8312
8891

skipif mysql # not compatible
query I rowsort label-7768
SELECT col0 * + 98 + - + CAST ( - 41 AS INTEGER ) - + col2 FROM tab1 AS cor0
----
4943
8312
8891

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 36 ) AS col2 FROM tab2 cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ALL COUNT( * ) + + 70 AS col0 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL COUNT ( * ) + + 70 AS col0 FROM tab0 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT ALL + ( + + 99 ) DIV - + col2 AS col0 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + ( + + 99 ) / - + col2 AS col0 FROM tab2
----
-1
-2
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - ( + - col2 )
----

query I rowsort
SELECT ALL 65 - col0 FROM tab1
----
-20
-26
14

query II rowsort
SELECT ALL col1, - 1 FROM tab0
----
1
-1
21
-1
81
-1

query II rowsort
SELECT - col2 AS col2, + col0 + + col1 AS col0 FROM tab2
----
-23
97
-40
141
-58
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT DISTINCT + ( - + COUNT( * ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7777
SELECT DISTINCT + ( - + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT + col1 DIV - col0 + + + col0 AS col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7778
SELECT + col1 / - col0 + + + col0 AS col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL >= - col1 + col1 - - col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT + + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + ( 93 ) col2 FROM tab2 cor0
----
18
29
47

query I rowsort
SELECT DISTINCT 8 + - + col2 + + - col2 FROM tab2 AS cor0
----
-108
-38
-72

query I rowsort
SELECT ALL + col2 + + 32 FROM tab1 AS cor0
----
100
128
91

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 78 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7785
SELECT ALL - CAST( NULL AS DECIMAL ) - 30 + - CAST( SUM( - col1 ) AS SIGNED ) + 75 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - CAST ( NULL AS REAL ) - 30 + - CAST ( SUM ( - col1 ) AS INTEGER ) + 75 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN + 53 AND + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ALL - MAX( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 27 * + col1 * - col0 BETWEEN - 3 * - col0 * col1 / + col0 AND NULL
----
-91

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL - MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 27 * + col1 * - col0 BETWEEN - 3 * - col0 * col1 / + col0 AND NULL
----
-91

query II rowsort
SELECT ( - 20 ), col2 FROM tab1 AS cor0
----
-20
59
-20
68
-20
96

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT ( NOT ( NULL ) >= NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT - SUM( ALL col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT - SUM ( ALL col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT + col2 * 24 AS col0 FROM tab2 WHERE NOT - 75 + + + 34 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT DISTINCT 38 / + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT 38 / + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT DISTINCT SUM( ALL + - 76 ) FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT SUM ( ALL + - 76 ) FROM tab0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT - MIN( ALL + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7795
SELECT - MIN ( ALL + col0 ) FROM tab0
----
-15

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col0 * + col2 + - + 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0, - col2 AS col1 FROM tab2
----
46
-23
64
-40
75
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 - - col0 * - 93
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT + - MAX( ALL + 70 ) col0 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7800
SELECT DISTINCT + - MAX ( ALL + 70 ) col0 FROM tab0 AS cor0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - col1 AND - 20 / + ( - 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( NOT - 39 > NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND + ( - - col0 ) * col1 * + + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT + - SUM( DISTINCT col0 ) + - - 5 FROM tab0 AS cor0
----
-194

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + - SUM ( DISTINCT col0 ) + - - 5 FROM tab0 AS cor0
----
-194

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1 + + 56
----

query I rowsort
SELECT + + 47 + - col1 * - + col2 AS col1 FROM tab0 AS cor0
----
146
257
3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7809
SELECT ALL + - CAST( - - 1 AS SIGNED ) + + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL + - CAST ( - - 1 AS INTEGER ) + + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-47
-65
-76

query I rowsort
SELECT DISTINCT + col2 + - + col1 FROM tab1
----
21
54
82

query II rowsort
SELECT DISTINCT 96, col1 + + + col0 AS col2 FROM tab0
----
96
108
96
96
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT + ( - col2 ) + 53 DIV + col2 FROM tab2
----
-21
-39
-58

skipif mysql # not compatible
query I rowsort label-7812
SELECT + ( - col2 ) + 53 / + col2 FROM tab2
----
-21
-39
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7813
SELECT + COUNT( - CAST( NULL AS DECIMAL ) ) + + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7813
SELECT + COUNT ( - CAST ( NULL AS REAL ) ) + + + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT ALL + - col0 * - + col0 * - + col1 + col0 FROM tab2 WHERE - col2 - + 4 >= NULL
----

query I rowsort
SELECT ALL col0 - + - 53 AS col0 FROM tab1
----
104
138
144

query I rowsort
SELECT DISTINCT col2 * + 92 AS col0 FROM tab0
----
4324
9108
920

query I rowsort
SELECT col2 * - 66 - - + col2 AS col2 FROM tab2 AS cor0
----
-1495
-2600
-3770

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7818
SELECT ALL + col1 AS col1, - 49 AS col0, + - col2 * CAST( NULL AS DECIMAL ) + - - CAST( - - col0 AS SIGNED ) + - + 21 FROM tab1 AS cor0
----
9 values hashing to 04c0a3b2c00b0a7fb807174cf802494b

skipif mysql # not compatible
query III rowsort label-7818
SELECT ALL + col1 AS col1, - 49 AS col0, + - col2 * CAST ( NULL AS REAL ) + - - CAST ( - - col0 AS INTEGER ) + - + 21 FROM tab1 AS cor0
----
9 values hashing to 04c0a3b2c00b0a7fb807174cf802494b

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT DISTINCT SUM( + col0 ) * 85 AS col2 FROM tab0 AS cor0
----
16915

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT SUM ( + col0 ) * 85 AS col2 FROM tab0 AS cor0
----
16915

query I rowsort
SELECT + + col0 * - col0 * + col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT + 82 AS col0 FROM tab0 AS cor0 WHERE NOT + + ( - col2 ) IS NOT NULL OR NOT col0 IS NOT NULL
----

query I rowsort
SELECT - + col1 * - col1 * - 97 * - col1 AS col0 FROM tab0 AS cor0
----
51549777
898317
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT - SUM( ALL 59 ) AS col2 FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7823
SELECT - SUM ( ALL 59 ) AS col2 FROM tab2 AS cor0
----
-177

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 / + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 * 47 FROM tab0 AS cor0
----
2209
4653
470

query I rowsort
SELECT - 81 * col1 AS col2 FROM tab2
----
-4131
-5427
-6237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7827
SELECT DISTINCT - ( COUNT( * ) ) DIV + + COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT - ( COUNT ( * ) ) / + + COUNT ( * ) FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + - col2 < NULL )
----

query II rowsort
SELECT + 63 * + col0, - col2 AS col0 FROM tab0 cor0
----
5481
-10
6111
-99
945
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ( + 11 ) + - - 55 + + 37 - - 28 * COUNT( * ) + + 61 + 14 AS col1 FROM tab2
----
262

skipif mysql # not compatible
query I rowsort label-7830
SELECT ( + 11 ) + - - 55 + + 37 - - 28 * COUNT ( * ) + + 61 + 14 AS col1 FROM tab2
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + + - col1 + - col2 <= 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL COUNT( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL COUNT ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7834
SELECT ALL + - CAST( - - CAST( + col0 AS SIGNED ) AS DECIMAL ) / - + col0 + col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2, + CAST( col0 AS SIGNED ), - col2 + + col1, - + 50 )
----

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL + - CAST ( - - CAST ( + col0 AS INTEGER ) AS REAL ) / - + col0 + col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2, + CAST ( col0 AS INTEGER ), - col2 + + col1, - + 50 )
----

query II rowsort
SELECT col0 AS col1, 90 FROM tab0 AS cor0
----
15
90
87
90
97
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT + MAX( DISTINCT + ( col2 ) ) AS col0, - 66 AS col0 FROM tab2 AS cor0
----
58
-66

skipif mysql # not compatible
query II rowsort label-7836
SELECT + MAX ( DISTINCT + ( col2 ) ) AS col0, - 66 AS col0 FROM tab2 AS cor0
----
58
-66

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( + 97, + col0 + - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7838
SELECT ALL - 68 + COUNT( + col0 ) AS col1, - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-7838
SELECT ALL - 68 + COUNT ( + col0 ) AS col1, - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
-65
NULL

query II rowsort
SELECT + col1, col0 + 12 AS col0 FROM tab2 AS cor0
----
51
58
67
87
77
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL + - 68 + + CAST( - - ( + + ( + + 22 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + - 68 + + CAST ( - - ( + + ( + + 22 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT 42 + + 53 AS col2 FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT DISTINCT COUNT( * ) - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT DISTINCT + COUNT( * ) + + 13 + - - 49 AS col0 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT + COUNT ( * ) + + 13 + - - 49 AS col0 FROM tab1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7844
SELECT - 26 - - SUM( ALL + col1 ) / + CAST( NULL AS SIGNED ) AS col0, + 23 AS col1 FROM tab2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-7844
SELECT - 26 - - SUM ( ALL + col1 ) / + CAST ( NULL AS INTEGER ) AS col0, + 23 AS col1 FROM tab2
----
NULL
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - col2 - - + 1 * - - 27 + + col2 col2 FROM tab0
----
168
324
57

query I rowsort
SELECT col2 - ( - col0 ) * - col0 AS col1 FROM tab0
----
-178
-7559
-9310

query II rowsort
SELECT ALL + col0 - col0, col2 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT ALL - 29 * + 20 + + + col1 FROM tab2 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT - col0 - - col0 + - col0 * - col1 * 68 AS col1 FROM tab2
----
159528
335104
341700

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - ( - + SUM( ALL - + col2 ) ) + - 88 AS col1 FROM tab1
----
-311

skipif mysql # not compatible
query I rowsort label-7850
SELECT - ( - + SUM ( ALL - + col2 ) ) + - 88 AS col1 FROM tab1
----
-311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + + col2 col0, col2 AS col0 FROM tab2
----
-1173
23
-3080
40
-3886
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT col1 DIV + col0 + 22 AS col0 FROM tab2
----
22
23
23

skipif mysql # not compatible
query I rowsort label-7852
SELECT col1 / + col0 + 22 AS col0 FROM tab2
----
22
23
23

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE + col0 <> - col0 * - col2
----
-15
-87
-97

query I rowsort
SELECT 79 + - col1 FROM tab2
----
12
2
28

query I rowsort
SELECT + col2 + - col2 + - 44 * col2 FROM tab1 AS cor0 WHERE - col2 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab0 AS cor0 WHERE 43 + - + 68 * - col2 * + 87 IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT ALL col0 * + - ( - - 64 ), col1 AS col2 FROM tab1 cor0
----
-3264
14
-5440
5
-5824
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - col0 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7859
SELECT ALL * FROM tab2 AS cor0 WHERE 79 * - + CAST( - col0 AS SIGNED ) < - + col1
----

skipif mysql # not compatible
query III rowsort label-7859
SELECT ALL * FROM tab2 AS cor0 WHERE 79 * - + CAST ( - col0 AS INTEGER ) < - + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL MIN( DISTINCT 72 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL MIN ( DISTINCT 72 ) FROM tab2 AS cor0
----
72

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT 74 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, col2 col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT 94, + 95 AS col1 FROM tab2 WHERE NOT 84 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT + col1 DIV 94 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7867
SELECT + col1 / 94 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 62 * + 54 AS col2 FROM tab0
----
3348
3348
3348

onlyif mysql # DIV for integer division: 
query I rowsort label-7869
SELECT 93 DIV - - col1 + + col2 col1 FROM tab1
----
102
69
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7869
SELECT 93 / - - col1 + + col2 col1 FROM tab1
----
102
69
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT - COUNT( * ) + - 61 * + 99 AS col2 FROM tab2
----
-6042

skipif mysql # not compatible
query I rowsort label-7870
SELECT - COUNT ( * ) + - 61 * + 99 AS col2 FROM tab2
----
-6042

query I rowsort
SELECT DISTINCT + col0 * + + 85 FROM tab0
----
1275
7395
8245

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + col1 * + 38
----

query I rowsort
SELECT DISTINCT + col0 + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 8 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 58 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( + + 69 IS NOT NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 97 IS NOT NULL
----

query I rowsort
SELECT 7 AS col1 FROM tab0 cor0 WHERE + 88 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT DISTINCT - 81 DIV - col1 + col0 AS col1 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT - 81 / - col1 + col0 AS col1 FROM tab2 AS cor0
----
47
65
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT DISTINCT - + col2 + 77 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT - + col2 + 77 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) = + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT ALL 94 + + - COUNT( ALL col2 ) col1 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7882
SELECT ALL 94 + + - COUNT ( ALL col2 ) col1 FROM tab0 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT + MAX( ALL - - CAST( NULL AS SIGNED ) ) + - ( 84 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + - ( 84 ) FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7884
SELECT + - col2 + + - ( 64 ) DIV + 69 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7884
SELECT + - col2 + + - ( 64 ) / + 69 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE + col0 / col0 - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 51 - + - 60 * - col2 + + + col1 FROM tab0
----
-2688
-528
-5888

query I rowsort
SELECT ALL + 33 - - 24 AS col2 FROM tab2
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7888
SELECT DISTINCT - CAST( - col1 AS SIGNED ) FROM tab0 WHERE - col2 NOT BETWEEN NULL AND CAST( - - col1 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) FROM tab0 WHERE - col2 NOT BETWEEN NULL AND CAST ( - - col1 AS REAL )
----

query II rowsort
SELECT DISTINCT - col0 + col0 * + + col2 AS col0, 65 AS col1 FROM tab2
----
1012
65
2496
65
4275
65

query I rowsort
SELECT DISTINCT ( - 55 ) AS col1 FROM tab1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT + COUNT( - col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7891
SELECT + COUNT ( - col2 ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7892
SELECT + CAST( + col0 AS SIGNED ), + col0 FROM tab0 WHERE + + col1 IN ( + 77 )
----

skipif mysql # not compatible
query II rowsort label-7892
SELECT + CAST ( + col0 AS INTEGER ), + col0 FROM tab0 WHERE + + col1 IN ( + 77 )
----

query III rowsort
SELECT * FROM tab0 WHERE - + 3 NOT IN ( - 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50, + col2 col2 FROM tab1
----
50
59
50
68
50
96

query I rowsort
SELECT + 46 * 1 AS col1 FROM tab2 AS cor0
----
46
46
46

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7897
SELECT - + CAST( 48 AS SIGNED ) * - 13 FROM tab1 AS cor0
----
624
624
624

skipif mysql # not compatible
query I rowsort label-7897
SELECT - + CAST ( 48 AS INTEGER ) * - 13 FROM tab1 AS cor0
----
624
624
624

query I rowsort
SELECT ALL 31 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - - col2 * + + col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT + + 69 AS col2 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT + - 70 AS col1 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT 20 DIV + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7902
SELECT 20 / + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL + col2 * - col2 - - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 = + col0 * + + col0 + + + col2
----
-1640
-3422
-552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( col2 ) col0 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT col0 * - col0 * + col1 AS col2, + 70 AS col2 FROM tab1
----
-36125
70
-36414
70
-389207
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab1 WHERE 5 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 59 col0 FROM tab1
----
3481
4012
5664

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 77 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col1 * - - 1 + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT + COUNT( * ) + + 3 AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT + COUNT ( * ) + + 3 AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - col2 + 4 + - col2 AS col1 FROM tab1 AS cor0
----
-114
-132
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-7913
SELECT ALL - col0 DIV - 95 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL - col0 / - 95 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - 48 + - - col2 * + col1 * + + ( - 58 ) * - 83 FROM tab0
----
1010892
18326850
476538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 97 col1 FROM tab2
----
2231
3880
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT DISTINCT SUM( ALL col1 ) + + COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT SUM ( ALL col1 ) + + COUNT ( * ) FROM tab1 AS cor0
----
69

query I rowsort
SELECT - col0 * + + col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT DISTINCT 93 DIV - 99 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT 93 / - 99 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT + + 79 * - COUNT( * ) col0 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7919
SELECT + + 79 * - COUNT ( * ) col0 FROM tab1 AS cor0
----
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68 * 23, + col2 col0 FROM tab2 AS cor0
----
1564
23
1564
40
1564
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 > col1 * - col2
----

query I rowsort
SELECT DISTINCT col0 * col0 + + ( col1 ) * col2 + + - 51 + - - col2 * + - 29 AS col1 FROM tab0 AS cor0
----
2618
6586
7438

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col2 col0 FROM tab0 cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT - + ( 57 ) AS col1 FROM tab2 AS cor0 WHERE ( + + col1 IS NULL )
----

query I rowsort
SELECT ALL - col0 - col1 + + 57 FROM tab1 cor0
----
-33
-8
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 + col0 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL + - ( col2 ) * col1 - + col1 + 97 AS col1 FROM tab1 AS cor0 WHERE - ( - col0 ) IS NOT NULL
----
-1261
-203
-3146

query II rowsort
SELECT ALL + col1 * - col1 + - 86, col0 FROM tab0
----
-527
87
-6647
15
-87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT + ( - ( + col0 ) ) DIV + col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT + ( - ( + col0 ) ) / + col1 FROM tab2
----
-1
0

query II rowsort
SELECT + ( + col2 ) AS col1, 73 FROM tab1
----
59
73
68
73
96
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL COUNT( DISTINCT - 64 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL COUNT ( DISTINCT - 64 ) FROM tab1
----
1

query II rowsort
SELECT ALL col1 AS col2, + col1 FROM tab0 cor0 WHERE NULL IS NULL
----
1
1
21
21
81
81

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL <> col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7936
SELECT DISTINCT + 55 AS col1, COUNT( * ) FROM tab0 AS cor0
----
55
3

skipif mysql # not compatible
query II rowsort label-7936
SELECT DISTINCT + 55 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
55
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - 34 <> - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7937
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - 34 <> - CAST ( + col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT ALL + CAST( + 76 AS SIGNED ) AS col0 FROM tab2 cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL + CAST ( + 76 AS INTEGER ) AS col0 FROM tab2 cor0
----
76
76
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - col0 * + 32 >= + 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col2 * + + 72 AS col0 FROM tab0 AS cor0
----
3384
7128
720

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT DISTINCT + col1 + col1 DIV - col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT + col1 + col1 / - col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT - 92 + SUM( + + col0 ) * - COUNT( * ) * - 73 col1 FROM tab0
----
43489

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7942
SELECT - 92 + SUM ( + + col0 ) * - COUNT ( * ) * - 73 col1 FROM tab0
----
43489

query II rowsort
SELECT - col1 + - col2, col1 FROM tab0
----
-100
1
-128
81
-31
21

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < col2 * + - col0 AND col0 IS NULL
----

query I rowsort
SELECT - col2 * - - col1 + col0 FROM tab0
----
-123
-2
-3792

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7946
SELECT ALL * FROM tab1 WHERE NOT 13 <= col1 * - - col2 + - - CAST( + + CAST( NULL AS DECIMAL ) AS DECIMAL ) + + + col0 * + col0
----

skipif mysql # not compatible
query III rowsort label-7946
SELECT ALL * FROM tab1 WHERE NOT 13 <= col1 * - - col2 + - - CAST ( + + CAST ( NULL AS REAL ) AS REAL ) + + + col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL SUM( DISTINCT - 48 ) * - 37 FROM tab1
----
1776

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL SUM ( DISTINCT - 48 ) * - 37 FROM tab1
----
1776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 87 col1 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT ALL + col2 + - 37 + 44 FROM tab0 AS cor0
----
106
17
54

query I rowsort
SELECT ALL + col0 + + 81 + - col0 FROM tab2 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - 49 AS col0 FROM tab2 cor0
----
-49
-49
-49

query II rowsort
SELECT ALL - - 26 + col1 * - + col0 AS col0, 26 AS col1 FROM tab1 AS cor0
----
-399
26
-4251
26
-688
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 52 * - ( + col2 ) <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7955
SELECT - col0 + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-7955
SELECT - col0 + col2 / + col2 AS col2 FROM tab0 AS cor0
----
-14
-86
-96

query I rowsort
SELECT ( + ( + - col0 ) ) + - col2 * + ( col0 ) * ( 10 ) - - col1 * - col2 + - col0 * col0 FROM tab0 AS cor0
----
-105635
-11097
-16566

query II rowsort
SELECT col1 + - 68 + col0, + 37 * + - 67 AS col1 FROM tab1 AS cor0
----
-3
-2479
22
-2479
70
-2479

query I rowsort
SELECT + + col0 + + - col2 AS col0 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT ALL + 33 * 74 FROM tab1 AS cor0
----
2442
2442
2442

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT DISTINCT 27 + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT 27 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
24

query I rowsort
SELECT DISTINCT 31 * + 89 AS col0 FROM tab0 AS cor0
----
2759

onlyif mysql # DIV for integer division: 
query I rowsort label-7962
SELECT DISTINCT col0 DIV - - 52 DIV 24 * + 39 * + + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT col0 / - - 52 / 24 * + 39 * + + col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT ALL + CAST( + ( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + CAST ( + ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - 8 * - + col1 FROM tab0 AS cor0
----
168
648
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT COUNT( ALL col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT COUNT ( ALL col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT - col1 * - + col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7967
SELECT + - COUNT( + + CAST( NULL AS SIGNED ) ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7967
SELECT + - COUNT ( + + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT - col2 + - CAST( NULL AS SIGNED ) + + - ( + + col0 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT - col2 + - CAST ( NULL AS INTEGER ) + + - ( + + col0 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT SUM( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7969
SELECT SUM ( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT + col1 + - + col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT - ( + CAST( MIN( - 33 ) AS SIGNED ) ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7972
SELECT - ( + CAST ( MIN ( - 33 ) AS INTEGER ) ) FROM tab1 AS cor0
----
33

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT + SUM( DISTINCT col0 ) * - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-2043

skipif mysql # not compatible
query I rowsort label-7974
SELECT + SUM ( DISTINCT col0 ) * - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-2043

query II rowsort
SELECT ALL 32 AS col2, - 52 AS col2 FROM tab1
----
32
-52
32
-52
32
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL ( - - 72 ) FROM tab0
----
72
72
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7978
SELECT ALL - ( + + 96 ) DIV - 15 + + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL - ( + + 96 ) / - 15 + + COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7979
SELECT DISTINCT col2, - CAST( - 53 AS SIGNED ) * - - 31 FROM tab2
----
23
1643
40
1643
58
1643

skipif mysql # not compatible
query II rowsort label-7979
SELECT DISTINCT col2, - CAST ( - 53 AS INTEGER ) * - - 31 FROM tab2
----
23
1643
40
1643
58
1643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT + 54 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT + 54 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT + COUNT( col1 ) * + - 43 * 88 * + - 57 AS col2 FROM tab1
----
647064

skipif mysql # not compatible
query I rowsort label-7981
SELECT + COUNT ( col1 ) * + - 43 * 88 * + - 57 AS col2 FROM tab1
----
647064

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT + COUNT( * ) - 18 AS col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7982
SELECT + COUNT ( * ) - 18 AS col0 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT + col1 + - col1 + 74 * + col2 FROM tab0 AS cor0
----
3478
7326
740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT DISTINCT - - COUNT( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + 15 + - col1 FROM tab0 AS cor0
----
-6
-66
14

query I rowsort
SELECT ALL 2 / + + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND + col0 / + - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7987
SELECT DISTINCT - col0 * + 28 + + - col2 AS col2 FROM tab0 AS cor0 WHERE ( + 32 * + CAST( col1 AS DECIMAL ) ) NOT BETWEEN ( col0 ) AND NULL
----
-2815

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT - col0 * + 28 + + - col2 AS col2 FROM tab0 AS cor0 WHERE ( + 32 * + CAST ( col1 AS REAL ) ) NOT BETWEEN ( col0 ) AND NULL
----
-2815

query I rowsort
SELECT DISTINCT + 41 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT - ( + - 19 ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
171

skipif mysql # not compatible
query I rowsort label-7989
SELECT - ( + - 19 ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT - + ( + - col0 ) * - - col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

query II rowsort
SELECT + 28 * 55 AS col1, col0 FROM tab1 AS cor0
----
1540
51
1540
85
1540
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT ALL 33 * 16 DIV 92 + + col0 col0 FROM tab1 cor0
----
56
90
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7993
SELECT ALL 33 * 16 / 92 + + col0 col0 FROM tab1 cor0
----
56
90
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL + 50 * + 44 + - MIN( col0 ) col1 FROM tab0 AS cor0
----
2185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7994
SELECT ALL + 50 * + 44 + - MIN ( col0 ) col1 FROM tab0 AS cor0
----
2185

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT - 85 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - 85 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL + COUNT( * ) * - COUNT( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL + COUNT ( * ) * - COUNT ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7997
SELECT ALL + + MAX( DISTINCT + CAST( + 56 AS SIGNED ) ) * + SUM( DISTINCT - col1 ) FROM tab0 cor0
----
-5768

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + + MAX ( DISTINCT + CAST ( + 56 AS INTEGER ) ) * + SUM ( DISTINCT - col1 ) FROM tab0 cor0
----
-5768

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 45 + col2 + + - col1 * 63 * col2 - - - 80 - + col2 * 90 + + col0 * 6 + - col2 + - col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT + MAX( ALL + col0 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-7999
SELECT + MAX ( ALL + col0 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT DISTINCT CAST( - col0 AS SIGNED ) * + + 60 AS col1 FROM tab1
----
-3060
-5100
-5460

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * + + 60 AS col1 FROM tab1
----
-3060
-5100
-5460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, col2 - + + col1 * + 56 col0 FROM tab0
----
-15
-4489
-87
-1166
-97
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col2 FROM tab1
----
82
82
82

query I rowsort
SELECT ALL + - col0 * - - col1 * - ( - + ( col2 ) ) FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT + 47 * - col1 * col0 > 7 * + ( + col1 ) * 29
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT + 47 * - col1 * col0 > 7 * + ( + col1 ) * 29
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8005
SELECT + MIN( col0 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IN ( col0, col0 / + - col1 + + - col2, CAST( + + col1 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT + MIN ( col0 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IN ( col0, col0 / + - col1 + + - col2, CAST ( + + col1 AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT + ( 82 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-8006
SELECT + ( 82 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT DISTINCT + 52 DIV + col1 AS col0 FROM tab0 cor0
----
0
2
52

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + 52 / + col1 AS col0 FROM tab0 cor0
----
0
2
52

query II rowsort
SELECT - 62 AS col0, - 71 FROM tab0
----
-62
-71
-62
-71
-62
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT + MAX( DISTINCT - ( col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8009
SELECT + MAX ( DISTINCT - ( col2 ) ) FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8010
SELECT DISTINCT - 2 AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-8010
SELECT DISTINCT - 2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-2
NULL

query I rowsort
SELECT ALL col1 + + + col1 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 - ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + 57 + + col1 * - + col0 FROM tab2 AS cor0
----
-2289
-4871
-4968

query I rowsort
SELECT DISTINCT + - col2 + - + 40 AS col2 FROM tab1 AS cor0
----
-108
-136
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8016
SELECT - CAST( 91 AS SIGNED ) * col1 * + 77 + - - col1 AS col1 FROM tab1 cor0
----
-329282
-35030
-98084

skipif mysql # not compatible
query I rowsort label-8016
SELECT - CAST ( 91 AS INTEGER ) * col1 * + 77 + - - col1 AS col1 FROM tab1 cor0
----
-329282
-35030
-98084

query I rowsort
SELECT ALL + + ( - col0 ) + 45 FROM tab0 AS cor0
----
-42
-52
30

query I rowsort
SELECT ALL - ( + + col0 ) AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT col0 + + - col2 FROM tab2
----
17
23
24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 <> - + 22 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + + - col0 + + col0 + - col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 + 8 AS col2 FROM tab1
----
13
22
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8023
SELECT * FROM tab1 WHERE ( NOT + CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8023
SELECT * FROM tab1 WHERE ( NOT + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 59 <= + - 82
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8025
SELECT + col2 + + - 4 + + - col1 + - 86 * + col1 DIV - + col1 FROM tab2
----
45
54
73

skipif mysql # not compatible
query I rowsort label-8025
SELECT + col2 + + - 4 + + - col1 + - 86 * + col1 / - + col1 FROM tab2
----
45
54
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT DISTINCT + col1 DIV + 11 AS col2 FROM tab2
----
4
6
7

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT + col1 / + 11 AS col2 FROM tab2
----
4
6
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8027
SELECT * FROM tab0 AS cor0 WHERE - col2 - 32 BETWEEN + ( - col2 ) + - col0 + col2 * + CAST( NULL AS SIGNED ) AND ( - 1 )
----

skipif mysql # not compatible
query III rowsort label-8027
SELECT * FROM tab0 AS cor0 WHERE - col2 - 32 BETWEEN + ( - col2 ) + - col0 + col2 * + CAST ( NULL AS INTEGER ) AND ( - 1 )
----

query I rowsort
SELECT ALL - + ( - col1 ) + - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 - + col0 * + 76 AS col2 FROM tab1 AS cor0
----
-3890
-6465
-6963

query I rowsort
SELECT + 5 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + 2
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8033
SELECT DISTINCT - 57 * 35 * + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 + CAST( + - 68 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT - 57 * 35 * + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 + CAST ( + - 68 AS INTEGER ) AND NULL
----

query I rowsort
SELECT - ( - - 78 ) * + + col2 AS col1 FROM tab2 AS cor0
----
-1794
-3120
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT + MAX( ALL - 87 ) * - 55 AS col2 FROM tab0 cor0
----
4785

skipif mysql # not compatible
query I rowsort label-8035
SELECT + MAX ( ALL - 87 ) * - 55 AS col2 FROM tab0 cor0
----
4785

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8036
SELECT + 50 AS col1, + col1 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
50
NULL
50
NULL
50
NULL

skipif mysql # not compatible
query II rowsort label-8036
SELECT + 50 AS col1, + col1 - - CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
50
NULL
50
NULL
50
NULL

query II rowsort
SELECT + + 48 AS col0, - ( 0 ) FROM tab2 AS cor0
----
48
0
48
0
48
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT - - MIN( + + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8038
SELECT - - MIN ( + + col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT + ( - - 82 ) AS col1 FROM tab1
----
82

query I rowsort
SELECT DISTINCT - 35 * + ( + 12 ) FROM tab2
----
-420

query I rowsort
SELECT DISTINCT - - 52 AS col2 FROM tab2 AS cor0
----
52

query I rowsort
SELECT + 32 * - ( col2 ) FROM tab2 cor0
----
-1280
-1856
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL - 80 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL - 80 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-8044
SELECT ALL - 80, - col1 DIV + 98 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-80
0
-80
0
-80
0

skipif mysql # not compatible
query II rowsort label-8044
SELECT ALL - 80, - col1 / + 98 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-80
0
-80
0
-80
0

query I rowsort
SELECT DISTINCT 36 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT - COUNT( * ) * - 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
360

skipif mysql # not compatible
query I rowsort label-8046
SELECT - COUNT ( * ) * - 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - COUNT( * ) + 29 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-8047
SELECT - COUNT ( * ) + 29 FROM tab2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT col0 * + col0 + - col0 - - ( + + col1 ) + - + col2 + - + 35 DIV - + col1 AS col2 FROM tab1
----
2470
7093
8169

skipif mysql # not compatible
query I rowsort label-8048
SELECT col0 * + col0 + - col0 - - ( + + col1 ) + - + col2 + - + 35 / - + col1 AS col2 FROM tab1
----
2470
7093
8169

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT + 93 + - COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8049
SELECT + 93 + - COUNT ( * ) FROM tab2 AS cor0
----
90

query I rowsort
SELECT ALL - col0 * - - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT DISTINCT + 29 + + 96 * MAX( ALL col0 ) AS col2 FROM tab0 AS cor0
----
9341

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT + 29 + + 96 * MAX ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
9341

query II rowsort
SELECT - 92 AS col2, - col1 AS col1 FROM tab0 AS cor0
----
-92
-1
-92
-21
-92
-81

query II rowsort
SELECT - + col1, + col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT + COUNT( * ) + + 93 AS col2 FROM tab2 cor0 WHERE + 42 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT + COUNT ( * ) + + 93 AS col2 FROM tab2 cor0 WHERE + 42 IS NOT NULL
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT ALL - - col0 * 10 DIV col0 + 93 AS col2 FROM tab2 AS cor0
----
103
103
103

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL - - col0 * 10 / col0 + 93 AS col2 FROM tab2 AS cor0
----
103
103
103

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT + - 72, 15 + + MIN( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-72
-66

skipif mysql # not compatible
query II rowsort label-8056
SELECT + - 72, 15 + + MIN ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-72
-66

query I rowsort
SELECT DISTINCT + + 0 + + - 0 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL 92 - + 40 AS col1 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT ALL CAST( NULL AS SIGNED ) - - col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL CAST ( NULL AS INTEGER ) - - col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 57 + 43 + - col1 col1 FROM tab1 AS cor0
----
-247
-2683
-769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8061
SELECT DISTINCT - CAST( + 52 AS SIGNED ) AS col1 FROM tab0 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT - CAST ( + 52 AS INTEGER ) AS col1 FROM tab0 cor0
----
-52

query I rowsort
SELECT DISTINCT 41 - + col2 FROM tab0
----
-58
-6
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT ALL - ( + CAST( - 21 AS SIGNED ) ) FROM tab2
----
21
21
21

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - ( + CAST ( - 21 AS INTEGER ) ) FROM tab2
----
21
21
21

query I rowsort
SELECT DISTINCT - col0 + col0 + + col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT DISTINCT col0 * 8 - + + 14 DIV - + col0 AS col1 FROM tab2
----
368
512
600

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT col0 * 8 - + + 14 / - + col0 AS col1 FROM tab2
----
368
512
600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 22 * + COUNT( * ) * - 79 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 22 * + COUNT ( * ) * - 79 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT CAST( NULL AS SIGNED ) - COUNT( - - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT CAST ( NULL AS INTEGER ) - COUNT ( - - col2 ) FROM tab0
----
NULL

query I rowsort
SELECT 54 - - - ( + - col0 ) + 13 AS col2 FROM tab1
----
118
152
158

query I rowsort
SELECT col0 - - ( 26 ) FROM tab0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT COUNT( * ) + 88 col0 FROM tab0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8070
SELECT COUNT ( * ) + 88 col0 FROM tab0
----
91

query I rowsort
SELECT ALL - 48 * + - 0 + + col0 + + + 35 * + - col2 AS col1 FROM tab2 AS cor0
----
-1336
-1955
-759

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8072
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8072
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST ( - col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL - ( - ( - - COUNT( * ) ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8073
SELECT ALL - ( - ( - - COUNT ( * ) ) ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 11 + - 53 AS col1 FROM tab0 AS cor0
----
-42

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 39 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - - ( - + 73 ) ) AS col2 FROM tab1
----
-73

query I rowsort
SELECT - + col1 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
-2578
-4431
-5889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT DISTINCT - - 50 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col1 >= + - col2
----

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT - - 50 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 >= + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL - COUNT( + - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - COUNT ( + - col2 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8082
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col0 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8082
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col0 col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8083
SELECT ALL - COUNT( * ) AS col1, 45 FROM tab0
----
-3
45

skipif mysql # not compatible
query II rowsort label-8083
SELECT ALL - COUNT ( * ) AS col1, 45 FROM tab0
----
-3
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8084
SELECT DISTINCT + COUNT( * ) AS col0, 65 * - 51 AS col0 FROM tab2
----
3
-3315

skipif mysql # not compatible
query II rowsort label-8084
SELECT DISTINCT + COUNT ( * ) AS col0, 65 * - 51 AS col0 FROM tab2
----
3
-3315

query I rowsort
SELECT DISTINCT + ( - + col0 ) FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT + 67 * - col1 + + 65, 47 AS col1 FROM tab2 cor0
----
-3352
47
-4424
47
-5094
47

query I rowsort
SELECT DISTINCT - + ( + col2 ) + 23 FROM tab1 AS cor0
----
-36
-45
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8088
SELECT * FROM tab1 WHERE NOT + ( col2 ) - + CAST( NULL AS SIGNED ) / - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8088
SELECT * FROM tab1 WHERE NOT + ( col2 ) - + CAST ( NULL AS INTEGER ) / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT col0 * col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT col0 * col2 IS NULL
----
3

query I rowsort
SELECT ALL ( 76 ) FROM tab0 WHERE NOT 1 + - col2 IS NULL
----
76
76
76

query I rowsort
SELECT ALL 88 * col1 + ( ( + col2 ) ) FROM tab2 WHERE NOT ( - 30 ) IS NOT NULL
----

query I rowsort
SELECT 46 + 5 FROM tab0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 76 col0 FROM tab1
----
-25
15
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT - MIN( col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - MIN ( col1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT ALL col0 * ( 33 * - col0 ) AS col1 FROM tab0
----
-249777
-310497
-7425

query I rowsort
SELECT - col2 + - 62 FROM tab0
----
-109
-161
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 col0 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 52 - col1 AS col2 FROM tab2
----
-15
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT + 88 + COUNT( * ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8100
SELECT + 88 + COUNT ( * ) AS col2 FROM tab1
----
91

query I rowsort
SELECT ALL col0 * + ( - ( 36 ) ) FROM tab0
----
-3132
-3492
-540

query I rowsort
SELECT - col2 * - col1 AS col0 FROM tab0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) * + 92 FROM tab1
----
5428
6256
8832

query I rowsort
SELECT col0 + 4 FROM tab2 WHERE NOT + col1 IN ( + col2 * + ( + col1 ) )
----
50
68
79

query I rowsort
SELECT DISTINCT 84 * + col0 AS col0 FROM tab0
----
1260
7308
8148

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT DISTINCT + col2 DIV 30 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT + col2 / 30 AS col0 FROM tab2
----
0
1

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( + 79 ) NOT IN ( - col1 )
----
14
47
5

query I rowsort
SELECT DISTINCT 19 * + 64 + - col1 AS col2 FROM tab1
----
1169
1202
1211

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL 94 + COUNT( * ) FROM tab1 WHERE + 31 < col0
----
97

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL 94 + COUNT ( * ) FROM tab1 WHERE + 31 < col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT ( 34 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT ( 34 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab2 WHERE ( col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT ALL col0 DIV 56 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL col0 / 56 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - MAX( 0 ) + + 55 AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-8113
SELECT - MAX ( 0 ) + + 55 AS col2 FROM tab1
----
55

query I rowsort
SELECT ALL ( col0 ) FROM tab1 AS cor0 WHERE NOT - col1 + col1 IS NULL
----
51
85
91

query I rowsort
SELECT ( + col1 ) - col0 * col0 FROM tab0 AS cor0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8116
SELECT - ( COUNT( * ) ) DIV + COUNT( * ) AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8116
SELECT - ( COUNT ( * ) ) / + COUNT ( * ) AS col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT ALL 24 * ( + col0 * col0 ) FROM tab1 AS cor0
----
173400
198744
62424

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT DISTINCT - col2 DIV ( - col0 ) AS col1 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT - col2 / ( - col0 ) AS col1 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - SUM( ( - 5 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8119
SELECT - SUM ( ( - 5 ) ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
18

skipif mysql # not compatible
query I rowsort label-8121
SELECT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT - MAX( DISTINCT 29 ) AS col2 FROM tab0 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8122
SELECT - MAX ( DISTINCT 29 ) AS col2 FROM tab0 cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col2 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8124
SELECT - + CAST( col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-8124
SELECT - + CAST ( col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT + 17 / + col2 NOT BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT 12 * + col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 87 * col2 )
----

query I rowsort
SELECT ALL 96 + 94 FROM tab1 AS cor0 WHERE col1 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8130
SELECT DISTINCT + - 48 / col2 / + 33 + + 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-8130
SELECT DISTINCT + - 48 / col2 / + 33 + + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 + - - col1 * col1 FROM tab0 AS cor0
----
528
6576
98

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8132
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-8132
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT IN ( CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + 25 )
----

query I rowsort
SELECT - col1 * + col1 + - col0 FROM tab0
----
-528
-6576
-98

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT - 51 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + MIN( ALL col1 ) FROM tab0 AS cor0 WHERE ( + col2 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT + MIN ( ALL col1 ) FROM tab0 AS cor0 WHERE ( + col2 ) < NULL
----
NULL

query I rowsort
SELECT - ( 89 ) FROM tab1 AS cor0
----
-89
-89
-89

query II rowsort
SELECT + + col0, + 69 AS col2 FROM tab0 AS cor0
----
15
69
87
69
97
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8139
SELECT CAST( 42 AS SIGNED ) FROM tab0 AS cor0 WHERE - 10 > - col0 * + col2
----
42
42
42

skipif mysql # not compatible
query I rowsort label-8139
SELECT CAST ( 42 AS INTEGER ) FROM tab0 AS cor0 WHERE - 10 > - col0 * + col2
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, 63 col2 FROM tab1 AS cor0
----
59
63
68
63
96
63

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( 3 ) IS NULL
----

query I rowsort
SELECT - 69 - + col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + ( - col0 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 7 + - ( + 23 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <> ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT + COUNT( * ) - + 82 AS col0 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT + COUNT ( * ) - + 82 AS col0 FROM tab1
----
-79

query I rowsort
SELECT col0 * col1 - - + ( - + col1 ) * 12 AS col0 FROM tab0
----
1575
243
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT ( COUNT( * ) ) - SUM( DISTINCT col0 ) AS col1 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT ( COUNT ( * ) ) - SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT + MIN( + ( - 93 ) ) + + SUM( col2 ) AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-8148
SELECT + MIN ( + ( - 93 ) ) + + SUM ( col2 ) AS col0 FROM tab0
----
63

query I rowsort
SELECT ALL 36 - - col0 AS col2 FROM tab0
----
123
133
51

query I rowsort
SELECT col1 FROM tab2 WHERE ( NULL ) IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col1 FROM tab1 cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT - + 99 * - col2 FROM tab0 AS cor0
----
4653
9801
990

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT - - ( - + 81 ) DIV + - 75 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8153
SELECT - - ( - + 81 ) / + - 75 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT 82 * + col1 * - - ( col0 ) AS col0 FROM tab2
----
192372
404096
412050

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + ( MAX( ALL + + 4 ) ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8155
SELECT + ( MAX ( ALL + + 4 ) ) FROM tab0
----
4

query I rowsort
SELECT ( col1 ) * col2 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN ( - + col0 ) * + 81 + 94 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT - ( + - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8158
SELECT - ( + - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
3

query I rowsort
SELECT ALL 19 * ( - - 76 ) + + col1 AS col1 FROM tab1 AS cor0
----
1449
1458
1491

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT ALL col2 DIV + ( + col0 ) FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL col2 / + ( + col0 ) FROM tab0 AS cor0
----
0
1
3

query II rowsort
SELECT - 23, col2 * col1 AS col1 FROM tab0
----
-23
210
-23
3807
-23
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT SUM( + - col0 ) + + + ( - + 10 ) + - - 20 FROM tab2
----
-175

skipif mysql # not compatible
query I rowsort label-8162
SELECT SUM ( + - col0 ) + + + ( - + 10 ) + - - 20 FROM tab2
----
-175

query II rowsort
SELECT ALL 2, - col0 AS col2 FROM tab0
----
2
-15
2
-87
2
-97

query I rowsort
SELECT - col0 + + 10 AS col2 FROM tab0
----
-5
-77
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT - 84 * + 20 + + CAST( - col0 AS SIGNED ) FROM tab0
----
-1695
-1767
-1777

skipif mysql # not compatible
query I rowsort label-8165
SELECT - 84 * + 20 + + CAST ( - col0 AS INTEGER ) FROM tab0
----
-1695
-1767
-1777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col2 FROM tab0, tab1 cor0
----
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - ( - + 64 ) <= - col1 * col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT SUM( + ( - col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT SUM ( + ( - col1 ) ) AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT + COUNT( * ) + + - 34 + + 51 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8169
SELECT + COUNT ( * ) + + - 34 + + 51 FROM tab2
----
20

query I rowsort
SELECT col2 * - 41 + 23 * - col1 + - + 91 FROM tab1
----
-2625
-3960
-4349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + + + 52 col1 FROM tab0 AS cor0
----
122

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * + 93 NOT BETWEEN ( col1 ) AND ( col0 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT - - COUNT( * ) * COUNT( * ) - + 37 col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8174
SELECT - - COUNT ( * ) * COUNT ( * ) - + 37 col2 FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + COUNT( * ) - + 44 AS col1 FROM ( tab2 cor0 CROSS JOIN tab1 cor1 )
----
-35

skipif mysql # not compatible
query I rowsort label-8175
SELECT + COUNT ( * ) - + 44 AS col1 FROM ( tab2 cor0 CROSS JOIN tab1 cor1 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL + MIN( ALL - col1 ) + + COUNT( * ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + MIN ( ALL - col1 ) + + COUNT ( * ) FROM tab1
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 + - col2 col1 FROM tab1 AS cor0
----
-18
10
19

query I rowsort
SELECT + + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8179
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col0, 96 FROM tab0 cor0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-8179
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col0, 96 FROM tab0 cor0
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 90 * + - col2 IN ( - 0 )
----
-3

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 90 * + - col2 IN ( - 0 )
----
-3

query I rowsort
SELECT + 11 + - + col1 * + col0 FROM tab2 cor0
----
-2335
-4917
-5014

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE 56 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL <= + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8184
SELECT + col2 / - col0 + col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( + + ( - CAST( NULL AS DECIMAL ) ), + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-8184
SELECT + col2 / - col0 + col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( + + ( - CAST ( NULL AS REAL ) ), + col0 ) )
----

query II rowsort
SELECT DISTINCT + col1 + - + col2 AS col2, + col0 AS col1 FROM tab1 AS cor0
----
-21
91
-54
85
-82
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT + + COUNT( * ) FROM tab1 cor0 WHERE NULL NOT BETWEEN col2 * col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT + + COUNT ( * ) FROM tab1 cor0 WHERE NULL NOT BETWEEN col2 * col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT - + MAX( + 2 ) * - + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8187
SELECT - + MAX ( + 2 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT + SUM( ALL - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8188
SELECT + SUM ( ALL - col2 ) AS col0 FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 41, + col0 col2 FROM tab2
----
41
46
41
64
41
75

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE ( 11 * - - col1 * - col1 + ( col0 ) ) IN ( col2 + col0 )
----

query II rowsort
SELECT ALL + col0, - 71 FROM tab2
----
46
-71
64
-71
75
-71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 = + 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8193
SELECT + col2, - 90 + - col1 AS col1 FROM tab2 WHERE NOT - 25 NOT BETWEEN 81 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-8193
SELECT + col2, - 90 + - col1 AS col1 FROM tab2 WHERE NOT - 25 NOT BETWEEN 81 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - 76 ) AS col1 FROM tab0 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT - COUNT( * ) * - + 95 AS col0 FROM tab2 cor0
----
285

skipif mysql # not compatible
query I rowsort label-8195
SELECT - COUNT ( * ) * - + 95 AS col0 FROM tab2 cor0
----
285

onlyif mysql # DIV for integer division: 
query II rowsort label-8196
SELECT col1 DIV ( - - 8 ) AS col2, 74 AS col2 FROM tab2 AS cor0
----
6
74
8
74
9
74

skipif mysql # not compatible
query II rowsort label-8196
SELECT col1 / ( - - 8 ) AS col2, 74 AS col2 FROM tab2 AS cor0
----
6
74
8
74
9
74

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8197
SELECT ALL * FROM tab1 WHERE - col0 BETWEEN CAST( + 99 AS DECIMAL ) AND + - col0 + - col1
----

skipif mysql # not compatible
query III rowsort label-8197
SELECT ALL * FROM tab1 WHERE - col0 BETWEEN CAST ( + 99 AS REAL ) AND + - col0 + - col1
----

query I rowsort
SELECT DISTINCT - 45 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8199
SELECT * FROM tab0 WHERE NOT NULL > - CAST( NULL AS SIGNED ) + - + 44
----

skipif mysql # not compatible
query III rowsort label-8199
SELECT * FROM tab0 WHERE NOT NULL > - CAST ( NULL AS INTEGER ) + - + 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT - 63 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-8200
SELECT - 63 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

query I rowsort
SELECT + ( - + col2 ) FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col0 * + - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT 40 IS NOT NULL
----

query I rowsort
SELECT + col1 + col1 FROM tab2 AS cor0 WHERE NOT col0 + col0 * + 5 IS NOT NULL
----

query I rowsort
SELECT - col0 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 40 col1 FROM tab2 AS cor0
----
1600
2320
920

query I rowsort
SELECT + col2 * - 80 FROM tab1
----
-4720
-5440
-7680

query I rowsort
SELECT DISTINCT - + 64 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND col2 + - 88 + - - 17
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8211
SELECT + col2 DIV + + col1 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8211
SELECT + col2 / + + col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 + + + ( + 58 ) AS col1 FROM tab1 AS cor0
----
117
126
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8213
SELECT ALL 99 + + + AVG ( + - col1 ) - + 39 * + - 20 + + AVG ( + CAST( NULL AS SIGNED ) + + col1 ) FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT IN ( col1 - - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL 99 + + + AVG ( + - col1 ) - + 39 * + - 20 + + AVG ( + CAST ( NULL AS INTEGER ) + + col1 ) FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT IN ( col1 - - - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT 51 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8214
SELECT 51 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
48

query I rowsort
SELECT 2 + + + col1 AS col0 FROM tab2 AS cor0
----
53
69
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8216
SELECT DISTINCT 42 - - 14 DIV 66 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT 42 - - 14 / 66 FROM tab1 AS cor0
----
42

query I rowsort
SELECT DISTINCT - 47 FROM tab1 WHERE - ( 81 ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT ALL 88, + SUM( + 51 ) * COUNT( * ) col1 FROM tab2
----
88
459

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8218
SELECT ALL 88, + SUM ( + 51 ) * COUNT ( * ) col1 FROM tab2
----
88
459

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT - 35 DIV 88 DIV - - col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT - 35 / 88 / - - col0 AS col1 FROM tab0
----
0
0
0

query II rowsort
SELECT + col2 AS col1, + 65 AS col0 FROM tab0 AS cor0
----
10
65
47
65
99
65

query I rowsort
SELECT + - ( 67 ) - - col1 FROM tab0 AS cor0
----
-46
-66
14

query I rowsort
SELECT ALL + col2 + - + col0 + + col0 AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT ( ( + 39 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col0 - + col0 + + - col2 * - 12 BETWEEN + 13 AND + col2 * + col0 + col1 * 94
----
46
64
75

query I rowsort
SELECT - col2 * + - 25 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT - ( - col1 ) AS col1, + col1 AS col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - 34 * + col1 + 52 + + col1 + - + col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT ALL - CAST( 84 AS SIGNED ) AS col1 FROM tab0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL - CAST ( 84 AS INTEGER ) AS col1 FROM tab0
----
-84
-84
-84

query I rowsort
SELECT - col0 * + ( + col1 ) AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT + + col1 * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - col2 * col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, + col2 AS col1 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT col1 AS col0, 56 * 94 FROM tab0
----
1
5264
21
5264
81
5264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT ALL col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 40 * 53 FROM tab0
----
2120
2120
2120

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE + 26 >= + 47
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 10 + + - col0 col1 FROM tab2 AS cor0
----
-56
-74
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8237
SELECT + ( - CAST( + ( + col1 ) AS SIGNED ) ) * - col0 DIV ( - + col0 ) + + col2 * 68 + - col0 + + col1 FROM tab0 AS cor0
----
3181
593
6635

skipif mysql # not compatible
query I rowsort label-8237
SELECT + ( - CAST ( + ( + col1 ) AS INTEGER ) ) * - col0 / ( - + col0 ) + + col2 * 68 + - col0 + + col1 FROM tab0 AS cor0
----
3181
593
6635

onlyif mysql # DIV for integer division: 
query II rowsort label-8238
SELECT DISTINCT - col0 DIV 89, col2 * + col1 AS col1 FROM tab0
----
-1
99
0
210
0
3807

skipif mysql # not compatible
query II rowsort label-8238
SELECT DISTINCT - col0 / 89, col2 * + col1 AS col1 FROM tab0
----
-1
99
0
210
0
3807

query I rowsort
SELECT ALL - 28 * - 36 AS col1 FROM tab0
----
1008
1008
1008

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - - col1 )
----

query I rowsort
SELECT DISTINCT col1 * + + ( - col2 ) AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT - 28 + - + col1 FROM tab0
----
-109
-29
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8244
SELECT DISTINCT 47 DIV + + MIN( - ( col0 ) ) AS col2, - 45 FROM tab1
----
0
-45

skipif mysql # not compatible
query II rowsort label-8244
SELECT DISTINCT 47 / + + MIN ( - ( col0 ) ) AS col2, - 45 FROM tab1
----
0
-45

query I rowsort
SELECT DISTINCT + col0 * 22 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1012
1408
1650

query I rowsort
SELECT DISTINCT - col1 * + col1 - - - col1 AS col2 FROM tab1
----
-210
-2256
-30

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 4 + - 2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col0 * + 72 AS col2 FROM tab2 AS cor0
----
3312
4608
5400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8250
SELECT - 52 * - 79 * + MAX( + - CAST( - col2 AS SIGNED ) ) FROM tab2 AS cor0
----
238264

skipif mysql # not compatible
query I rowsort label-8250
SELECT - 52 * - 79 * + MAX ( + - CAST ( - col2 AS INTEGER ) ) FROM tab2 AS cor0
----
238264

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT - + MIN( DISTINCT + 5 ) AS col2 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8251
SELECT - + MIN ( DISTINCT + 5 ) AS col2 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT + - COUNT( * ) DIV COUNT( * ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8252
SELECT + - COUNT ( * ) / COUNT ( * ) FROM tab2 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 * - 12 col0 FROM tab0
----
-336

query I rowsort
SELECT + col2 * ( + + ( - - 65 ) ) FROM tab0
----
3055
6435
650

query II rowsort
SELECT col1, ( col0 ) AS col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL - MAX( ALL 68 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - MAX ( ALL 68 ) FROM tab0
----
-68

query I rowsort
SELECT - col0 + - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-174
-194
-30

query I rowsort
SELECT + + 0 + + col2 FROM tab2 AS cor0 WHERE NOT - ( + col0 ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + MAX( + 11 ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-8259
SELECT + MAX ( + 11 ) FROM tab0 AS cor0
----
11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT - - MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8261
SELECT - - MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT - - col2 * + + 16 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1088
1536
944

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col1 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT + 92 + COUNT( * ) AS col1 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-8264
SELECT + 92 + COUNT ( * ) AS col1 FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT - MAX( ALL + 6 ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT - MAX ( ALL + 6 ) AS col1 FROM tab1
----
-6

query II rowsort
SELECT - col1 + + + col2 AS col1, 69 FROM tab2 AS cor0
----
-28
69
-37
69
-9
69

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE col0 * + 38 + col0 = + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT + SUM( - + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8268
SELECT + SUM ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT COUNT( + 79 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8269
SELECT COUNT ( + 79 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT - COUNT( * ) + + MAX( - col1 ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT - COUNT ( * ) + + MAX ( - col1 ) FROM tab1 AS cor0
----
-8

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE - 27 - col0 < - col1
----
-1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - ( + ( + - MIN( + col1 ) ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8272
SELECT - ( + ( + - MIN ( + col1 ) ) ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8274
SELECT DISTINCT - ( - + CAST( - - COUNT( * ) AS SIGNED ) ) DIV + - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - ( - + CAST ( - - COUNT ( * ) AS INTEGER ) ) / + - COUNT ( * ) FROM tab2
----
-1

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 80 + + col0 + - - 32 col0, + col2 + - 73 FROM tab0 AS cor0
----
-33
-26
39
-63
49
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8277
SELECT col2 + 31 - + + col0 * col1 DIV + - col0 AS col2 FROM tab0 AS cor0
----
131
159
62

skipif mysql # not compatible
query I rowsort label-8277
SELECT col2 + 31 - + + col0 * col1 / + - col0 AS col2 FROM tab0 AS cor0
----
131
159
62

query I rowsort
SELECT + 88 + + + col2 FROM tab1 AS cor0
----
147
156
184

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 60, col2 - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <= + - ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 96 * - + 78 AS col0, - ( + - col2 ) FROM tab0
----
-7488
10
-7488
47
-7488
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 27 / + - 91 - col0 + - - ( col2 ) / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - ( + 62 ) AS col1, + ( - col1 ) FROM tab2 AS cor0
----
-62
-51
-62
-67
-62
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - - 35, col2 col0 FROM tab1 AS cor0
----
2065
59
2380
68
3360
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 - - col0 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + COUNT( DISTINCT - - ( col0 ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8286
SELECT + COUNT ( DISTINCT - - ( col0 ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT DISTINCT - - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8287
SELECT DISTINCT - - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT DISTINCT + + 49 DIV + 39 + - 20 AS col2 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT + + 49 / + 39 + - 20 AS col2 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT - 26 * - + col2 * + + col2 FROM tab0 AS cor0
----
254826
2600
57434

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT ALL + MIN( col0 ) * - COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL + MIN ( col0 ) * - COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT ALL + col0 DIV - - col1 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL + col0 / - - col1 FROM tab1 cor0
----
1
17
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT DISTINCT 30 DIV + col1 AS col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT 30 / + col1 AS col1 FROM tab1
----
0
2
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8294
SELECT + COUNT( * ), - SUM( DISTINCT - 42 ) AS col0 FROM tab2
----
3
42

skipif mysql # not compatible
query II rowsort label-8294
SELECT + COUNT ( * ), - SUM ( DISTINCT - 42 ) AS col0 FROM tab2
----
3
42

query I rowsort
SELECT - ( + + 29 ) FROM tab0
----
-29
-29
-29

query I rowsort
SELECT + ( - 92 ) FROM tab1
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT + COUNT( - 77 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8297
SELECT + COUNT ( - 77 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT ALL - col0, 35 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, - col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

query II rowsort
SELECT ALL col2, col1 * - 8 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
10
-1038
47
-1353
99
-9611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 42 * - + 40 col1 FROM tab1
----
142800
152880
85680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8305
SELECT - - 46 + + 9 * + CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8305
SELECT - - 46 + + 9 * + CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - + 85 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= - 64
----

query I rowsort
SELECT DISTINCT + - col0 - - 65 AS col2 FROM tab1 AS cor0
----
-20
-26
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT ALL - 94 FROM tab1 AS cor0 WHERE - 27 * + col2 NOT IN ( + col2 * col0 * col0 * + CAST( - col0 AS SIGNED ) )
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL - 94 FROM tab1 AS cor0 WHERE - 27 * + col2 NOT IN ( + col2 * col0 * col0 * + CAST ( - col0 AS INTEGER ) )
----
-94
-94
-94

query I rowsort
SELECT + 93 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
93
93
93

query I rowsort
SELECT 92 + - col1 AS col0 FROM tab2 cor0
----
15
25
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT DISTINCT - COUNT( * ) + - 12 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT - COUNT ( * ) + - 12 FROM tab0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT DISTINCT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT 40 AS col0 FROM tab1 WHERE + ( - col1 ) * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL < - 20 + - 85
----
0

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL < - 20 + - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL - COUNT( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL - COUNT ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - ( + - 18 ) AS col2 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT + 66 - - col2 AS col0 FROM tab0 cor0
----
113
165
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8321
SELECT + col2 - - - col0, + col1 * - 25 * + 13 col0, + + col2 + - - CAST( NULL AS SIGNED ) + - col2 + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 9d1361462d31cc08378df4c6c4b33723

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8321
SELECT + col2 - - - col0, + col1 * - 25 * + 13 col0, + + col2 + - - CAST ( NULL AS INTEGER ) + - col2 + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 9d1361462d31cc08378df4c6c4b33723

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT DISTINCT + 69 DIV col0 * - col1 * + col0 col0 FROM tab2
----
-2346
-4928
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8322
SELECT DISTINCT + 69 / col0 * - col1 * + col0 col0 FROM tab2
----
-2346
-4928
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8324
SELECT col0 DIV - col1 col2 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8324
SELECT col0 / - col1 col2 FROM tab0 AS cor0
----
-4
-97
0

query II rowsort
SELECT 37 * - + col2 + col2 * col0, col2 AS col0 FROM tab2 AS cor0
----
1080
40
207
23
2204
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8326
SELECT col2 DIV + 42 + + 54 * + col2 AS col2 FROM tab2 AS cor0
----
1242
2160
3133

skipif mysql # not compatible
query I rowsort label-8326
SELECT col2 / + 42 + + 54 * + col2 AS col2 FROM tab2 AS cor0
----
1242
2160
3133

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + 92 * 4 + - + COUNT( * ) FROM tab0 cor0
----
365

skipif mysql # not compatible
query I rowsort label-8327
SELECT + 92 * 4 + - + COUNT ( * ) FROM tab0 cor0
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL COUNT( - - 54 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL COUNT ( - - 54 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 * - + 79 AS col0 FROM tab2 AS cor0
----
-4029
-5293
-6083

onlyif mysql # DIV for integer division: 
query I rowsort label-8330
SELECT DISTINCT + - 78 DIV + ( - + 49 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT + - 78 / + ( - + 49 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8331
SELECT col0 DIV CAST( - + col1 AS SIGNED ) FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-8331
SELECT col0 / CAST ( - + col1 AS INTEGER ) FROM tab1
----
-1
-17
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col0 ) * + - col0 * - + col0 + + 44 + + col2 - col2 = - - col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT MAX( DISTINCT 97 ) AS col2 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-8334
SELECT MAX ( DISTINCT 97 ) AS col2 FROM tab1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT - CAST( - 32 AS SIGNED ) FROM tab2 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-8335
SELECT - CAST ( - 32 AS INTEGER ) FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT + col2 * + col0 * + - ( + + col0 ) AS col0 FROM tab0 cor0
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT col1 * - + 72 + + 83 AS col1 FROM tab0 AS cor0
----
-1429
-5749
11

query I rowsort
SELECT DISTINCT col2 * + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT - 32 + - - col1 * col0 FROM tab1 AS cor0
----
393
4245
682

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NULL NOT IN ( - 37, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL + - ( + COUNT( * ) ) + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL + - ( + COUNT ( * ) ) + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 3 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 65 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 - - col0 + - - 2 FROM tab2
----
106
135
71

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE + 86 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL SUM( + ( - col1 ) ) + - 79 FROM tab0
----
-182

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL SUM ( + ( - col1 ) ) + - 79 FROM tab0
----
-182

query I rowsort
SELECT - + col1 AS col0 FROM tab0 WHERE NULL < 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8348
SELECT CAST( NULL AS SIGNED ), + col1 * + col1 col1 FROM tab2 WHERE - col2 + - col2 BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8348
SELECT CAST ( NULL AS INTEGER ), + col1 * + col1 col1 FROM tab2 WHERE - col2 + - col2 BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 44 col2 FROM tab2
----
-111
-121
-95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + - + ( - - col1 ) IS NULL OR NOT - ( - col2 ) IS NOT NULL
----

query II rowsort
SELECT 96 + 48, col2 AS col1 FROM tab1
----
144
59
144
68
144
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT - MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT - MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
91

query II rowsort
SELECT ALL - col0, + col2 + col2 AS col1 FROM tab2 AS cor0
----
-46
46
-64
80
-75
116

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT - 39 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL 25 * col2 FROM tab2 AS cor0
----
1000
1450
575

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + 84 ) > + col1
----

query I rowsort
SELECT ALL col2 * + - ( - 34 ) FROM tab0 cor0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8358
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 67 + col0 * + - col0 NOT IN ( 47 * - + col1, col1 * col2, + 51, + + ( - ( ( + + col0 ) ) ) * 38 )
----

query I rowsort
SELECT + col1 * + + col2 * + + 96 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = - 0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL - CAST( + ( + MIN( 9 ) ) AS SIGNED ) * ( + MAX( ALL + - 64 ) ) FROM tab0
----
576

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - CAST ( + ( + MIN ( 9 ) ) AS INTEGER ) * ( + MAX ( ALL + - 64 ) ) FROM tab0
----
576

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8362
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + - + col0 BETWEEN NULL AND - - CAST( col2 AS DECIMAL ) - + - col0 / + ( + 57 )
----

skipif mysql # not compatible
query III rowsort label-8362
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + - + col0 BETWEEN NULL AND - - CAST ( col2 AS REAL ) - + - col0 / + ( + 57 )
----

query II rowsort
SELECT ALL + col2 AS col1, + ( + - col0 ) AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - - 29 AND - col2
----

query I rowsort
SELECT - 69 + col0 AS col1 FROM tab0
----
-54
18
28

query I rowsort
SELECT ALL col2 * 31 FROM tab0
----
1457
3069
310

query I rowsort
SELECT DISTINCT - col1 * col1 * - col1 + 13 FROM tab2
----
132664
300776
456546

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( ( NOT NULL < NULL ) ) )
----

query I rowsort
SELECT ALL col2 * + + 84 + - col0 + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
17628
4158
8322

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8371
SELECT DISTINCT - - CAST( + MIN( DISTINCT - - 42 ) AS DECIMAL ) FROM tab1 WHERE NOT + - col2 <> - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT - - CAST ( + MIN ( DISTINCT - - 42 ) AS REAL ) FROM tab1 WHERE NOT + - col2 <> - col0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col2 * + col2 * - - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT - 77 + - 36 - + 92 * + SUM( 69 ) + 80 FROM tab0 AS cor0
----
-19077

skipif mysql # not compatible
query I rowsort label-8374
SELECT - 77 + - 36 - + 92 * + SUM ( 69 ) + 80 FROM tab0 AS cor0
----
-19077

query I rowsort
SELECT DISTINCT + 96 - - 44 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + - col2 - + ( col2 ) > - col2
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( + col1 + + - col0 ) IS NULL
----

query I rowsort
SELECT + col0 + 1 - + 18 FROM tab0 AS cor0
----
-2
70
80

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 6 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <= + 14 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + + - 69 + - col2 * + 70 + + col0 AS col0 FROM tab1 AS cor0
----
-4199
-4829
-6789

query I rowsort
SELECT + - col1 * - col1 + 87 + col0 AS col0 FROM tab2 AS cor0
----
2734
4651
6080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT DISTINCT - col1 - + col2 + 77 + - + col2 + + col2 + + + ( col2 ) + - col0 + - 80 * col1 * + - 17 * + col1 * CAST( NULL AS SIGNED ) * + + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT - col1 - + col2 + 77 + - + col2 + + col2 + + + ( col2 ) + - col0 + - 80 * col1 * + - 17 * + col1 * CAST ( NULL AS INTEGER ) * + + col0 FROM tab2
----
NULL

query I rowsort
SELECT + ( - ( + col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT MAX( + 31 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-8384
SELECT MAX ( + 31 ) FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL + SUM( DISTINCT - 12 ) FROM tab1 WHERE ( NOT col2 IS NULL )
----
-12

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + SUM ( DISTINCT - 12 ) FROM tab1 WHERE ( NOT col2 IS NULL )
----
-12

query I rowsort
SELECT DISTINCT col0 * 88 - + - ( + col2 ) * col2 * col0 AS col0 FROM tab1
----
303365
428792
474504

query I rowsort
SELECT + - col1 AS col2 FROM tab2 WHERE - 56 BETWEEN ( + 38 ) AND 91
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col2 * col1 + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col0 FROM tab0
----
31

query I rowsort
SELECT ALL ( + - col0 ) - - + 32 * + - ( + col1 ) FROM tab0
----
-129
-2607
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT - 98 * + 49 * 19 + - 46 - - SUM( ALL - 22 ) AS col0 FROM tab2 AS cor0
----
-91350

skipif mysql # not compatible
query I rowsort label-8391
SELECT - 98 * + 49 * 19 + - 46 - - SUM ( ALL - 22 ) AS col0 FROM tab2 AS cor0
----
-91350

query I rowsort
SELECT - 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query II rowsort
SELECT ALL col0 AS col0, + col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + 86 * - 27 FROM tab1
----
-2322

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8395
SELECT DISTINCT + col1 AS col2, CAST( NULL AS SIGNED ) * 48 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8395
SELECT DISTINCT + col1 AS col2, CAST ( NULL AS INTEGER ) * 48 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT + - MAX( + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8396
SELECT + - MAX ( + - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT DISTINCT + - ( - ( COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT + - ( - ( COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + 85 AS col0 FROM tab1 cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT + - 77 * + COUNT( * ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-8400
SELECT + - 77 * + COUNT ( * ) FROM tab2 AS cor0
----
-231

query I rowsort
SELECT DISTINCT - 87 * + col0 AS col1 FROM tab2 AS cor0
----
-4002
-5568
-6525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8402
SELECT - ( + 46 ) DIV + + SUM( ALL + col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8402
SELECT - ( + 46 ) / + + SUM ( ALL + col0 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL + COUNT( DISTINCT + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL + COUNT ( DISTINCT + col2 ) FROM tab1
----
3

query I rowsort
SELECT ALL + col1 * - - col0 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 40 <= + ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8406
SELECT ALL - + CAST( - + ( COUNT( * ) ) AS SIGNED ) + - - 55 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - + CAST ( - + ( COUNT ( * ) ) AS INTEGER ) + - - 55 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8407
SELECT COUNT( DISTINCT col0 ) DIV + + SUM( + 80 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8407
SELECT COUNT ( DISTINCT col0 ) / + + SUM ( + 80 ) FROM tab1 cor0
----
0

query I rowsort
SELECT - - ( + + col2 ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT - + 87 * 5 FROM tab1 AS cor0
----
-435
-435
-435

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8410
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) * + - col1, - 59, + col2 * ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-8410
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) * + - col1, - 59, + col2 * ( + col0 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + + 71 + col0
----

query I rowsort
SELECT ALL 71 + ( + col2 ) AS col2 FROM tab0
----
118
170
81

query I rowsort
SELECT ALL - - 68 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT COUNT( DISTINCT col0 ) * 97 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-8414
SELECT COUNT ( DISTINCT col0 ) * 97 FROM tab1
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8415
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT - col1, col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL - - 37 FROM tab2 cor0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8418
SELECT * FROM tab2 AS cor0 WHERE NOT col2 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8418
SELECT * FROM tab2 AS cor0 WHERE NOT col2 >= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL - + COUNT( ALL - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL - + COUNT ( ALL - col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT col1 / - CAST( NULL AS SIGNED ) * - - ( - - col1 ) + - - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT col1 / - CAST ( NULL AS INTEGER ) * - - ( - - col1 ) + - - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + + col2 + + col2 FROM tab2
----
120
174
69

query I rowsort
SELECT 51 + col1 AS col1 FROM tab1
----
56
65
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT COUNT( * ) + 61 AS col1 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-8424
SELECT COUNT ( * ) + 61 AS col1 FROM tab2
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 22 + 48 col2 FROM tab1
----
1170
1918
2050

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT 67 DIV + 76 + + - 6 FROM tab2
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-8426
SELECT 67 / + 76 + + - 6 FROM tab2
----
-6
-6
-6

query I rowsort
SELECT ALL - ( - 44 ) AS col1 FROM tab2
----
44
44
44

query I rowsort
SELECT DISTINCT + col0 + - - col0 AS col2 FROM tab0 AS cor0 WHERE + ( + - col1 ) * - col0 - + ( 89 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8429
SELECT ALL + CAST( NULL AS DECIMAL ) col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8429
SELECT ALL + CAST ( NULL AS REAL ) col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + col0
----

query III rowsort
SELECT + col1 AS col0, col0 AS col1, 24 FROM tab1 AS cor0
----
9 values hashing to cf3b963629af7634f7d9b48fdc46524d

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col1 = 59
----

query II rowsort
SELECT col0, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL - 54 * + 84 + - col0 AS col0 FROM tab1
----
-4587
-4621
-4627

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT - - MIN( DISTINCT - col0 ) * + MIN( ALL + - col1 ) col0 FROM tab1 WHERE NULL NOT IN ( col0 * - col1, - 59 + col2 + 64 * - col1 * + col0 + 99 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8435
SELECT - - MIN ( DISTINCT - col0 ) * + MIN ( ALL + - col1 ) col0 FROM tab1 WHERE NULL NOT IN ( col0 * - col1, - 59 + col2 + 64 * - col1 * + col0 + 99 )
----
NULL

query I rowsort
SELECT DISTINCT col0 + - - 0 * - col1 AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL - - col2 * + col0 * + col2 FROM tab2 cor0
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8438
SELECT * FROM tab0 cor0 WHERE + CAST( + col1 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-8438
SELECT * FROM tab0 cor0 WHERE + CAST ( + col1 AS INTEGER ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 * + col0 + 21 col0 FROM tab1 AS cor0
----
-2070
-3464
-3710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col1 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - - col0 + + - 72 AS col2 FROM tab1 cor0
----
-21
13
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8442
SELECT + + COUNT( * ) * - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT ALL COUNT( ALL - col0 ) * + + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL COUNT ( ALL - col0 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
9

query II rowsort
SELECT col0 AS col1, - 47 + col1 FROM tab1
----
51
-33
85
-42
91
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT DISTINCT 20 DIV SUM( DISTINCT + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT 20 / SUM ( DISTINCT + col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT - - 51 * - + COUNT( ALL - col2 ) FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT - - 51 * - + COUNT ( ALL - col2 ) FROM tab2 cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8447
SELECT + + CAST( NULL AS SIGNED ) * + 94 * - col2 / + col1 + - 70 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT + + CAST ( NULL AS INTEGER ) * + 94 * - col2 / + col1 + - 70 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1, + col1 + - + col2 FROM tab0 AS cor0
----
1
-98
21
11
81
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col0 <= - 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT DISTINCT ( - + COUNT( * ) ) + + 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT ( - + COUNT ( * ) ) + + 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 74 - - 21 + + + ( + - 15 ) * - 36 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8452
SELECT 72 + + + COUNT( * ), - 58 col1 FROM tab2 AS cor0
----
75
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8452
SELECT 72 + + + COUNT ( * ), - 58 col1 FROM tab2 AS cor0
----
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT + - ( MAX( DISTINCT + + 16 ) ) AS col2 FROM tab0 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8453
SELECT + - ( MAX ( DISTINCT + + 16 ) ) AS col2 FROM tab0 cor0
----
-16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE + 30 <= col0
----
3

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + 30 <= col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT COUNT( ALL col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT COUNT ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 61 >= - + col2
----

query I rowsort
SELECT col1 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT ALL SUM( + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL SUM ( + col0 ) AS col1 FROM tab2
----
185

query II rowsort
SELECT DISTINCT + 12 AS col0, col0 FROM tab0
----
12
15
12
87
12
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + 92 col0 FROM tab2
----
138
156
167

query I rowsort
SELECT DISTINCT col1 - + col0 - col1 + col0 AS col2 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - 2 - col0 * - col2 col2 FROM tab1
----
4912
5022
6237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8464
SELECT DISTINCT - CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 37 + + col2 + col0 + + col1 FROM tab0 AS cor0
----
155
180
234

query I rowsort
SELECT - 29 - + - col1 AS col0 FROM tab2 cor0
----
22
38
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT + - 47 DIV col2 AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8467
SELECT + - 47 / col2 AS col0 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - + col0 * - ( 87 ) FROM tab0 AS cor0
----
1305
7569
8439

query I rowsort
SELECT - col2 * - - 45 AS col0 FROM tab0 AS cor0
----
-2115
-4455
-450

query I rowsort
SELECT DISTINCT - 39 FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN - - col2 AND col2
----
-39

query I rowsort
SELECT + col1 * - col1 - - + 26 FROM tab0 AS cor0
----
-415
-6535
25

query I rowsort
SELECT ALL + col0 / + col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + col1 + + - col0 FROM tab1 AS cor0 WHERE NOT - col1 / col2 NOT BETWEEN NULL AND - col2 + - - col0
----

query I rowsort
SELECT ALL ( - ( - - 3 ) ) FROM tab2
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL ( - MAX( ALL ( + + col0 ) ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL ( - MAX ( ALL ( + + col0 ) ) ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - 52 * + COUNT( * ) FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - 52 * + COUNT ( * ) FROM tab1
----
-156

query I rowsort
SELECT - col2 * - col2 * ( - col1 ) FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8478
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col1 * - + 33 NOT BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-8478
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 * - + 33 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL 36 * + + col2 FROM tab2
----
1440
2088
828

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT - ( col2 ) * + col0 DIV col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8480
SELECT - ( col2 ) * + col0 / col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT + 85 FROM tab0 WHERE NOT + 90 + + - 84 IS NULL
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8482
SELECT + + col0, col0 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - col0 * col0 BETWEEN NULL AND + - 75
----

skipif mysql # not compatible
query II rowsort label-8482
SELECT + + col0, col0 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - col0 * col0 BETWEEN NULL AND + - 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * - col2 AND col0
----

skipif mysql # not compatible
query I rowsort label-8483
SELECT - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * - col2 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 41 IS NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NOT + col1 IS NULL )
----
-15
-87
-97

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 21 * col1 col2 FROM tab2 cor0
----
1117
1482
1681

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 90 * + - 50 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL 11 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL 11 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT 80 * + SUM( DISTINCT - 40 ) + 46 AS col1 FROM tab2 AS cor0
----
-3154

skipif mysql # not compatible
query I rowsort label-8490
SELECT 80 * + SUM ( DISTINCT - 40 ) + 46 AS col1 FROM tab2 AS cor0
----
-3154

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT + SUM( ( + ( col0 ) ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-8491
SELECT + SUM ( ( + ( col0 ) ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
230

query I rowsort
SELECT ALL - col2 + 1 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT ALL 49 * - col1 * - 95 + 1 + col2 FROM tab0 AS cor0
----
377103
4755
97766

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - 15 IS NOT NULL ) OR NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * 13 + - 52 FROM tab1
----
1053
1131
611

query II rowsort
SELECT 51 + col0 - - ( + col1 ) AS col1, 70 FROM tab0
----
147
70
149
70
159
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT + COUNT( * ) * 74 * + SUM( 70 ) FROM tab2
----
46620

skipif mysql # not compatible
query I rowsort label-8498
SELECT + COUNT ( * ) * 74 * + SUM ( 70 ) FROM tab2
----
46620

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT 99 * - COUNT( * ) FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-8499
SELECT 99 * - COUNT ( * ) FROM tab1
----
-297

query II rowsort
SELECT - col2 * - + col2 AS col2, + 37 * - - col1 * + col1 AS col0 FROM tab2
----
1600
219373
3364
166093
529
96237

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL + - col0 - - - 43 AS col1 FROM tab0 AS cor0
----
-130
-140
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8503
SELECT CAST( NULL AS SIGNED ) - + 78 + + - SUM( - col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT CAST ( NULL AS INTEGER ) - + 78 + + - SUM ( - col0 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 97 - + col0 + + + col1 FROM tab2
----
102
110
89

query I rowsort
SELECT - col0 + - 53 * + ( - col0 ) FROM tab1
----
2652
4420
4732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT DISTINCT col1 * + col1 / + CAST( NULL AS SIGNED ) / - 4 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT col1 * + col1 / + CAST ( NULL AS INTEGER ) / - 4 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT - MIN( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - MIN ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + - ( + 68 ) FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT 91 * + col1 FROM tab1 AS cor0
----
1274
4277
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * - col2 col2 FROM tab1 AS cor0
----
3481
4012
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT + SUM( 35 ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-8511
SELECT + SUM ( 35 ) FROM tab1
----
105

query III rowsort
SELECT ALL * FROM tab0 WHERE + 63 IS NULL
----

query II rowsort
SELECT 63 AS col2, col1 AS col1 FROM tab0
----
63
1
63
21
63
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT - col1 DIV - 5 AS col0 FROM tab1
----
1
2
9

skipif mysql # not compatible
query I rowsort label-8514
SELECT - col1 / - 5 AS col0 FROM tab1
----
1
2
9

query I rowsort
SELECT DISTINCT col1 * - + 52 AS col1 FROM tab1
----
-2444
-260
-728

query I rowsort
SELECT DISTINCT + 16 * - 25 + 13 FROM tab0 AS cor0
----
-387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT - - CAST( + 28 AS SIGNED ) * 46 AS col1 FROM tab1 AS cor0
----
1288
1288
1288

skipif mysql # not compatible
query I rowsort label-8517
SELECT - - CAST ( + 28 AS INTEGER ) * 46 AS col1 FROM tab1 AS cor0
----
1288
1288
1288

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - - 53 + + - col1 * + 87 * - 78 * - 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT 79 * COUNT( * ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-8519
SELECT 79 * COUNT ( * ) FROM tab1 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + ( + - col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8520
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + ( + - col2 ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8521
SELECT - col1 DIV - ( ( + + col1 ) ) + - ( + 71 ) * CAST( 78 AS SIGNED ) FROM tab0
----
-5537
-5537
-5537

skipif mysql # not compatible
query I rowsort label-8521
SELECT - col1 / - ( ( + + col1 ) ) + - ( + 71 ) * CAST ( 78 AS INTEGER ) FROM tab0
----
-5537
-5537
-5537

query I rowsort
SELECT DISTINCT + col0 * + - col1 * col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT ALL 55 * + col0 + + - col0 AS col2 FROM tab0 AS cor0
----
4698
5238
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8524
SELECT 1 DIV SUM( DISTINCT + col0 ) * + SUM( DISTINCT + col2 ) col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8524
SELECT 1 / SUM ( DISTINCT + col0 ) * + SUM ( DISTINCT + col2 ) col2 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL COUNT( 68 ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL COUNT ( 68 ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 + + + col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = + - 52
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 97 * - col1 < + 93
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8529
SELECT ALL CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8529
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab0
----
NULL
3

query I rowsort
SELECT col2 + ( 65 ) FROM tab1
----
124
133
161

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT + col2 + col1 * 44 DIV + col1 FROM tab2
----
102
67
84

skipif mysql # not compatible
query I rowsort label-8531
SELECT + col2 + col1 * 44 / + col1 FROM tab2
----
102
67
84

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT - - 53 * + ( + 46 ) + + ( + 88 ) FROM tab0 AS cor0
----
2526
2526
2526

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT DISTINCT + + SUM( col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT + + SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE 22 IS NOT NULL
----
14
47
5

query II rowsort
SELECT DISTINCT - - 14 AS col1, 17 * + + col1 FROM tab2 AS cor0
----
14
1139
14
1309
14
867

query I rowsort
SELECT + col0 FROM tab1 WHERE + 85 NOT BETWEEN col0 + col1 AND NULL
----
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 21 ) * + 59 col2 FROM tab0 WHERE NULL >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT ( 39 ) FROM tab1 WHERE NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8539
SELECT ( 39 ) FROM tab1 WHERE NULL <> + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 71 ) IN ( - col2 + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col2 FROM tab1
----
94

query III rowsort
SELECT * FROM tab2 WHERE NOT + 62 NOT IN ( - 0 + + 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT COUNT( * ) col2 FROM tab2 WHERE - col0 * - col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8543
SELECT COUNT ( * ) col2 FROM tab2 WHERE - col0 * - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT 35 FROM tab0 WHERE ( NULL ) NOT BETWEEN + col1 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col2 FROM tab1
----
97
97
97

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 IN ( col1 * - col2 )
----

query I rowsort
SELECT DISTINCT - 14 + - col1 FROM tab2
----
-65
-81
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * - 73 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT ALL CAST( NULL AS SIGNED ) / - col2 FROM tab1 WHERE NOT - col2 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 FROM tab1 WHERE NOT - col2 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE NOT - 56 * ( col2 * - col0 ) IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + 59 * col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL MAX( ALL col0 ) FROM tab0 WHERE NOT 55 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL MAX ( ALL col0 ) FROM tab0 WHERE NOT 55 >= NULL
----
NULL

query I rowsort
SELECT DISTINCT ( 13 ) AS col0 FROM tab1
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 63 - + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT - SUM( 94 ) AS col1 FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-8555
SELECT - SUM ( 94 ) AS col1 FROM tab1
----
-282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8556
SELECT ALL MIN( ALL CAST( col1 AS SIGNED ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL MIN ( ALL CAST ( col1 AS INTEGER ) ) FROM tab1
----
5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 77 * + col1 ) BETWEEN - col2 - col1 / + ( col0 ) AND NULL
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - col1 * - col1 + + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 + - col0 * 73 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT DISTINCT + COUNT( ALL - col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8560
SELECT DISTINCT + COUNT ( ALL - col0 ) col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab2 WHERE 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT - MAX( DISTINCT 61 ) * 50 AS col0 FROM tab1
----
-3050

skipif mysql # not compatible
query I rowsort label-8562
SELECT - MAX ( DISTINCT 61 ) * 50 AS col0 FROM tab1
----
-3050

query I rowsort
SELECT ALL - 42 + - col1 FROM tab1
----
-47
-56
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT SUM( ALL - 8 ) * 16 AS col1 FROM tab1
----
-384

skipif mysql # not compatible
query I rowsort label-8564
SELECT SUM ( ALL - 8 ) * 16 AS col1 FROM tab1
----
-384

query I rowsort
SELECT + 44 FROM tab0 AS cor0 WHERE NOT col2 * + col2 + + col0 / col0 IS NULL
----
44
44
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8566
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 col2 FROM tab2 AS cor0 WHERE NOT + 53 >= 77 * + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8566
SELECT ALL - CAST ( NULL AS REAL ) * col1 col2 FROM tab2 AS cor0 WHERE NOT + 53 >= 77 * + col2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) < ( col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT - 80 * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - 37 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - 80 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - 37 IS NULL
----
0

query I rowsort
SELECT 80 * col2 AS col2 FROM tab0 AS cor0
----
3760
7920
800

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 12 )
----

query I rowsort
SELECT ALL - 55 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT col0 + 49 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8574
SELECT * FROM tab0 AS cor0 WHERE + 61 + - CAST( + col0 AS SIGNED ) > ( + 71 )
----

skipif mysql # not compatible
query III rowsort label-8574
SELECT * FROM tab0 AS cor0 WHERE + 61 + - CAST ( + col0 AS INTEGER ) > ( + 71 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + + col0 >= + col1
----

query I rowsort
SELECT ALL - - col0 * + col0 + - 73 AS col1 FROM tab0 AS cor0
----
152
7496
9336

query I rowsort
SELECT col0 + col1 * - col0 FROM tab0 AS cor0
----
-1200
-1740
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 28 * - col1 + col0 col2 FROM tab2 AS cor0
----
-1382
-1801
-2092

query I rowsort
SELECT 21 * col2 + 48 * - col1 AS col1 FROM tab1 AS cor0
----
-828
1344
999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT + MIN( CAST( col1 AS SIGNED ) ) + 45 AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8580
SELECT + MIN ( CAST ( col1 AS INTEGER ) ) + 45 AS col0 FROM tab0 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT + - col2 * 72 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT + - col2 * 72 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT - + COUNT( * ) + MIN( DISTINCT col0 ) FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-8582
SELECT - + COUNT ( * ) + MIN ( DISTINCT col0 ) FROM tab1 cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT - col1 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT - col1 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 72 * col0 + - col2 AS col1 FROM tab1
----
3576
6061
6484

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT ALL col0 DIV + - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL col0 / + - col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT + col0 * - 85 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT + col0 * - 85 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT - COUNT( * ) * 58 AS col1 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-8587
SELECT - COUNT ( * ) * 58 AS col1 FROM tab0
----
-174

query I rowsort
SELECT ALL + col2 - - 17 FROM tab2
----
40
57
75

query I rowsort
SELECT ( + ( - col0 ) ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT DISTINCT + COUNT( * ) - 89 + + COUNT( * ) AS col2 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT + COUNT ( * ) - 89 + + COUNT ( * ) AS col2 FROM tab1
----
-83

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 75 BETWEEN - col1 + 32 AND 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT COUNT( * ) * 62 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-8594
SELECT COUNT ( * ) * 62 FROM tab2 AS cor0
----
186

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( col1 ) AND + ( col1 ) * + 66
----

query II rowsort
SELECT ALL + col2, 85 * - 2 FROM tab1
----
59
-170
68
-170
96
-170

query I rowsort
SELECT ALL + 18 + - 65 / + ( - 98 ) AS col1 FROM tab1 WHERE NOT + + col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + 80 ) * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT DISTINCT COUNT( * ) + + 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
38

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT COUNT ( * ) + + 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT + SUM( ALL 35 ) FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-8600
SELECT + SUM ( ALL 35 ) FROM tab0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8601
SELECT * FROM tab1 AS cor0 WHERE NOT ( 60 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8601
SELECT * FROM tab1 AS cor0 WHERE NOT ( 60 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8602
SELECT ALL COUNT( * ), COUNT( * ) + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-8602
SELECT ALL COUNT ( * ), COUNT ( * ) + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT ( col0 ) DIV 94 + 63 AS col1 FROM tab0 AS cor0
----
63
63
64

skipif mysql # not compatible
query I rowsort label-8603
SELECT ( col0 ) / 94 + 63 AS col1 FROM tab0 AS cor0
----
63
63
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT - COUNT( col2 ) FROM tab2 AS cor0 WHERE NOT col2 + + 91 * 15 NOT BETWEEN + col1 AND ( col1 + - CAST( - col0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT - COUNT ( col2 ) FROM tab2 AS cor0 WHERE NOT col2 + + 91 * 15 NOT BETWEEN + col1 AND ( col1 + - CAST ( - col0 AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8605
SELECT - col2, col2 DIV 20 * - 11 AS col0 FROM tab2 AS cor0
----
-23
-11
-40
-22
-58
-22

skipif mysql # not compatible
query II rowsort label-8605
SELECT - col2, col2 / 20 * - 11 AS col0 FROM tab2 AS cor0
----
-23
-11
-40
-22
-58
-22

query I rowsort
SELECT 29 * - 34 + - 19 AS col2 FROM tab1 AS cor0
----
-1005
-1005
-1005

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 27 > col2 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT MAX( - + col2 ) col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8608
SELECT MAX ( - + col2 ) col1 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col1 col1 FROM tab1 cor0
----
51
-14
85
-5
91
-47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 * + ( - 38 ) + - col2 ) NOT IN ( col1 + - 95 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT NULL IN ( 47 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL - MIN( + col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL - MIN ( + col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8613
SELECT ALL - SUM( DISTINCT + 29 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( CAST( - + col1 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL - SUM ( DISTINCT + 29 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( CAST ( - + col1 AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT + col2 DIV - - col2 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8614
SELECT + col2 / - - col2 AS col2 FROM tab0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - - col2
----

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8618
SELECT ( - COUNT( * ) ) DIV + COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8618
SELECT ( - COUNT ( * ) ) / + COUNT ( * ) FROM tab2
----
-1

query I rowsort
SELECT DISTINCT + + 89 AS col2 FROM tab1 AS cor0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col2 col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col1 IN ( - + col2 * col2 * 83 )
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col1 IN ( - + col2 * col2 * 83 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - - 25 AND ( col2 * col0 - 41 / + col0 - - col1 )
----

query I rowsort
SELECT 38 * - col0 + + col0 / - col0 FROM tab1 WHERE - + 78 / 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + MIN( - + 29 ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-8624
SELECT + MIN ( - + 29 ) FROM tab0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col1 FROM tab1
----
33
33
33

query III rowsort
SELECT * FROM tab1 WHERE NULL < - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL - COUNT( * ) - - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT - - ( - ( - 44 ) ) AS col2 FROM tab0 AS cor0
----
44

query I rowsort
SELECT - 38 * - col2 AS col1 FROM tab0 cor0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT MAX( ALL col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8630
SELECT MAX ( ALL col2 ) AS col2 FROM tab0 cor0
----
99

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE ( NULL ) < + 89
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - col1 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + + - 11 AS col0 FROM tab0 cor0
----
4
76
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT + 77 DIV col0 AS col1 FROM tab1 WHERE + + ( - col0 ) IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8634
SELECT + 77 / col0 AS col1 FROM tab1 WHERE + + ( - col0 ) IS NOT NULL
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 + + col0 + - ( col1 ) + + col0 col1 FROM tab2
----
111
121
153

query I rowsort
SELECT DISTINCT col2 * - col0 - col1 AS col2 FROM tab1
----
-4910
-5020
-6235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * - col0 * col0 * - 52 col1 FROM tab2 cor0
----
17039360
23400000
8802560

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT ALL + 94 DIV + col2 AS col1 FROM tab2 cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL + 94 / + col2 AS col1 FROM tab2 cor0
----
1
2
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - col0
----

query I rowsort
SELECT + 84 AS col2 FROM tab2 AS cor0 WHERE NOT - 52 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab0 WHERE + 5 * 49 >= ( NULL )
----

query I rowsort
SELECT DISTINCT + 75 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT - MAX( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8643
SELECT - MAX ( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
-77

query II rowsort
SELECT - - col0 * col0 AS col1, col2 FROM tab0 AS cor0
----
225
47
7569
10
9409
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT ALL + MAX( + 95 ) / - MAX( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL + MAX ( + 95 ) / - MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8646
SELECT DISTINCT - + ( - + 32 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col1 + + 97 IS NOT NULL
----
35

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT - + ( - + 32 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 + + 97 IS NOT NULL
----
35

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 < NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 84 * - - 35 + - col1 AS col2 FROM tab2
----
2863
2873
2889

query III rowsort
SELECT * FROM tab2 WHERE NOT + 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - 69 ) AS col1 FROM tab0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - - 75 < + col1 * - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - - 75 < + col1 * - + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT + + col0 - CAST( NULL AS SIGNED ) * + + ( + col2 ) AS col2 FROM tab2 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8653
SELECT + + col0 - CAST ( NULL AS INTEGER ) * + + ( + col2 ) AS col2 FROM tab2 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 <> - 66 * - + col2 + + col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col2, - 87 FROM tab1 cor0
----
59
-87
68
-87
96
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT COUNT( * ) AS col2, 31 + - 54 * + 12 AS col1 FROM tab2 AS cor0
----
3
-617

skipif mysql # not compatible
query II rowsort label-8656
SELECT COUNT ( * ) AS col2, 31 + - 54 * + 12 AS col1 FROM tab2 AS cor0
----
3
-617

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8657
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE CAST( NULL AS DECIMAL ) + + 69 IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8657
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE CAST ( NULL AS REAL ) + + 69 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <> - - col1
----

query I rowsort
SELECT 29 * 86 - - 65 AS col2 FROM tab2 AS cor0
----
2559
2559
2559

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( 65 ) = NULL
----

query II rowsort
SELECT ALL - + 94 + col2 AS col0, col2 FROM tab1 cor0
----
-26
68
-35
59
2
96

query I rowsort
SELECT DISTINCT + col0 - - col0 + + + 17 FROM tab0 AS cor0
----
191
211
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NULL IN ( - + ( - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NULL IN ( - + ( - col0 ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ( + 12 ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 - + col0 AND - col0
----
12

skipif mysql # not compatible
query I rowsort label-8665
SELECT ( + 12 ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 - + col0 AND - col0
----
12

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col2 * + + col2 IS NULL OR NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL + 46 * - COUNT( * ) * + - COUNT( * ) + 20 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3746

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL + 46 * - COUNT ( * ) * + - COUNT ( * ) + 20 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3746

query II rowsort
SELECT - 76 AS col2, - 24 + - - col0 AS col1 FROM tab2 AS cor0
----
-76
22
-76
40
-76
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8669
SELECT DISTINCT col2 * - + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT col2 * - + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8670
SELECT col1, - CAST( NULL AS SIGNED ) / - - 3 - + col1 AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8670
SELECT col1, - CAST ( NULL AS INTEGER ) / - - 3 - + col1 AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT - 84 * col1 AS col0 FROM tab0 AS cor0
----
-1764
-6804
-84

query I rowsort
SELECT col0 * - + 63 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-5394
-6014
-930

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + + - 17
----

query I rowsort
SELECT DISTINCT + 43 + col2 FROM tab0 AS cor0
----
142
53
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL + col1 * + ( - col1 ) AS col2 FROM tab2 WHERE NOT + - ( - - 84 ) NOT BETWEEN - col2 AND - CAST( + col2 AS SIGNED ) + + - col2 / col2
----

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + col1 * + ( - col1 ) AS col2 FROM tab2 WHERE NOT + - ( - - 84 ) NOT BETWEEN - col2 AND - CAST ( + col2 AS INTEGER ) + + - col2 / col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * col2 * + 59 AS col0 FROM tab1
----
-17405
-188564
-79296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8678
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 73 * + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + + col2 ) * + - 21 FROM tab0
----
-2079
-210
-987

query I rowsort
SELECT ALL - + col2 + + 58 + - + col2 + - col1 FROM tab0 WHERE NOT 0 IS NOT NULL
----

query I rowsort
SELECT + col0 + 69 FROM tab2
----
115
133
144

query I rowsort
SELECT - 43 + - col1 FROM tab0 AS cor0
----
-124
-44
-64

query I rowsort
SELECT + - 53 + col0 FROM tab0 cor0
----
-38
34
44

query I rowsort
SELECT + col1 + - 96 - col2 FROM tab1 AS cor0
----
-117
-150
-178

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - 92 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT MAX( + - 15 ) AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8687
SELECT MAX ( + - 15 ) AS col1 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT - - 61 - + AVG ( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0 WHERE 50 BETWEEN NULL AND - col1 * + + col2 + + - 24 - + - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT 74 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT 74 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 - - + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT + col2 - - col1 * + col1 FROM tab0 cor0
----
100
451
6608

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 + - - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT MAX( - 91 ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT MAX ( - 91 ) FROM tab2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT 35 DIV col2 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8695
SELECT 35 / col2 AS col0 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8696
SELECT ALL * FROM tab0 WHERE ( + + 95 * - + 7 * + - CAST( col0 AS SIGNED ) + + + 29 * + 12 * + 95 + - 23 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8696
SELECT ALL * FROM tab0 WHERE ( + + 95 * - + 7 * + - CAST ( col0 AS INTEGER ) + + + 29 * + 12 * + 95 + - 23 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT DISTINCT SUM( + + col1 ) AS col0, - COUNT( * ) FROM tab0
----
103
-3

skipif mysql # not compatible
query II rowsort label-8697
SELECT DISTINCT SUM ( + + col1 ) AS col0, - COUNT ( * ) FROM tab0
----
103
-3

query I rowsort
SELECT DISTINCT + 87 * + 36 FROM tab1
----
3132

query III rowsort
SELECT * FROM tab1 WHERE NOT 35 * - col2 NOT IN ( + 89 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IN ( + + 71 + 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT - + 60 + + + COUNT( - + 68 ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT - + 60 + + + COUNT ( - + 68 ) FROM tab1 AS cor0
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-8702
SELECT DISTINCT col2 * col0 + 29 AS col2, 80 DIV + 56 FROM tab2 AS cor0
----
1087
1
2589
1
4379
1

skipif mysql # not compatible
query II rowsort label-8702
SELECT DISTINCT col2 * col0 + 29 AS col2, 80 / + 56 FROM tab2 AS cor0
----
1087
1
2589
1
4379
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL 35 * + + 70 * + COUNT( * ) + + SUM( ALL col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
6681

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL 35 * + + 70 * + COUNT ( * ) + + SUM ( ALL col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
6681

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT 34 + - 59 DIV - col0 AS col0 FROM tab0
----
34
34
37

skipif mysql # not compatible
query I rowsort label-8704
SELECT 34 + - 59 / - col0 AS col0 FROM tab0
----
34
34
37

query I rowsort
SELECT DISTINCT + 73 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * 0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT DISTINCT ( - + col2 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT ( - + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + 17 * 13 FROM tab0
----
221
221
221

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT - SUM( DISTINCT + ( col2 ) ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8709
SELECT - SUM ( DISTINCT + ( col2 ) ) AS col2 FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8710
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8710
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - - CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col2 FROM tab2 AS cor0 WHERE NOT ( - - col2 + - - col2 * - 4 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT ALL + 94 * col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL + 94 * col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT ALL + 31 * col0 + - 88 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + 31 * col0 + - 88 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8714
SELECT + COUNT( * ) - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( + 34 ) AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT DISTINCT - 50 DIV - ( + 8 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT - 50 / - ( + 8 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 * + 5 - col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col1 FROM tab2 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col0 FROM tab2
----
-84
-84
-84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 16 + - 51 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT 30 * - - ( + - MIN( 93 ) ) * 81 + + ( - - SUM( - + col1 ) ) col0 FROM tab0
----
-226093

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8721
SELECT DISTINCT 30 * - - ( + - MIN ( 93 ) ) * 81 + + ( - - SUM ( - + col1 ) ) col0 FROM tab0
----
-226093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - - col2 / col2 + + col1 AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - col2 / col2 + + col1 AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL 32 AS col1, col2 AS col1 FROM tab2
----
32
23
32
40
32
58

query I rowsort
SELECT - col0 * 44 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3828
-4268
-660

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + + SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + + SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col2 ) BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = + col2 * + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + + 71 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8730
SELECT ALL col0 DIV + + 57 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL col0 / + + 57 AS col0 FROM tab0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 WHERE NOT + col1 + ( + - 65 ) IS NULL
----
14
47
5

query I rowsort
SELECT col0 + - 65 * + 56 FROM tab2
----
-3565
-3576
-3594

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8733
SELECT - 41 DIV COUNT( * ) DIV + ( - 22 ) + + COUNT( * ), - 99 + - ( + + ( + 90 ) ) * - 11 AS col1 FROM tab2
----
3
891

skipif mysql # not compatible
query II rowsort label-8733
SELECT - 41 / COUNT ( * ) / + ( - 22 ) + + COUNT ( * ), - 99 + - ( + + ( + 90 ) ) * - 11 AS col1 FROM tab2
----
3
891

query I rowsort
SELECT ( + 88 ) * 71 + col0 + - + col1 + + col0 + - - 65 AS col2 FROM tab0 cor0
----
6262
6466
6506

query I rowsort
SELECT DISTINCT + col0 + 91 FROM tab2 AS cor0
----
137
155
166

query I rowsort
SELECT DISTINCT - ( col1 ) + + col1 - + - col0 + + - 1 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8739
SELECT DISTINCT + 56 AS col2, - COUNT( * ) FROM tab0
----
56
-3

skipif mysql # not compatible
query II rowsort label-8739
SELECT DISTINCT + 56 AS col2, - COUNT ( * ) FROM tab0
----
56
-3

query I rowsort
SELECT ALL + 57 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL COUNT( DISTINCT - - 82 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL COUNT ( DISTINCT - - 82 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT - SUM( ALL - + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8743
SELECT - SUM ( ALL - + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT + 51 FROM tab0 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8744
SELECT + 51 FROM tab0 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT - + col0 * - 20 + + 50 FROM tab2 AS cor0
----
1330
1550
970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8746
SELECT DISTINCT - 40 DIV 11 * - COUNT( * ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8746
SELECT DISTINCT - 40 / 11 * - COUNT ( * ) col1 FROM tab1 AS cor0
----
9

query II rowsort
SELECT DISTINCT 81 AS col0, - col0 FROM tab1 AS cor0
----
81
-51
81
-85
81
-91

query I rowsort
SELECT - + col2 * 21 + col2 + - + 58 FROM tab2 AS cor0 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT - col1 * - col0 * col0 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT - 39 * + - 5 * + 11 FROM tab1
----
2145
2145
2145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8751
SELECT - ( + - ( 16 ) ) * - ( + - CAST( NULL AS SIGNED ) ), col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8751
SELECT - ( + - ( 16 ) ) * - ( + - CAST ( NULL AS INTEGER ) ), col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col1 ) col0, - col2 + 73 + + col2 * + col1 * + col2 + - col1 FROM tab1
----
-14
128987
-47
217286
-5
17414

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL <= - col2 + col1
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL <= - col2 + col1
----
0

query I rowsort
SELECT DISTINCT + + col1 * - 62 + col2 + - + col0 AS col2 FROM tab0 AS cor0
----
-1379
-4990
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 7, + col2 col0 FROM tab0 AS cor0
----
7
10
7
47
7
99

query I rowsort
SELECT DISTINCT col2 * + - 66 + - + 65 + + col0 - + col0 + - - 51 + col0 FROM tab1 AS cor0
----
-3823
-4411
-6299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT ALL CAST( NULL AS SIGNED ) + - col1 + 6 + + + 94 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 + 6 + + + 94 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT - 77 + + - col1 * + col1 AS col1, col0, - col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to c0c2353830f562d46c383f69f52775ce

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT ALL ( - + CAST( + + col0 AS SIGNED ) ) * - 24 + - - 24 + - ( - + col0 ) AS col0 FROM tab0
----
2199
2449
399

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL ( - + CAST ( + + col0 AS INTEGER ) ) * - 24 + - - 24 + - ( - + col0 ) AS col0 FROM tab0
----
2199
2449
399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8760
SELECT CAST( NULL AS SIGNED ) * - 25 / + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT CAST ( NULL AS INTEGER ) * - 25 / + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT ALL + col0 AS col0 FROM tab1 WHERE ( NOT - CAST( - col1 AS SIGNED ) IS NULL )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL + col0 AS col0 FROM tab1 WHERE ( NOT - CAST ( - col1 AS INTEGER ) IS NULL )
----
51
85
91

query I rowsort
SELECT DISTINCT + 17 FROM tab0 WHERE NOT + col0 IS NULL
----
17

query I rowsort
SELECT DISTINCT 46 FROM tab0, tab0 AS cor0
----
46

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 12 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 + + - col2 AS col0 FROM tab0 cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT - col1 - col0 DIV + 52 FROM tab2 AS cor0
----
-51
-68
-78

skipif mysql # not compatible
query I rowsort label-8766
SELECT - col1 - col0 / + 52 FROM tab2 AS cor0
----
-51
-68
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8767
SELECT - ( - CAST( NULL AS SIGNED ) ) - CAST( - 46 AS SIGNED ) + + SUM( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT - ( - CAST ( NULL AS INTEGER ) ) - CAST ( - 46 AS INTEGER ) + + SUM ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 40 ) * ( - col0 ) AS col1 FROM tab1
----
2040
3400
3640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 19 col1, 6 * + ( 93 ) * + col0 + + 60 AS col2 FROM tab0 AS cor0
----
19
48606
19
54186
19
8430

query I rowsort
SELECT ALL - - 34 * + 73 + 60 FROM tab1 AS cor0
----
2542
2542
2542

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8771
SELECT ALL - - CAST( NULL AS DECIMAL ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL - - CAST ( NULL AS REAL ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * - + 40 * - + col0 + 62 FROM tab0 AS cor0
----
3942
48662
73142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col1 FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL MIN( + + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL MIN ( + + col2 ) FROM tab1
----
59

query II rowsort
SELECT DISTINCT 9, + col2 - - 61 AS col0 FROM tab1
----
9
120
9
129
9
157

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 <> ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, - col2 col2 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT DISTINCT + - 16 FROM tab0 WHERE - 4 - - col1 BETWEEN NULL AND - col1 * - col1 * - col0
----

query I rowsort
SELECT DISTINCT + col0 + col1 + - 96 FROM tab0 AS cor0
----
0
12
2

query I rowsort
SELECT DISTINCT + col0 + + 54 + - - col0 AS col0 FROM tab0 AS cor0
----
228
248
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8781
SELECT DISTINCT + + 84 DIV - 10 + 99 - + COUNT( - + 30 ) AS col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT + + 84 / - 10 + 99 - + COUNT ( - + 30 ) AS col2 FROM tab1 AS cor0
----
88

query I rowsort
SELECT - 34 + + - ( + + col2 ) FROM tab2 AS cor0
----
-57
-74
-92

query I rowsort
SELECT DISTINCT 86 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
86

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + ( - 48 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT + - CAST( + col0 AS SIGNED ) * col2 + 57 FROM tab2 AS cor0
----
-1001
-2503
-4293

skipif mysql # not compatible
query I rowsort label-8785
SELECT + - CAST ( + col0 AS INTEGER ) * col2 + 57 FROM tab2 AS cor0
----
-1001
-2503
-4293

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT + SUM( ALL - - 19 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8786
SELECT + SUM ( ALL - - 19 ) FROM tab1 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 72 ) col2 FROM tab0 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 18 + 85 + - col1 + - 96 * + - 65, - col1 col0 FROM tab1 AS cor0
----
6296
-47
6329
-14
6338
-5

query I rowsort
SELECT 59 * - col0 FROM tab1 cor0
----
-3009
-5015
-5369

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8790
SELECT + - 5, col2 FROM tab2 AS cor0 WHERE 1 BETWEEN ( col1 ) * col2 * + col0 AND + - CAST( - col2 AS SIGNED ) + col1
----

skipif mysql # not compatible
query II rowsort label-8790
SELECT + - 5, col2 FROM tab2 AS cor0 WHERE 1 BETWEEN ( col1 ) * col2 * + col0 AND + - CAST ( - col2 AS INTEGER ) + col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8791
SELECT COUNT( * ) AS col1, + COUNT( * ) + - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8791
SELECT COUNT ( * ) AS col1, + COUNT ( * ) + - CAST ( NULL AS REAL ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

query I rowsort
SELECT - + col2 - + col2 + col0 + - 85 AS col2 FROM tab1 AS cor0
----
-118
-130
-226

query II rowsort
SELECT ALL 55 + - - 93 + - col0 * - col0, col2 AS col0 FROM tab1
----
2749
96
7373
59
8429
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8794
SELECT ( + - col0 ) DIV - col1 + col2 AS col2, - CAST( - + col2 AS SIGNED ) AS col0 FROM tab0
----
14
10
196
99
47
47

skipif mysql # not compatible
query II rowsort label-8794
SELECT ( + - col0 ) / - col1 + col2 AS col2, - CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0
----
14
10
196
99
47
47

query I rowsort
SELECT + col1 + + ( - + 79 ) - - col0 AS col1 FROM tab1
----
-14
11
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT COUNT( + + col0 ) + SUM( ALL - col0 ) - - SUM( + 1 ) AS col0 FROM tab2
----
-179

skipif mysql # not compatible
query I rowsort label-8796
SELECT COUNT ( + + col0 ) + SUM ( ALL - col0 ) - - SUM ( + 1 ) AS col0 FROM tab2
----
-179

query I rowsort
SELECT - col0 + + ( 10 ) AS col2 FROM tab2
----
-36
-54
-65

query I rowsort
SELECT DISTINCT - 82 * col1 * 15 FROM tab0
----
-1230
-25830
-99630

query I rowsort
SELECT - 28 + col1 FROM tab1
----
-14
-23
19

query I rowsort
SELECT ALL + col2 * + - col2 + + col2 + - col2 * + 41 FROM tab2 AS cor0
----
-1449
-3200
-5684

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL + ( - + MAX( - col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + ( - + MAX ( - col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT + MAX( ALL 13 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-8803
SELECT + MAX ( ALL 13 ) FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8804
SELECT * FROM tab2 WHERE NOT - - col0 BETWEEN + ( + + CAST( NULL AS SIGNED ) ) + + col0 * + - col0 * + col0 + - col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8804
SELECT * FROM tab2 WHERE NOT - - col0 BETWEEN + ( + + CAST ( NULL AS INTEGER ) ) + + col0 * + - col0 * + col0 + - col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 99 * - col2 AS col0 FROM tab0 AS cor0
----
-4653
-9801
-990

query I rowsort
SELECT ALL - col0 * + 12 AS col1 FROM tab1 cor0
----
-1020
-1092
-612

query I rowsort
SELECT DISTINCT + 5 * - + col2 FROM tab0 AS cor0
----
-235
-495
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT DISTINCT 18 * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT 18 * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8809
SELECT + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8809
SELECT + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 cor0
----
1

query I rowsort
SELECT 76 + + 30 FROM tab0
----
106
106
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT - AVG ( DISTINCT + 57 ) * - COUNT( * ) AS col2 FROM tab1 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT - AVG ( DISTINCT + 57 ) * - COUNT ( * ) AS col2 FROM tab1 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT DISTINCT 13 * - col1 FROM tab0
----
-1053
-13
-273

query I rowsort
SELECT 17 + 22 - + col1 * - 66 FROM tab0
----
105
1425
5385

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT 24 + + + SUM( DISTINCT 3 ) col1 FROM tab1
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8814
SELECT 24 + + + SUM ( DISTINCT 3 ) col1 FROM tab1
----
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 < NULL
----

query II rowsort
SELECT + col0 AS col2, 90 - col1 + + col2 FROM tab0 AS cor0
----
15
56
87
79
97
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT + CAST( col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8817
SELECT + CAST ( col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8818
SELECT CAST( NULL AS DECIMAL ) * + col0 AS col1, col1 + col1 + 66 AS col1 FROM tab0
----
NULL
108
NULL
228
NULL
68

skipif mysql # not compatible
query II rowsort label-8818
SELECT CAST ( NULL AS REAL ) * + col0 AS col1, col1 + col1 + 66 AS col1 FROM tab0
----
NULL
108
NULL
228
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT + COUNT( 10 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT + COUNT ( 10 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL 19 + col2 FROM tab0
----
118
29
66

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 >= - - col0 AND NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT 3 + - MIN( + - 64 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-8822
SELECT 3 + - MIN ( + - 64 ) FROM tab0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT DISTINCT - col1 + + col1 DIV - 97 DIV col0 * + ( - col0 ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - col1 + + col1 / - 97 / col0 * + ( - col0 ) AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - + col0 * 94 IS NULL
----

query I rowsort
SELECT ALL + + 47 AS col1 FROM tab2 cor0
----
47
47
47

query I rowsort
SELECT - col2 + + + col1 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8827
SELECT CAST( + ( - + col0 ) AS SIGNED ) + + - 18 * + col0 AS col1 FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
-1216
-1425
-874

skipif mysql # not compatible
query I rowsort label-8827
SELECT CAST ( + ( - + col0 ) AS INTEGER ) + + - 18 * + col0 AS col1 FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
-1216
-1425
-874

query I rowsort
SELECT + col0 * - + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT + COUNT( + col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8829
SELECT + COUNT ( + col2 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT DISTINCT - CAST( - + 52 AS SIGNED ) + + 48 * + ( - col0 ) + 70 + - - col2 AS col0 FROM tab2
----
-2063
-2910
-3420

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT - CAST ( - + 52 AS INTEGER ) + + 48 * + ( - col0 ) + 70 + - - col2 AS col0 FROM tab2
----
-2063
-2910
-3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT DISTINCT - col1 - + 31 + + + col0 + - col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT - col1 - + 31 + + + col0 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8833
SELECT ALL + + CAST( + + col0 AS DECIMAL ) FROM tab0 WHERE col0 BETWEEN 86 AND col1 * CAST( - + col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + + CAST ( + + col0 AS REAL ) FROM tab0 WHERE col0 BETWEEN 86 AND col1 * CAST ( - + col0 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8834
SELECT * FROM tab0 cor0 WHERE NOT col1 * - 1 * col1 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8834
SELECT * FROM tab0 cor0 WHERE NOT col1 * - 1 * col1 * + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - 63 FROM tab2 WHERE ( - 85 + - col2 / - 55 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( - 35 ) * - col2 AS col1 FROM tab2
----
1400
2030
805

query I rowsort
SELECT ALL col0 * + + col0 + - col1 * - + col0 AS col1 FROM tab1 AS cor0
----
12558
3315
7650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT ALL - - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT - col0 * + 82 + 58 FROM tab0 WHERE NOT ( col2 ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8839
SELECT - col0 * + 82 + 58 FROM tab0 WHERE NOT ( col2 ) >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 17 FROM tab1 WHERE NOT + + 11 * 4 IS NULL
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL - 83 * + - COUNT( * ) col1 FROM tab2 WHERE NOT + 78 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8841
SELECT ALL - 83 * + - COUNT ( * ) col1 FROM tab2 WHERE NOT + 78 * + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8842
SELECT ALL + 88 DIV + COUNT( * ) AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + 88 / + COUNT ( * ) AS col1 FROM tab1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL + 38 + + 84 + COUNT( * ) FROM tab0
----
125

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL + 38 + + 84 + COUNT ( * ) FROM tab0
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-8844
SELECT ALL col0 DIV 14 AS col0 FROM tab1
----
3
6
6

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL col0 / 14 AS col0 FROM tab1
----
3
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL + - COUNT( * ) * - 78 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + - COUNT ( * ) * - 78 FROM tab0 AS cor0
----
234

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) * - + col1 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 57 + - 38 FROM tab0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT 42 * + col2 FROM tab0
----
1974
4158
420

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 * - col2 BETWEEN + col2 AND + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8851
SELECT ALL - col2 DIV 79 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL - col2 / 79 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 64 + - col2 FROM tab0 AS cor0
----
-111
-163
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 75 * col0 + col1 - col2 * - + 91 / + - 29 * 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 11 - - 89 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT ALL - + ( - 21 ) + + col2 + + col2 FROM tab2 AS cor0
----
101
137
67

query I rowsort
SELECT ALL - 91 + 67 AS col0 FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT DISTINCT + COUNT( ALL col1 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8857
SELECT DISTINCT + COUNT ( ALL col1 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT MIN( DISTINCT - col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT MIN ( DISTINCT - col2 ) AS col0 FROM tab2
----
-58

query I rowsort
SELECT - col1 * + 29 AS col2 FROM tab1
----
-1363
-145
-406

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8860
SELECT * FROM tab0 AS cor0 WHERE NOT - 82 NOT IN ( - CAST( + - 33 AS SIGNED ) * + col1, - col1 + + col0, - col0, col1, - - 14 )
----

skipif mysql # not compatible
query III rowsort label-8860
SELECT * FROM tab0 AS cor0 WHERE NOT - 82 NOT IN ( - CAST ( + - 33 AS INTEGER ) * + col1, - col1 + + col0, - col0, col1, - - 14 )
----

query I rowsort
SELECT - + ( + + col1 ) AS col2 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL + - SUM( DISTINCT 97 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + - SUM ( DISTINCT 97 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT + 64 * + 40 * - + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN 71 AND ( + col1 * + 45 )
----
0

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + 64 * + 40 * - + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN 71 AND ( + col1 * + 45 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 94 AND - + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT + SUM( DISTINCT - 53 ) * + ( + ( + COUNT( * ) ) ) AS col1 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-8865
SELECT + SUM ( DISTINCT - 53 ) * + ( + ( + COUNT ( * ) ) ) AS col1 FROM tab2
----
-159

query I rowsort
SELECT - col2 * col2 * - col0 AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 38 * + - col1 AS col2 FROM tab2
----
-1938
-2546
-2926

query I rowsort
SELECT col0 + - 95 FROM tab0
----
-8
-80
2

query I rowsort
SELECT 76 + - 75 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8871
SELECT DISTINCT CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT + ( 37 ) * - + 91 AS col1, 88 FROM tab0
----
-3367
88
-3367
88
-3367
88

query I rowsort
SELECT ALL - col1 * ( + 6 ) AS col2 FROM tab2
----
-306
-402
-462

onlyif mysql # aggregate syntax: 
query II rowsort label-8874
SELECT COUNT( * ), 11 AS col0 FROM tab1
----
3
11

skipif mysql # not compatible
query II rowsort label-8874
SELECT COUNT ( * ), 11 AS col0 FROM tab1
----
3
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT - COUNT( 66 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT - COUNT ( 66 ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - 7 * - 29 AS col2, + 0 col2 FROM tab1 AS cor0 WHERE col0 + col2 IS NOT NULL
----
-11977
0
-13804
0
-19488
0

query II rowsort
SELECT - col0 - + 0 AS col0, col1 FROM tab0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8880
SELECT DISTINCT + COUNT( * ), 64 AS col2 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9
64

skipif mysql # not compatible
query II rowsort label-8880
SELECT DISTINCT + COUNT ( * ), 64 AS col2 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <= col2
----

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT ALL COUNT( ALL + col1 ) AS col1, - 58 AS col0 FROM tab2
----
3
-58

skipif mysql # not compatible
query II rowsort label-8883
SELECT ALL COUNT ( ALL + col1 ) AS col1, - 58 AS col0 FROM tab2
----
3
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT - + col1 * - col1 * - - col1 + + col0 + - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT - + col1 * - col1 * - - col1 + + col0 + - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT ALL - COUNT( * ) * - CAST( - MAX( - col0 ) AS SIGNED ) * + 95 * - + COUNT( * ) - + 92 FROM tab0 AS cor0
----
-12917

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - COUNT ( * ) * - CAST ( - MAX ( - col0 ) AS INTEGER ) * + 95 * - + COUNT ( * ) - + 92 FROM tab0 AS cor0
----
-12917

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT + + 4 DIV - col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT + + 4 / - col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8887
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col0 / + + CAST( - + col2 AS SIGNED ) + - col0 + - + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col0 / + + CAST ( - + col2 AS INTEGER ) + - col0 + - + col0 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 54 NOT BETWEEN NULL AND 90 - col0 + - col2 + - + col2 + + col0 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT ALL col1 DIV - + 83 * + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL col1 / - + 83 * + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8890
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 60 NOT IN ( + col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT MAX( ALL + col0 ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8892
SELECT DISTINCT MAX ( ALL + col0 ) col1 FROM tab2
----
75

query I rowsort
SELECT ALL - 56 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL - MAX( + col2 ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8894
SELECT ALL - MAX ( + col2 ) col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT - - ( SUM( ALL + col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8895
SELECT - - ( SUM ( ALL + col1 ) ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT - - SUM( + col2 ) * + 57 FROM tab2 AS cor0
----
6897

skipif mysql # not compatible
query I rowsort label-8896
SELECT - - SUM ( + col2 ) * + 57 FROM tab2 AS cor0
----
6897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col1 col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - ( col2 ) * col2, - ( + col2 ) + + col1 * - col1, col0, - col0, col0, + col1 )
----

query II rowsort
SELECT DISTINCT - col0 AS col0, 1 + + 41 AS col2 FROM tab1 AS cor0
----
-51
42
-85
42
-91
42

query I rowsort
SELECT DISTINCT - - col2 + - col0 * col1 FROM tab0 AS cor0
----
-1168
-1817
2

query I rowsort
SELECT DISTINCT + ( + 8 ) AS col2 FROM tab1 AS cor0
----
8

query I rowsort
SELECT DISTINCT - + 50 * + + col2 + - 48 FROM tab1 AS cor0
----
-2998
-3448
-4848

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT SUM( ALL - 64 ) FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8902
SELECT SUM ( ALL - 64 ) FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - 40 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8903
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - 40 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL 85 * - COUNT( * ) + - ( - + SUM( ALL + ( ( - - col0 ) ) ) ) + + + 55 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL 85 * - COUNT ( * ) + - ( - + SUM ( ALL + ( ( - - col0 ) ) ) ) + + + 55 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL MIN( + + ( - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL MIN ( + + ( - col2 ) ) FROM tab1
----
-96

query I rowsort
SELECT ALL - 6 + + - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-105
-16
-53

query III rowsort
SELECT + 70 + + - col2 AS col1, + col2 AS col0, col1 AS col0 FROM tab1
----
9 values hashing to bdaa2b3f9ee0ca70033ea0c690fae8ae

query I rowsort
SELECT ALL ( + + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT CAST( NULL AS SIGNED ) + - 48 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT CAST ( NULL AS INTEGER ) + - 48 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 9 + - + 99 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8911
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8912
SELECT ALL * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) * - col1 + - 99 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8912
SELECT ALL * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) * - col1 + - 99 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 21 + + + col2 * + col1 * + ( + - col2 ) FROM tab1
----
-129045
-17426
-217349

query II rowsort
SELECT col0 - - - 80 - + col2 AS col0, - col1 FROM tab0
----
-112
-81
-3
-21
-82
-1

query I rowsort
SELECT + 95 * - col1 AS col1 FROM tab2 AS cor0
----
-4845
-6365
-7315

query II rowsort
SELECT DISTINCT - col0 AS col2, ( + col1 ) * + - col1 AS col0 FROM tab0 AS cor0
----
-15
-6561
-87
-441
-97
-1

query I rowsort
SELECT + 0 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 + col2 - - 6 ) > - col2
----

query I rowsort
SELECT ALL - + 42 * - 50 AS col1 FROM tab1 AS cor0
----
2100
2100
2100

query I rowsort
SELECT col1 * - col2 * + 97 * - - 57 AS col1 FROM tab1 AS cor0
----
-1631055
-17670684
-7430976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 cor0 WHERE NOT ( 89 + + 47 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 62 * + col2 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT DISTINCT - + col1 DIV + ( col2 ) FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - + col1 / + ( col2 ) FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL SUM( DISTINCT col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL SUM ( DISTINCT col2 ) AS col1 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT - - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 WHERE NOT 59 + 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8925
SELECT - - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT 59 + 3 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8926
SELECT - SUM( + col1 ) AS col0, ( 99 ) + + - COUNT( * ) col2 FROM tab1
----
-66
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8926
SELECT - SUM ( + col1 ) AS col0, ( 99 ) + + - COUNT ( * ) col2 FROM tab1
----
-66
96

query I rowsort
SELECT ALL 55 * - col2 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8928
SELECT DISTINCT + CAST( NULL AS DECIMAL ), 59 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8928
SELECT DISTINCT + CAST ( NULL AS REAL ), 59 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * - 42 FROM tab0
----
-3654
-4074
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT + + MAX( DISTINCT - + 5 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT + + MAX ( DISTINCT - + 5 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT + col2 DIV + 24 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8931
SELECT + col2 / + 24 FROM tab0
----
0
1
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 ) < + col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL - + COUNT( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL - + COUNT ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 >= - ( - col1 ) * + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT - COUNT( * ) + 14 col1 FROM tab2 cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8935
SELECT - COUNT ( * ) + 14 col1 FROM tab2 cor0
----
11

query I rowsort
SELECT ALL ( - 31 ) + - 59 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT + 23 + + ( + COUNT( col1 ) ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT + 23 + + ( + COUNT ( col1 ) ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT - col0 + + 84 FROM tab0
----
-13
-3
69

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + ( - + col0 ) + col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT - 61 + - ( - + COUNT( * ) ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-8940
SELECT - 61 + - ( - + COUNT ( * ) ) FROM tab1
----
-58

query I rowsort
SELECT + col0 * + ( + 97 ) FROM tab2
----
4462
6208
7275

query I rowsort
SELECT col1 * - - 72 FROM tab0
----
1512
5832
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8943
SELECT COUNT( * ) * - CAST( + + MIN( ALL - + 75 ) AS SIGNED ) col2, - COUNT( * ) + - 59 FROM tab1
----
225
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8943
SELECT COUNT ( * ) * - CAST ( + + MIN ( ALL - + 75 ) AS INTEGER ) col2, - COUNT ( * ) + - 59 FROM tab1
----
225
-62

query I rowsort
SELECT ALL + 15 AS col0 FROM tab1 AS cor0 WHERE + ( - 93 ) * 91 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL + + MIN( ALL col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL + + MIN ( ALL col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT - 37 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT - 77 DIV col0 + + 1 AS col2 FROM tab0 AS cor0
----
-4
1
1

skipif mysql # not compatible
query I rowsort label-8947
SELECT - 77 / col0 + + 1 AS col2 FROM tab0 AS cor0
----
-4
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL - COUNT( * ) * - COUNT( + + col2 ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - COUNT ( * ) * - COUNT ( + + col2 ) AS col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + col2 ) * + col2 BETWEEN - - 76 AND + 62 * - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL + - COUNT( + + ( + col1 ) ) * - 29 AS col1 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + - COUNT ( + + ( + col1 ) ) * - 29 AS col1 FROM tab1 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 + + - col2 col0 FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT - COUNT( * ) * + MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8952
SELECT - COUNT ( * ) * + MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
-291

query I rowsort
SELECT - + 79 * + col1 + + 64 AS col2 FROM tab2 AS cor0
----
-3965
-5229
-6019

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 29 * - + col1 * - - 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 70 / + col0 + + - col1 = col0 * col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT + - MAX( + col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8956
SELECT + - MAX ( + col0 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT - col2 DIV + - 10 + - col1 AS col1 FROM tab0 AS cor0
----
-20
-77
8

skipif mysql # not compatible
query I rowsort label-8957
SELECT - col2 / + - 10 + - col1 AS col1 FROM tab0 AS cor0
----
-20
-77
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8958
SELECT DISTINCT - 49, + COUNT( * ) AS col1 FROM tab1
----
-49
3

skipif mysql # not compatible
query II rowsort label-8958
SELECT DISTINCT - 49, + COUNT ( * ) AS col1 FROM tab1
----
-49
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 >= + 68 * col1 * - + 93 + + 20 + - + 79 + 96
----

query II rowsort
SELECT + col2, - 88 * 48 FROM tab2
----
23
-4224
40
-4224
58
-4224

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 25 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, + 44 * - 59 col0 FROM tab0
----
10
-2596
47
-2596
99
-2596

query I rowsort
SELECT + 49 FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND - - 92 * - + ( 89 ) + + 27 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL + 49 * SUM( DISTINCT col2 ) AS col1 FROM tab1
----
10927

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + 49 * SUM ( DISTINCT col2 ) AS col1 FROM tab1
----
10927

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT ALL - + col1 DIV + - col2 AS col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL - + col1 / + - col2 AS col1 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT DISTINCT ( - ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT ( - ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col2 * - col1 * col2 FROM tab0 cor0
----
178929
2100
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8969
SELECT ALL + - MIN( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL + - MIN ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / + - col0 < + 52 + - + col1
----
46
51
23

query I rowsort
SELECT - col0 * - 6 FROM tab1
----
306
510
546

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - MAX( 53 ) AS col1 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - MAX ( 53 ) AS col1 FROM tab1
----
-53

query I rowsort
SELECT ALL + 76 AS col0 FROM tab1 WHERE 46 < - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + ( + 6 ) col0 FROM tab2
----
93
93
93

query I rowsort
SELECT ( col0 ) + + 86 FROM tab1
----
137
171
177

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL NOT BETWEEN col1 / + col0 + + ( - 58 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT COUNT( * ) + 90 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8977
SELECT COUNT ( * ) + 90 FROM tab2
----
93

query I rowsort
SELECT ALL - 73 * + 42 AS col0 FROM tab0
----
-3066
-3066
-3066

query I rowsort
SELECT col1 - col1 * col0 FROM tab1 WHERE NOT + 38 + 89 * 91 <= 70
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL SUM( 5 ) * 15 AS col2 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL SUM ( 5 ) * 15 AS col2 FROM tab2
----
225

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) <= ( col2 )
----

query I rowsort
SELECT DISTINCT col1 + + col1 * 61 AS col1 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + col0 <> - col1 / col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8984
SELECT - CAST( SUM( DISTINCT col2 ) AS SIGNED ) + 46 col0 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8984
SELECT - CAST ( SUM ( DISTINCT col2 ) AS INTEGER ) + 46 col0 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - COUNT( col0 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8985
SELECT - COUNT ( col0 ) col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT DISTINCT AVG ( - 46 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT AVG ( - 46 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8988
SELECT + col0 + col2 DIV col0 AS col1 FROM tab0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-8988
SELECT + col0 + col2 / col0 AS col1 FROM tab0
----
18
87
98

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN 7 AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 28 BETWEEN ( + col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT ALL - CAST( NULL AS SIGNED ) / - 33 + + col2 * 28 AS col0 FROM tab2 WHERE NOT + col1 IN ( + col2 + + col0 * + 92 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL - CAST ( NULL AS INTEGER ) / - 33 + + col2 * 28 AS col0 FROM tab2 WHERE NOT + col1 IN ( + col2 + + col0 * + 92 )
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT + 86 DIV - 16 AS col2 FROM tab1
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-8992
SELECT + 86 / - 16 AS col2 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT ALL 33 + col1 FROM tab2 WHERE + col1 NOT IN ( + ( - col0 ) )
----
100
110
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8994
SELECT - 76 DIV + col1 FROM tab0
----
-3
-76
0

skipif mysql # not compatible
query I rowsort label-8994
SELECT - 76 / + col1 FROM tab0
----
-3
-76
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab2 WHERE col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT - COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL - ( + 97 ) * 59 - col2 AS col0 FROM tab1
----
-5782
-5791
-5819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT DISTINCT - 11 DIV COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT - 11 / COUNT ( * ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 40 + ( - 27 ) AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 + - ( + 76 ) ) BETWEEN - col0 * col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT 69 * COUNT( * ) AS col0 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-9003
SELECT 69 * COUNT ( * ) AS col0 FROM tab1
----
207

query I rowsort
SELECT DISTINCT col1 + 84 * col2 FROM tab2
----
1983
3437
4939

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT COUNT( * ) * 1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9005
SELECT COUNT ( * ) * 1 FROM tab2
----
3

query I rowsort
SELECT + 62 + 79 AS col0 FROM tab2 AS cor0
----
141
141
141

onlyif mysql # DIV for integer division: 
query I rowsort label-9007
SELECT DISTINCT 11 + - col1 DIV - col2 FROM tab0 AS cor0
----
11
12
13

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT 11 + - col1 / - col2 FROM tab0 AS cor0
----
11
12
13

query I rowsort
SELECT + 89 + + 80 AS col1 FROM tab0 AS cor0
----
169
169
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9009
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT ALL + SUM( - col1 ) AS col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL + SUM ( - col1 ) AS col0 FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - SUM( 68 ) col0 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9011
SELECT - SUM ( 68 ) col0 FROM tab1 AS cor0
----
-204

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <> + 11
----

query I rowsort
SELECT + 40 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT - COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
-9

skipif mysql # not compatible
query I rowsort label-9014
SELECT - COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
-9

query I rowsort
SELECT col1 + + ( + 13 + col2 ) FROM tab1 WHERE NOT 77 NOT BETWEEN NULL AND 95 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT + COUNT( + 75 ) * 21 AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT + COUNT ( + 75 ) * 21 AS col2 FROM tab0 AS cor0
----
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 82 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT col0 * ( col1 ) FROM tab2 cor0 WHERE NOT 2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * 13 * + col0 FROM tab1
----
107653
33813
93925

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL - ( + MIN( DISTINCT col0 ) ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9022
SELECT ALL - ( + MIN ( DISTINCT col0 ) ) col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL + COUNT( * ) * - + ( 1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL + COUNT ( * ) * - + ( 1 ) FROM tab0
----
-3

query I rowsort
SELECT - 28 + + col2 * 62 AS col2 FROM tab2
----
1398
2452
3568

query I rowsort
SELECT DISTINCT 34 * + 80 AS col0 FROM tab2
----
2720

query III rowsort
SELECT * FROM tab2 WHERE NOT + 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT 7 + + MIN( + col2 ) col0 FROM tab2
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9027
SELECT 7 + + MIN ( + col2 ) col0 FROM tab2
----
30

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT + COUNT( * ) + - 94 AS col1 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT + COUNT ( * ) + - 94 AS col1 FROM tab0 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT ALL + CAST( NULL AS SIGNED ) + - 78 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL + CAST ( NULL AS INTEGER ) + - 78 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - 37 AS col2 FROM tab1 AS cor0
----
-122
-128
-88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - col2 IN ( col2 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT + col1 FROM tab0 AS cor0 WHERE + col2 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9033
SELECT + col1 FROM tab0 AS cor0 WHERE + col2 > - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 = - 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col1 col2 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT - col0 * - 1 AS col2 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9037
SELECT ALL - CAST( + ( - COUNT( * ) ) AS SIGNED ) * - SUM( col1 + 91 ) AS col1 FROM tab2
----
-1404

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) * - SUM ( col1 + 91 ) AS col1 FROM tab2
----
-1404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 WHERE NOT NULL BETWEEN 40 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT + col2 * + col0 * + col0 * ( 8 DIV col2 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9039
SELECT + col2 * + col0 * + col0 * ( 8 / col2 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND - 88
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 18 + + 23 FROM tab2 cor0
----
41

query I rowsort
SELECT col0 + 25 AS col2 FROM tab2 cor0
----
100
71
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + col1 * - col2 col2 FROM tab2 AS cor0 WHERE col0 NOT IN ( - 41 )
----
-115
-520
464

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 / 90 ) <> ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL - 84 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - 84 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT + col0 * + - col0 + + + 90 + - 66 FROM tab2 AS cor0
----
-2092
-4072
-5601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT DISTINCT + - 16 - + CAST( NULL AS SIGNED ) + + 99 / - col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + - 16 - + CAST ( NULL AS INTEGER ) + + 99 / - col0 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( - - col2 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9052
SELECT ALL - col1 - col0 + + col2 + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-52
-98
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - col1 - col0 + + col2 + col2 / - col0 AS col1 FROM tab0 AS cor0
----
-52
-98
0

query III rowsort
SELECT * FROM tab1 WHERE + + ( + col1 ) - - col0 >= + col0 * col1
----

query I rowsort
SELECT DISTINCT - 56 - + + ( col1 ) FROM tab2
----
-107
-123
-133

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9055
SELECT * FROM tab0 WHERE NULL <= CAST( + col0 AS DECIMAL ) * - 96 + col1 * + ( - ( + 91 ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-9055
SELECT * FROM tab0 WHERE NULL <= CAST ( + col0 AS REAL ) * - 96 + col1 * + ( - ( + 91 ) * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col1 FROM tab2
----
4
4
4

query I rowsort
SELECT + col2 * ( col0 ) AS col1 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT + 85 / col0 * 95 + - CAST( NULL AS SIGNED ) NOT BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT + 85 / col0 * 95 + - CAST ( NULL AS INTEGER ) NOT BETWEEN col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT - MIN( ALL - 52 ) AS col2 FROM tab1 cor0
----
52

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - MIN ( ALL - 52 ) AS col2 FROM tab1 cor0
----
52

query II rowsort
SELECT - col2 * + col2, 3 - col1 + + 53 * 23 AS col1 FROM tab0 AS cor0
----
-100
1201
-2209
1141
-9801
1221

query I rowsort
SELECT - 56 * + 37 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > ( col1 + + col1 )
----

query I rowsort
SELECT 67 * + - col1 AS col0 FROM tab1
----
-3149
-335
-938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE + + col1 * + + 63 <> ( + col2 ) AND NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - ( - 32 ) FROM tab0 AS cor0
----
-32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) >= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col1 FROM tab2 AS cor0
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( ( + + 9 ) ) col0 FROM tab2 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 75 + + col1 FROM tab1 AS cor0
----
-28
-61
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col0 col1 FROM tab2 cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT DISTINCT + + ( - 8 ) FROM tab0 AS cor0
----
-8

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL >= 66 )
----

query II rowsort
SELECT + 14 AS col0, col1 AS col0 FROM tab2
----
14
51
14
67
14
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9074
SELECT ALL + ( MAX( - col2 ) ) * - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + CAST( 89 AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + ( MAX ( - col2 ) ) * - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + CAST ( 89 AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
-27

query I rowsort
SELECT ALL + ( + - 57 ) AS col2 FROM tab0
----
-57
-57
-57

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT ( ( col2 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT ALL - ( - + MIN( DISTINCT - col2 ) ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL - ( - + MIN ( DISTINCT - col2 ) ) AS col2 FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col0 col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL - 0 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL - 0 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL - COUNT( * ) * - + 9 - + 46 AS col2 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - COUNT ( * ) * - + 9 - + 46 AS col2 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT + 40 + + 58 AS col2 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT ALL col0 + - 85 * col0 + - - 42 FROM tab0
----
-1218
-7266
-8106

query I rowsort
SELECT DISTINCT 44 * + 56 * - col1 AS col2 FROM tab2
----
-125664
-165088
-189728

query III rowsort
SELECT * FROM tab1 WHERE - + col1 NOT BETWEEN NULL AND + + 14
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT + 80 * - 87 <= - 66
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 >= col1
----
97
1
99

query I rowsort
SELECT + - col1 * + ( + col0 ) + 99 AS col0 FROM tab2 AS cor0
----
-2247
-4829
-4926

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT ALL + 16 + - - SUM( ALL 74 ) AS col2 FROM tab1 cor0
----
238

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL + 16 + - - SUM ( ALL 74 ) AS col2 FROM tab1 cor0
----
238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9090
SELECT ALL + 70 * COUNT( * ) AS col1 FROM tab0 cor0 WHERE 73 * + col1 + col0 < CAST( NULL AS SIGNED ) * + + col0
----
0

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL + 70 * COUNT ( * ) AS col1 FROM tab0 cor0 WHERE 73 * + col1 + col0 < CAST ( NULL AS INTEGER ) * + + col0
----
0

query I rowsort
SELECT 54 - - ( + + 72 ) FROM tab1 AS cor0
----
126
126
126

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9092
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - col1 NOT IN ( - col0, - ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-9092
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - col1 NOT IN ( - col0, - ( + col0 ) )
----

query I rowsort
SELECT DISTINCT 92 + - col1 AS col0 FROM tab0 AS cor0
----
11
71
91

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( NOT + 34 IS NULL )
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + 44 * - + 29 * + 86 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT ( + - CAST( - - col2 AS SIGNED ) ) * + 3 * - - col0 + + ( - 70 ) AS col0 FROM tab2
----
-13120
-3244
-7750

skipif mysql # not compatible
query I rowsort label-9096
SELECT ( + - CAST ( - - col2 AS INTEGER ) ) * + 3 * - - col0 + + ( - 70 ) AS col0 FROM tab2
----
-13120
-3244
-7750

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT + 36 DIV - col1 + + ( + + col1 ) AS col1 FROM tab0
----
-35
20
81

skipif mysql # not compatible
query I rowsort label-9097
SELECT + 36 / - col1 + + ( + + col1 ) AS col1 FROM tab0
----
-35
20
81

query I rowsort
SELECT DISTINCT + 21 - + + col0 FROM tab2
----
-25
-43
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9099
SELECT * FROM tab0 WHERE NOT CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9099
SELECT * FROM tab0 WHERE NOT CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 22, col2 AS col2 FROM tab1
----
-22
59
-22
68
-22
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT ALL 17 DIV + COUNT( * ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL 17 / + COUNT ( * ) FROM tab0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9102
SELECT ALL * FROM tab2 WHERE NULL IN ( CAST( NULL AS SIGNED ), + col1, - - 30 )
----

skipif mysql # not compatible
query III rowsort label-9102
SELECT ALL * FROM tab2 WHERE NULL IN ( CAST ( NULL AS INTEGER ), + col1, - - 30 )
----

query II rowsort
SELECT DISTINCT 62 * - - col0 * + col2, col0 + 97 AS col0 FROM tab1 WHERE NOT - col0 IS NULL
----
303552
148
310930
182
383656
188

query I rowsort
SELECT + 84 * col0 FROM tab0
----
1260
7308
8148

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9105
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + + - 37 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9105
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + + - 37 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <= ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT DISTINCT 3 DIV + 47 + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT 3 / + 47 + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL + + ( + + 79 ) AS col2 FROM tab1 cor0
----
79
79
79

query I rowsort
SELECT ALL - - 33 AS col1 FROM tab0 AS cor0 WHERE + 50 * col1 IS NOT NULL
----
33
33
33

query I rowsort
SELECT DISTINCT + - 63 * - 25 + + col1 * 82 AS col0 FROM tab2 AS cor0 WHERE NOT - 11 * + - col1 * 33 * - ( - - col2 ) > + col0 * + col0
----
5757
7069
7889

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 93 + - 96 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9112
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - 54 + + - col0 AS col2 FROM tab0
----
-141
-151
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + 22 AS col2 FROM tab0
----
109
119
37

query I rowsort
SELECT 92 * 70 AS col2 FROM tab0
----
6440
6440
6440

query III rowsort
SELECT * FROM tab2 WHERE NULL > - + col2
----

query I rowsort
SELECT DISTINCT - + ( + + col0 ) + - col2 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 35 ) col0 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL - 93 + + col1 * - - col1 AS col2 FROM tab1 AS cor0
----
-68
103
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL ( + ( + + COUNT( - col1 ) ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL ( + ( + + COUNT ( - col1 ) ) ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + - 98, + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-98
-37
-98
-44
-98
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT DISTINCT - ( + - COUNT( ALL + 4 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT - ( + - COUNT ( ALL + 4 ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 91, - 69 / ( + 7 ) + col1, - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT DISTINCT - + COUNT( * ), + MAX( + - col2 ) AS col2 FROM tab0 AS cor0
----
-3
-10

skipif mysql # not compatible
query II rowsort label-9125
SELECT DISTINCT - + COUNT ( * ), + MAX ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-3
-10

query I rowsort
SELECT ALL col1 * + 93 + - col2 FROM tab2 AS cor0
----
4720
6173
7121

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + + COUNT( col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9127
SELECT + + COUNT ( col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col1 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9130
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE + + col1 >= + col1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col1 * - 90 + col1 FROM tab0 WHERE + 3 <> + 71
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE 45 / col1 * - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE 45 / col1 * - col2 < NULL
----
0

query I rowsort
SELECT ALL - + col1 * - col1 * - 18 * - - col0 AS col1 FROM tab2 AS cor0
----
-2153628
-6060150
-6830208

onlyif mysql # DIV for integer division: 
query II rowsort label-9135
SELECT col0 DIV - 72 AS col2, - 5 FROM tab2 AS cor0
----
-1
-5
0
-5
0
-5

skipif mysql # not compatible
query II rowsort label-9135
SELECT col0 / - 72 AS col2, - 5 FROM tab2 AS cor0
----
-1
-5
0
-5
0
-5

query II rowsort
SELECT ALL + col2 AS col1, ( - 52 ) AS col1 FROM tab0
----
10
-52
47
-52
99
-52

query I rowsort
SELECT DISTINCT 34 * + col2 FROM tab1
----
2006
2312
3264

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE 33 + - ( - col2 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 55 col1 FROM tab2 AS cor0
----
-2530
-3520
-4125

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 12 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT COUNT( * ) + + 52 col1 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9141
SELECT DISTINCT COUNT ( * ) + + 52 col1 FROM tab1 AS cor0
----
55

query I rowsort
SELECT - 55 * 60 AS col2 FROM tab2 AS cor0
----
-3300
-3300
-3300

query II rowsort
SELECT ALL + col2, col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
87
47
15
99
97

query II rowsort
SELECT DISTINCT 65 + + col0 * + 23 AS col0, - 65 AS col2 FROM tab0 AS cor0
----
2066
-65
2296
-65
410
-65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 81 + + col2 <> ( + + 51 / + col0 - - - col0 * + col0 )
----

query I rowsort
SELECT + ( ( + - col2 ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - 19 + - 32 AS col1 FROM tab2
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9148
SELECT ALL * FROM tab2 WHERE NOT - 45 IN ( + + col0, - col0, + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9148
SELECT ALL * FROM tab2 WHERE NOT - 45 IN ( + + col0, - col0, + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT + - col2 + - 62 AS col0 FROM tab0 AS cor0
----
-109
-161
-72

query I rowsort
SELECT + - col1 * - 30 * - - 71 + - - ( ( col2 ) ) FROM tab0 AS cor0
----
172577
2229
44740

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 89 + - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9153
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL - + COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL - + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9155
SELECT * FROM tab1 WHERE NULL > + 52 / - + CAST( col1 AS SIGNED ) * - ( + col1 ) - + 39
----

skipif mysql # not compatible
query III rowsort label-9155
SELECT * FROM tab1 WHERE NULL > + 52 / - + CAST ( col1 AS INTEGER ) * - ( + col1 ) - + 39
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9156
SELECT + col2 - - CAST( - col1 AS SIGNED ) AS col0, + 88 DIV 50 * + 18 AS col2, - col2 + col1 FROM tab0 AS cor0
----
9 values hashing to 8ba316594c37fe010f1aa3ddd940d0ad

skipif mysql # not compatible
query III rowsort label-9156
SELECT + col2 - - CAST ( - col1 AS INTEGER ) AS col0, + 88 / 50 * + 18 AS col2, - col2 + col1 FROM tab0 AS cor0
----
9 values hashing to 8ba316594c37fe010f1aa3ddd940d0ad

query I rowsort
SELECT DISTINCT - - ( + + 33 ) AS col1 FROM tab2 cor0
----
33

query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab1 cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9159
SELECT DISTINCT - ( + col0 ) AS col1, + col1 + + col1 + - CAST( - 35 AS SIGNED ) FROM tab0
----
-15
197
-87
77
-97
37

skipif mysql # not compatible
query II rowsort label-9159
SELECT DISTINCT - ( + col0 ) AS col1, + col1 + + col1 + - CAST ( - 35 AS INTEGER ) FROM tab0
----
-15
197
-87
77
-97
37

query I rowsort
SELECT ALL col0 * + 98 FROM tab1
----
4998
8330
8918

query II rowsort
SELECT col2 AS col2, + col2 AS col0 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN - - 98 AND - col2
----

query I rowsort
SELECT ALL + + 27 * col1 AS col2 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT - 17 * COUNT( * ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT - 17 * COUNT ( * ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9165
SELECT + COUNT( * ) DIV - COUNT( * ) + + 0 + - 2 AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9165
SELECT + COUNT ( * ) / - COUNT ( * ) + + 0 + - 2 AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT col2 DIV + 52 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9166
SELECT col2 / + 52 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL - + col1 + - 86 AS col1 FROM tab0 AS cor0
----
-107
-167
-87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 49 * col2 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL + COUNT( * ) * + + 31 AS col0 FROM tab1 AS cor0 WHERE NULL <= - 45 / col1
----
0

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL + COUNT ( * ) * + + 31 AS col0 FROM tab1 AS cor0 WHERE NULL <= - 45 / col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9170
SELECT CAST( ( - COUNT( * ) ) AS SIGNED ) FROM tab1 WHERE ( ( NULL ) IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9170
SELECT CAST ( ( - COUNT ( * ) ) AS INTEGER ) FROM tab1 WHERE ( ( NULL ) IS NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL + ( + COUNT( * ) ) * + 39 * + + COUNT( * ) * - 17 FROM tab2
----
-5967

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL + ( + COUNT ( * ) ) * + 39 * + + COUNT ( * ) * - 17 FROM tab2
----
-5967

query I rowsort
SELECT col1 + + col1 * 0 * col0 + + ( - 65 ) AS col1 FROM tab0
----
-44
-64
16

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT col2 - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9175
SELECT col2 - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT col0 + col1 AS col2, col0 AS col2 FROM tab2
----
141
64
142
75
97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT MAX( ALL + col0 ) + + - 29 + + - 10 AS col2 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9177
SELECT MAX ( ALL + col0 ) + + - 29 + + - 10 AS col2 FROM tab1
----
52

query I rowsort
SELECT ALL + 81 FROM tab1 cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL - COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - - 39 AS col0 FROM tab2 cor0
----
39
39
39

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 25 * + 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col0 FROM tab2 cor0
----
5
5
5

query II rowsort
SELECT + col0 * - col0 + - col2 + + + col2, col0 FROM tab0 AS cor0
----
-225
15
-7569
87
-9409
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT + 29 DIV MIN( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT + 29 / MIN ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL + COUNT( - - 92 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + COUNT ( - - 92 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9186
SELECT ( + 30 ) * + + CAST( - CAST( - 47 AS DECIMAL ) AS SIGNED ) AS col2 FROM tab1
----
1410
1410
1410

skipif mysql # not compatible
query I rowsort label-9186
SELECT ( + 30 ) * + + CAST ( - CAST ( - 47 AS REAL ) AS INTEGER ) AS col2 FROM tab1
----
1410
1410
1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9187
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( ALL + col0 ) * - ( COUNT( * ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9187
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( ALL + col0 ) * - ( COUNT ( * ) ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT 6 * - - COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT 6 * - - COUNT ( * ) FROM tab0
----
18

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab1 WHERE + + col0 IS NOT NULL
----
51
85
91

query II rowsort
SELECT + - col1 AS col2, + col2 * - 63 AS col2 FROM tab0 AS cor0
----
-1
-6237
-21
-630
-81
-2961

query I rowsort
SELECT ALL + ( + 45 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query II rowsort
SELECT DISTINCT col1, ( + - col2 ) FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT DISTINCT col0, + col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9194
SELECT - ( + col1 ), - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9194
SELECT - ( + col1 ), - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9195
SELECT ALL + 66 + + CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
117
151
157

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL + 66 + + CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
117
151
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT DISTINCT - - 18 + - CAST( - 96 AS SIGNED ) FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT - - 18 + - CAST ( - 96 AS INTEGER ) FROM tab0 AS cor0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT DISTINCT - - col1 * ( - - 11 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT - - col1 * ( - - 11 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT DISTINCT - + ( - + col0 ) - + col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - + ( - + col0 ) - + col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + SUM( 33 ) * - + 86 FROM tab0 AS cor0
----
-8514

skipif mysql # not compatible
query I rowsort label-9199
SELECT + SUM ( 33 ) * - + 86 FROM tab0 AS cor0
----
-8514

query I rowsort
SELECT ALL + + col0 + + + 6 + - - col2 AS col0 FROM tab2 cor0
----
110
139
75

query I rowsort
SELECT DISTINCT + ( - col0 ) - col2 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL - col2 - 26 AS col0 FROM tab0
----
-125
-36
-73

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE 52 IS NOT NULL
----
1
21
81

query II rowsort
SELECT 31 + 24 AS col2, col2 AS col1 FROM tab2 AS cor0
----
55
23
55
40
55
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9205
SELECT - 18 DIV + - col2 + col2 DIV col2 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9205
SELECT - 18 / + - col2 + col2 / col2 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ALL - + ( + 66 ) + MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL - + ( + 66 ) + MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
33

query I rowsort
SELECT - col0 * - + 82 FROM tab0 AS cor0 WHERE + 37 NOT BETWEEN 22 * 63 * + col2 * + col0 AND + + 39
----
1230
7134
7954

query I rowsort
SELECT - ( - 26 ) * - + col1 FROM tab0
----
-2106
-26
-546

query II rowsort
SELECT col0, col2 AS col0 FROM tab0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col0 FROM tab1 cor0
----
27
27
27

query II rowsort
SELECT DISTINCT - 90, col0 FROM tab1 AS cor0
----
-90
51
-90
85
-90
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9212
SELECT DISTINCT + ( - + CAST( - col2 AS SIGNED ) ), 47 col0 FROM tab2 cor0
----
23
47
40
47
58
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9212
SELECT DISTINCT + ( - + CAST ( - col2 AS INTEGER ) ), 47 col0 FROM tab2 cor0
----
23
47
40
47
58
47

query II rowsort
SELECT - 48, + col0 AS col0 FROM tab0 AS cor0
----
-48
15
-48
87
-48
97

query I rowsort
SELECT + - ( - + 76 ) AS col0 FROM tab1 AS cor0
----
76
76
76

query II rowsort
SELECT ALL 4 AS col2, - col1 FROM tab1 AS cor0
----
4
-14
4
-47
4
-5

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT col0 + + ( + - col2 ) IS NULL
----
-46
-64
-75

query II rowsort
SELECT col0 * col2, + col2 FROM tab1
----
4896
96
5015
59
6188
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT + - CAST( COUNT( + col0 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9218
SELECT + - CAST ( COUNT ( + col0 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9219
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col1 * + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9219
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col1 * + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT 87 * 88 FROM tab2
----
7656
7656
7656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 58 ) * + ( - 98 ) + - col2 + + ( col2 ) col2 FROM tab0
----
-5684
-5684
-5684

query I rowsort
SELECT - 49 + - 69 - + col1 + col2 * - col1 * col0 FROM tab2
----
-197315
-291635
-54127

query I rowsort
SELECT ALL + 67 + - col2 FROM tab0 AS cor0
----
-32
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT + MAX( - col2 ) + SUM( - col1 ) FROM tab2 cor0
----
-218

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT + MAX ( - col2 ) + SUM ( - col1 ) FROM tab2 cor0
----
-218

query I rowsort
SELECT ALL col2 + - - col0 AS col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col2 + + col2
----

query I rowsort
SELECT ALL + + 47 + - col2 AS col2 FROM tab1 AS cor0
----
-12
-21
-49

query I rowsort
SELECT col1 + + + col1 AS col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT + MAX( ALL - 8 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9230
SELECT + MAX ( ALL - 8 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT MIN( ( + - col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9231
SELECT MIN ( ( + - col2 ) ) FROM tab2
----
-58

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - - col1 BETWEEN - col0 AND 51
----
87
21
10

query II rowsort
SELECT ( col0 ) AS col2, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT - col1 AS col0, col2 AS col1, - 32 AS col1 FROM tab2
----
9 values hashing to 0a529484b669441f053d1f17cdd21cf0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9236
SELECT ALL + CAST( + + col1 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

query II rowsort
SELECT + col0, col0 AS col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL col0 * - 6 - - - col1 * - col1 FROM tab0
----
-581
-81
6471

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT 73 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT 73 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * + col0 * - col1 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9241
SELECT ALL - CAST( + col1 AS SIGNED ) DIV col1 * 26 FROM tab0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - CAST ( + col1 AS INTEGER ) / col1 * 26 FROM tab0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT + 95 + + 80 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
175

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT + COUNT( - 6 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT + COUNT ( - 6 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 54 * - col0, 30 col2 FROM tab2 AS cor0
----
2484
30
3456
30
4050
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT ALL + + col2 * 41 * + - CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-200736
-205615
-253708

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9246
SELECT ALL + + col2 * 41 * + - CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-200736
-205615
-253708

query I rowsort
SELECT + - col0 * + + 33 FROM tab2 AS cor0
----
-1518
-2112
-2475

query I rowsort
SELECT 49 * 87 + - col0 FROM tab2 AS cor0
----
4188
4199
4217

query I rowsort
SELECT - - ( - - col1 ) * + col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9250
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 * - col0 col0 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT MIN( + 88 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9252
SELECT MIN ( + 88 ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE ( NOT - 37 / + + col0 = - - col2 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9254
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + 75 * + - CAST( - + col2 AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-9254
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + 75 * + - CAST ( - + col2 AS INTEGER ) + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9255
SELECT DISTINCT 62 DIV + 8 + col1 * - + col0 col1, col2 col1 FROM tab1 AS cor0
----
-418
59
-4270
68
-707
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9255
SELECT DISTINCT 62 / + 8 + col1 * - + col0 col1, col2 col1 FROM tab1 AS cor0
----
-418
59
-4270
68
-707
96

query I rowsort
SELECT ALL - 21 * + col2 + + col1 + + + 11 AS col1 FROM tab0 AS cor0
----
-178
-2067
-895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT DISTINCT - 51 + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT - 51 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / + + ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT - MAX( DISTINCT 85 ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT - MAX ( DISTINCT 85 ) FROM tab2 AS cor0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT - + COUNT( * ) DIV COUNT( * ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9261
SELECT - + COUNT ( * ) / COUNT ( * ) FROM tab2 cor0
----
-1

query I rowsort
SELECT ALL + 10 * - + col1 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-10
-210
-810

query I rowsort
SELECT 4 * col1 + - col1 * ( - 43 ) AS col0 FROM tab2 AS cor0
----
2397
3149
3619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + + - col1 col0 FROM tab0 AS cor0
----
1134
1806
96

query I rowsort
SELECT + - col0 - + ( - + 12 ) + + - 7 AS col1 FROM tab0 AS cor0
----
-10
-82
-92

query I rowsort
SELECT 94 + - col1 + col2 + 41 + + 53 + - 20 * 24 * 24 + 1 AS col2 FROM tab0
----
-11233
-11342
-11365

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL COUNT( * ) * + - 84 col1 FROM tab0
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9267
SELECT ALL COUNT ( * ) * + - 84 col1 FROM tab0
----
-252

query I rowsort
SELECT col2 + + col0 * - col2 AS col2 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT + col0 * - col1 - + 58 FROM tab0
----
-1273
-155
-1885

query I rowsort
SELECT 46 * 43 AS col1 FROM tab0 AS cor0
----
1978
1978
1978

query I rowsort
SELECT ALL - 81 * + + 21 AS col2 FROM tab2 AS cor0
----
-1701
-1701
-1701

query I rowsort
SELECT col2 * 60 FROM tab2 cor0
----
1380
2400
3480

query I rowsort
SELECT ALL - + 25 * + 34 FROM tab1 AS cor0
----
-850
-850
-850

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 41 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT ALL 62 DIV - - ( col0 ) - 35 AS col0 FROM tab0 AS cor0
----
-31
-35
-35

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL 62 / - - ( col0 ) - 35 AS col0 FROM tab0 AS cor0
----
-31
-35
-35

query II rowsort
SELECT 89, col2 * - 28 AS col1 FROM tab1 cor0
----
89
-1652
89
-1904
89
-2688

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9277
SELECT + col0 AS col2, 44, ( CAST( - + 56 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
9 values hashing to 91c12df1c039471440a932e4ee10c30d

skipif mysql # not compatible
query III rowsort label-9277
SELECT + col0 AS col2, 44, ( CAST ( - + 56 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
9 values hashing to 91c12df1c039471440a932e4ee10c30d

onlyif mysql # DIV for integer division: 
query II rowsort label-9278
SELECT 93, col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
93
-1
93
-1
93
-1

skipif mysql # not compatible
query II rowsort label-9278
SELECT 93, col1 / - col1 AS col2 FROM tab1 AS cor0
----
93
-1
93
-1
93
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT DISTINCT + col2 DIV col0 DIV col0 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT + col2 / col0 / col0 AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL - + col1 AS col0, col1 * + col1 + + col2 + col0 * + col2 FROM tab1 AS cor0
----
-14
5188
-47
8465
-5
5099

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( ( + col2 * ( - - 99 ) IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-9281
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( ( + col2 * ( - - 99 ) IS NOT NULL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9282
SELECT DISTINCT - - col2 AS col1, + col0 AS col2 FROM tab2 WHERE NOT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-9282
SELECT DISTINCT - - col2 AS col1, + col0 AS col2 FROM tab2 WHERE NOT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col1 + - - col2 AS col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT + 70 + col0 + + col0 * + 39 AS col1 FROM tab2
----
1910
2630
3070

query I rowsort
SELECT DISTINCT + 12 * - - col2 FROM tab0
----
1188
120
564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT - COUNT( - col1 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9287
SELECT - COUNT ( - col1 ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ( SUM( col2 ) ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9288
SELECT ( SUM ( col2 ) ) AS col2 FROM tab2 AS cor0
----
121

query II rowsort
SELECT + + ( col1 ) AS col2, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT col2 * + - col2 - - - 63 - 39 * - + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-1138
-229
-7290

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9291
SELECT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 78 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, 74 * 48 * col1 * + col2 col2 FROM tab2 AS cor0
----
-23
4166496
-40
10940160
-58
13803072

query I rowsort
SELECT DISTINCT + col2 * - - 5 + - col2 * + col2 AS col0 FROM tab1 cor0
----
-3186
-4284
-8736

query I rowsort
SELECT ALL - + col2 + + - col1 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 53 + col0 IN ( + 19 / - col0 + - + col1 - - col0 )
----

query I rowsort
SELECT DISTINCT - 20 + col0 FROM tab2 cor0
----
26
44
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT - + COUNT( ALL ( + col1 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9298
SELECT - + COUNT ( ALL ( + col1 ) ) FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT ALL - col2 DIV + col2 - 81 AS col0 FROM tab2 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL - col2 / + col2 - 81 AS col0 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT + 79 - ( - col2 ) + + 81 AS col1 FROM tab0
----
170
207
259

query I rowsort
SELECT ALL + col0 + + - col0 + - ( - - 99 ) * 50 + 98 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ( + MAX( + col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9302
SELECT ( + MAX ( + col2 ) ) FROM tab0
----
99

query I rowsort
SELECT - ( + ( - + col2 ) ) AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT - SUM( ALL + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT - SUM ( ALL + col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT - - 5 DIV + - col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9305
SELECT - - 5 / + - col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9306
SELECT ( - COUNT( * ) ) * CAST( NULL AS SIGNED ) * + MAX( ALL + col0 ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9306
SELECT ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) * + MAX ( ALL + col0 ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 75 * col2 FROM tab2 AS cor0
----
1725
3000
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9308
SELECT + CAST( + MIN( ALL - + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9308
SELECT + CAST ( + MIN ( ALL - + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT col1 * ( 90 ) * + col2 FROM tab0
----
18900
342630
8910

onlyif mysql # DIV for integer division: 
query I rowsort label-9310
SELECT ALL + 74 DIV ( - 89 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL + 74 / ( - 89 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT DISTINCT - MAX( - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT - MAX ( - col1 ) FROM tab1 AS cor0
----
5

query II rowsort
SELECT col2 * - + 8 + + 84, col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + ( + 84 ) FROM tab2 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL + - COUNT( - 48 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + - COUNT ( - 48 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + 14 FROM tab1 AS cor0 WHERE NOT col0 + - col2 IS NULL
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - - MIN( 89 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9316
SELECT - - MIN ( 89 ) FROM tab2 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9317
SELECT DISTINCT * FROM tab2 cor0 WHERE 27 >= CAST( col2 AS SIGNED )
----
46
51
23

skipif mysql # not compatible
query III rowsort label-9317
SELECT DISTINCT * FROM tab2 cor0 WHERE 27 >= CAST ( col2 AS INTEGER )
----
46
51
23

query I rowsort
SELECT ALL + col0 * + 40 + - 36 + col1 AS col1 FROM tab2 AS cor0
----
1855
2601
3031

query I rowsort
SELECT - - 57 * + col0 * + + col0 + 94 FROM tab2 AS cor0
----
120706
233566
320719

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( NOT col2 * - col2 >= NULL )
----

query I rowsort
SELECT DISTINCT col0 * - col0 * - col1 * + col2 AS col1 FROM tab2
----
12615680
21858750
2482068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col1 FROM tab2 WHERE + + 98 * - - col0 + - col1 * - - col1 * col1 <= - col2
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9323
SELECT DISTINCT * FROM tab1 WHERE NOT 16 BETWEEN - + 32 + + + 25 * + + 84 / col2 - + 38 AND - - col0 * + CAST( NULL AS SIGNED ) - - col2 + 66 * - - col2 / - - 26 + + col2
----

skipif mysql # not compatible
query III rowsort label-9323
SELECT DISTINCT * FROM tab1 WHERE NOT 16 BETWEEN - + 32 + + + 25 * + + 84 / col2 - + 38 AND - - col0 * + CAST ( NULL AS INTEGER ) - - col2 + 66 * - - col2 / - - 26 + + col2
----

query I rowsort
SELECT DISTINCT col0 * + 5 AS col2 FROM tab0
----
435
485
75

query I rowsort
SELECT - col1 - + + 18 + - - col0 AS col1 FROM tab1 AS cor0
----
19
26
62

query II rowsort
SELECT ALL + 87 + + 31 AS col2, + col1 + - 81 FROM tab0 AS cor0
----
118
-60
118
-80
118
0

query I rowsort
SELECT - col0 - ( ( - 71 ) ) FROM tab1 AS cor0
----
-14
-20
20

query I rowsort
SELECT - + col2 - + col0 + + + 27 FROM tab1 AS cor0
----
-117
-120
-132

query II rowsort
SELECT DISTINCT + ( - col2 ) + + col2 AS col2, - 3 AS col2 FROM tab1 AS cor0
----
0
-3

query II rowsort
SELECT + col0 + 83 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
129
51
147
77
158
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( + col2 ) col0, col1 * + col0 FROM tab0 AS cor0
----
10
1827
47
1215
99
97

query II rowsort
SELECT ALL - col1, + ( + col0 ) AS col0 FROM tab2
----
-51
46
-67
75
-77
64

query III rowsort
SELECT ALL * FROM tab1 WHERE 26 - + ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9334
SELECT ALL col1 * - + col1 * + col0 DIV col0 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL col1 * - + col1 * + col0 / col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9335
SELECT ALL 25 DIV - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL 25 / - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9336
SELECT DISTINCT 72, + COUNT( * ) + - - 66 AS col2 FROM tab0
----
72
69

skipif mysql # not compatible
query II rowsort label-9336
SELECT DISTINCT 72, + COUNT ( * ) + - - 66 AS col2 FROM tab0
----
72
69

onlyif mysql # DIV for integer division: 
query II rowsort label-9337
SELECT + col2 AS col2, col2 DIV + + 95 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-9337
SELECT + col2 AS col2, col2 / + + 95 FROM tab2
----
23
0
40
0
58
0

query II rowsort
SELECT DISTINCT + col1, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT MIN( - col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9339
SELECT MIN ( - col2 ) col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9340
SELECT ALL 67 AS col1, CAST( NULL AS SIGNED ) * + 36 * + CAST( + 29 AS SIGNED ) / - + col2 AS col1 FROM tab0 AS cor0
----
67
NULL
67
NULL
67
NULL

skipif mysql # not compatible
query II rowsort label-9340
SELECT ALL 67 AS col1, CAST ( NULL AS INTEGER ) * + 36 * + CAST ( + 29 AS INTEGER ) / - + col2 AS col1 FROM tab0 AS cor0
----
67
NULL
67
NULL
67
NULL

query I rowsort
SELECT ( - 18 ) AS col1 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT DISTINCT 57 * - - col2 AS col1 FROM tab2
----
1311
2280
3306

query I rowsort
SELECT - 71 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 33 IS NULL
----

query I rowsort
SELECT ALL 2 + + col2 * - - ( - - col0 ) AS col0 FROM tab2 AS cor0 WHERE + ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT DISTINCT - 57 * - 89 + + ( ( - CAST( + 33 AS SIGNED ) ) ) FROM tab2 AS cor0
----
5040

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT - 57 * - 89 + + ( ( - CAST ( + 33 AS INTEGER ) ) ) FROM tab2 AS cor0
----
5040

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND + + col0 * + col2
----

query I rowsort
SELECT 8 + + ( - col2 ) FROM tab0
----
-2
-39
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9349
SELECT - COUNT( * ) + - 25 * - 55 - CAST( NULL AS DECIMAL ) + + COUNT( * ) * - AVG ( DISTINCT - + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT - COUNT ( * ) + - 25 * - 55 - CAST ( NULL AS REAL ) + + COUNT ( * ) * - AVG ( DISTINCT - + col1 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 17 * - + 50 FROM tab0
----
-850

query II rowsort
SELECT - col1 AS col0, + col1 * - col2 FROM tab2
----
-51
-1173
-67
-3886
-77
-3080

query I rowsort
SELECT + 46 AS col1 FROM tab1 AS cor0 WHERE NULL <> - col2 + + - 48 + col1 / col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9353
SELECT ALL - 49 AS col1, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-49
-3

skipif mysql # not compatible
query II rowsort label-9353
SELECT ALL - 49 AS col1, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-49
-3

query I rowsort
SELECT DISTINCT + col1 + - - col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT - + col2 + + 67 FROM tab0 cor0 WHERE col0 + + col0 + - col2 * + + col0 <> NULL
----

query I rowsort
SELECT ALL 96 * + col2 - - col0 AS col0 FROM tab2
----
2254
3904
5643

query I rowsort
SELECT ALL + 4 + - 1 * + - col1 * - 9 * + + col1 FROM tab1 cor0
----
-1760
-19877
-221

query I rowsort
SELECT DISTINCT 9 * col2 * - col1 FROM tab0 AS cor0
----
-1890
-34263
-891

query I rowsort
SELECT ALL + col2 * + + col2 * - - 15 FROM tab2 AS cor0
----
24000
50460
7935

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 18 <> + 83
----

query II rowsort
SELECT DISTINCT + + ( + col2 ), - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9362
SELECT ( + COUNT( * ) ) DIV 14 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9362
SELECT ( + COUNT ( * ) ) / 14 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9363
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
81

query I rowsort
SELECT - 22 * - 94 * 9 * - 9 FROM tab0 cor0
----
-167508
-167508
-167508

query I rowsort
SELECT DISTINCT - 21 * - 22 * col1 * + col0 FROM tab1 AS cor0
----
196350
1975974
329868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9366
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - CAST( NULL AS SIGNED ) AND + ( + - col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-9366
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - CAST ( NULL AS INTEGER ) AND + ( + - col2 )
----
-3

query I rowsort
SELECT + 0 + - col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( - 77 ) col0 FROM tab2 WHERE ( col0 ) IS NULL
----
NULL

query I rowsort
SELECT ALL - + 0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT CAST( + CAST( NULL AS SIGNED ) 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-9371
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 32 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + + col0 * col2 - 15 + + + col2 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - + 61 * + col1 AS col0 FROM tab0 AS cor0
----
-1281
-4941
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - COUNT( * ) + + 16 + - + 86 col2 FROM tab0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9375
SELECT ALL - COUNT ( * ) + + 16 + - + 86 col2 FROM tab0
----
-73

query I rowsort
SELECT DISTINCT + 88 * col1 + col2 AS col1 FROM tab0
----
1858
187
7175

query III rowsort
SELECT * FROM tab0 WHERE NULL < + - col1 + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9378
SELECT ALL col2 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL col2 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT + col1 DIV + col0 + + col2 + + col2 AS col2 FROM tab0 AS cor0
----
198
20
99

skipif mysql # not compatible
query I rowsort label-9379
SELECT + col1 / + col0 + + col2 + + col2 AS col2 FROM tab0 AS cor0
----
198
20
99

query I rowsort
SELECT DISTINCT col1 + + + col0 + + 92 + - col2 * + col0 FROM tab0 AS cor0
----
-517
-670
-9413

query III rowsort
SELECT * FROM tab0 WHERE 59 * col1 - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT DISTINCT + 45 * COUNT( * ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT + 45 * COUNT ( * ) FROM tab0
----
135

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT 82 * - 72 IN ( + col1 )
----
23
40
58

query I rowsort
SELECT col2 * + + col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT ALL + SUM( - 15 ) AS col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL + SUM ( - 15 ) AS col1 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + col1 * 51 AS col1 FROM tab2 AS cor0
----
2601
3417
3927

query I rowsort
SELECT 90 * 19 AS col0 FROM tab0 AS cor0
----
1710
1710
1710

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT ALL 81 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL 81 / + col0 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - 97 * col2 - col1 * + 46 + + col2 / + col2 - + 93 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 * + - 92 AND - 64
----

query II rowsort
SELECT + 32 AS col0, col2 AS col1 FROM tab0
----
32
10
32
47
32
99

query II rowsort
SELECT + 50 AS col2, + col0 FROM tab1
----
50
51
50
85
50
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9393
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + CAST( col0 AS SIGNED ), - 20, - 65 )
----

skipif mysql # not compatible
query III rowsort label-9393
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + CAST ( col0 AS INTEGER ), - 20, - 65 )
----

query II rowsort
SELECT DISTINCT + col2, + 57 - - col1 * + + 4 FROM tab2
----
23
261
40
365
58
325

query II rowsort
SELECT + 22, - 27 + - col1 AS col1 FROM tab2
----
22
-104
22
-78
22
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT - SUM( DISTINCT col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9396
SELECT - SUM ( DISTINCT col0 ) AS col0 FROM tab1
----
-227

query II rowsort
SELECT ALL col1, 36 AS col1 FROM tab1
----
14
36
47
36
5
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9398
SELECT DISTINCT - 14 DIV + SUM( ALL + + col2 ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT - 14 / + SUM ( ALL + + col2 ) AS col2 FROM tab1 cor0
----
0

query II rowsort
SELECT DISTINCT + ( + col2 ), col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT - 84 * - COUNT( * ) FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-9400
SELECT - 84 * - COUNT ( * ) FROM tab1 AS cor0
----
252

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - - 3 >= - col0 * 89 AND NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT COUNT( * ) + + - MIN( col0 ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT COUNT ( * ) + + - MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT - ( + + col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col1 * 11, + ( - + col2 ) - - - col0 + - 53 * + + col0 - + col1 + + + col2, ( + + col0 ) )
----

query I rowsort
SELECT - ( - - 93 ) + + 1 FROM tab1 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE col2 = - + 44
----
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 = - + 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL - + MAX( DISTINCT col0 ) + - + 70 AS col0 FROM tab0 AS cor0
----
-167

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - + MAX ( DISTINCT col0 ) + - + 70 AS col0 FROM tab0 AS cor0
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL - SUM( ALL - col0 ) + - - 85 FROM tab2 cor0
----
270

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - SUM ( ALL - col0 ) + - - 85 FROM tab2 cor0
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT col0 + + col0 + - CAST( 94 AS SIGNED ) * 15 FROM tab2 AS cor0
----
-1260
-1282
-1318

skipif mysql # not compatible
query I rowsort label-9408
SELECT col0 + + col0 + - CAST ( 94 AS INTEGER ) * 15 FROM tab2 AS cor0
----
-1260
-1282
-1318

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - 37 * + 18 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-663

skipif mysql # not compatible
query I rowsort label-9409
SELECT - 37 * + 18 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-663

query I rowsort
SELECT DISTINCT 35 + + 19 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT ALL - 40 + COUNT( * ) col1 FROM tab1
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9411
SELECT ALL - 40 + COUNT ( * ) col1 FROM tab1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - 51 * - ( COUNT( + col1 ) ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-9412
SELECT - 51 * - ( COUNT ( + col1 ) ) AS col1 FROM tab1
----
153

query II rowsort
SELECT DISTINCT - 57, col2 AS col0 FROM tab1
----
-57
59
-57
68
-57
96

query I rowsort
SELECT + col0 * - + col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query II rowsort label-9415
SELECT ALL COUNT( * ) AS col0, - COUNT( ALL 8 ) AS col0 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-9415
SELECT ALL COUNT ( * ) AS col0, - COUNT ( ALL 8 ) AS col0 FROM tab1
----
3
-3

query I rowsort
SELECT DISTINCT - ( 18 ) AS col2 FROM tab1
----
-18

query I rowsort
SELECT DISTINCT - col0 + + + 74 FROM tab2 AS cor0
----
-1
10
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col0 * col0 ) IS NULL
----

query I rowsort
SELECT + ( + + col2 ) - + col0 + - col0 FROM tab1 AS cor0
----
-111
-114
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) - ( + SUM( ALL + - col1 ) ) col1 FROM tab2 cor0
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9421
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) - ( + SUM ( ALL + - col1 ) ) col1 FROM tab2 cor0
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-9422
SELECT DISTINCT - col2 DIV col1 + + col1 + col2 AS col1 FROM tab0 AS cor0
----
1
128
31

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT - col2 / col1 + + col1 + col2 AS col1 FROM tab0 AS cor0
----
1
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9423
SELECT col1 DIV col0 + - col0 * + col2 FROM tab0
----
-700
-870
-9603

skipif mysql # not compatible
query I rowsort label-9423
SELECT col1 / col0 + - col0 * + col2 FROM tab0
----
-700
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + COUNT( * ) + + 94 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-9424
SELECT + COUNT ( * ) + + 94 FROM tab2
----
97

query I rowsort
SELECT ALL 52 + ( col0 ) AS col0 FROM tab1
----
103
137
143

query I rowsort
SELECT ALL 20 - AVG ( - col1 ) FROM tab0 WHERE NOT col0 * col2 NOT IN ( 4 * + col1 + 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ( SUM( + col0 ) ) * 20 + 79 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT ( SUM ( + col0 ) ) * 20 + 79 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND ( col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) IN ( col2 * 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT 31 + ( - COUNT( * ) ) FROM tab2 WHERE NOT - col1 + col0 IS NULL
----
28

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT 31 + ( - COUNT ( * ) ) FROM tab2 WHERE NOT - col1 + col0 IS NULL
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + 31 + COUNT( * ) AS col2 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-9430
SELECT + 31 + COUNT ( * ) AS col2 FROM tab0
----
34

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT ( 10 ) IS NULL
----
14
47
5

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 77 + + ( - col2 + + 2 * + col1 ) * - col0 FROM tab1
----
-2289
3545
4242

onlyif mysql # DIV for integer division: 
query I rowsort label-9434
SELECT + col1 DIV + ( col2 ) + col0 DIV - 83 FROM tab0
----
-1
1
1

skipif mysql # not compatible
query I rowsort label-9434
SELECT + col1 / + ( col2 ) + col0 / - 83 FROM tab0
----
-1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT - ( ( - COUNT( * ) ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9435
SELECT - ( ( - COUNT ( * ) ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL 84 FROM tab0 WHERE + 49 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 / ( col0 ) + col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ALL - COUNT( * ) + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE 96 BETWEEN col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 74 ) IS NOT NULL
----

query I rowsort
SELECT ( 2 ) - - col1 * 75 FROM tab1
----
1052
3527
377

query III rowsort
SELECT * FROM tab1 WHERE NOT - 45 <= col2
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT - col0 * - ( - col2 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT ALL + col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN CAST( NULL AS SIGNED ) * + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN CAST ( NULL AS INTEGER ) * + col2 AND NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NOT ( + ( + 6 ) ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT ALL - COUNT( * ) * 20 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL - COUNT ( * ) * 20 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT col0 + + col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT + ( + 64 ) * + 98 + - COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
6272

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT + ( + 64 ) * + 98 + - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
6272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9451
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 81 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 42 + + col1 AS col0 FROM tab0 AS cor0
----
123
43
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9454
SELECT DISTINCT 75 * - ( CAST( - MAX( ALL - col2 ) AS SIGNED ) ) AS col2 FROM tab2
----
-1725

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT 75 * - ( CAST ( - MAX ( ALL - col2 ) AS INTEGER ) ) AS col2 FROM tab2
----
-1725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * - col2 col1 FROM tab2
----
1160
1682
667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT DISTINCT CAST( MAX( DISTINCT + col2 ) AS SIGNED ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT CAST ( MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab1
----
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + 66 NOT BETWEEN ( 70 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 73 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT - MAX( - 53 ) AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9459
SELECT - MAX ( - 53 ) AS col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT + 52 + - col2 AS col0 FROM tab2 AS cor0 WHERE - 40 * col0 + col0 NOT BETWEEN - 18 / col1 + - col0 AND ( - 72 )
----
-6
12
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT SUM( DISTINCT 72 ) AS col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9461
SELECT SUM ( DISTINCT 72 ) AS col1 FROM tab1 AS cor0
----
72

query I rowsort
SELECT + 53 FROM tab2 AS cor0 WHERE ( 52 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT - COUNT( * ) + + COUNT( ALL col1 ) AS col0 FROM tab1 cor0 WHERE - col2 * col2 + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT - COUNT ( * ) + + COUNT ( ALL col1 ) AS col0 FROM tab1 cor0 WHERE - col2 * col2 + + col2 IS NULL
----
0

query I rowsort
SELECT ALL 5 + col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN 46 AND col0 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 17 * - ( col1 ) col1 FROM tab1 AS cor0
----
-224
-752
-80

query I rowsort
SELECT DISTINCT col0 - - 13 FROM tab0 AS cor0
----
100
110
28

query I rowsort
SELECT DISTINCT + 63 + + 2 AS col2 FROM tab0 AS cor0
----
65

query I rowsort
SELECT - ( ( + col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 59 * - 67 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT COUNT( * ) - 86 AS col1 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9469
SELECT COUNT ( * ) - 86 AS col1 FROM tab0 AS cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT CAST( NULL AS SIGNED ) - + 45 * - 81 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT CAST ( NULL AS INTEGER ) - + 45 * - 81 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - - col2 AS col2 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + ( 68 ) FROM tab1
----
68

query I rowsort
SELECT ALL - 80 + - - 0 + - 90 FROM tab2
----
-170
-170
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL ( + - SUM( col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL ( + - SUM ( col1 ) ) FROM tab0
----
-103

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 = ( ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * col2 - + col0 AS col0 FROM tab0
----
13
2194
9704

query I rowsort
SELECT - col0 + - 82 AS col0 FROM tab2
----
-128
-146
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT - CAST( NULL AS SIGNED ) + - + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT - CAST ( NULL AS INTEGER ) + - + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT ALL - col2 - - col0 DIV col0 AS col2 FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL - col2 - - col0 / col0 AS col2 FROM tab0
----
-46
-9
-98

query I rowsort
SELECT - 3 * - col2 + 58 FROM tab1
----
235
262
346

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 26 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT col2 / - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT col2 / - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT ALL 49 DIV - ( - col0 * col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL 49 / - ( - col0 * col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL MIN( - 51 ) col0 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9485
SELECT ALL MIN ( - 51 ) col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT COUNT( * ) * - COUNT( * ) FROM tab2, tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9486
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab2, tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + 74 * col1 FROM tab0
----
1554
5994
74

query I rowsort
SELECT + col2 * - 14 * col1 FROM tab2 AS cor0
----
-16422
-43120
-54404

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT COUNT( * ) * + 28 AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT COUNT ( * ) * + 28 AS col0 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ( COUNT( * ) ) * COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9490
SELECT ( COUNT ( * ) ) * COUNT ( * ) FROM tab0 cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + col1 + + col2 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col1, 87 AS col1 FROM tab2 cor0
----
-51
87
-67
87
-77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT DISTINCT + SUM( ALL col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT + SUM ( ALL col2 ) FROM tab1
----
223

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 / - - col1 >= 35 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT 99 BETWEEN - - 32 / + col0 AND 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab2 WHERE - - col2 * + - col1 - - ( + 47 ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 77 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 77 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 67 = col2 * - col2 + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT DISTINCT + MIN( ALL - col1 ) * 47 AS col0 FROM tab1
----
-2209

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT + MIN ( ALL - col1 ) * 47 AS col0 FROM tab1
----
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT + ( - - COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9500
SELECT + ( - - COUNT ( * ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT - MAX( - - col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-9501
SELECT - MAX ( - - col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 / + + col1 * + col1 - - 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + 50 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - 16 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
16

query I rowsort
SELECT + - col0 * + + 88 FROM tab0 cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT 29 * ( CAST( NULL AS SIGNED ) ) * col0 * col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9507
SELECT 29 * ( CAST ( NULL AS INTEGER ) ) * col0 * col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9508
SELECT DISTINCT + - CAST( - + COUNT( * ) AS SIGNED ) + COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT + - CAST ( - + COUNT ( * ) AS INTEGER ) + COUNT ( * ) FROM tab2 cor0
----
6

query I rowsort
SELECT - col1 + - + ( + col2 ) FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT DISTINCT - 78 DIV + col1 + + col0 + 13 AS col1 FROM tab2 AS cor0
----
58
76
87

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT - 78 / + col1 + + col0 + 13 AS col1 FROM tab2 AS cor0
----
58
76
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND + - 75 * col2
----

query I rowsort
SELECT DISTINCT col2 * col0 * + col1 - + - col0 AS col1 FROM tab0
----
18357
57120
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT MAX( DISTINCT + + ( - + col0 ) ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9513
SELECT MAX ( DISTINCT + + ( - + col0 ) ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT ALL ( + col1 ) - col0 AS col1 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9515
SELECT DISTINCT 30 DIV - + col1, col1 FROM tab1
----
-2
14
-6
5
0
47

skipif mysql # not compatible
query II rowsort label-9515
SELECT DISTINCT 30 / - + col1, col1 FROM tab1
----
-2
14
-6
5
0
47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 + - col2 ) NOT BETWEEN - ( + - 14 ) AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + ( - col2 ) ) = ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT + col1 DIV - - col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9518
SELECT + col1 / - - col2 AS col0 FROM tab0 AS cor0
----
0
1
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 21 <> + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT + COUNT( * ) * - + ( + SUM( col2 ) ) + - COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-366

skipif mysql # not compatible
query I rowsort label-9520
SELECT + COUNT ( * ) * - + ( + SUM ( col2 ) ) + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-366

query I rowsort
SELECT ALL - 8 * + 49 AS col1 FROM tab2
----
-392
-392
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL - SUM( - 49 ) col1 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9522
SELECT ALL - SUM ( - 49 ) col1 FROM tab2 AS cor0
----
147

query I rowsort
SELECT - 15 * + col2 * - col2 FROM tab0 AS cor0
----
147015
1500
33135

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 / - col1 + + col2 NOT BETWEEN - ( col0 ) * col0 AND ( - 47 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9525
SELECT - ( + col0 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9525
SELECT - ( + col0 ) / + col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - col0 * - col1 * + 16 FROM tab1 AS cor0
----
11424
6800
68432

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 92 NOT BETWEEN 47 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9528
SELECT CAST( NULL AS SIGNED ) col0, - col2 * col0 AS col0 FROM tab0
----
NULL
-705
NULL
-870
NULL
-9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9528
SELECT CAST ( NULL AS INTEGER ) col0, - col2 * col0 AS col0 FROM tab0
----
NULL
-705
NULL
-870
NULL
-9603

query I rowsort
SELECT DISTINCT ( 17 ) FROM tab2 WHERE NOT col2 IN ( - 69 * + col2 - + col0 )
----
17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * - col2 + + + ( - col2 ) + - col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT COUNT( ALL 58 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT COUNT ( ALL 58 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9533
SELECT SUM( ALL + col2 ) DIV + - 34 + 88 AS col2, - 1 FROM tab0
----
84
-1

skipif mysql # not compatible
query II rowsort label-9533
SELECT SUM ( ALL + col2 ) / + - 34 + 88 AS col2, - 1 FROM tab0
----
84
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT + + MIN( - - 77 ) FROM tab2 WHERE - - col0 IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-9534
SELECT + + MIN ( - - 77 ) FROM tab2 WHERE - - col0 IS NOT NULL
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT DISTINCT col1 FROM tab1 WHERE + - CAST( - + col1 AS SIGNED ) BETWEEN NULL AND ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT col1 FROM tab1 WHERE + - CAST ( - + col1 AS INTEGER ) BETWEEN NULL AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT - - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9536
SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT CAST( ( - col2 ) AS SIGNED ) + - 87 col0 FROM tab2 AS cor0
----
-110
-127
-145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9537
SELECT CAST ( ( - col2 ) AS INTEGER ) + - 87 col0 FROM tab2 AS cor0
----
-110
-127
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9538
SELECT + COUNT( + ( + col1 ) ) DIV + COUNT( * ) + ( 12 ) col2 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9538
SELECT + COUNT ( + ( + col1 ) ) / + COUNT ( * ) + ( 12 ) col2 FROM tab0 AS cor0
----
13

query II rowsort
SELECT - - col1 AS col0, col2 FROM tab2 AS cor0 WHERE 4 >= + + 5 * + + col0 - - 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + + 92 * - col0 col1 FROM tab0 WHERE col2 NOT IN ( 87 )
----
-1465
-8089
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + - MIN( ALL - + col2 ) - 37 AS col2 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9541
SELECT + - MIN ( ALL - + col2 ) - 37 AS col2 FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT - 77 - - MIN( + - 75 ) FROM tab2 cor0
----
-152

skipif mysql # not compatible
query I rowsort label-9542
SELECT - 77 - - MIN ( + - 75 ) FROM tab2 cor0
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9543
SELECT - - col0 * col2 - col0 - - + 78 col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
768
NULL
861
NULL
9584
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9543
SELECT - - col0 * col2 - col0 - - + 78 col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
768
NULL
861
NULL
9584
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL + 9 + COUNT( 58 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL + 9 + COUNT ( 58 ) FROM tab2 AS cor0
----
12

query II rowsort
SELECT + - col0 + - col1, + col0 FROM tab0 AS cor0
----
-108
87
-96
15
-98
97

query I rowsort
SELECT DISTINCT + col0 - + 29 AS col1 FROM tab0
----
-14
58
68

query I rowsort
SELECT ALL - 85 + col0 - - 82 * + - col0 + 84 * - col0 FROM tab1
----
-14110
-15100
-8500

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - col1 + - 56 * + ( 40 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL - COUNT( ALL + 52 ) col2 FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9549
SELECT ALL - COUNT ( ALL + 52 ) col2 FROM tab2 WHERE NULL > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9550
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + COUNT( DISTINCT + col0 ) * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COUNT ( DISTINCT + col0 ) * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 * - ( + col2 ) AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT MIN( + col1 ) * - + SUM( + - col2 ) AS col0 FROM tab2
----
6171

skipif mysql # not compatible
query I rowsort label-9552
SELECT MIN ( + col1 ) * - + SUM ( + - col2 ) AS col0 FROM tab2
----
6171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT 59 * + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / 14 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT 59 * + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / 14 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 94 * + + col1 FROM tab0
----
-1974
-7614
-94

query I rowsort
SELECT - + col1 AS col1 FROM tab0 WHERE NOT - col1 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT + + 85 AS col2, SUM( + col0 ) - 40 FROM tab2 AS cor0
----
85
145

skipif mysql # not compatible
query II rowsort label-9556
SELECT + + 85 AS col2, SUM ( + col0 ) - 40 FROM tab2 AS cor0
----
85
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT ALL 42 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL 42 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT DISTINCT + + 67 DIV 88 * col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT + + 67 / 88 * col1 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9559
SELECT ALL + - col2, col0 * CAST( - col0 AS SIGNED ) + - + 45 + - col1 * - 53 * col0 AS col1 FROM tab2 cor0
----
-23
122177
-40
257043
-58
260655

skipif mysql # not compatible
query II rowsort label-9559
SELECT ALL + - col2, col0 * CAST ( - col0 AS INTEGER ) + - + 45 + - col1 * - 53 * col0 AS col1 FROM tab2 cor0
----
-23
122177
-40
257043
-58
260655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT - CAST( 50 AS SIGNED ) FROM tab0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-9560
SELECT - CAST ( 50 AS INTEGER ) FROM tab0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT 67 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
67

query II rowsort
SELECT ALL - col1 AS col1, col2 - + col0 FROM tab1 AS cor0
----
-14
45
-47
-23
-5
-26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 = + col1 / - - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL + ( - + MIN( DISTINCT col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + ( - + MIN ( DISTINCT col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT DISTINCT - MIN( DISTINCT - - col2 ) col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9565
SELECT DISTINCT - MIN ( DISTINCT - - col2 ) col0 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - - 63 ) * + col1 col2 FROM tab0 AS cor0
----
1323
5103
63

query I rowsort
SELECT DISTINCT - 1 + - col2 + col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT + 23 * COUNT( * ) + - COUNT( * ) + 92 AS col1 FROM tab2
----
158

skipif mysql # not compatible
query I rowsort label-9568
SELECT + 23 * COUNT ( * ) + - COUNT ( * ) + 92 AS col1 FROM tab2
----
158

query I rowsort
SELECT col1 + col2 + - 53 - 76 * col1 FROM tab2
----
-3855
-5020
-5788

query I rowsort
SELECT col1 + + 67 AS col0 FROM tab0
----
148
68
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9571
SELECT 52 DIV col0 + - - col1 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-9571
SELECT 52 / col0 + - - col1 FROM tab1
----
15
47
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN + ( col2 ) AND - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT - col2 DIV 17 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-9573
SELECT - col2 / 17 FROM tab0 AS cor0
----
-2
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT 65 * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT 65 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT DISTINCT 64 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT 64 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL - COUNT( - + 19 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL - COUNT ( - + 19 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT ALL col0 - - col0 FROM tab1 WHERE + 99 IN ( - ( + col1 ) )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + 15 + - col0 <> + col0
----
-1
-21
-81

query I rowsort
SELECT + + 22 FROM tab1 AS cor0 WHERE NOT col2 IN ( col0, - ( - 38 ) )
----
22
22
22

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 BETWEEN + col0 AND + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col2 * + col0 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL - 13 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # aggregate syntax: 
query II rowsort label-9585
SELECT + COUNT( * ) AS col1, + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-9585
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9586
SELECT ALL + ( + SUM( + 85 ) ) AS col0, + 48 AS col2 FROM tab0 AS cor0
----
255
48

skipif mysql # not compatible
query II rowsort label-9586
SELECT ALL + ( + SUM ( + 85 ) ) AS col0, + 48 AS col2 FROM tab0 AS cor0
----
255
48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9587
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 10 * CAST( NULL AS DECIMAL ) + - 34 <= NULL
----

skipif mysql # not compatible
query III rowsort label-9587
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 10 * CAST ( NULL AS REAL ) + - 34 <= NULL
----

query II rowsort
SELECT DISTINCT col1, 10 * + + col1 AS col2 FROM tab2 cor0
----
51
510
67
670
77
770

query I rowsort
SELECT DISTINCT ( col1 ) + + 91 AS col2 FROM tab1 AS cor0
----
105
138
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT + col1 * ( + 74 ) * + + col0 * + - col0 + - col1 DIV 95 + 19 * col0 FROM tab1 AS cor0
----
-2671635
-2693667
-28799589

skipif mysql # not compatible
query I rowsort label-9590
SELECT + col1 * ( + 74 ) * + + col0 * + - col0 + - col1 / 95 + 19 * col0 FROM tab1 AS cor0
----
-2671635
-2693667
-28799589

query I rowsort
SELECT DISTINCT - col2 + - ( - 98 ) AS col0 FROM tab0 AS cor0
----
-1
51
88

query I rowsort
SELECT DISTINCT + 64 + - - 84 FROM tab0 AS cor0
----
148

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 19 IS NULL
----

query II rowsort
SELECT DISTINCT col1, col2 - - + col2 AS col0 FROM tab0
----
1
198
21
20
81
94

query II rowsort
SELECT ALL 76 AS col1, - ( - + col0 ) AS col0 FROM tab2
----
76
46
76
64
76
75

query I rowsort
SELECT ALL 56 * 82 FROM tab2
----
4592
4592
4592

query I rowsort
SELECT - + 38 + + - ( - - 45 ) * + col1 AS col2 FROM tab1 AS cor0
----
-2153
-263
-668

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( + ( + col2 ) ) + + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT COUNT( * ) + SUM( col2 ) AS col0 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-9599
SELECT COUNT ( * ) + SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT - CAST( NULL AS SIGNED ) + - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT - CAST ( NULL AS INTEGER ) + - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 84 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 84 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 79 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 79 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 19 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ( col1 ) * 32 + 53 AS col1 FROM tab2 AS cor0
----
1685
2197
2517

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT DISTINCT - COUNT( * ) * + 24 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - COUNT ( * ) * + 24 FROM tab0 AS cor0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9606
SELECT col0 DIV 80 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9606
SELECT col0 / 80 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 + - col0 + 53 * + - col2 * + col0 / col2 * 77 BETWEEN NULL AND + 61
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT - ( + 13 ) DIV + 56 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9608
SELECT - ( + 13 ) / + 56 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + - col2 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col1 * + 64 + + 36 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( col1 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT COUNT( DISTINCT col2 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9612
SELECT COUNT ( DISTINCT col2 ) col2 FROM tab1
----
3

query I rowsort
SELECT 25 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query II rowsort
SELECT DISTINCT col2, col0 * - + col2 FROM tab1
----
59
-5015
68
-6188
96
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT MAX( DISTINCT + 99 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9615
SELECT MAX ( DISTINCT + 99 ) col2 FROM tab0
----
99

query I rowsort
SELECT + + 10 * col0 AS col1 FROM tab0 AS cor0
----
150
870
970

query II rowsort
SELECT ALL - col1 * col2 * - 0 AS col2, - 49 + ( + 46 ) * + col2 AS col2 FROM tab1 AS cor0
----
0
2665
0
3079
0
4367

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT DISTINCT + - col0 DIV - 52 + + col0 FROM tab1 AS cor0
----
51
86
92

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT + - col0 / - 52 + + col0 FROM tab1 AS cor0
----
51
86
92

query I rowsort
SELECT ALL + ( + + col2 ) FROM tab0 cor0 WHERE NOT 87 + + 77 IS NULL
----
10
47
99

query I rowsort
SELECT col0 * + ( + ( + col1 ) ) AS col2 FROM tab0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 37 * - - col0 ) = - 1 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 5 * ( 10 ) AS col0 FROM tab0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT DISTINCT + - COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + 33 + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
42

skipif mysql # not compatible
query I rowsort label-9624
SELECT + 33 + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT DISTINCT + 37 DIV - + ( col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT + 37 / - + ( col2 ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT SUM( + col2 ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-9626
SELECT SUM ( + col2 ) AS col1 FROM tab1 cor0
----
223

query I rowsort
SELECT + col1 + - + col1 + + 41 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT COUNT( * ) * 50 + + - MIN( DISTINCT + 20 ) AS col1 FROM tab2 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-9628
SELECT COUNT ( * ) * 50 + + - MIN ( DISTINCT + 20 ) AS col1 FROM tab2 AS cor0
----
130

query I rowsort
SELECT ALL - 15 + col2 * + col0 * + + ( 20 ) FROM tab2 AS cor0
----
21145
51185
86985

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9630
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, - CAST( NULL AS SIGNED ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-9630
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, - CAST ( NULL AS INTEGER ), - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9631
SELECT - 68 * + 26 + 32 - CAST( + COUNT( * ) AS SIGNED ) * + - MIN( - col0 ) / 13 * 99 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT - 68 * + 26 + 32 - CAST ( + COUNT ( * ) AS INTEGER ) * + - MIN ( - col0 ) / 13 * 99 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT COUNT( * ) + - MIN( ALL + - col2 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9632
SELECT COUNT ( * ) + - MIN ( ALL + - col2 ) FROM tab2 AS cor0
----
61

query I rowsort
SELECT col0 + + - 81 FROM tab0 WHERE NULL BETWEEN col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT COUNT( * ) * 80 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT COUNT ( * ) * 80 FROM tab0
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT - CAST( NULL AS SIGNED ) / - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT - CAST ( NULL AS INTEGER ) / - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 5 AS col1 FROM tab0
----
-235
-495
-50

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - + 53 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9639
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9639
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col0 - + ( + + 68 ) * + + col1 FROM tab1
----
-255
-3105
-901

query II rowsort
SELECT DISTINCT 97 AS col1, 50 * - + 95 + + 29 FROM tab1
----
97
-4721

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 62 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT + - col1 DIV - + ( - + col2 ) FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT + - col1 / - + ( - + col2 ) FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - + 78 * + - col2 * + - col1 AS col2 FROM tab1 AS cor0
----
-104832
-23010
-249288

query I rowsort
SELECT + col2 * 58 AS col2 FROM tab2
----
1334
2320
3364

query I rowsort
SELECT - 58 * + col2 * + col0 FROM tab2
----
-148480
-252300
-61364

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + col0 ) BETWEEN + col0 + ( + + 81 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT ( - CAST( - 64 AS SIGNED ) ) FROM tab0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-9648
SELECT ( - CAST ( - 64 AS INTEGER ) ) FROM tab0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9649
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
3

query I rowsort
SELECT - 43 + + - ( - - col1 ) AS col2 FROM tab1 WHERE NOT - col0 IS NULL
----
-48
-57
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT DISTINCT + + 27 DIV - ( col2 ) AS col1 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + + 27 / - ( col2 ) AS col1 FROM tab0 AS cor0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL + 73 + - COUNT( * ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL + 73 + - COUNT ( * ) FROM tab2 AS cor0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT + - COUNT( * ) * + CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9653
SELECT + - COUNT ( * ) * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT - + col1 + + 98 AS col2 FROM tab1 AS cor0
----
51
84
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9655
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 37 * col1 + - CAST( - col2 AS SIGNED ) + + col0 * + col0 = NULL )
----

skipif mysql # not compatible
query III rowsort label-9655
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 37 * col1 + - CAST ( - col2 AS INTEGER ) + + col0 * + col0 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT + ( - + COUNT( * ) ) * - 83 AS col0 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT + ( - + COUNT ( * ) ) * - 83 AS col0 FROM tab1
----
249

query II rowsort
SELECT DISTINCT 15 AS col2, 2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE 41 - - - col1 / - 15 IS NOT NULL
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 27 col0 FROM tab2 cor0
----
1080
1566
621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9660
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( DISTINCT + 61 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT + 61 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT DISTINCT - col1 + + col1 + 52 + CAST( NULL AS SIGNED ) * 22 + + + col1 / col1 * + + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT - col1 + + col1 + 52 + CAST ( NULL AS INTEGER ) * 22 + + + col1 / col1 * + + col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT + + ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9662
SELECT + + ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT + CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9663
SELECT + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + - col2 + 53 AS col2 FROM tab2 AS cor0
----
-5
13
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT 59 * + + col2 + - - CAST( NULL AS SIGNED ) / - + 70 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT 59 * + + col2 + - - CAST ( NULL AS INTEGER ) / - + 70 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - - 39 - col2 AS col2 FROM tab1 cor0
----
-153
-79
-97

query I rowsort
SELECT DISTINCT - ( + col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col1 FROM tab1 AS cor0 WHERE NULL = col1 - col1 + + 14 / + - 23 AND NOT + ( col0 ) >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL 69 + - - COUNT( * ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 69 + - - COUNT ( * ) FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT COUNT( * ) * - 0 FROM tab2, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT COUNT ( * ) * - 0 FROM tab2, tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT IN ( col2 + + col0 / ( + 3 ), col1 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 2 * + 23 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL 51 - SUM( DISTINCT + col1 ) * - - COUNT( * ) AS col0 FROM tab2
----
-534

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL 51 - SUM ( DISTINCT + col1 ) * - - COUNT ( * ) AS col0 FROM tab2
----
-534

query I rowsort
SELECT DISTINCT - ( + - col1 ) * + + col1 FROM tab1
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + + 63 NOT BETWEEN + col1 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT 86 * + 50 + + COUNT( * ) FROM tab0
----
4303

skipif mysql # not compatible
query I rowsort label-9676
SELECT 86 * + 50 + + COUNT ( * ) FROM tab0
----
4303

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT col0 DIV - col0 + - col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-9677
SELECT col0 / - col0 + - col1 FROM tab0 AS cor0
----
-2
-22
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 84 + - + 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE - 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT + AVG ( + 26 ) * - 63 * COUNT( - col1 ) FROM tab0 WHERE NOT col0 NOT IN ( - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT + AVG ( + 26 ) * - 63 * COUNT ( - col1 ) FROM tab0 WHERE NOT col0 NOT IN ( - 51 )
----
NULL

query I rowsort
SELECT 95 * col2 AS col2 FROM tab1
----
5605
6460
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT DISTINCT + SUM( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT + SUM ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL SUM( - - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL SUM ( - - col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT - + ( + 27 ) FROM tab0 AS cor0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT + 53 AS col2, col0 * + col1 FROM tab1 AS cor0 WHERE NOT ( NOT - 60 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9687
SELECT 97, - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
97
-51
97
-67
97
-77

skipif mysql # not compatible
query II rowsort label-9687
SELECT 97, - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
97
-51
97
-67
97
-77

query I rowsort
SELECT - 40 * - - col0 AS col2 FROM tab2
----
-1840
-2560
-3000

onlyif mysql # aggregate syntax: 
query II rowsort label-9689
SELECT - COUNT( * ) AS col0, - 54 FROM tab0
----
-3
-54

skipif mysql # not compatible
query II rowsort label-9689
SELECT - COUNT ( * ) AS col0, - 54 FROM tab0
----
-3
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9690
SELECT + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9690
SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) FROM tab0
----
NULL
3

query II rowsort
SELECT DISTINCT col2 AS col2, 2 FROM tab2
----
23
2
40
2
58
2

query I rowsort
SELECT ALL - 17 FROM tab2 AS cor0 WHERE 15 IS NULL
----

query II rowsort
SELECT + col0 * col0 AS col2, 85 FROM tab1 AS cor0 WHERE NOT 7 <> NULL
----

query I rowsort
SELECT ALL - col0 + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + 37 col2 FROM tab0 AS cor0
----
1
37
21
37
81
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9696
SELECT ALL - SUM( + col2 ) AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-121
NULL

skipif mysql # not compatible
query II rowsort label-9696
SELECT ALL - SUM ( + col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-121
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL COUNT( * ) col0 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-9697
SELECT ALL COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + MIN( ALL + col1 ) + + + 82 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9698
SELECT + MIN ( ALL + col1 ) + + + 82 FROM tab1
----
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * - 13 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT + col2 FROM tab2 AS cor0 WHERE NULL <> col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9700
SELECT + col2 FROM tab2 AS cor0 WHERE NULL <> col1 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL - MIN( + + 93 ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL - MIN ( + + 93 ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT + + 12 * 29 DIV - - col1 AS col0 FROM tab1 AS cor0
----
24
69
7

skipif mysql # not compatible
query I rowsort label-9702
SELECT + + 12 * 29 / - - col1 AS col0 FROM tab1 AS cor0
----
24
69
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT DISTINCT - ( - - MAX( - col2 ) ) - + 54 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT - ( - - MAX ( - col2 ) ) - + 54 FROM tab2 AS cor0
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-9704
SELECT - col2 AS col0, - 25 DIV - - ( + + col2 ) FROM tab0
----
-10
-2
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-9704
SELECT - col2 AS col0, - 25 / - - ( + + col2 ) FROM tab0
----
-10
-2
-47
0
-99
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9705
SELECT ALL CAST( NULL AS SIGNED ) - ( COUNT( * ) ), CAST( + ( + - 55 ) AS SIGNED ) col0 FROM tab1
----
NULL
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9705
SELECT ALL CAST ( NULL AS INTEGER ) - ( COUNT ( * ) ), CAST ( + ( + - 55 ) AS INTEGER ) col0 FROM tab1
----
NULL
-55

query I rowsort
SELECT DISTINCT - col0 - 80 + + ( 15 ) * + col1 * + col0 * - + ( + - 3 ) FROM tab1
----
18960
192294
31999

query II rowsort
SELECT col2, - col2 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT + col1 * + 95 FROM tab2
----
4845
6365
7315

query II rowsort
SELECT + col1 AS col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query III rowsort
SELECT * FROM tab0 WHERE - - 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL + SUM( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL + SUM ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9712
SELECT + MAX( ALL + 6 ) DIV 60 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT + MAX ( ALL + 6 ) / 60 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + + ( - col2 ) * - ( + col2 ) >= 14 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT + col1 DIV + 68 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9714
SELECT + col1 / + 68 AS col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9715
SELECT DISTINCT CAST( + 93 AS SIGNED ) AS col0, + col1 col1 FROM tab2
----
93
51
93
67
93
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9715
SELECT DISTINCT CAST ( + 93 AS INTEGER ) AS col0, + col1 col1 FROM tab2
----
93
51
93
67
93
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT - SUM( - col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9716
SELECT - SUM ( - col1 ) AS col2 FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9717
SELECT + 32 DIV + col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9717
SELECT + 32 / + col2 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT + col2 * - col1 + + 75 * - - 74 AS col2 FROM tab1 AS cor0
----
2354
4206
5255

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT - col0 DIV + 74 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9719
SELECT - col0 / + 74 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col1 FROM tab1
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT COUNT( * ) * - - 6 * COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9721
SELECT COUNT ( * ) * - - 6 * COUNT ( * ) FROM tab2
----
54

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT col1 * - col1 < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT DISTINCT - col0 + + - ( - CAST( col0 AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - col0 + + - ( - CAST ( col0 AS INTEGER ) ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 37
----

query I rowsort
SELECT - col0 * + 30 FROM tab2
----
-1380
-1920
-2250

query I rowsort
SELECT - col0 * 92 FROM tab2 AS cor0
----
-4232
-5888
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + - MAX( col2 ) * - + MAX( ALL - - col1 ) - + - 66 AS col0 FROM tab0 AS cor0
----
8085

skipif mysql # not compatible
query I rowsort label-9727
SELECT + - MAX ( col2 ) * - + MAX ( ALL - - col1 ) - + - 66 AS col0 FROM tab0 AS cor0
----
8085

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT + ( - COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9728
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab0 AS cor0 WHERE 78 * - col1 / - - col0 IS NOT NULL
----
57

query I rowsort
SELECT DISTINCT - - ( + 66 ) * + col1 + + ( col0 ) FROM tab2 AS cor0
----
3412
4497
5146

query I rowsort
SELECT ALL + + col2 + + 31 FROM tab1 cor0
----
127
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL - COUNT( * ) + + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL - COUNT ( * ) + + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9733
SELECT - + 30 - - - MAX( + 87 ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9733
SELECT - + 30 - - - MAX ( + 87 ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT + + 84 * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( col1 ) / - col0 - + ( + + 13 ) IS NOT NULL
----
-252

skipif mysql # not compatible
query I rowsort label-9734
SELECT + + 84 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( col1 ) / - col0 - + ( + + 13 ) IS NOT NULL
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + 32 + - COUNT( * ) FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-9735
SELECT + 32 + - COUNT ( * ) FROM tab2 cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT - col1 + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT - col1 + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + + col2 - + col2 AS col1 FROM tab2
----
-1640
-3422
-552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9738
SELECT + 50 DIV + ( + 21 ) + - ( MIN( DISTINCT col2 ) ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-9738
SELECT + 50 / + ( + 21 ) + - ( MIN ( DISTINCT col2 ) ) FROM tab1
----
-57

query I rowsort
SELECT 65 * + col2 + - col2 AS col2 FROM tab1
----
3776
4352
6144

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ( + - COUNT( * ) ) + - 16 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-9740
SELECT ( + - COUNT ( * ) ) + - 16 FROM tab2
----
-19

query II rowsort
SELECT DISTINCT - + 68 * + + col1 + - col0 AS col0, + col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * 82 AS col1 FROM tab0
----
1230
7134
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL + MAX( + col0 ) - + COUNT( col1 ) AS col2 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + MAX ( + col0 ) - + COUNT ( col1 ) AS col2 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9744
SELECT ALL ( + 20 ) AS col2, COUNT( * ) FROM tab0
----
20
3

skipif mysql # not compatible
query II rowsort label-9744
SELECT ALL ( + 20 ) AS col2, COUNT ( * ) FROM tab0
----
20
3

query I rowsort
SELECT DISTINCT - col2 * + - 94 AS col2 FROM tab1 AS cor0
----
5546
6392
9024

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----

query I rowsort
SELECT DISTINCT + 20 * - col2 - 13 FROM tab0 AS cor0
----
-1993
-213
-953

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT - COUNT( * ) + - 35 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-35

skipif mysql # not compatible
query I rowsort label-9749
SELECT - COUNT ( * ) + - 35 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT DISTINCT 84 DIV col2 FROM tab2 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT 84 / col2 FROM tab2 cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL COUNT( ALL - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL COUNT ( ALL - col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query II rowsort
SELECT DISTINCT + + col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT + ( - - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT col1 DIV - + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9755
SELECT col1 / - + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 + + + 57 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT 18 * + COUNT( * ) + 85 FROM tab2
----
139

skipif mysql # not compatible
query I rowsort label-9757
SELECT 18 * + COUNT ( * ) + 85 FROM tab2
----
139

query I rowsort
SELECT - ( 40 ) + + 17 AS col1 FROM tab0 WHERE NOT NULL > 95
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9759
SELECT - COUNT( * ) DIV COUNT( * ) + 79 AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9759
SELECT - COUNT ( * ) / COUNT ( * ) + 79 AS col0 FROM tab0
----
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 64 = - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 82 * 46 AS col0 FROM tab0
----
3772
3772
3772

query III rowsort
SELECT * FROM tab2 WHERE + 85 + - col2 >= ( - + col1 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col1 + col1 col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT MIN( - + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9765
SELECT MIN ( - + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT + + ( + COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9766
SELECT + + ( + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

query II rowsort
SELECT - 64, 23 AS col2 FROM tab2 WHERE NULL IS NULL
----
-64
23
-64
23
-64
23

query II rowsort
SELECT DISTINCT 95, + ( - + col0 ) AS col2 FROM tab1
----
95
-51
95
-85
95
-91

query I rowsort
SELECT - ( + - 88 ) FROM tab1 cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9770
SELECT ALL - col2 + + + col1 / CAST( NULL AS SIGNED ) * - ( + + 71 ) AS col1, - col0 FROM tab2 AS cor0 WHERE col2 + 6 IS NULL
----

skipif mysql # not compatible
query II rowsort label-9770
SELECT ALL - col2 + + + col1 / CAST ( NULL AS INTEGER ) * - ( + + 71 ) AS col1, - col0 FROM tab2 AS cor0 WHERE col2 + 6 IS NULL
----

query I rowsort
SELECT DISTINCT 92 - + ( + col1 ) AS col1 FROM tab1 AS cor0
----
45
78
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2, + 28 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT col1 + 30 FROM tab1 AS cor0
----
35
44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT - COUNT( * ) - - + 17 AS col2 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT - COUNT ( * ) - - + 17 AS col2 FROM tab0
----
14

query I rowsort
SELECT 40 - + col0 FROM tab1
----
-11
-45
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT MIN( 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-9777
SELECT MIN ( 43 ) FROM tab2
----
43

query II rowsort
SELECT ALL - col1 AS col0, col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - col0 / + 45 * col1 + - col1
----

query I rowsort
SELECT - col2 * col2 * 17 FROM tab0 AS cor0
----
-166617
-1700
-37553

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) * + 31 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT - CAST( - - COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT ( - + col0 ) <> + col1 / + col1
----
0

skipif mysql # not compatible
query I rowsort label-9782
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT ( - + col0 ) <> + col1 / + col1
----
0

query I rowsort
SELECT DISTINCT ( + ( - - 50 ) ) FROM tab1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9784
SELECT DISTINCT - - ( - CAST( NULL AS SIGNED ) ), - col0 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-9784
SELECT DISTINCT - - ( - CAST ( NULL AS INTEGER ) ), - col0 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 60 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-60
-60
-60

query II rowsort
SELECT ALL - col1 + - col0 + - col1, + col0 * + + col0 * col2 AS col1 FROM tab2 AS cor0
----
-148
48668
-209
326250
-218
163840

query I rowsort
SELECT DISTINCT - + 76 + - 52 AS col0 FROM tab2 AS cor0
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT CAST( - col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-9789
SELECT CAST ( - col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT MAX( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT MAX ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL + 30 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL + 30 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT + 21 * + 0 * - + col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + + 44 + col2 - + 25 / - col0 * + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9794
SELECT ALL col1 DIV - - col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL col1 / - - col0 AS col2 FROM tab2
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 * + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9796
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - MAX( - col2 ) * + 20 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - MAX ( - col2 ) * + 20 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 3 * + col2 FROM tab0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL COUNT( * ) * - - 33 col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9798
SELECT ALL COUNT ( * ) * - - 33 col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9799
SELECT ALL - COUNT( * ) DIV + 81 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9799
SELECT ALL - COUNT ( * ) / + 81 col1 FROM tab2
----
0

query II rowsort
SELECT col2 + col1 AS col1, col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 92 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT DISTINCT + - 23 DIV col0 * + col1 * + col0 + 80 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT + - 23 / col0 * + col1 * + col0 + 80 FROM tab1 AS cor0
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9803
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT + - CAST ( NULL AS REAL ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9804
SELECT ALL - 34 DIV COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - 34 / COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
33

query II rowsort
SELECT ALL + + col0 + col0, + col0 FROM tab2 AS cor0
----
128
64
150
75
92
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT col1 - + CAST( NULL AS SIGNED ) - - col1 + - + 30 * + 68 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT col1 - + CAST ( NULL AS INTEGER ) - - col1 + - + 30 * + 68 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 95 + + col0 FROM tab2 AS cor0
----
-20
-31
-49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 29 * col1 IS NULL
----

query I rowsort
SELECT - - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT - 39 * + CAST( NULL AS SIGNED ) * + col0 + + 86 / + - 37 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT - 39 * + CAST ( NULL AS INTEGER ) * + col0 + + 86 / + - 37 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 53 FROM tab1 cor0
----
53

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9813
SELECT ALL col0 AS col0, ( - CAST( NULL AS DECIMAL ) ) / - + CAST( - - 39 AS SIGNED ) / + ( - + col0 ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9813
SELECT ALL col0 AS col0, ( - CAST ( NULL AS REAL ) ) / - + CAST ( - - 39 AS INTEGER ) / + ( - + col0 ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL - MAX( DISTINCT - 93 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - MAX ( DISTINCT - 93 ) FROM tab2
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9816
SELECT DISTINCT - CAST( NULL AS DECIMAL ), col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9816
SELECT DISTINCT - CAST ( NULL AS REAL ), col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9818
SELECT 39 AS col1, COUNT( * ) * 67 FROM tab0
----
39
201

skipif mysql # not compatible
query II rowsort label-9818
SELECT 39 AS col1, COUNT ( * ) * 67 FROM tab0
----
39
201

query I rowsort
SELECT ALL + col1 * - ( 82 ) FROM tab2
----
-4182
-5494
-6314

query I rowsort
SELECT 48 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9821
SELECT COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 + - - ( col0 ) FROM tab0 WHERE NOT col2 IS NULL
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT MIN( DISTINCT + 91 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-9823
SELECT MIN ( DISTINCT + 91 ) FROM tab0
----
91

query II rowsort
SELECT ALL + - 87 + + - ( - col0 ) + - col2 AS col1, ( - + 55 ) FROM tab0 WHERE NULL IS NULL
----
-10
-55
-119
-55
-89
-55

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT 84 IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + - col0 - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 9 + col0 + col2 * + ( + - 74 ) FROM tab1 cor0
----
-4272
-4932
-7044

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT ALL + MIN( - col1 ) AS col1 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL + MIN ( - col1 ) AS col1 FROM tab1 cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + 86 * - 63 > NULL )
----

query I rowsort
SELECT - col0 + - col0 FROM tab0 WHERE NULL <= + 14
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9831
SELECT + col1 + col2 DIV - 54 - - + ( - 13 ) - + col2 col0 FROM tab1
----
-35
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9831
SELECT + col1 + col2 / - 54 - - + ( - 13 ) - + col2 col0 FROM tab1
----
-35
-68
-96

query I rowsort
SELECT ALL 71 + + + col0 FROM tab0 WHERE NOT ( ( ( NULL ) IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 68 + col2 col0, col1 FROM tab0
----
-21
81
-58
21
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT SUM( DISTINCT + col0 ) col1 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9834
SELECT SUM ( DISTINCT + col0 ) col1 FROM tab1
----
227

query II rowsort
SELECT + col2 * - col2 * - 15 AS col0, col2 AS col2 FROM tab0
----
147015
99
1500
10
33135
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT 30 DIV + 5 FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-9836
SELECT 30 / + 5 FROM tab1
----
6
6
6

query II rowsort
SELECT DISTINCT ( + col2 ), 28 AS col0 FROM tab0
----
10
28
47
28
99
28

query I rowsort
SELECT ALL 76 * 86 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 86f10b15cad57c79132bc2534645f87f

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 <= NULL
----

query I rowsort
SELECT ALL col1 - 82 + + col2 * - - col2 * - 82 AS col1 FROM tab2 AS cor0
----
-131205
-275863
-43409

query I rowsort
SELECT 43 + col2 AS col0 FROM tab1 AS cor0
----
102
111
139

query I rowsort
SELECT - col1 + - + 0 * + col0 - 53 FROM tab0
----
-134
-54
-74

query I rowsort
SELECT ALL 58 * + 91 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fc4a672c385d48bc5959bf16b9f2dfd4

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL - + SUM( DISTINCT - 42 ) - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
33

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - + SUM ( DISTINCT - 42 ) - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT - + MAX( ALL + 25 ) col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9845
SELECT - + MAX ( ALL + 25 ) col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT ALL + col2 DIV - 78 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL + col2 / - 78 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, ( - col2 ) AS col2 FROM tab2 cor0 WHERE NOT + ( - col1 ) IS NULL
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL + ( ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL + ( ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9849
SELECT + col0 DIV + col2 AS col2, col1 + - 35 FROM tab0
----
0
-34
0
46
8
-14

skipif mysql # not compatible
query II rowsort label-9849
SELECT + col0 / + col2 AS col2, col1 + - 35 FROM tab0
----
0
-34
0
46
8
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT - ( + CAST( col0 AS SIGNED ) ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9850
SELECT - ( + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL - COUNT( - col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL - COUNT ( - col1 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL ( 41 ) AS col1 FROM tab2
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - - 61 ) col2, - col2 AS col1 FROM tab1 AS cor0
----
61
-59
61
-68
61
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL 83 + + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL 83 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT + + MIN( - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + + MIN ( - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + col1 + 35 FROM tab2 AS cor0
----
102
112
86

query II rowsort
SELECT ALL ( - - col0 ) * col1, + col1 + - col1 AS col2 FROM tab0 AS cor0
----
1215
0
1827
0
97
0

query I rowsort
SELECT + ( - + col0 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col1 + col1, 89 AS col0 FROM tab0
----
162
89
2
89
42
89

query I rowsort
SELECT col1 + - 23 AS col2 FROM tab2
----
28
44
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT + - CAST( - - 6 AS SIGNED ) + + col1 AS col0 FROM tab1 cor0
----
-1
41
8

skipif mysql # not compatible
query I rowsort label-9861
SELECT + - CAST ( - - 6 AS INTEGER ) + + col1 AS col0 FROM tab1 cor0
----
-1
41
8

query II rowsort
SELECT ALL col1 + 48, col0 AS col0 FROM tab1
----
53
85
62
51
95
91

query I rowsort
SELECT - ( - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * + 40 - + col2 * + 41 FROM tab2
----
-2983
-4720
-5058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT ALL CAST( + col0 AS SIGNED ) * - 0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL CAST ( + col0 AS INTEGER ) * - 0 FROM tab0
----
0
0
0

query II rowsort
SELECT + - 30 * + col1, - ( + + 50 ) + - + col2 AS col0 FROM tab2 AS cor0
----
-1530
-73
-2010
-108
-2310
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9867
SELECT COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT - col0 * + 7 * - + col0 AS col1 FROM tab1 AS cor0
----
18207
50575
57967

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) - + 68 + - col2 NOT BETWEEN ( NULL ) AND + col2 + - + col1 + + col1 * + col1 * - col0 + - - col0
----

query I rowsort
SELECT ALL - 39 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-39
-39
-39

query I rowsort
SELECT - + col2 * ( - col0 ) + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1288
-2368
-675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9872
SELECT ALL CAST( + 14 AS SIGNED ), + col2 AS col2 FROM tab1 AS cor0
----
14
59
14
68
14
96

skipif mysql # not compatible
query II rowsort label-9872
SELECT ALL CAST ( + 14 AS INTEGER ), + col2 AS col2 FROM tab1 AS cor0
----
14
59
14
68
14
96

query II rowsort
SELECT ALL ( + 27 ), col2 FROM tab0 AS cor0
----
27
10
27
47
27
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9874
SELECT - col0 DIV 67 FROM tab0 AS cor0 WHERE NOT - 89 * + col1 * - ( - + col2 ) IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9874
SELECT - col0 / 67 FROM tab0 AS cor0 WHERE NOT - 89 * + col1 * - ( - + col2 ) IS NULL
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT DISTINCT - 77 * - COUNT( * ) col0 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9875
SELECT DISTINCT - 77 * - COUNT ( * ) col0 FROM tab2 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT + SUM( - 59 ) AS col1 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-9876
SELECT + SUM ( - 59 ) AS col1 FROM tab0
----
-177

onlyif mysql # DIV for integer division: 
query II rowsort label-9877
SELECT + col2 AS col2, + col2 DIV 35 * - col1 FROM tab1
----
59
-5
68
-47
96
-28

skipif mysql # not compatible
query II rowsort label-9877
SELECT + col2 AS col2, + col2 / 35 * - col1 FROM tab1
----
59
-5
68
-47
96
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT + COUNT( DISTINCT - + 97 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9878
SELECT + COUNT ( DISTINCT - + 97 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - COUNT( DISTINCT 48 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9879
SELECT - COUNT ( DISTINCT 48 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT - col1 * col0 * + col2 * 19 * + col2 FROM tab1 AS cor0
----
-125024256
-28109075
-375760112

query I rowsort
SELECT ALL 14 * - - col0 * + col2 AS col2 FROM tab0 AS cor0
----
12180
134442
9870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( - 58 ) ) col2 FROM tab1 AS cor0
----
58

query I rowsort
SELECT col0 * + + 26 AS col0 FROM tab2 AS cor0
----
1196
1664
1950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + col1 AS col0, col2 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 + 40 AND - - col0
----

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9886
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9886
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = col2 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND + 72 * - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( col1 ) + 74
----

query I rowsort
SELECT ALL - col1 - + 48 * - col0 AS col0 FROM tab0
----
4155
4655
639

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT + col2 DIV 99 + - 31 * col2 FROM tab0
----
-1457
-3068
-310

skipif mysql # not compatible
query I rowsort label-9891
SELECT + col2 / 99 + - 31 * col2 FROM tab0
----
-1457
-3068
-310

query I rowsort
SELECT + col1 * - 89 FROM tab2
----
-4539
-5963
-6853

query I rowsort
SELECT DISTINCT + col0 + - col2 * - col2 FROM tab2
----
1664
3439
575

onlyif mysql # DIV for integer division: 
query I rowsort label-9894
SELECT DISTINCT col2 * - 33 - ( 18 ) DIV - 76 FROM tab2
----
-1320
-1914
-759

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT col2 * - 33 - ( 18 ) / - 76 FROM tab2
----
-1320
-1914
-759

query I rowsort
SELECT DISTINCT ( 52 ) * + col0 AS col2 FROM tab0
----
4524
5044
780

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE 82 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 81 col2 FROM tab0
----
3807
8019
810

query I rowsort
SELECT col0 * - 33 AS col1 FROM tab1
----
-1683
-2805
-3003

query I rowsort
SELECT col2 * 36 FROM tab2
----
1440
2088
828

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( col0 * 36 + col0 ) AND 56 + + col0 * ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9901
SELECT DISTINCT - 84 DIV - 32 AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - 84 / - 32 AS col2 FROM tab1
----
2

query I rowsort
SELECT DISTINCT 32 + 33 AS col1 FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT SUM( ALL + 44 ) + + 6 AS col0 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-9903
SELECT SUM ( ALL + 44 ) + + 6 AS col0 FROM tab0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT DISTINCT 5 * + COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT 5 * + COUNT ( * ) FROM tab1
----
15

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT - col0 * col1 + - CAST( - 47 AS SIGNED ) FROM tab1
----
-378
-4230
-667

skipif mysql # not compatible
query I rowsort label-9906
SELECT - col0 * col1 + - CAST ( - 47 AS INTEGER ) FROM tab1
----
-378
-4230
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT - COUNT( * ) * 16 AS col2 FROM tab0 WHERE NOT ( col2 ) IN ( 80 * 4 )
----
-48

skipif mysql # not compatible
query I rowsort label-9907
SELECT - COUNT ( * ) * 16 AS col2 FROM tab0 WHERE NOT ( col2 ) IN ( 80 * 4 )
----
-48

query I rowsort
SELECT DISTINCT 18 + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-22
-40
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT DISTINCT MIN( DISTINCT - col2 ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-96

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT MIN ( DISTINCT - col2 ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT MIN( - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9910
SELECT MIN ( - col0 ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT DISTINCT - col2 * - col0 - + col2 AS col0 FROM tab2
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT DISTINCT + MAX( + col0 ) * + COUNT( * ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT + MAX ( + col0 ) * + COUNT ( * ) AS col1 FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT - MAX( ( + col1 ) ) - 43 * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( col2 * col0 ) NOT BETWEEN 4 + + col0 * 13 AND ( col2 * - col0 )
----
82

skipif mysql # not compatible
query I rowsort label-9913
SELECT - MAX ( ( + col1 ) ) - 43 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( col2 * col0 ) NOT BETWEEN 4 + + col0 * 13 AND ( col2 * - col0 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT DISTINCT col0 * + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT col0 * + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col0 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT - col2 * - col0 + - col2 DIV col1 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-9916
SELECT - col2 * - col0 + - col2 / col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL ( - col0 ) + col2 AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT + 96 + col2 * col2 FROM tab0 AS cor0
----
196
2305
9897

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT 61 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9919
SELECT 61 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9920
SELECT - col0 DIV - 52 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9920
SELECT - col0 / - 52 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT 18 FROM tab0 AS cor0 CROSS JOIN tab0
----
18

query I rowsort
SELECT DISTINCT 2 FROM tab1 WHERE ( col1 * col2 ) IS NOT NULL
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9923
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + ( - col1 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9923
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + ( - col1 ) >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9924
SELECT ALL COUNT( * ) DIV 92 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9924
SELECT ALL COUNT ( * ) / 92 col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT DISTINCT - COUNT( * ) * - 24 FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT - COUNT ( * ) * - 24 FROM tab0 cor0
----
72

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 + + 41 ) >= 92 + col0
----
-1
-21
-81

query I rowsort
SELECT + 41 * + 57 FROM tab2 AS cor0
----
2337
2337
2337

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT - COUNT( ALL - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9928
SELECT - COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + 57 * + col2 AS col1 FROM tab2 AS cor0
----
-1311
-2280
-3306

query I rowsort
SELECT DISTINCT - 39 * - col2 FROM tab2 AS cor0
----
1560
2262
897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9931
SELECT 20 + + COUNT( * ) * + 98 FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) NOT IN ( - col1 )
----
20

skipif mysql # not compatible
query I rowsort label-9931
SELECT 20 + + COUNT ( * ) * + 98 FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) NOT IN ( - col1 )
----
20

query I rowsort
SELECT - + ( col1 ) * 87 FROM tab2 AS cor0
----
-4437
-5829
-6699

query I rowsort
SELECT 98 - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9934
SELECT ALL - 0 DIV + 46 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL - 0 / + 46 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * 60 AS col2 FROM tab0 AS cor0
----
5220
5820
900

query I rowsort
SELECT - - 10 * - col1 AS col1 FROM tab0 cor0
----
-10
-210
-810

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 55 ) BETWEEN col0 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + 83 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
83
83
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9939
SELECT DISTINCT + 71 DIV - 39 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT + 71 / - 39 FROM tab0
----
-1

query I rowsort
SELECT ALL + 32 * + 42 AS col0 FROM tab1
----
1344
1344
1344

query I rowsort
SELECT DISTINCT 83 FROM tab2 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL MAX( - 87 ) AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL MAX ( - 87 ) AS col0 FROM tab0
----
-87

query I rowsort
SELECT ALL ( + col1 ) * + 75 AS col1 FROM tab2
----
3825
5025
5775

query I rowsort
SELECT DISTINCT 21 + - + 67 AS col1 FROM tab1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL + COUNT( 74 ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL + COUNT ( 74 ) * COUNT ( * ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT DISTINCT + - col1 + + col1 + - ( col1 + 55 ) DIV 30 * - col1 FROM tab1 AS cor0
----
10
141
28

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT + - col1 + + col1 + - ( col1 + 55 ) / 30 * - col1 FROM tab1 AS cor0
----
10
141
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT - + 59 * + COUNT( ALL col1 ) - - COUNT( * ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-9947
SELECT - + 59 * + COUNT ( ALL col1 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9948
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN ( CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) * - 12 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9948
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN ( CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) * - 12 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT + COUNT( ALL - 51 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT + COUNT ( ALL - 51 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT ALL + - col1 + + col2 DIV - col1 FROM tab0 AS cor0
----
-100
-21
-81

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + - col1 + + col2 / - col1 FROM tab0 AS cor0
----
-100
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT MIN( - - col0 ) AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT MIN ( - - col0 ) AS col1 FROM tab1 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT + 32 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
1
32

skipif mysql # not compatible
query I rowsort label-9952
SELECT + 32 / + col1 AS col0 FROM tab0 AS cor0
----
0
1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL - + COUNT( * ) + - 97 AS col0 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL - + COUNT ( * ) + - 97 AS col0 FROM tab1 AS cor0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9954
SELECT DISTINCT 7 DIV - SUM( DISTINCT - 3 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT 7 / - SUM ( DISTINCT - 3 ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT col2 + col2 * col1 AS col0 FROM tab2 cor0 WHERE 20 IS NOT NULL
----
1196
3120
3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col2 col0 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT - - col0 + - - col0 + col0 * col1 FROM tab1 AS cor0
----
4459
595
816

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT - MIN( 44 ) AS col0 FROM tab2 AS cor0 WHERE + ( + col1 ) * - col0 - - 15 IS NOT NULL
----
-44

skipif mysql # not compatible
query I rowsort label-9958
SELECT - MIN ( 44 ) AS col0 FROM tab2 AS cor0 WHERE + ( + col1 ) * - col0 - - 15 IS NOT NULL
----
-44

query I rowsort
SELECT + 97 - - col2 AS col2 FROM tab0 AS cor0
----
107
144
196

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9960
SELECT DISTINCT 1 FROM tab2 AS cor0 WHERE col2 * - CAST( NULL AS SIGNED ) * + CAST( + col1 * col0 AS DECIMAL ) NOT IN ( + 8 )
----

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT 1 FROM tab2 AS cor0 WHERE col2 * - CAST ( NULL AS INTEGER ) * + CAST ( + col1 * col0 AS REAL ) NOT IN ( + 8 )
----

query I rowsort
SELECT DISTINCT + 1 * + + col0 * + + col2 + col1 AS col1 FROM tab2 AS cor0
----
1109
2637
4417

query II rowsort
SELECT DISTINCT - col1, + 94 AS col2 FROM tab1 AS cor0
----
-14
94
-47
94
-5
94

query I rowsort
SELECT DISTINCT col0 - - + col1 AS col2 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT + COUNT( * ) + COUNT( * ) * COUNT( * ) FROM tab2 WHERE NOT + + 63 IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE NOT + + 63 IS NULL
----
12

query III rowsort
SELECT * FROM tab0 WHERE NULL < - - col1
----

query I rowsort
SELECT DISTINCT - 54 * 47 - - col0 * - col2 AS col2 FROM tab0
----
-12141
-3243
-3408

query III rowsort
SELECT * FROM tab2 WHERE + col0 + 88 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL COUNT( * ) - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT 84 + + ( 58 ) FROM tab0
----
142
142
142

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT ALL - CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL - CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + - col1 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9972
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + - col1 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT ( + 78 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 83 * + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT COUNT( * ) * - COUNT( * ) - ( + 53 ) AS col1 FROM tab0 AS cor0 WHERE 85 IS NOT NULL
----
-62

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) - ( + 53 ) AS col1 FROM tab0 AS cor0 WHERE 85 IS NOT NULL
----
-62

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 57 = NULL
----

query II rowsort
SELECT 65 AS col0, - 78 * col1 FROM tab2
----
65
-3978
65
-5226
65
-6006

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - col0 NOT BETWEEN - 8 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT 28 * COUNT( * ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9979
SELECT 28 * COUNT ( * ) FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL - col2 * + + 89 AS col1 FROM tab0 cor0
----
-4183
-8811
-890

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col2 * + + ( + 18 ) AS col2 FROM tab0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - MAX( DISTINCT 63 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-9983
SELECT - MAX ( DISTINCT 63 ) FROM tab1
----
-63

query II rowsort
SELECT col2, col2 + + - col1 FROM tab1
----
59
54
68
21
96
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * - 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL COUNT( * ) * + 30 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL COUNT ( * ) * + 30 FROM tab0
----
90

query I rowsort
SELECT DISTINCT + ( + 40 ) + - col0 FROM tab2
----
-24
-35
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT ( + - 61 ) DIV + col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9988
SELECT ( + - 61 ) / + col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( + - ( - col1 ) + 57 ) AND + 38 / - col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9990
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT - col0 * - col0 * col0 * col0 DIV - - col0 + - + col1 FROM tab1
----
132637
614120
753524

skipif mysql # not compatible
query I rowsort label-9991
SELECT - col0 * - col0 * col0 * col0 / - - col0 + - + col1 FROM tab1
----
132637
614120
753524

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT - COUNT( - + col2 ) + + 36 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9992
SELECT - COUNT ( - + col2 ) + + 36 FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL - col1 * col2 + - col2 FROM tab0 cor0
----
-198
-220
-3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT - 44 * col1 + + col0 col1 FROM tab1 AS cor0 WHERE ( + col1 + CAST( + CAST( - 32 AS SIGNED ) AS SIGNED ) + col2 IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9994
SELECT - 44 * col1 + + col0 col1 FROM tab1 AS cor0 WHERE ( + col1 + CAST ( + CAST ( - 32 AS INTEGER ) AS INTEGER ) + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT DISTINCT - col2 DIV - 70 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT - col2 / - 70 AS col1 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col0 NOT BETWEEN - 70 * col0 / - col0 * + 60 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT ALL + col0 * - ( - + col0 ) + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + 34 + + - col2 + 28 + 45 )
----

