hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 71 + + 19 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT DISTINCT + COUNT( * ) * - 35 + - ( 43 ) * - - 68 AS col1 FROM tab1
----
-3029

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT + COUNT ( * ) * - 35 + - ( 43 ) * - - 68 AS col1 FROM tab1
----
-3029

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * col1 IS NOT NULL AND ( NULL ) NOT BETWEEN - ( - - CAST( + col1 AS DECIMAL ) ) * 53 + - col2 + - col2 / + col1 * + - 14 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * col1 IS NOT NULL AND ( NULL ) NOT BETWEEN - ( - - CAST ( + col1 AS REAL ) ) * 53 + - col2 + - col2 / + col1 * + - 14 AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 * col1 - + col0 AS col2 FROM tab2 AS cor0
----
-2647
-4564
-5993

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

query I rowsort
SELECT DISTINCT + 73 + col1 AS col0 FROM tab2 AS cor0
----
124
140
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6
SELECT DISTINCT 13 * + + CAST( NULL AS SIGNED ) * - 10 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT 13 * + + CAST ( NULL AS INTEGER ) * - 10 AS col1 FROM tab2
----
NULL

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

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

query I rowsort
SELECT 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT ALL + - CAST( + 58 AS SIGNED ) * ( - + CAST( + 47 AS SIGNED ) ) * + ( + 34 ) * - 22 AS col2 FROM tab2 AS cor0
----
-2039048
-2039048
-2039048

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL + - CAST ( + 58 AS INTEGER ) * ( - + CAST ( + 47 AS INTEGER ) ) * + ( + 34 ) * - 22 AS col2 FROM tab2 AS cor0
----
-2039048
-2039048
-2039048

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

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT + col2 DIV + + col0 + + 17 FROM tab0 AS cor0
----
17
18
20

skipif mysql # not compatible
query I rowsort label-14
SELECT + col2 / + + col0 + + 17 FROM tab0 AS cor0
----
17
18
20

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-16
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( + + col0 AS SIGNED ) >= ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-16
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( + + col0 AS INTEGER ) >= ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT MIN( DISTINCT + - ( 11 ) ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-19
SELECT MIN ( DISTINCT + - ( 11 ) ) FROM tab2
----
-11

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

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

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

query I rowsort
SELECT - 45 * ( - 32 ) AS col1 FROM tab1 WHERE NOT col2 + 78 NOT BETWEEN - + col2 * - + col2 - + 48 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT ALL MIN( + 16 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL MIN ( + 16 ) FROM tab1
----
16

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

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

query II rowsort
SELECT DISTINCT + + 42, 12 AS col1 FROM tab2 AS cor0
----
42
12

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-29
SELECT + + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-29
SELECT + + col1 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 56 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, 66 * + - 34 FROM tab1
----
-59
-2244
-68
-2244
-96
-2244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - 31 + col2 col0 FROM tab2
----
-1558
-2019
-2347

query I rowsort
SELECT ALL + 8 + + col2 + - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-48
11
121

query I rowsort
SELECT DISTINCT + col1 + - 39 + - - col1 AS col0 FROM tab0 AS cor0
----
-37
123
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-37
SELECT + - 61 DIV - - CAST( col2 AS SIGNED ) + + + 59 AS col2 FROM tab1 AS cor0
----
58
59
59

skipif mysql # not compatible
query I rowsort label-37
SELECT + - 61 / - - CAST ( col2 AS INTEGER ) + + + 59 AS col2 FROM tab1 AS cor0
----
58
59
59

query II rowsort
SELECT DISTINCT + 58 AS col1, 97 + + 82 + col0 * - + col2 FROM tab1 AS cor0
----
58
-4717
58
-4836
58
-6009

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

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

query III rowsort
SELECT + 97 + + col2 AS col0, col0, + - col1 FROM tab0
----
9 values hashing to addc8668a4cfd13edfad375096b9e7ff

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-41
SELECT - SUM( DISTINCT + + 26 ) DIV - - ( + - COUNT( * ) ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-41
SELECT - SUM ( DISTINCT + + 26 ) / - - ( + - COUNT ( * ) ) FROM tab0
----
8

query II rowsort
SELECT - 36 * + col2, + col0 FROM tab1
----
-2124
85
-2448
91
-3456
51

query III rowsort
SELECT ALL * FROM tab2 WHERE 47 <= NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE NOT 32 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT + - COUNT( * ) + - - ( + + 66 ) AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + - COUNT ( * ) + - - ( + + 66 ) AS col1 FROM tab0 AS cor0
----
63

query I rowsort
SELECT + 93 AS col1 FROM tab1 cor0
----
93
93
93

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

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

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

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL + COUNT ( * ) / - + COUNT ( * ) FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-51
SELECT ALL COUNT( * ) * - ( - - CAST( + + MAX( + col0 ) AS SIGNED ) ) + - + COUNT( DISTINCT - + col2 ) + + MIN( DISTINCT - col2 ) * 41 FROM tab0 AS cor0 WHERE NOT + 20 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL COUNT ( * ) * - ( - - CAST ( + + MAX ( + col0 ) AS INTEGER ) ) + - + COUNT ( DISTINCT - + col2 ) + + MIN ( DISTINCT - col2 ) * 41 FROM tab0 AS cor0 WHERE NOT + 20 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT DISTINCT + 92 DIV 77 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT + 92 / 77 FROM tab2
----
1

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

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

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

query I rowsort
SELECT ALL - ( + - ( + col1 ) ) * - - col2 FROM tab1
----
1344
295
3196

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

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

query I rowsort
SELECT + col1 + ( - - 90 ) AS col2 FROM tab0 AS cor0
----
111
171
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT - COUNT( * ) + + COUNT( * ) - + 66 * COUNT( * ) col2 FROM tab1
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-59
SELECT - COUNT ( * ) + + COUNT ( * ) - + 66 * COUNT ( * ) col2 FROM tab1
----
-198

query I rowsort
SELECT ALL 68 * - + col2 * + - ( + + col0 ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
47940
59160
653004

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT DISTINCT + + 53 + COUNT( * ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT + + 53 + COUNT ( * ) FROM tab1 AS cor0
----
56

query I rowsort
SELECT ALL + 67 * 71 + ( col2 ) AS col2 FROM tab0 AS cor0
----
4767
4804
4856

query II rowsort
SELECT + 26, + 89 AS col0 FROM tab0 AS cor0
----
26
89
26
89
26
89

query I rowsort
SELECT DISTINCT + - 82 * - ( - + col1 ) - 65 AS col1 FROM tab2 AS cor0
----
-4247
-5559
-6379

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

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT MAX ( DISTINCT 57 ) FROM tab1 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT ALL - col0 - - 92 + + 87 + 31 DIV 72 FROM tab1
----
128
88
94

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - col0 - - 92 + + 87 + 31 / 72 FROM tab1
----
128
88
94

query I rowsort
SELECT DISTINCT - 15 - - col1 FROM tab1
----
-1
-10
32

query I rowsort
SELECT + 47 - - 6 FROM tab0
----
53
53
53

onlyif mysql # DIV for integer division: 
query II rowsort label-69
SELECT + col1 DIV + col0 - col2 AS col2, + 73 FROM tab1 AS cor0 WHERE ( + + col0 IS NOT NULL )
----
-59
73
-68
73
-96
73

skipif mysql # not compatible
query II rowsort label-69
SELECT + col1 / + col0 - col2 AS col2, + 73 FROM tab1 AS cor0 WHERE ( + + col0 IS NOT NULL )
----
-59
73
-68
73
-96
73

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query II rowsort label-71
SELECT + ( - - col0 ), ( - - col0 ) DIV col0 col1 FROM tab2 AS cor0
----
46
1
64
1
75
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-71
SELECT + ( - - col0 ), ( - - col0 ) / col0 col1 FROM tab2 AS cor0
----
46
1
64
1
75
1

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

skipif mysql # not compatible
query II rowsort label-72
SELECT ALL COUNT ( * ), - COUNT ( * ) * + + 55 AS col2 FROM tab1 cor0
----
3
-165

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

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT + + 28 DIV + + 18 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-74
SELECT + + 28 / + + 18 FROM tab2 AS cor0
----
1
1
1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-77
SELECT col1 DIV + - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-77
SELECT col1 / + - col1 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ALL + ( - COUNT( * ) ) AS col1 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL + ( - COUNT ( * ) ) AS col1 FROM tab2, tab0 AS cor0
----
-9

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - 39
----

query I rowsort
SELECT DISTINCT - 87 * - + col1 AS col2 FROM tab0
----
1827
7047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-85
SELECT MIN( ALL col0 ) DIV 41 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-85
SELECT MIN ( ALL col0 ) / 41 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-86
SELECT COUNT( * ) DIV - 94 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-86
SELECT COUNT ( * ) / - 94 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 54 - col0 * col1 AS col0 FROM tab2
----
-2400
-4982
-5079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT + COUNT( * ) DIV + COUNT( DISTINCT - ( 24 ) * col2 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-88
SELECT + COUNT ( * ) / + COUNT ( DISTINCT - ( 24 ) * col2 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-89
SELECT + COUNT( * ) DIV 52 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-89
SELECT + COUNT ( * ) / 52 FROM tab2
----
0

query I rowsort
SELECT col1 FROM tab1 WHERE col0 + 80 = ( - col1 + col0 )
----

query I rowsort
SELECT ALL - 95 + 14 * - 35 FROM tab1
----
-585
-585
-585

query I rowsort
SELECT DISTINCT + 26 * + col2 AS col1 FROM tab0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT + 27 * + COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-93
SELECT + 27 * + COUNT ( * ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-94
SELECT DISTINCT 5 DIV - col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT 5 / - col0 AS col2 FROM tab1
----
0

query I rowsort
SELECT 37 * col0 FROM tab0
----
3219
3589
555

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT DISTINCT col1 DIV 43 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-96
SELECT DISTINCT col1 / 43 FROM tab1
----
0
1

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-99
SELECT DISTINCT - MAX( DISTINCT - 49 ) DIV MAX( - col0 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT - MAX ( DISTINCT - 49 ) / MAX ( - col0 ) FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT - COUNT( * ) * - 22 - + COUNT( * ) FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-100
SELECT - COUNT ( * ) * - 22 - + COUNT ( * ) FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT SUM( col1 ) * SUM( ALL - col1 ) + 34 * + MIN( ALL - ( - col0 ) ) FROM tab1
----
-2622

skipif mysql # not compatible
query I rowsort label-102
SELECT SUM ( col1 ) * SUM ( ALL - col1 ) + 34 * + MIN ( ALL - ( - col0 ) ) FROM tab1
----
-2622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-103
SELECT col2 * - 86 + CAST( ( - col1 ) AS SIGNED ) AS col2 FROM tab2
----
-2029
-3517
-5055

skipif mysql # not compatible
query I rowsort label-103
SELECT col2 * - 86 + CAST ( ( - col1 ) AS INTEGER ) AS col2 FROM tab2
----
-2029
-3517
-5055

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-105
SELECT + MAX ( DISTINCT + col0 ) col1 FROM tab0
----
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 > ( NULL )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 69 NOT BETWEEN 86 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * + 92 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT ( col2 ) * 20 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT - - 30 DIV - ( + 23 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-112
SELECT - - 30 / - ( + 23 ) FROM tab0 AS cor0
----
-1
-1
-1

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

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + 57 ) IN ( + col0 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 66 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-119
SELECT DISTINCT col2 * - 3 FROM tab2 AS cor0 WHERE NOT ( - 84 - CAST( NULL AS SIGNED ) / - 10 ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT col2 * - 3 FROM tab2 AS cor0 WHERE NOT ( - 84 - CAST ( NULL AS INTEGER ) / - 10 ) BETWEEN ( NULL ) AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-120
SELECT ALL COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

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

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

query I rowsort
SELECT DISTINCT 35 + col1 AS col1 FROM tab0 WHERE col1 + col2 IS NULL
----

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

query I rowsort
SELECT DISTINCT - 14 + col2 + + ( - col1 ) FROM tab2
----
-23
-42
-51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT DISTINCT col0 * + 26 + - col2 DIV col1 AS col0 FROM tab1
----
1320
2199
2365

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT col0 * + 26 + - col2 / col1 AS col0 FROM tab1
----
1320
2199
2365

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

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT DISTINCT + 88 + + COUNT( * ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-128
SELECT DISTINCT + 88 + + COUNT ( * ) col2 FROM tab1
----
91

query I rowsort
SELECT - 52 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT - 9 AS col2 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + 77 ) * 25 + + col0 col2 FROM tab2 cor0
----
-1850
-1861
-1879

query I rowsort
SELECT col0 + 49 + + col0 * + 32 AS col1 FROM tab2 AS cor0
----
1567
2161
2524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - 77 col1 FROM tab1 AS cor0
----
30
63
72

query I rowsort
SELECT ALL - col2 * - ( + 2 ) AS col2 FROM tab1
----
118
136
192

query I rowsort
SELECT + - 76 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT - col0 * - + col2 * - - 77 AS col2 FROM tab2
----
197120
334950
81466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 61 ) * + col2 col1 FROM tab1 WHERE 66 + ( + col0 ) IS NOT NULL
----
3599
4148
5856

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE ( col1 * - col0 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + col0 + + 7 FROM tab1
----
58
92
98

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * - 41 + - 4 * col2 = + 92 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT + COUNT( * ) + + AVG ( 66 ) * + COUNT( * ) FROM tab0 cor0 WHERE 41 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-142
SELECT + COUNT ( * ) + + AVG ( 66 ) * + COUNT ( * ) FROM tab0 cor0 WHERE 41 IS NULL
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = ( - col0 - - 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT - - SUM( - 23 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-145
SELECT - - SUM ( - 23 ) FROM tab0 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT col2 * - col0 DIV - col0 - - 59 - - col0 FROM tab1 AS cor0
----
203
206
218

skipif mysql # not compatible
query I rowsort label-146
SELECT col2 * - col0 / - col0 - - 59 - - col0 FROM tab1 AS cor0
----
203
206
218

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

query I rowsort
SELECT - - col0 - - + ( col1 ) + - 7 FROM tab0 AS cor0
----
101
89
91

query I rowsort
SELECT ALL - 99 + + ( 54 ) AS col1 FROM tab1 AS cor0 WHERE - 27 IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-150
SELECT ( + 17 ) DIV + + ( + - col1 ) - - col0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-150
SELECT ( + 17 ) / + + ( + - col1 ) - - col0 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL - 20 * + 60 FROM tab0
----
-1200
-1200
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT DISTINCT 90 * COUNT( * ) FROM tab2 WHERE - ( - 65 ) >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT 90 * COUNT ( * ) FROM tab2 WHERE - ( - 65 ) >= ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 73 - + col0 = ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col1 * 87 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT ALL col0 DIV - 18 AS col2 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL col0 / - 18 AS col2 FROM tab0
----
-4
-5
0

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 72 + ( - col0 ) FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL + ( - + col1 ) * + col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT DISTINCT MAX( + 90 ) AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT MAX ( + 90 ) AS col1 FROM tab2
----
90

query I rowsort
SELECT - 24 / + 10 AS col0 FROM tab2 WHERE NOT col2 * + - col2 * 29 * + 59 - col0 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT + + SUM( ALL 33 ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-164
SELECT + + SUM ( ALL 33 ) AS col0 FROM tab1 AS cor0
----
99

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 11 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT - COUNT ( * ) + - ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT ( - - col0 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * col1 + col1 col1, col1 * - 78 AS col0 FROM tab1 AS cor0
----
-420
-390
-4230
-3666
-700
-1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-169
SELECT - col2 * + 17 + + - col2 * + + CAST( - - ( col0 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-1040
-11286
-1504

skipif mysql # not compatible
query I rowsort label-169
SELECT - col2 * + 17 + + - col2 * + + CAST ( - - ( col0 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-1040
-11286
-1504

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-171
SELECT * FROM tab0 WHERE - CAST( - col0 AS SIGNED ) <> ( + col1 + - 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-171
SELECT * FROM tab0 WHERE - CAST ( - col0 AS INTEGER ) <> ( + col1 + - 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT 1 + ( + col2 ) DIV + col1 + col1 + ( 2 ) * col1 FROM tab1
----
143
27
49

skipif mysql # not compatible
query I rowsort label-172
SELECT 1 + ( + col2 ) / + col1 + col1 + ( 2 ) * col1 FROM tab1
----
143
27
49

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + col2 * col0 + - + col0 AS col1 FROM tab1
----
4845
4930
6097

query I rowsort
SELECT DISTINCT - ( - - col2 ) + + col2 AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) < col1
----

query I rowsort
SELECT ALL 12 + - - col0 FROM tab2
----
58
76
87

onlyif mysql # aggregate syntax: 
query II rowsort label-179
SELECT COUNT( * ) AS col0, - 18 AS col2 FROM tab0 AS cor0
----
3
-18

skipif mysql # not compatible
query II rowsort label-179
SELECT COUNT ( * ) AS col0, - 18 AS col2 FROM tab0 AS cor0
----
3
-18

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

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

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT COUNT ( - ( + col1 ) ) - CAST ( - 75 AS INTEGER ) FROM tab1 AS cor0
----
78

query II rowsort
SELECT col2 AS col2, 87 * col2 FROM tab2 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - col1 + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT - + col2 + + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-116
-46
-80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT + 73 + COUNT( * ) FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-187
SELECT + 73 + COUNT ( * ) FROM tab1 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-188
SELECT + + COUNT( * ) + + + 95 AS col0, + 16 AS col2 FROM tab2 AS cor0
----
98
16

skipif mysql # not compatible
query II rowsort label-188
SELECT + + COUNT ( * ) + + + 95 AS col0, + 16 AS col2 FROM tab2 AS cor0
----
98
16

query II rowsort
SELECT ( - - col0 ) AS col2, col0 + + col2 FROM tab1 AS cor0
----
51
147
85
144
91
159

query I rowsort
SELECT DISTINCT + + col2 * 20 + col0 + - 52 * + - 1 FROM tab0 AS cor0
----
1007
2129
339

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + - 73 BETWEEN - 49 + - + 54 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-192
SELECT CAST( 94 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > + col2 + + col0
----

skipif mysql # not compatible
query I rowsort label-192
SELECT CAST ( 94 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > + col2 + + col0
----

query I rowsort
SELECT ALL col2 * 21 FROM tab2 AS cor0 WHERE ( NOT ( - col0 + ( - col1 ) ) = col2 )
----
1218
483
840

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT ALL COUNT( * ) DIV + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL COUNT ( * ) / + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-197
SELECT * FROM tab0 WHERE NOT ( + col0 * ( + - col1 ) * + - col1 + + col0 + col0 + 23 * + col2 ) IN ( - CAST( 15 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-197
SELECT * FROM tab0 WHERE NOT ( + col0 * ( + - col1 ) * + - col1 + + col0 + col0 + 23 * + col2 ) IN ( - CAST ( 15 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT ALL - 21 DIV + col1 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL - 21 / + col1 FROM tab1
----
-1
-4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT DISTINCT ( + 31 ) DIV + - col1 FROM tab0
----
-1
-31
0

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT ( + 31 ) / + - col1 FROM tab0
----
-1
-31
0

query II rowsort
SELECT 52, + col0 FROM tab1
----
52
51
52
85
52
91

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

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

query I rowsort
SELECT DISTINCT - ( - 63 ) FROM tab0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col1 FROM tab1 WHERE NOT - col1 + col2 NOT IN ( 61, col1 * - 59 * - col2 + + 20 * + col0 )
----

query I rowsort
SELECT + col2 * + + 72 FROM tab1
----
4248
4896
6912

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

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL - 59 / + col0 FROM tab1
----
-1
0
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-209
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - + 25 * + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-209
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - + 25 * + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - col2 / 16 * - + col2
----
0

skipif mysql # not compatible
query I rowsort label-210
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - col2 / 16 * - + col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL 21 * + SUM( DISTINCT - ( + 47 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL 21 * + SUM ( DISTINCT - ( + 47 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) > NULL
----
NULL

query I rowsort
SELECT DISTINCT + + 36 / col2 FROM tab1 WHERE + 43 * + 36 > + + col2 * col2 * col2 + - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 98 * col0 < NULL
----

query I rowsort
SELECT col0 * + + 53 - + col2 AS col1 FROM tab1 AS cor0
----
2607
4446
4755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-216
SELECT - 12 col1 FROM tab2 cor0 WHERE NULL NOT IN ( - col1 * - CAST( NULL AS SIGNED ) + col2, - col2, - + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-216
SELECT - 12 col1 FROM tab2 cor0 WHERE NULL NOT IN ( - col1 * - CAST ( NULL AS INTEGER ) + col2, - col2, - + col2 )
----

query I rowsort
SELECT col1 * + col0 + + - 9 FROM tab0 AS cor0
----
1206
1818
88

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

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

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

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

query I rowsort
SELECT ALL - 38 + - - col0 AS col2 FROM tab2
----
26
37
8

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT + SUM( - + 3 ) - - 42 AS col1 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-221
SELECT + SUM ( - + 3 ) - - 42 AS col1 FROM tab1
----
33

query I rowsort
SELECT col0 * + + 41 + 26 FROM tab0
----
3593
4003
641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-223
SELECT + MIN( CAST( ( + ( + - col1 ) ) AS SIGNED ) ) + - 36 FROM tab2
----
-113

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

query I rowsort
SELECT ALL - + col1 * col1 + 34 + + col2 + + 49 AS col2 FROM tab2 AS cor0
----
-2495
-4348
-5806

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL - 68 * COUNT( * ) AS col1 FROM tab0 cor0
----
-204

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL - 68 * COUNT ( * ) AS col1 FROM tab0 cor0
----
-204

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 99 NOT BETWEEN + + 89 AND NULL
----

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

query I rowsort
SELECT ALL + col1 - 85 FROM tab2
----
-18
-34
-8

query I rowsort
SELECT DISTINCT + 73 * - - col0 FROM tab2 AS cor0
----
3358
4672
5475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-231
SELECT ALL CAST( - col0 AS SIGNED ) * + 24 AS col0 FROM tab1 AS cor0
----
-1224
-2040
-2184

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL CAST ( - col0 AS INTEGER ) * + 24 AS col0 FROM tab1 AS cor0
----
-1224
-2040
-2184

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT DISTINCT - 65 * 20 DIV + col2 AS col0 FROM tab0 AS cor0
----
-13
-130
-27

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - 65 * 20 / + col2 AS col0 FROM tab0 AS cor0
----
-13
-130
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT DISTINCT ( col1 ) DIV + col0 + - 72 * + ( + + col2 ) + + - col1 AS col0 FROM tab0 cor0
----
-3460
-7129
-741

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT ( col1 ) / + col0 + - 72 * + ( + + col2 ) + + - col1 AS col0 FROM tab0 cor0
----
-3460
-7129
-741

query II rowsort
SELECT DISTINCT - 95 * - col0, 95 * col2 AS col0 FROM tab0 AS cor0
----
1425
4465
8265
950
9215
9405

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT - COUNT( DISTINCT + - 55 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT - COUNT ( DISTINCT + - 55 ) FROM tab1
----
-1

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

query II rowsort
SELECT + col2, col1 * + ( - 47 ) FROM tab2
----
23
-2397
40
-3619
58
-3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 + - col0 col2 FROM tab2 AS cor0
----
-145
-163
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 59 + - 23 col1 FROM tab1 AS cor0
----
-82
-82
-82

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / - + 29 * + + ( + col2 ) IS NULL
----

query I rowsort
SELECT - 27 + - col1 AS col1 FROM tab2 AS cor0
----
-104
-78
-94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT DISTINCT + 92 DIV col2 AS col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT + 92 / col2 AS col1 FROM tab2
----
1
2
4

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

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

query I rowsort
SELECT col0 * + 94 + + col0 + - col1 FROM tab0
----
1344
8244
9214

query III rowsort
SELECT * FROM tab2 WHERE col0 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 37 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL + SUM( DISTINCT + + col1 ) + + 66 AS col0 FROM tab0
----
169

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL + SUM ( DISTINCT + + col1 ) + + 66 AS col0 FROM tab0
----
169

query I rowsort
SELECT ALL - col0 - + - ( - col0 ) FROM tab1 AS cor0
----
-102
-170
-182

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

query I rowsort
SELECT DISTINCT + - 30 - - col2 FROM tab0 AS cor0
----
-20
17
69

query I rowsort
SELECT DISTINCT + 75 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-255
SELECT - + ( MAX( + - col2 ) ) AS col1, MIN( + ( - col2 ) ) col0 FROM tab0 AS cor0
----
10
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-255
SELECT - + ( MAX ( + - col2 ) ) AS col1, MIN ( + ( - col2 ) ) col0 FROM tab0 AS cor0
----
10
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-256
SELECT CAST( - MIN( col1 ) AS SIGNED ) * 88 AS col1 FROM tab2 cor0
----
-4488

skipif mysql # not compatible
query I rowsort label-256
SELECT CAST ( - MIN ( col1 ) AS INTEGER ) * 88 AS col1 FROM tab2 cor0
----
-4488

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT + + COUNT( * ) FROM tab2 WHERE NOT col0 IS NULL AND NULL < - 62
----
0

skipif mysql # not compatible
query I rowsort label-259
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT col0 IS NULL AND NULL < - 62
----
0

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

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

query I rowsort
SELECT ALL 25 * col0 AS col2 FROM tab1
----
1275
2125
2275

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-263
SELECT DISTINCT COUNT( * ) * 33 AS col1, - COUNT( * ) AS col1 FROM tab0
----
99
-3

skipif mysql # not compatible
query II rowsort label-263
SELECT DISTINCT COUNT ( * ) * 33 AS col1, - COUNT ( * ) AS col1 FROM tab0
----
99
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-264
SELECT DISTINCT + COUNT( col0 ) * - 63 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT + COUNT ( col0 ) * - 63 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
63

query I rowsort
SELECT - col2 * - col0 + 59 AS col2 FROM tab0
----
764
929
9662

query I rowsort
SELECT ALL col1 + - - 60 AS col1 FROM tab1 AS cor0
----
107
65
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 85 )
----

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

query I rowsort
SELECT + col1 * + 46 FROM tab0
----
3726
46
966

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

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT - 97 - + COUNT( * ) AS col0 FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-271
SELECT - 97 - + COUNT ( * ) AS col0 FROM tab2
----
-100

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

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

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

query II rowsort
SELECT DISTINCT col1, col2 * - ( - col0 ) AS col0 FROM tab1
----
14
4896
47
6188
5
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT - COUNT( - ( - + 24 ) ) col2 FROM tab2 cor0 WHERE col1 NOT IN ( - + col2, col2 * + ( - 24 ) )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-275
SELECT - COUNT ( - ( - + 24 ) ) col2 FROM tab2 cor0 WHERE col1 NOT IN ( - + col2, col2 * + ( - 24 ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT ALL 37 * col1 + CAST( + - 66 AS SIGNED ) FROM tab1 cor0
----
119
1673
452

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL 37 * col1 + CAST ( + - 66 AS INTEGER ) FROM tab1 cor0
----
119
1673
452

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

query I rowsort
SELECT DISTINCT + col1 * - 33 + 5 FROM tab0 cor0
----
-2668
-28
-688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-279
SELECT + + CAST( + + 85 AS SIGNED ) FROM tab1 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-279
SELECT + + CAST ( + + 85 AS INTEGER ) FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT col0 * - 81 * col2 AS col2 FROM tab0
----
-57105
-70470
-777843

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 87 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + 6 ) AS col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT COUNT( - 53 ) * - SUM( - col2 ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-283
SELECT COUNT ( - 53 ) * - SUM ( - col2 ) FROM tab2 AS cor0
----
363

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT 8 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-284
SELECT 8 / col0 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT - 91 * + ( + - 51 ) FROM tab0 cor0
----
4641
4641
4641

query I rowsort
SELECT ALL ( 67 ) AS col2 FROM tab1
----
67
67
67

query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab1 WHERE + 36 IS NOT NULL
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-289
SELECT + MAX( + col2 ) DIV 94 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-289
SELECT + MAX ( + col2 ) / 94 FROM tab0
----
1

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

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL - COUNT ( * ) * - 34 FROM tab2
----
102

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 * + col1 col2 FROM tab2
----
1122
1474
1694

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 19 ) * - 58 + + + col2 NOT IN ( + col0 + + + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT - SUM( DISTINCT 6 ) FROM tab1 WHERE NOT + + col0 + - col2 + + col1 IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-294
SELECT - SUM ( DISTINCT 6 ) FROM tab1 WHERE NOT + + col0 + - col2 + + col1 IS NULL
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-295
SELECT DISTINCT 14 DIV + + col2 AS col2 FROM tab0 AS cor0 WHERE col0 DIV + col2 * + ( col0 ) IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT 14 / + + col2 AS col2 FROM tab0 AS cor0 WHERE col0 / + col2 * + ( col0 ) IS NOT NULL
----
0
1

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 94 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + + 61 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT 86 + - + col0 DIV 41 * + 10 AS col0 FROM tab2 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-299
SELECT 86 + - + col0 / 41 * + 10 AS col0 FROM tab2 AS cor0
----
76
76
76

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

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) * - 76 + + - 93 + col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 6 * + col2 + - 52 + - + 65 + - col2 * + 7 * + 58 AS col1 FROM tab0 AS cor0
----
-18917
-39717
-4117

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT - + 91 + - 65 - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-302
SELECT - + 91 + - 65 - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-159

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 11 < - + col0 + 18
----

query I rowsort
SELECT ALL col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-305
SELECT ALL - 45 * CAST( 91 AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0 WHERE + 1 * + col0 / + - col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL - 45 * CAST ( 91 AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0 WHERE + 1 * + col0 / + - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 51 <= + col0
----
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT DISTINCT - COUNT( * ) * - 5 * - COUNT( * ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT - COUNT ( * ) * - 5 * - COUNT ( * ) FROM tab0
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-308
SELECT ALL col0 DIV + 39, col0 AS col1 FROM tab2
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-308
SELECT ALL col0 / + 39, col0 AS col1 FROM tab2
----
1
46
1
64
1
75

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

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + + 93 + COUNT ( * ) FROM tab1
----
105

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

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

query I rowsort
SELECT DISTINCT + ( 14 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT DISTINCT 27 * - 72 DIV 36 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT 27 * - 72 / 36 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT - MIN( ALL + col1 ) * - - MAX( ALL + - 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-313
SELECT - MIN ( ALL + col1 ) * - - MAX ( ALL + - 8 ) FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL - COUNT( * ) + - COUNT( - 74 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL - COUNT ( * ) + - COUNT ( - 74 ) FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT DISTINCT - 87 DIV ( + col1 ) + col1 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT - 87 / ( + col1 ) + col1 FROM tab2 AS cor0
----
50
66
76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-317
SELECT COUNT( * ) AS col0, 81 + + - COUNT( * ) FROM tab0
----
3
78

skipif mysql # not compatible
query II rowsort label-317
SELECT COUNT ( * ) AS col0, 81 + + - COUNT ( * ) FROM tab0
----
3
78

query I rowsort
SELECT + + 43 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT - 46 * col1 AS col1 FROM tab0
----
-3726
-46
-966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * + col2 col0 FROM tab1
----
-1152
-708
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT - SUM( ALL - - 15 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-321
SELECT - SUM ( ALL - - 15 ) FROM tab2 AS cor0
----
-45

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

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

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

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

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

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

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT - col1 * - + col2 + + 52 + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + - 10 ) FROM tab0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT DISTINCT + SUM( DISTINCT col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT + SUM ( DISTINCT col2 ) AS col0 FROM tab2
----
121

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

skipif mysql # not compatible
query I rowsort label-329
SELECT MIN ( DISTINCT - col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT - 78 AS col2 FROM tab0 WHERE col1 * - 68 IS NOT NULL
----
-78
-78
-78

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

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

query I rowsort
SELECT DISTINCT 29 * 48 + + 86 * + col1 + 33 AS col0 FROM tab1 AS cor0
----
1855
2629
5467

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 11 * + 86 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT + col1 + col1 - + - col1 DIV + col2 AS col0 FROM tab0
----
163
2
44

skipif mysql # not compatible
query I rowsort label-334
SELECT + col1 + col1 - + - col1 / + col2 AS col0 FROM tab0
----
163
2
44

query III rowsort
SELECT * FROM tab1 WHERE - 40 NOT BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 34 - - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT 62 * - MAX( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
1426

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT 62 * - MAX ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
1426

query I rowsort
SELECT DISTINCT - col2 + - + 45 FROM tab2 WHERE + col1 IS NOT NULL
----
-103
-68
-85

query I rowsort
SELECT - 89 + + col0 AS col1 FROM tab0
----
-2
-74
8

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-343
SELECT 41 * MAX( ALL CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-343
SELECT 41 * MAX ( ALL CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-346
SELECT - col1 / + - 70 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-349
SELECT ALL + 1 DIV - MAX( - - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-349
SELECT ALL + 1 / - MAX ( - - col1 ) FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT + 31 * + + col2 AS col2 FROM tab2 WHERE NOT 83 * col2 * - 85 IS NULL
----
1240
1798
713

query I rowsort
SELECT - col0 * + 12 * 27 AS col2 FROM tab1
----
-16524
-27540
-29484

query II rowsort
SELECT DISTINCT 63 * + col2 AS col0, 68 FROM tab1 AS cor0
----
3717
68
4284
68
6048
68

query I rowsort
SELECT DISTINCT col0 * col1 - - col1 FROM tab0 cor0 WHERE NOT - col0 IS NULL
----
1296
1848
98

query II rowsort
SELECT ALL - col2 * - 25 AS col1, col1 FROM tab1 AS cor0
----
1475
5
1700
47
2400
14

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

skipif mysql # not compatible
query I rowsort label-356
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - col1
----
0

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

skipif mysql # not compatible
query I rowsort label-357
SELECT + COUNT ( * ) / - 50 AS col2 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT - + 56 * + COUNT( * ), - 26 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-168
-23

skipif mysql # not compatible
query II rowsort label-359
SELECT - + 56 * + COUNT ( * ), - 26 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-168
-23

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-362
SELECT SUM( + 15 ) + - 94 AS col2, MAX( - + col0 ) AS col1 FROM tab2
----
-49
-46

skipif mysql # not compatible
query II rowsort label-362
SELECT SUM ( + 15 ) + - 94 AS col2, MAX ( - + col0 ) AS col1 FROM tab2
----
-49
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT - COUNT( * ) + - 72 col2 FROM tab2
----
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL + COUNT( * ) + 97 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL + COUNT ( * ) + 97 FROM tab0
----
100

query II rowsort
SELECT - 17 * + ( - 22 ) AS col0, - 94 AS col1 FROM tab1 AS cor0
----
374
-94
374
-94
374
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, col0 * - + 67 + 50 col1 FROM tab0 cor0
----
-15
-955
-87
-5779
-97
-6449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-367
SELECT ALL + + 7 DIV COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL + + 7 / COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT + MIN( ALL + ( - 8 ) ) AS col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-368
SELECT + MIN ( ALL + ( - 8 ) ) AS col2 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT - - 92 * + + col2 AS col2 FROM tab0 AS cor0
----
4324
9108
920

query I rowsort
SELECT - 28 + + col1 FROM tab2 WHERE + - col0 * - col1 * - - col0 IS NULL
----

query I rowsort
SELECT 77 * + - 32 - - col0 FROM tab1
----
-2373
-2379
-2413

query I rowsort
SELECT col1 + + - 17 FROM tab0
----
-16
4
64

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-374
SELECT - 51 * col0 + ( 85 ) - + col2 * - - col0 + - col0 DIV + CAST( + col0 AS SIGNED ) + + col0 * + - 82 + + col0 - - 80 DIV - + col2 AS col0, col0 AS col1 FROM tab1 AS cor0
----
-11544
51
-16152
85
-18117
91

skipif mysql # not compatible
query II rowsort label-374
SELECT - 51 * col0 + ( 85 ) - + col2 * - - col0 + - col0 / + CAST ( + col0 AS INTEGER ) + + col0 * + - 82 + + col0 - - 80 / - + col2 AS col0, col0 AS col1 FROM tab1 AS cor0
----
-11544
51
-16152
85
-18117
91

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

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

query I rowsort
SELECT ALL + - col0 * + + col1 + 4 AS col2 FROM tab0 AS cor0
----
-1211
-1823
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT - 7 DIV - col0 * + col0 + + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-377
SELECT - 7 / - col0 * + col0 + + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 98 * + col0 BETWEEN NULL AND 79
----

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

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

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

query I rowsort
SELECT + + ( col2 ) AS col0 FROM tab2 WHERE NOT ( col2 IS NULL )
----
23
40
58

query I rowsort
SELECT ( - col1 ) * 57 AS col1 FROM tab0
----
-1197
-4617
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-383
SELECT DISTINCT + col2 AS col0, 45 DIV + - col0 AS col1 FROM tab0
----
10
0
47
-3
99
0

skipif mysql # not compatible
query II rowsort label-383
SELECT DISTINCT + col2 AS col0, 45 / + - col0 AS col1 FROM tab0
----
10
0
47
-3
99
0

query I rowsort
SELECT 31 * - col0 * + - col1 FROM tab0
----
3007
37665
56637

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

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT MAX( - + 31 ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-386
SELECT MAX ( - + 31 ) FROM tab1
----
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT DISTINCT COUNT( * ) * 70 FROM tab2 cor0
----
210

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT COUNT ( * ) * 70 FROM tab2 cor0
----
210

query I rowsort
SELECT DISTINCT + - 37 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-37

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 / 35 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT DISTINCT 31 - - - COUNT( 9 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
31

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT 31 - - - COUNT ( 9 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT + - 36 * - ( - 38 ) * COUNT( * ) FROM tab0 AS cor0
----
-4104

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT + - 36 * - ( - 38 ) * COUNT ( * ) FROM tab0 AS cor0
----
-4104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-398
SELECT + col2 DIV + CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-398
SELECT + col2 / + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 39 + + + col2 + + - col1 AS col1 FROM tab2
----
11
2
30

query I rowsort
SELECT ALL 87 + + - col2 FROM tab2 WHERE - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - 38 col1 FROM tab1 AS cor0
----
-106
-134
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) + + col1 IS NULL
----

query I rowsort
SELECT ALL col1 * + 86 + col1 FROM tab2 cor0
----
4437
5829
6699

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-405
SELECT DISTINCT - - COUNT ( * ) * - 68 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-612

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT 58 DIV + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-406
SELECT 58 / + col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT DISTINCT COUNT( * ) AS col2, 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
28

skipif mysql # not compatible
query II rowsort label-407
SELECT DISTINCT COUNT ( * ) AS col2, 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
28

onlyif mysql # aggregate syntax: 
query II rowsort label-408
SELECT 61 AS col2, COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
61
9

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

query I rowsort
SELECT ALL - 58 + + 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL + 99 + - col0 FROM tab2 cor0
----
24
35
53

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL - 0 * MAX( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - 0 * MAX ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-414
SELECT - col1 AS col2, - ( - CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-414
SELECT - col1 AS col2, - ( - CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL ( + MIN( - 86 ) ) AS col2 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL ( + MIN ( - 86 ) ) AS col2 FROM tab1
----
-86

query I rowsort
SELECT DISTINCT ( + + 24 ) AS col2 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT ALL SUM( DISTINCT 55 ) AS col2 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL SUM ( DISTINCT 55 ) AS col2 FROM tab2
----
55

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * + col1 + 68 + - - col1 * - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 BETWEEN - 9 + - col0 AND - - 57
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - 22 FROM tab0 WHERE NOT - - col2 IS NULL
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT 82 DIV col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-422
SELECT 82 / col2 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT + - MAX( DISTINCT + 18 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-18

skipif mysql # not compatible
query I rowsort label-423
SELECT + - MAX ( DISTINCT + 18 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT DISTINCT - COUNT( * ) + 13 + COUNT( * ) DIV COUNT( * ) + 35 col1 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-424
SELECT DISTINCT - COUNT ( * ) + 13 + COUNT ( * ) / COUNT ( * ) + 35 col1 FROM tab2
----
46

query I rowsort
SELECT + 23 * + 53 FROM tab1 cor0
----
1219
1219
1219

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + 12
----

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

query I rowsort
SELECT col0 * - 80 + + col1 FROM tab1
----
-4066
-6795
-7233

query I rowsort
SELECT ALL + AVG ( + 99 ) FROM tab1 WHERE NOT ( + col0 + + col1 IS NOT NULL )
----
NULL

query I rowsort
SELECT + col2 * - 5 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT MIN( DISTINCT + 17 ) * COUNT( * ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-431
SELECT MIN ( DISTINCT + 17 ) * COUNT ( * ) FROM tab2 cor0
----
51

query I rowsort
SELECT DISTINCT col1 * + col2 + + col0 + - + col2 + + - 78 AS col1 FROM tab0 AS cor0
----
19
209
3697

query I rowsort
SELECT 77 FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT + - col0 DIV 55 * - col0 - + - col2 AS col1 FROM tab0 cor0
----
196
47
97

skipif mysql # not compatible
query I rowsort label-435
SELECT + - col0 / 55 * - col0 - + - col2 AS col1 FROM tab0 cor0
----
196
47
97

query I rowsort
SELECT col0 * - - ( col0 ) AS col1 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 + + 90 col1 FROM tab1 cor0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * 90 col1 FROM tab2
----
5400
5400
5400

query III rowsort
SELECT * FROM tab1 WHERE + col0 = - col2 OR NOT NULL IN ( + col2 - col2, 37, - col1, + col2 * col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 - - 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT ( - MIN( 49 ) ) AS col1 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-441
SELECT ( - MIN ( 49 ) ) AS col1 FROM tab2
----
-49

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

query I rowsort
SELECT - 94 * + + col0 * 15 FROM tab2
----
-105750
-64860
-90240

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT - ( - SUM( ALL - col1 ) ) * COUNT( * ) AS col0 FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-444
SELECT - ( - SUM ( ALL - col1 ) ) * COUNT ( * ) AS col0 FROM tab0
----
-309

query I rowsort
SELECT ALL + - 78 FROM tab2 AS cor0 WHERE NOT 62 IS NULL
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + col1 + + + ( + + 75 ) - - col2 FROM tab1
----
139
185
190

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT DISTINCT 30 / + + MAX( DISTINCT - ( col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT 30 / + + MAX ( DISTINCT - ( col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT 39 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
39
39
39

query I rowsort
SELECT DISTINCT - col2 * - - 73 + + + col1 AS col0 FROM tab1 AS cor0
----
-4302
-4917
-6994

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT DISTINCT MIN( ALL - 35 ) AS col1 FROM tab2 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT MIN ( ALL - 35 ) AS col1 FROM tab2 cor0
----
-35

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 * - + 0 col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE col0 + - col0 < + - col0
----

query I rowsort
SELECT ALL + col0 * - col0 * - 63 FROM tab1
----
163863
455175
521703

query I rowsort
SELECT 27 - + - 80 AS col1 FROM tab0
----
107
107
107

query I rowsort
SELECT - 31 - + col2 FROM tab0
----
-130
-41
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 55 col2 FROM tab0
----
-4785
-5335
-825

query I rowsort
SELECT DISTINCT col2 * col1 * 10 + - + col1 AS col0 FROM tab2
----
11679
30723
38793

query I rowsort
SELECT - col1 * - - col1 + + ( - - col0 ) FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT 76 + - - col0 FROM tab2
----
122
140
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT ALL + 44 DIV + COUNT( * ) FROM tab1
----
14

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

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

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT + ( col0 ) IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - ( - - col1 ) FROM tab1 AS cor0 WHERE NOT + 31 + - ( - - 6 ) + + + 16 + - + 91 IS NULL
----
-14
-47
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 85, col2 + 64 + - 87 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT ALL - - 72 AS col2, 19 FROM tab0 AS cor0
----
72
19
72
19
72
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 15 * + - 98 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT DISTINCT - - 40 * + COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT - - 40 * + COUNT ( * ) FROM tab2 AS cor0
----
120

query I rowsort
SELECT - 53 * col1 AS col0 FROM tab2 AS cor0
----
-2703
-3551
-4081

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

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

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT COUNT( * ) - + ( + SUM( - ( - + 0 ) ) ) AS col2 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-476
SELECT COUNT ( * ) - + ( + SUM ( - ( - + 0 ) ) ) AS col2 FROM tab0, tab0 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-477
SELECT DISTINCT CAST( NULL AS SIGNED ) / - MIN( - col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - MIN ( - col1 ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-478
SELECT DISTINCT - MAX( - col1 ) DIV COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT - MAX ( - col1 ) / COUNT ( * ) AS col2 FROM tab1
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - 95 * - + col2 / 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-481
SELECT ALL CAST( + 24 AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL CAST ( + 24 AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

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

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT + + col2 + - - CAST ( NULL AS INTEGER ) * 93 FROM tab1 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-483
SELECT - + COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT + + col2 + + 66 FROM tab1 AS cor0
----
125
134
162

query I rowsort
SELECT col1 + - 34 + - - ( 28 ) * col1 FROM tab0 AS cor0
----
-5
2315
575

query I rowsort
SELECT DISTINCT - 21 * - col0 - - 13 + 15 FROM tab2 AS cor0
----
1372
1603
994

query II rowsort
SELECT DISTINCT col2, - 15 FROM tab1 AS cor0
----
59
-15
68
-15
96
-15

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL <= - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT + COUNT( * ) + - - COUNT( * ) + - - ( - 78 ) * 36 AS col1 FROM tab0 AS cor0
----
-2802

skipif mysql # not compatible
query I rowsort label-490
SELECT + COUNT ( * ) + - - COUNT ( * ) + - - ( - 78 ) * 36 AS col1 FROM tab0 AS cor0
----
-2802

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

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

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

query I rowsort
SELECT ALL 56 * - 88 AS col0 FROM tab2
----
-4928
-4928
-4928

query I rowsort
SELECT ALL 95 - - col2 AS col2 FROM tab0
----
105
142
194

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT 96 DIV - 33 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-495
SELECT 96 / - 33 FROM tab1
----
-2
-2
-2

query II rowsort
SELECT DISTINCT - ( 10 ), col2 AS col0 FROM tab0
----
-10
10
-10
47
-10
99

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

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

query I rowsort
SELECT ALL - ( 55 ) AS col2 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT DISTINCT col0 + + + col2 + col0 AS col2 FROM tab1
----
198
229
250

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

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

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

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab1, tab0 AS cor0
----
27

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

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

query I rowsort
SELECT DISTINCT ( - 18 ) * + 84 FROM tab1 AS cor0
----
-1512

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <= ( + 29 * - + 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col1 * + 72 * - col2 * - + 76 + - - 32 - - + col2 * 18 AS col0 FROM tab1 AS cor0
----
1615334
17489768
7356128

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

query I rowsort
SELECT ALL 0 * - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT COUNT( col2 ) * - MIN( ALL - + ( 29 ) ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-510
SELECT COUNT ( col2 ) * - MIN ( ALL - + ( 29 ) ) FROM tab2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-511
SELECT DISTINCT col0 DIV - 28 AS col2 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT col0 / - 28 AS col2 FROM tab0
----
-3
0

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

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

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

query II rowsort
SELECT + col2 AS col0, 91 * 34 + 59 * col1 + + 58 AS col1 FROM tab2
----
23
6161
40
7695
58
7105

query I rowsort
SELECT DISTINCT - col0 * - 99 + - col1 FROM tab1
----
5035
8410
8962

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

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

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

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

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

query I rowsort
SELECT ALL col1 - - 44 - - + col0 AS col1 FROM tab0 AS cor0
----
140
142
152

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT DISTINCT - 79 + + COUNT( * ) FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - 79 + + COUNT ( * ) FROM tab1 cor0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-521
SELECT + col2 - 11 + 82 * - 38 + col1 DIV - - 72 AS col0 FROM tab1 AS cor0
----
-3031
-3059
-3068

skipif mysql # not compatible
query I rowsort label-521
SELECT + col2 - 11 + 82 * - 38 + col1 / - - 72 AS col0 FROM tab1 AS cor0
----
-3031
-3059
-3068

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

query I rowsort
SELECT + - 6 - + col1 * 19 FROM tab0 AS cor0
----
-1545
-25
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL - - 85 - + - COUNT( * ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - - 85 - + - COUNT ( * ) FROM tab1 AS cor0
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT + - 85 + + COUNT( * ) * - 15 AS col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-130

skipif mysql # not compatible
query I rowsort label-526
SELECT + - 85 + + COUNT ( * ) * - 15 AS col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-527
SELECT - col0 + + - CAST( - + col1 AS SIGNED ) + - 16 * - col2 AS col0 FROM tab1
----
1044
1499
864

skipif mysql # not compatible
query I rowsort label-527
SELECT - col0 + + - CAST ( - + col1 AS INTEGER ) + - 16 * - col2 AS col0 FROM tab1
----
1044
1499
864

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-529
SELECT DISTINCT - - SUM ( - col2 ) col1 FROM tab2 AS cor0
----
-121

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

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

query I rowsort
SELECT DISTINCT - + col2 * - + 74 FROM tab2 AS cor0
----
1702
2960
4292

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN - col2 AND + col2 * + - col2 + col2 * - col1
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( col1 ) * + col1 + col2 FROM tab0
----
-431
-6514
98

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

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( - col0 ) BETWEEN NULL AND + col0 * ( 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT DISTINCT 74 + - SUM( 34 ) AS col1 FROM tab1 WHERE NOT ( col2 + - ( - ( - col1 ) ) ) NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT 74 + - SUM ( 34 ) AS col1 FROM tab1 WHERE NOT ( col2 + - ( - ( - col1 ) ) ) NOT IN ( col0 )
----
NULL

query I rowsort
SELECT 92 - + 52 FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT - SUM( DISTINCT + 32 ) / COUNT( * ) - + COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT - SUM ( DISTINCT + 32 ) / COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) <= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) < 77 - col1
----
15
81
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT + SUM( DISTINCT col1 ) + - 64 col0 FROM tab1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-546
SELECT + SUM ( DISTINCT col1 ) + - 64 col0 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT ALL - COUNT( * ) FROM tab0 WHERE - col0 * - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - col0 * - col1 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT + MIN( DISTINCT + 50 ) * - COUNT( * ) AS col1 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-548
SELECT + MIN ( DISTINCT + 50 ) * - COUNT ( * ) AS col1 FROM tab1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT - COUNT( ALL + col2 ) * 34 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-549
SELECT - COUNT ( ALL + col2 ) * 34 FROM tab0
----
-102

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE col2 IN ( - col1 + 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT DISTINCT + COUNT( * ) * + 90 + - MIN( ALL ( + 61 ) ) FROM tab2
----
209

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT + COUNT ( * ) * + 90 + - MIN ( ALL ( + 61 ) ) FROM tab2
----
209

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) <> NULL
----

query I rowsort
SELECT col2 + - col0 * - 65 FROM tab2
----
3013
4200
4933

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE ( col0 ) < ( 10 + + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE ( col0 ) < ( 10 + + col0 )
----
-3

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

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

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

query I rowsort
SELECT - - 67 + col1 AS col2 FROM tab2 AS cor0
----
118
134
144

query I rowsort
SELECT - col1 + 11 AS col2 FROM tab0 AS cor0
----
-10
-70
10

query I rowsort
SELECT ALL 38 * col0 + 15 AS col2 FROM tab2 AS cor0
----
1763
2447
2865

query I rowsort
SELECT DISTINCT + - 39 + + col2 * + col2 FROM tab0 AS cor0
----
2170
61
9762

query I rowsort
SELECT ALL + col0 + 43 AS col2 FROM tab2 AS cor0
----
107
118
89

query I rowsort
SELECT DISTINCT - + 44 - + col1 FROM tab1 AS cor0
----
-49
-58
-91

query I rowsort
SELECT 81 + - col2 AS col2 FROM tab1 cor0
----
-15
13
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + 56 * col1 col1 FROM tab0 cor0
----
1197
4617
57

query I rowsort
SELECT ALL + ( - col0 ) - + 0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

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

query I rowsort
SELECT DISTINCT - col0 + 16 AS col0 FROM tab1 AS cor0
----
-35
-69
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL 15 - MAX( DISTINCT - 15 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL 15 - MAX ( DISTINCT - 15 ) FROM tab1
----
30

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 NOT BETWEEN ( + col2 * col0 + 91 ) AND NULL OR NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
1
21
81

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 95 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( + 61 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-577
SELECT ALL - 49 * CAST( NULL AS SIGNED ) - + col2 col2 FROM tab1 AS cor0 WHERE col2 + col0 * + CAST( NULL AS SIGNED ) <> ( + 53 * + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-577
SELECT ALL - 49 * CAST ( NULL AS INTEGER ) - + col2 col2 FROM tab1 AS cor0 WHERE col2 + col0 * + CAST ( NULL AS INTEGER ) <> ( + 53 * + col1 )
----

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

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

query I rowsort
SELECT ALL col2 * - 92 FROM tab0 cor0 WHERE ( col1 + col2 ) IS NOT NULL
----
-4324
-9108
-920

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col0 <> ( - col1 )
----
10
47
99

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + col0 / col0 - - 16 IS NULL
----
14
47
5

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

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

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

query I rowsort
SELECT ALL + 72 + - 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-585
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL + COUNT ( * ) FROM tab1 WHERE ( - 91 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT - col2 NOT BETWEEN 1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-587
SELECT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT - col2 NOT BETWEEN 1 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( 21 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ALL - 88 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - 88 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-264

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

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT DISTINCT col2 - - 58 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 DIV ( - col1 ) - col0 NOT IN ( - col0 )
----
105

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT col2 - - 58 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 / ( - col1 ) - col0 NOT IN ( - col0 )
----
105

query I rowsort
SELECT ALL 7 - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + - 95 ) * + ( 66 * 12 ) = NULL
----

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

query I rowsort
SELECT + col0 * 83 FROM tab0 AS cor0
----
1245
7221
8051

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

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

query I rowsort
SELECT col2 FROM tab0 WHERE NOT 25 > - - col2 + col2
----
47
99

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

skipif mysql # not compatible
query II rowsort label-600
SELECT ( + 56 ) AS col1, + CAST ( NULL AS REAL ) + col0 * + ( - col2 ) AS col1 FROM tab1
----
56
NULL
56
NULL
56
NULL

query I rowsort
SELECT DISTINCT AVG ( + col0 ) * + ( - AVG ( - col0 ) ) FROM tab1 WHERE NOT NULL NOT IN ( - 69 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 - col0 IS NULL
----

query I rowsort
SELECT ALL - ( - - col0 ) AS col1 FROM tab1
----
-51
-85
-91

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + MAX( col2 ) FROM tab2 WHERE NULL >= + col0 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-608
SELECT + MAX ( col2 ) FROM tab2 WHERE NULL >= + col0 * - col2
----
NULL

query I rowsort
SELECT ALL + ( - + 36 ) * + 50 + + 69 + - col1 FROM tab1
----
-1736
-1745
-1778

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN - 55 * - - 81 * - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-610
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN - 55 * - - 81 * - col0 AND NULL
----
0

query I rowsort
SELECT ALL col0 + + ( col2 ) AS col2 FROM tab2
----
104
133
69

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

query I rowsort
SELECT - 56 + col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-35
-55
25

query I rowsort
SELECT ALL - 17 AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN ( - 5 ) AND 41 * - col0 )
----

query I rowsort
SELECT DISTINCT + ( ( + col2 ) ) - + - col2 - 62 FROM tab2
----
-16
18
54

query I rowsort
SELECT 82 * + - col1 * - + col1 FROM tab1
----
16072
181138
2050

query I rowsort
SELECT - 24 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-24
-24
-24

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

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

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

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

query I rowsort
SELECT 15 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + 52 + - col2 AS col1 FROM tab1 AS cor0
----
-16
-44
-7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 96 < - 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT DISTINCT - 71 DIV 63 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT - 71 / 63 AS col0 FROM tab0
----
-1

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - ( - 70 ) AND ( + 68 )
----

query I rowsort
SELECT + col0 * + col2 FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN NULL AND + col0 + - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - 84 * + - COUNT( * ) AS col1 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-627
SELECT - 84 * + - COUNT ( * ) AS col1 FROM tab0
----
252

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

query I rowsort
SELECT + 0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 7, col1 col1 FROM tab1 AS cor0
----
7
14
7
47
7
5

query I rowsort
SELECT 59 AS col2 FROM tab2 WHERE NOT - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-634
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND ( col1 + + - CAST( NULL AS SIGNED ) + + + col2 + - col0 * col1 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-634
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND ( col1 + + - CAST ( NULL AS INTEGER ) + + + col2 + - col0 * col1 + + col1 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= - 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-636
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( + CAST( + - 36 AS SIGNED ) ) ) * + 44 / + - col1 NOT BETWEEN ( + col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-636
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( + CAST ( + - 36 AS INTEGER ) ) ) * + 44 / + - col1 NOT BETWEEN ( + col0 ) AND NULL
----

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

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

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

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

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

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

query I rowsort
SELECT + + 62 * col1 AS col0 FROM tab1 AS cor0
----
2914
310
868

query II rowsort
SELECT DISTINCT 91 AS col2, 68 * col2 * - col0 FROM tab0 AS cor0 WHERE NOT 43 > - col0 / - - 94
----

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab1 AS cor0 WHERE NOT - 3 BETWEEN NULL AND - 2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-644
SELECT + CAST( 90 AS SIGNED ) + - SUM( DISTINCT - 56 ) FROM tab2 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-644
SELECT + CAST ( 90 AS INTEGER ) + - SUM ( DISTINCT - 56 ) FROM tab2 AS cor0
----
146

query I rowsort
SELECT + - 39 + - 95 FROM tab2 AS cor0
----
-134
-134
-134

query I rowsort
SELECT ALL - col0 + 26 FROM tab0
----
-61
-71
11

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT ALL + COUNT( * ) * 61 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL + COUNT ( * ) * 61 FROM tab1
----
183

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

query I rowsort
SELECT ALL + col0 * + + 50 * + 46 FROM tab2
----
105800
147200
172500

query I rowsort
SELECT ALL - col1 * - - col1 + + col2 AS col2 FROM tab1
----
-100
-2141
34

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-653
SELECT + + col1 * - col0 * - CAST( NULL AS SIGNED ) * - 82 * + col0 - + CAST( NULL AS SIGNED ) AS col2, + 54 AS col2 FROM tab1 AS cor0
----
NULL
54
NULL
54
NULL
54

skipif mysql # not compatible
query II rowsort label-653
SELECT + + col1 * - col0 * - CAST ( NULL AS INTEGER ) * - 82 * + col0 - + CAST ( NULL AS INTEGER ) AS col2, + 54 AS col2 FROM tab1 AS cor0
----
NULL
54
NULL
54
NULL
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-654
SELECT DISTINCT SUM( DISTINCT - - col1 ) - - + ( + - CAST( 67 AS SIGNED ) ) * 91 * + 59 * - - 96 FROM tab2 AS cor0
----
-34533213

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT SUM ( DISTINCT - - col1 ) - - + ( + - CAST ( 67 AS INTEGER ) ) * 91 * + 59 * - - 96 FROM tab2 AS cor0
----
-34533213

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

query I rowsort
SELECT DISTINCT ( + 50 ) AS col1 FROM tab0, tab0 AS cor0 WHERE NOT - + 88 IS NULL
----
50

query I rowsort
SELECT DISTINCT - 90 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-90

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

query I rowsort
SELECT ALL - ( + 85 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 81 * - 11 * - col1 ) IN ( col1 * col0, - 78 / + col0 )
----

query I rowsort
SELECT + col2 + + + col0 + + + col1 FROM tab2 cor0
----
120
181
200

query I rowsort
SELECT DISTINCT - col2 + - - 37 + + 65 FROM tab1 AS cor0
----
34
43
6

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

query I rowsort
SELECT ALL ( col2 ) * - col1 FROM tab1 WHERE - - col0 NOT BETWEEN NULL AND - 37
----
-1344
-295
-3196

query I rowsort
SELECT ALL - 10 * - - 87 FROM tab0
----
-870
-870
-870

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-667
SELECT ALL + 84 DIV - + 43 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL + 84 / - + 43 FROM tab1
----
-1
-1
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT DISTINCT + col0 DIV 50 * + col2 FROM tab2 AS cor0
----
0
40
58

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT + col0 / 50 * + col2 FROM tab2 AS cor0
----
0
40
58

query I rowsort
SELECT ALL - col1 * - 39 * - + 5 + - 55 FROM tab0 AS cor0
----
-15850
-250
-4150

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT ALL + 73 + - col0 FROM tab1 cor0 WHERE 49 IS NOT NULL
----
-12
-18
22

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

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT 60 + + col1 / col2 FROM tab1 AS cor0
----
60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 IN ( - 6, col2, + - 60, - 23, - + 64 * - - 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT DISTINCT AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE + 85 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-680
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE + 85 NOT BETWEEN NULL AND NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * + - col2 * - - col2 col1 FROM tab2
----
-107200
-225388
-35443

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND + col2 * - + ( col0 ) * - col1
----
0

skipif mysql # not compatible
query I rowsort label-683
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND + col2 * - + ( col0 ) * - col1
----
0

query I rowsort
SELECT ALL + col1 + - col0 + - + 7 AS col1 FROM tab1
----
-44
-51
-87

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

query I rowsort
SELECT 59 + + 20 AS col0 FROM tab2
----
79
79
79

query I rowsort
SELECT DISTINCT + + col1 + + + 51 * - col0 * - col2 AS col2 FROM tab0 cor0
----
36036
44391
489754

query I rowsort
SELECT ALL + ( col1 ) * - col1 - + col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2268
-7776
-98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-690
SELECT - + 72 * + CAST( + 56 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-4032
-4032
-4032

skipif mysql # not compatible
query I rowsort label-690
SELECT - + 72 * + CAST ( + 56 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-4032
-4032
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT ALL ( 19 ) + - 21 * COUNT( * ) AS col0 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL ( 19 ) + - 21 * COUNT ( * ) AS col0 FROM tab1
----
-44

query I rowsort
SELECT - + col0 * col2 - + 64 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( - 62 ) BETWEEN col2 - + 43 AND col1 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * - col0 col1 FROM tab1 AS cor0
----
-4896
-8160
-8736

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

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT + 27 * - col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 14 AS col2, 51 FROM tab0 AS cor0
----
14
51
14
51
14
51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT 57 * - 56 AS col0, + ( - 37 ) * + COUNT( * ) - + + 81 + - + SUM( + col1 ) AS col0 FROM tab2
----
-3192
-387

skipif mysql # not compatible
query II rowsort label-697
SELECT 57 * - 56 AS col0, + ( - 37 ) * + COUNT ( * ) - + + 81 + - + SUM ( + col1 ) AS col0 FROM tab2
----
-3192
-387

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 75 col2 FROM tab0 AS cor0
----
3525
7425
750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 43 NOT IN ( + 30, 61, - ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-701
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 43 NOT IN ( + 30, 61, - ( + col1 ) )
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT DISTINCT + MAX( DISTINCT - col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT + MAX ( DISTINCT - col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15

query I rowsort
SELECT ALL col0 + 26 AS col1 FROM tab1
----
111
117
77

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT DISTINCT COUNT( + 27 ) * 3 + - ( - + 10 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
37

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT COUNT ( + 27 ) * 3 + - ( - + 10 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-707
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( + - 55 >= + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-707
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( + - 55 >= + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + ( - 2 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-710
SELECT MAX( - col0 ) * + - COUNT( ALL + - col2 ) FROM tab2 AS cor0 WHERE col0 <> CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT MAX ( - col0 ) * + - COUNT ( ALL + - col2 ) FROM tab2 AS cor0 WHERE col0 <> CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-712
SELECT + CAST( + 68 AS SIGNED ) + + - SUM( - + col0 ) col0 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-712
SELECT + CAST ( + 68 AS INTEGER ) + + - SUM ( - + col0 ) col0 FROM tab0 AS cor0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT DISTINCT - 22 + - 63 - - + col0 - - - col1 + + - col0 DIV col2 FROM tab2 AS cor0
----
-78
-92
-99

skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT - 22 + - 63 - - + col0 - - - col1 + + - col0 / col2 FROM tab2 AS cor0
----
-78
-92
-99

query I rowsort
SELECT ALL - col1 - col2 FROM tab1 AS cor0 WHERE NOT col0 + - + col0 NOT BETWEEN - col2 AND + - col2
----

query I rowsort
SELECT ALL + col2 + + - ( - col2 ) FROM tab0 AS cor0
----
198
20
94

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

query I rowsort
SELECT col2 + - - col1 + - col1 FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT DISTINCT + + 91 DIV col2 DIV - 70 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT + + 91 / col2 / - 70 FROM tab2 AS cor0
----
0

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

query II rowsort
SELECT ALL + 82, + col1 FROM tab0
----
82
1
82
21
82
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-722
SELECT ALL CAST( + col2 AS SIGNED ) col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-722
SELECT ALL CAST ( + col2 AS INTEGER ) col1 FROM tab2
----
23
40
58

query I rowsort
SELECT + col2 + + 5 AS col2 FROM tab0 WHERE + + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT ALL COUNT( * ) + - 68 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL COUNT ( * ) + - 68 FROM tab0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-725
SELECT - ( + col0 ) - + - CAST( - 64 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-151
-161
-79

skipif mysql # not compatible
query I rowsort label-725
SELECT - ( + col0 ) - + - CAST ( - 64 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-151
-161
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT DISTINCT + - COUNT( DISTINCT + - 56 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT + - COUNT ( DISTINCT + - 56 ) AS col2 FROM tab1 AS cor0
----
-1

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

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

query I rowsort
SELECT 78 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 30, - col0 + - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 52 ) > NULL
----

query II rowsort
SELECT ALL - - 81, + 70 FROM tab1 AS cor0 WHERE col0 IS NULL
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT + 60 < - col1 / + col1 * + 44 )
----

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

query I rowsort
SELECT DISTINCT ( - 18 ) FROM tab0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-737
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col1 = - 80
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col1 = - 80
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-738
SELECT DISTINCT 37 DIV COUNT( * ) + + CAST( MIN( DISTINCT + col1 ) AS SIGNED ) col0 FROM tab2 cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-738
SELECT DISTINCT 37 / COUNT ( * ) + + CAST ( MIN ( DISTINCT + col1 ) AS INTEGER ) col0 FROM tab2 cor0
----
63

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 83 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL ( - 76 ) + + col2 AS col1 FROM tab1
----
-17
-8
20

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

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

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

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

query I rowsort
SELECT DISTINCT + + 50 + + 53 AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL col2 - + 66 FROM tab1 AS cor0
----
-7
2
30

query I rowsort
SELECT DISTINCT + col0 + + + 72 AS col1 FROM tab1 AS cor0
----
123
157
163

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT 33 + + MAX( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-746
SELECT 33 + + MAX ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NOT + col1 * col0 IS NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + col2, + col0 * - col2 - col0 AS col1 FROM tab2
----
23
-1104
40
-2624
58
-4425

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

query I rowsort
SELECT + 87 + - col2 FROM tab2
----
29
47
64

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT 85 * - + COUNT( DISTINCT + 76 ) + - - 63 AS col1 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-751
SELECT 85 * - + COUNT ( DISTINCT + 76 ) + - - 63 AS col1 FROM tab0
----
-22

query II rowsort
SELECT ALL - 51 AS col0, - col2 FROM tab0
----
-51
-10
-51
-47
-51
-99

query I rowsort
SELECT - 53 + - 3 FROM tab2
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-754
SELECT DISTINCT + ( - 67 ) AS col0, MIN( + col0 ) FROM tab2 WHERE - - col0 IS NOT NULL
----
-67
46

skipif mysql # not compatible
query II rowsort label-754
SELECT DISTINCT + ( - 67 ) AS col0, MIN ( + col0 ) FROM tab2 WHERE - - col0 IS NOT NULL
----
-67
46

query I rowsort
SELECT ALL col1 * + 90 FROM tab2
----
4590
6030
6930

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

query I rowsort
SELECT + 94 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
327214
434656
866304

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

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

query I rowsort
SELECT - ( - col2 ) * - - col0 * + col2 FROM tab1 AS cor0
----
295885
420784
470016

query II rowsort
SELECT DISTINCT - col2 AS col2, 45 FROM tab0 AS cor0 WHERE NOT + col2 >= col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - MIN( ALL 43 ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-762
SELECT - MIN ( ALL 43 ) FROM tab2 AS cor0
----
-43

query II rowsort
SELECT DISTINCT + col1, - 46 * - col0 * - col0 + - + col0 AS col2 FROM tab2 AS cor0
----
51
-97382
67
-258825
77
-188480

query I rowsort
SELECT + col0 + + + 99 FROM tab2
----
145
163
174

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE - 70 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-767
SELECT DISTINCT - COUNT( * ) + + MIN( + CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT - COUNT ( * ) + + MIN ( + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT - col0 + ( + + CAST( NULL AS SIGNED ) ) + + 38 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT - col0 + ( + + CAST ( NULL AS INTEGER ) ) + + 38 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 9 FROM tab0 WHERE NOT + 16 <= NULL
----

query I rowsort
SELECT - 98 * - 8 FROM tab2
----
784
784
784

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

query I rowsort
SELECT - ( col1 ) * + 43 * - - 40 AS col2 FROM tab1 AS cor0
----
-24080
-80840
-8600

query I rowsort
SELECT + 79 * + - 27 * - col2 FROM tab2
----
123714
49059
85320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-774
SELECT ALL + - 41 * 36 - - col2, col2 - + ( + 23 ) - - CAST( NULL AS SIGNED ) + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-1377
NULL
-1429
NULL
-1466
NULL

skipif mysql # not compatible
query II rowsort label-774
SELECT ALL + - 41 * 36 - - col2, col2 - + ( + 23 ) - - CAST ( NULL AS INTEGER ) + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-1377
NULL
-1429
NULL
-1466
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT 31 + COUNT( ALL 27 ) AS col1 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-776
SELECT 31 + COUNT ( ALL 27 ) AS col1 FROM tab2 AS cor0
----
34

query I rowsort
SELECT + - col2 + + col1 AS col1 FROM tab0 cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-778
SELECT DISTINCT - CAST( 4 AS SIGNED ) + + 7 AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT - CAST ( 4 AS INTEGER ) + + 7 AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL + - COUNT( * ) - - 27 AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + - COUNT ( * ) - - 27 AS col0 FROM tab1 AS cor0
----
24

query I rowsort
SELECT DISTINCT + ( col1 ) - + col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT ALL 2 * + ( - col2 ) DIV col2 + + col1 + - 37 * - 39 + 23 FROM tab0
----
1465
1485
1545

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL 2 * + ( - col2 ) / col2 + + col1 + - 37 * - 39 + 23 FROM tab0
----
1465
1485
1545

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab2 WHERE NOT 80 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ALL 18 * - MAX( DISTINCT + 34 ) FROM tab1
----
-612

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL 18 * - MAX ( DISTINCT + 34 ) FROM tab1
----
-612

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

query I rowsort
SELECT ALL + 45 * col2 AS col1 FROM tab1
----
2655
3060
4320

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-786
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) / col2 / - col0 - - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-786
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) / col2 / - col0 - - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 - 72 FROM tab1
----
-25
-58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT DISTINCT 3 DIV - col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT 3 / - col2 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-789
SELECT + col1 / + 81 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL 57 AS col2, col0 FROM tab2
----
57
46
57
64
57
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT DISTINCT MAX( ALL - - 46 ) AS col1 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT MAX ( ALL - - 46 ) AS col1 FROM tab0
----
46

query II rowsort
SELECT + 10 AS col0, + 94 FROM tab0
----
10
94
10
94
10
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-795
SELECT CAST( - ( + 74 ) AS SIGNED ) FROM tab1
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-795
SELECT CAST ( - ( + 74 ) AS INTEGER ) FROM tab1
----
-74
-74
-74

query I rowsort
SELECT DISTINCT 21 + + + col0 FROM tab1
----
106
112
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 80 col0, col2 FROM tab1 AS cor0
----
80
59
80
68
80
96

query I rowsort
SELECT + col1 * + + col2 * + - 85 + + col1 FROM tab1
----
-114226
-25070
-271613

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-801
SELECT ALL + CAST( + col1 AS SIGNED ) * - + ( 92 ) FROM tab0 AS cor0
----
-1932
-7452
-92

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL + CAST ( + col1 AS INTEGER ) * - + ( 92 ) FROM tab0 AS cor0
----
-1932
-7452
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 67 col1 FROM tab2 AS cor0
----
-21
-3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT DISTINCT - COUNT( * ) * + + 80 - COUNT( * ) * + COUNT( * ) * + 98 col0 FROM tab0 AS cor0
----
-1122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-803
SELECT DISTINCT - COUNT ( * ) * + + 80 - COUNT ( * ) * + COUNT ( * ) * + 98 col0 FROM tab0 AS cor0
----
-1122

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + - + 13 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT DISTINCT 57 - + MAX( DISTINCT col1 ) * + COUNT( * ) + - 7 FROM tab0 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT 57 - + MAX ( DISTINCT col1 ) * + COUNT ( * ) + - 7 FROM tab0 AS cor0
----
-193

query I rowsort
SELECT - col0 + ( - - 71 ) + + - 80 * - + col1 * + col0 AS col0 FROM tab0
----
146144
7734
97256

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL COUNT( * ) - + 8 AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL COUNT ( * ) - + 8 AS col2 FROM tab1
----
-5

query I rowsort
SELECT ALL col2 * - 67 AS col1 FROM tab0
----
-3149
-6633
-670

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 ) + - 88
----

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

skipif mysql # not compatible
query I rowsort label-811
SELECT - 23 + + MIN ( ALL + col0 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 * - col1 IS NULL
----
115

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

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

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

query I rowsort
SELECT ALL - - col0 + + col1 + + + 28 * - col0 AS col0 FROM tab1 AS cor0
----
-1363
-2290
-2410

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

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT - 52 DIV + ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - 33 ) + + - 88 AS col0, col1 col1 FROM tab1
----
-121
14
-121
47
-121
5

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

query I rowsort
SELECT ALL col0 + + 22 FROM tab0
----
109
119
37

query I rowsort
SELECT ALL + - col2 + col2 FROM tab2 WHERE - 29 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT ALL MIN( ALL - - 63 ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL MIN ( ALL - - 63 ) AS col2 FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-823
SELECT MAX( - CAST( - 96 AS SIGNED ) ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-823
SELECT MAX ( - CAST ( - 96 AS INTEGER ) ) FROM tab2 AS cor0
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT 17 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-825
SELECT 17 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - + 90 <> NULL OR NOT NULL IN ( - + col1, + 72 - - col0 + + 57 * - - col1, - col2, col2 )
----

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

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

query II rowsort
SELECT ALL col0 * col1 AS col0, col2 AS col0 FROM tab1
----
425
59
4277
68
714
96

query I rowsort
SELECT ALL - + ( 75 ) * + 79 + 1 AS col1 FROM tab0 AS cor0
----
-5924
-5924
-5924

query I rowsort
SELECT - + col2 * + col2 - + - 49 - col0 * col2 AS col1 FROM tab0 cor0
----
-19355
-2865
-921

query I rowsort
SELECT ALL + + 82 + - col1 AS col2 FROM tab2 AS cor0
----
15
31
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL + MIN( - col0 ) - 9 - - + COUNT( * ) * + - 47 FROM tab0 AS cor0
----
-247

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + MIN ( - col0 ) - 9 - - + COUNT ( * ) * + - 47 FROM tab0 AS cor0
----
-247

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

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

query II rowsort
SELECT ALL ( + - col0 ), col2 FROM tab1
----
-51
96
-85
59
-91
68

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

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

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

query I rowsort
SELECT ALL + col1 + - - ( - 63 ) FROM tab0 AS cor0
----
-42
-62
18

query I rowsort
SELECT DISTINCT col1 * + col1 + + 54 AS col0 FROM tab0 AS cor0
----
495
55
6615

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

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

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

query I rowsort
SELECT + - col2 * + + col0 + + + col0 - + col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-4941
-4989
-6165

onlyif mysql # DIV for integer division: 
query II rowsort label-843
SELECT ALL + col1 DIV - + col1, col2 FROM tab2
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
query II rowsort label-843
SELECT ALL + col1 / - + col1, col2 FROM tab2
----
-1
23
-1
40
-1
58

onlyif mysql # DIV for integer division: 
query I rowsort label-844
SELECT DISTINCT 43 DIV - 93 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT 43 / - 93 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT COUNT( - col1 ) * + 87 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-845
SELECT COUNT ( - col1 ) * + 87 FROM tab0
----
261

query I rowsort
SELECT 70 * + + col0 AS col2 FROM tab0
----
1050
6090
6790

query I rowsort
SELECT + 69 * col0 + - col2 AS col1 FROM tab2
----
3151
4376
5117

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-848
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) BETWEEN + + col1 AND col0
----

skipif mysql # not compatible
query III rowsort label-848
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) BETWEEN + + col1 AND col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-851
SELECT ALL + col0 AS col2, CAST( - col2 AS SIGNED ) col0 FROM tab2 cor0
----
46
-23
64
-40
75
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-851
SELECT ALL + col0 AS col2, CAST ( - col2 AS INTEGER ) col0 FROM tab2 cor0
----
46
-23
64
-40
75
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( 8 ) ) = + 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 70 / - - AVG ( - - col0 ) AS col2 FROM tab2 WHERE + col0 IS NULL
----
NULL

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

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

query I rowsort
SELECT ALL 7 * + + 63 AS col2 FROM tab1
----
441
441
441

query I rowsort
SELECT 92 * - + 5 AS col2 FROM tab0
----
-460
-460
-460

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * + 14 + col0 <> 96
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - COUNT( * ) * - - 12 col2 FROM tab2
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-860
SELECT - COUNT ( * ) * - - 12 col2 FROM tab2
----
-36

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

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

query I rowsort
SELECT - 22 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ( - + MIN( DISTINCT + - col0 ) ) + + 9 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-867
SELECT ( - + MIN ( DISTINCT + - col0 ) ) + + 9 FROM tab0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT + 35 * - COUNT( * ) * - + 76 FROM tab2
----
7980

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT + 35 * - COUNT ( * ) * - + 76 FROM tab2
----
7980

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

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

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

query I rowsort
SELECT DISTINCT col0 * + - col1 * + ( + col2 ) FROM tab0
----
-18270
-57105
-9603

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

query I rowsort
SELECT - 45 * + + 14 FROM tab0 AS cor0
----
-630
-630
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 88 col0 FROM tab0 AS cor0
----
-1320
-7656
-8536

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 * - 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT + + col1 AS col1 FROM tab1 WHERE NOT CAST ( - - col1 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 83 - + - 98 + + - ( 33 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # DIV for integer division: 
query I rowsort label-878
SELECT + 91 DIV - col1 FROM tab0 AS cor0
----
-1
-4
-91

skipif mysql # not compatible
query I rowsort label-878
SELECT + 91 / - col1 FROM tab0 AS cor0
----
-1
-4
-91

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 20 NOT BETWEEN + 84 AND - 40
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 14 ) * - - 30 * - col2 - + - col2 col1 FROM tab1 AS cor0
----
24839
28628
40416

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-883
SELECT 18 DIV + COUNT( * ) AS col0, 26 FROM tab1 AS cor0
----
6
26

skipif mysql # not compatible
query II rowsort label-883
SELECT 18 / + COUNT ( * ) AS col0, 26 FROM tab1 AS cor0
----
6
26

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

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

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

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

query I rowsort
SELECT - 84 * + 97 FROM tab0 cor0
----
-8148
-8148
-8148

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

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

query I rowsort
SELECT 20 * + col2 FROM tab1
----
1180
1360
1920

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

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

query II rowsort
SELECT ALL 53 AS col0, + col2 AS col1 FROM tab2
----
53
23
53
40
53
58

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-894
SELECT - CAST( NULL AS DECIMAL ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-894
SELECT - CAST ( NULL AS REAL ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL + 97 * + col1 + - - 60 FROM tab2 AS cor0
----
5007
6559
7529

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL - MIN( ALL - 17 ) + + + 57 col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-896
SELECT ALL - MIN ( ALL - 17 ) + + + 57 col1 FROM tab0 AS cor0
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT DISTINCT - 81 + - + COUNT( * ) + + COUNT( * ) + 12 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, 30 )
----
-69

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT - 81 + - + COUNT ( * ) + + COUNT ( * ) + 12 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, 30 )
----
-69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-901
SELECT DISTINCT - ( AVG ( DISTINCT col1 ) ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT - ( AVG ( DISTINCT col1 ) ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT MIN( ALL col0 ) - 50 AS col0 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-903
SELECT MIN ( ALL col0 ) - 50 AS col0 FROM tab0
----
-35

query I rowsort
SELECT ALL + ( col1 ) * - 6 + + col1 AS col1 FROM tab2
----
-255
-335
-385

query I rowsort
SELECT ALL + col2 + 73 + + - 8 FROM tab1
----
124
133
161

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT - 21 + - COUNT( * ) AS col0 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-906
SELECT - 21 + - COUNT ( * ) AS col0 FROM tab0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT DISTINCT 90 * AVG ( col2 ) / - + MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT 90 * AVG ( col2 ) / - + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT col1 * + - 42 * + col2 * 31 + - col2 DIV - col2 FROM tab1
----
-1749887
-384089
-4161191

skipif mysql # not compatible
query I rowsort label-908
SELECT col1 * + - 42 * + col2 * 31 + - col2 / - col2 FROM tab1
----
-1749887
-384089
-4161191

query II rowsort
SELECT DISTINCT 42 + col0, col2 AS col0 FROM tab0 cor0
----
129
10
139
99
57
47

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT - + COUNT( * ) + 34 FROM tab0 cor0
----
31

skipif mysql # not compatible
query I rowsort label-910
SELECT - + COUNT ( * ) + 34 FROM tab0 cor0
----
31

query II rowsort
SELECT + ( 65 ) AS col1, 3 FROM tab1 AS cor0
----
65
3
65
3
65
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 22 + - col0 + - + 16 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT DISTINCT 8 DIV - col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT 8 / - col0 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-914
SELECT DISTINCT + col0 / + + col2 FROM tab1 WHERE - 66 IN ( + CAST( NULL AS DECIMAL ), col1 * + col0, - + 61 / - col0 + + + col0, col1 + + 64 * col0 + col2 / - 68, 98 / + col2 * - ( col1 ) * col1 + - col0 * + - col0 * 55 + - col0, - col0, ( - 24 ) )
----

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT + col0 / + + col2 FROM tab1 WHERE - 66 IN ( + CAST ( NULL AS REAL ), col1 * + col0, - + 61 / - col0 + + + col0, col1 + + 64 * col0 + col2 / - 68, 98 / + col2 * - ( col1 ) * col1 + - col0 * + - col0 * 55 + - col0, - col0, ( - 24 ) )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-917
SELECT COUNT ( + - 2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT col1 * ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT 17 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-920
SELECT + col1 DIV 48 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-920
SELECT + col1 / 48 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT + COUNT( * ) * - 67 AS col2 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT + COUNT ( * ) * - 67 AS col2 FROM tab2
----
-201

query I rowsort
SELECT ALL 27 * col1 AS col0 FROM tab0
----
2187
27
567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT DISTINCT + 73 * + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT + 73 * + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 61 * col0 * + - 83 / + ( + ( 79 ) ) < NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-927
SELECT DISTINCT + - col1 * + CAST( NULL AS SIGNED ), - col0 * - - col2 AS col0 FROM tab1 AS cor0
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif mysql # not compatible
query II rowsort label-927
SELECT DISTINCT + - col1 * + CAST ( NULL AS INTEGER ), - col0 * - - col2 AS col0 FROM tab1 AS cor0
----
NULL
-4896
NULL
-5015
NULL
-6188

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

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
81

skipif mysql # not compatible
query I rowsort label-929
SELECT COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT ALL - 29 + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-28
-8
52

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - 29 + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-28
-8
52

query I rowsort
SELECT + col1 + + col1 * - - col1 + - + col0 FROM tab1 AS cor0
----
-55
159
2165

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

query I rowsort
SELECT ALL + - 66 + col1 FROM tab2 AS cor0
----
-15
1
11

query I rowsort
SELECT + ( + col0 ) + - col1 * - - col2 + 34 FROM tab1 AS cor0
----
-1259
-176
-3071

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

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT MAX( col0 ) + + COUNT( * ) FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-937
SELECT MAX ( col0 ) + + COUNT ( * ) FROM tab1 cor0
----
94

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 76 NOT BETWEEN 72 * + + 26 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 86 + col0 FROM tab0 AS cor0
----
101
173
183

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

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

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

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE - col2 / - col1 * + + 98 / - - col2 IS NOT NULL
----
14
47
5

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 > - + 42 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif mysql # not compatible
query I rowsort label-946
SELECT - col2 / - + 49 AS col2 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - COUNT( * ) * + + MAX( ALL col0 ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-947
SELECT - COUNT ( * ) * + + MAX ( ALL col0 ) FROM tab1
----
-273

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

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

query I rowsort
SELECT DISTINCT - col0 + + 80 AS col2 FROM tab1
----
-11
-5
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-950
SELECT + 54 - CAST( + - 8 AS SIGNED ) AS col2 FROM tab1
----
62
62
62

skipif mysql # not compatible
query I rowsort label-950
SELECT + 54 - CAST ( + - 8 AS INTEGER ) AS col2 FROM tab1
----
62
62
62

query I rowsort
SELECT + col0 * - col1 - col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query II rowsort
SELECT ALL col2 - - + col0 + - col0 * - 86 AS col1, + col1 * - + col2 - + col0 * col1 AS col2 FROM tab2 AS cor0
----
4025
-3519
5608
-8008
6583
-8911

query I rowsort
SELECT DISTINCT + col0 * - col0 * + ( + - col1 ) + - 3 FROM tab0 cor0
----
158946
18222
9406

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT + + COUNT( * ) - + MIN( ALL - col2 ) AS col2 FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-954
SELECT + + COUNT ( * ) - + MIN ( ALL - col2 ) AS col2 FROM tab2 cor0
----
61

query II rowsort
SELECT 90 AS col1, col1 * + + 26 AS col1 FROM tab0 AS cor0
----
90
2106
90
26
90
546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-956
SELECT DISTINCT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * - 94 / - + 95 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 94 / - + 95 FROM tab1 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-957
SELECT + COUNT ( * ) * - ( 17 ) FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( + ( + col1 ) * - col1 + col0 - - - 62 * - col1 + - col2 + - col2 / + col0 * col2, col2, 17 - CAST( - - col0 AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( + ( + col1 ) * - col1 + col0 - - - 62 * - col1 + - col2 + - col2 / + col0 * col2, col2, 17 - CAST ( - - col0 AS INTEGER ), - col1 )
----

query I rowsort
SELECT ALL col1 * - col0 * 36 FROM tab1 AS cor0
----
-15300
-153972
-25704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-961
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + + CAST( NULL AS SIGNED ) * - 61 IS NULL
----

skipif mysql # not compatible
query III rowsort label-961
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + + CAST ( NULL AS INTEGER ) * - 61 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT - + col2 * + CAST ( NULL AS INTEGER ) * - col2 + - - 85 + + + col0 + - col2 * 91 + - col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-964
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + - + col2 + + col2 + - CAST( NULL AS DECIMAL ) * + col2 NOT BETWEEN NULL AND + + col1
----

skipif mysql # not compatible
query III rowsort label-964
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + - + col2 + + col2 + - CAST ( NULL AS REAL ) * + col2 NOT BETWEEN NULL AND + + col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-966
SELECT - CAST( - + 65 AS SIGNED ) * - 89 AS col1 FROM tab2
----
-5785
-5785
-5785

skipif mysql # not compatible
query I rowsort label-966
SELECT - CAST ( - + 65 AS INTEGER ) * - 89 AS col1 FROM tab2
----
-5785
-5785
-5785

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT DISTINCT + ( - COUNT( col0 ) ) AS col2 FROM tab0 WHERE + col2 + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT + ( - COUNT ( col0 ) ) AS col2 FROM tab0 WHERE + col2 + col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + 32 - + + col2 FROM tab2
----
49
55
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-969
SELECT - CAST( + + ( - col2 ) AS SIGNED ) col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-969
SELECT - CAST ( + + ( - col2 ) AS INTEGER ) col0 FROM tab0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 48 >= - 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query II rowsort
SELECT + 4 AS col0, - col1 * + 14 AS col0 FROM tab2
----
4
-1078
4
-714
4
-938

query II rowsort
SELECT DISTINCT col0 AS col1, - col0 * + + col0 AS col0 FROM tab1
----
51
-2601
85
-7225
91
-8281

query I rowsort
SELECT DISTINCT + 12 + 6 FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT + 91 + MAX( ALL - col0 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT + 91 + MAX ( ALL - col0 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
73

query I rowsort
SELECT DISTINCT + 28 FROM tab0 AS cor0 WHERE NOT + col0 - - 50 / - 57 IS NULL
----
28

query II rowsort
SELECT col2 + col1 + col2, col1 - col1 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
123
-295
183
-3196
206
-1344

query I rowsort
SELECT + col1 - + 82 AS col0 FROM tab0
----
-1
-61
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL + MIN( ALL col0 ) * + 7 FROM tab1
----
357

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL + MIN ( ALL col0 ) * + 7 FROM tab1
----
357

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT DISTINCT COUNT( ALL 99 ) * + MAX( DISTINCT + col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT COUNT ( ALL 99 ) * + MAX ( DISTINCT + col2 ) FROM tab2
----
174

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

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

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

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

query I rowsort
SELECT DISTINCT + 11 * col0 AS col2 FROM tab1
----
1001
561
935

query I rowsort
SELECT - ( - 27 ) FROM tab1
----
27
27
27

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

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

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT col0 * col1 AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL 35 * 95 FROM tab2
----
3325
3325
3325

query I rowsort
SELECT - col1 + ( - 14 - + col1 ) FROM tab2
----
-116
-148
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
100
128
31

query I rowsort
SELECT DISTINCT col1 * 57 + col0 * col0 FROM tab1
----
10960
3399
7510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-997
SELECT ALL - AVG ( ALL ( + col0 ) ) FROM tab0 WHERE ( ( - 75 ) ) IN ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL - AVG ( ALL ( + col0 ) ) FROM tab0 WHERE ( ( - 75 ) ) IN ( + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT ALL 59 + SUM( - col2 + - col1 ) FROM tab2
----
-257

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL 59 + SUM ( - col2 + - col1 ) FROM tab2
----
-257

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1000
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) NOT IN ( 23 + - ( 17 ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-1000
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) NOT IN ( 23 + - ( 17 ) * + col0 )
----

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT col0 * ( - 59 * col0 ) FROM tab0 AS cor0
----
-13275
-446571
-555131

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

skipif mysql # not compatible
query I rowsort label-1006
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT ALL ( ( + col0 ) ) DIV 12 FROM tab2 AS cor0
----
3
5
6

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL ( ( + col0 ) ) / 12 FROM tab2 AS cor0
----
3
5
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1009
SELECT ALL + COUNT( * ) DIV 18 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT - 7 * COUNT( * ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - 7 * COUNT ( * ) FROM tab0
----
-21

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT 8 FROM tab2 cor0 CROSS JOIN tab0
----
8

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

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

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

query I rowsort
SELECT DISTINCT - + 5 * - 98 AS col0 FROM tab1 AS cor0
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT - COUNT( * ) * COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IN ( + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-1018
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IN ( + 95 )
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * 32 FROM tab1 AS cor0
----
-1504
-160
-448

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + 28 ) NOT BETWEEN col1 AND - 26 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT ALL ( col2 ) DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL ( col2 ) / - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 99 + 74 AS col0 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT - col1 + + - 72 AS col1 FROM tab2
----
-123
-139
-149

query I rowsort
SELECT ALL 21 + - 51 * col2 FROM tab0
----
-2376
-489
-5028

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

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

query I rowsort
SELECT col1 + + 76 AS col2 FROM tab1 WHERE ( - 50 + - col1 ) NOT BETWEEN col2 AND 66
----
123
81
90

query I rowsort
SELECT DISTINCT + 86 + col2 FROM tab1 WHERE ( + ( 71 ) * + col1 ) NOT IN ( - col0 )
----
145
154
182

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col0 * 83
----

query I rowsort
SELECT ALL col2 * + 2 + col0 AS col1 FROM tab2
----
144
191
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT - COUNT( * ) * - 23 + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - COUNT ( * ) * - 23 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

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

query I rowsort
SELECT ALL - - ( 34 ) * - 31 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6b5911b1ef1fc6da0cf78bf2f4ad9a24

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL COUNT( * ) FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL COUNT ( * ) FROM tab1 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT + SUM( - 71 ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT + SUM ( - 71 ) FROM tab1
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT ALL 21 + + 53 - + COUNT( * ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL 21 + + 53 - + COUNT ( * ) FROM tab2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1041
SELECT DISTINCT ( - 90 ) DIV + - col1 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT ( - 90 ) / + - col1 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

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

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

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

query I rowsort
SELECT + - col0 + col2 - - col0 * + col1 AS col2 FROM tab1 AS cor0
----
399
4254
759

query I rowsort
SELECT + - ( + 42 ) + - 34 FROM tab2 cor0
----
-76
-76
-76

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

query I rowsort
SELECT - 9 + - col2 AS col0 FROM tab0 AS cor0
----
-108
-19
-56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 36 / col0 / col1 + + col1 ) <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1049
SELECT ALL - CAST( 5 AS SIGNED ) - ( - 82 ) + - col0 * - 23 AS col1 FROM tab2 AS cor0
----
1135
1549
1802

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL - CAST ( 5 AS INTEGER ) - ( - 82 ) + - col0 * - 23 AS col1 FROM tab2 AS cor0
----
1135
1549
1802

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

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

query I rowsort
SELECT ALL - 75 * - - col0 * col0 - + col2 + + col1 AS col0 FROM tab1
----
-195157
-541929
-621096

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT DISTINCT COUNT( * ) - - 62 AS col0 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT COUNT ( * ) - - 62 AS col0 FROM tab1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT SUM( col1 ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT + - 86 AS col2 FROM tab0 WHERE NOT - 32 IS NULL
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL SUM( + ( col2 ) ) * 65 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL SUM ( + ( col2 ) ) * 65 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL AND + col0 > col2
----

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

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

skipif mysql # not compatible
query I rowsort label-1058
SELECT + COUNT ( * ) / - + CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1060
SELECT col1 * + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-1060
SELECT col1 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2601
4489
5929

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT - COUNT( 0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1062
SELECT - COUNT ( 0 ) FROM tab0
----
-3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT - col0 DIV + 37 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1065
SELECT - col0 / + 37 FROM tab1 AS cor0
----
-1
-2
-2

query I rowsort
SELECT DISTINCT - 26 + col1 AS col2 FROM tab1 AS cor0
----
-12
-21
21

query I rowsort
SELECT DISTINCT + 10 * + 88 FROM tab0 cor0 WHERE NOT + col1 <> col2 / col1
----

query I rowsort
SELECT + col2 * + 49 AS col1 FROM tab1 AS cor0
----
2891
3332
4704

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + + - col2 / 90 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1070
SELECT ALL + - CAST( NULL AS SIGNED ) * - + 21 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL + - CAST ( NULL AS INTEGER ) * - + 21 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1072
SELECT col2, - CAST( NULL AS DECIMAL ) + + 42 - + + col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1072
SELECT col2, - CAST ( NULL AS REAL ) + + 42 - + + col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 13 col2 FROM tab2
----
-1001
-663
-871

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1074
SELECT * FROM tab1 WHERE ( - - 67 + - + CAST( + col1 AS SIGNED ) ) <= - col2
----

skipif mysql # not compatible
query III rowsort label-1074
SELECT * FROM tab1 WHERE ( - - 67 + - + CAST ( + col1 AS INTEGER ) ) <= - col2
----

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

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

query III rowsort
SELECT 84 + + col2 AS col1, 99 + + - col1, - - 14 AS col0 FROM tab1
----
9 values hashing to 474ba368fd75553afa956f146f8a6253

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NULL = col1
----

query I rowsort
SELECT DISTINCT + 92 * + - col2 * + col2 + + 49 FROM tab2 AS cor0
----
-147151
-309439
-48619

query I rowsort
SELECT + ( 89 ) * + col2 + - col0 - + col0 FROM tab2
----
1955
3432
5012

query I rowsort
SELECT - 15 + + - 38 AS col2 FROM tab2 WHERE ( 31 ) NOT BETWEEN NULL AND + col2
----
-53

query II rowsort
SELECT + 21 - col0, + col0 AS col2 FROM tab1 AS cor0 WHERE + 65 NOT IN ( + col2 )
----
-30
51
-64
85
-70
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col2 * - 60 col0 FROM tab1 cor0
----
-3455
-3989
-5709

query I rowsort
SELECT ALL ( - col1 ) - + col1 * + + col1 * - - col1 FROM tab1 AS cor0
----
-103870
-130
-2758

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( ( - col2 ), + col0 - - col2 + - 12 + 74 * col2 * - col0 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1086
SELECT - ( - MIN ( - col1 ) ) col0 FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-1087
SELECT - col2 * + col2 col0, col0 - + - col2 DIV - 68 AS col1 FROM tab1 AS cor0
----
-3481
85
-4624
90
-9216
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1087
SELECT - col2 * + col2 col0, col0 - + - col2 / - 68 AS col1 FROM tab1 AS cor0
----
-3481
85
-4624
90
-9216
50

query I rowsort
SELECT - col1 * + - 40 AS col0 FROM tab2
----
2040
2680
3080

query I rowsort
SELECT DISTINCT ( + 23 ) * - col1 * + col0 FROM tab1
----
-16422
-9775
-98371

query I rowsort
SELECT + 17 * + col2 AS col1 FROM tab2
----
391
680
986

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1092
SELECT ALL + 96 DIV - col0 AS col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + 96 / - col0 AS col2 FROM tab0
----
-1
-6
0

query I rowsort
SELECT col0 * + ( 67 ) AS col0 FROM tab2
----
3082
4288
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-1094
SELECT 99 AS col1, 19 * + - COUNT( * ) col0 FROM tab1
----
99
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1094
SELECT 99 AS col1, 19 * + - COUNT ( * ) col0 FROM tab1
----
99
-57

query II rowsort
SELECT ALL + col2 AS col0, - col0 - ( col0 ) AS col0 FROM tab0
----
10
-174
47
-30
99
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1096
SELECT DISTINCT - SUM( ALL CAST( + + col2 AS SIGNED ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT - SUM ( ALL CAST ( + + col2 AS INTEGER ) ) FROM tab1
----
-223

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IN ( - col2 + - + col1 + + - 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - + col2, + col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT + + COUNT( * ) * + - 99 AS col1 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-1099
SELECT + + COUNT ( * ) * + - 99 AS col1 FROM tab0 AS cor0
----
-297

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1101
SELECT MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + col1 + - col2 * - - col1 * + - col0 * + col2 + - 67 FROM tab1 AS cor0
----
1479363
19776828
6580171

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( col0 - col2 )
----

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

skipif mysql # not compatible
query II rowsort label-1107
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1108
SELECT ALL - col0 DIV - CAST( 12 AS SIGNED ) + + col0 FROM tab0
----
105
16
94

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL - col0 / - CAST ( 12 AS INTEGER ) + + col0 FROM tab0
----
105
16
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT ALL COUNT( DISTINCT 19 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL COUNT ( DISTINCT 19 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT DISTINCT col2 * col0 * 3 * - + col2 AS col2 FROM tab0
----
-26100
-2852091
-99405

query I rowsort
SELECT DISTINCT col1 * + 24 + - col2 AS col2 FROM tab2
----
1201
1550
1808

query I rowsort
SELECT DISTINCT col2 * 37 FROM tab2
----
1480
2146
851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 96 col0 FROM tab2 AS cor0
----
-2208
-3840
-5568

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

query I rowsort
SELECT ALL + 77 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL SUM( - col0 ) / + - 26 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL SUM ( - col0 ) / + - 26 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT - ( + col0 ) - + 83 + - col2 + 26 FROM tab1 AS cor0
----
-201
-204
-216

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

query I rowsort
SELECT ALL - col2 * - 78 AS col0 FROM tab0
----
3666
7722
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT ALL - - 5 DIV + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL - - 5 / + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 41 * col1 AS col1 FROM tab2 cor0
----
-2091
-2747
-3157

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT - 45 DIV - - col0 col1 FROM tab1 cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 53 * - col0 * - 60 FROM tab1 AS cor0
----
-162180
-270300
-289380

query I rowsort
SELECT ALL + 68 * + ( + - col1 ) AS col1 FROM tab0
----
-1428
-5508
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-1127
SELECT DISTINCT - col1 DIV - 89, - 34 + - col1 DIV col2 * + col1 AS col1 FROM tab2
----
0
-101
0
-111
0
-136

skipif mysql # not compatible
query II rowsort label-1127
SELECT DISTINCT - col1 / - 89, - 34 + - col1 / col2 * + col1 AS col1 FROM tab2
----
0
-101
0
-111
0
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT ALL col2 DIV col1 * - 0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL col2 / col1 * - 0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT - - SUM( + col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT - - SUM ( + col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 67 col0 FROM tab1
----
-3149
-335
-938

query I rowsort
SELECT + ( + col1 ) * + col0 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 17 * + - 6 NOT IN ( - col0, + 74 )
----

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

query I rowsort
SELECT - - ( - 4 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT DISTINCT col1 DIV 10 FROM tab0
----
0
2
8

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT col1 / 10 FROM tab0
----
0
2
8

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT - + COUNT( * ) * - - 91 + + 91 + - COUNT( * ) FROM tab1 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1139
SELECT - + COUNT ( * ) * - - 91 + + 91 + - COUNT ( * ) FROM tab1 AS cor0
----
-185

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE col2 IN ( - 53 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1142
SELECT DISTINCT + ( - + ( - 54 ) ) / + - col1 + CAST( NULL AS DECIMAL ) + col1 FROM tab2 WHERE NOT col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT + ( - + ( - 54 ) ) / + - col1 + CAST ( NULL AS REAL ) + col1 FROM tab2 WHERE NOT col0 IS NULL
----
NULL

query I rowsort
SELECT + 90 * - 70 + + col1 AS col0 FROM tab2
----
-6223
-6233
-6249

query I rowsort
SELECT + col2 + - col0 + + 0 + - + col2 * col0 AS col0 FROM tab1
----
-4851
-5041
-6211

query I rowsort
SELECT col2 + + 67 FROM tab1
----
126
135
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT COUNT( * ) + + SUM( + col0 ) AS col2 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-1146
SELECT COUNT ( * ) + + SUM ( + col0 ) AS col2 FROM tab2
----
188

query I rowsort
SELECT - 36 + - 88 FROM tab1
----
-124
-124
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT SUM( - - 14 ) FROM tab2 WHERE + col2 / + col1 IS NOT NULL
----
42

skipif mysql # not compatible
query I rowsort label-1148
SELECT SUM ( - - 14 ) FROM tab2 WHERE + col2 / + col1 IS NOT NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT MAX( DISTINCT + + 55 ) * COUNT( col1 ) + + 25 * + COUNT( * ) + + COUNT( * ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-1149
SELECT MAX ( DISTINCT + + 55 ) * COUNT ( col1 ) + + 25 * + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
243

query I rowsort
SELECT DISTINCT - col2 * + col1 + + + col2 AS col0 FROM tab2 cor0
----
-1150
-3040
-3828

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

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

query I rowsort
SELECT ALL - 32 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

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

query I rowsort
SELECT DISTINCT - 29 * - col2 FROM tab1 AS cor0
----
1711
1972
2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT CAST( - 10 AS SIGNED ) FROM tab1 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-1155
SELECT CAST ( - 10 AS INTEGER ) FROM tab1 AS cor0
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + ( - + 51 ) * + col0 FROM tab0 AS cor0
----
-10
-4437
-47
-765
-99
-4947

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT DISTINCT + - MAX( - CAST( - 72 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT + - MAX ( - CAST ( - 72 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-1159
SELECT ALL 81 * + SUM( ( + col2 ) ) col2, 48 AS col2 FROM tab2
----
9801
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1159
SELECT ALL 81 * + SUM ( ( + col2 ) ) col2, 48 AS col2 FROM tab2
----
9801
48

query I rowsort
SELECT ALL + ( + 33 ) AS col1 FROM tab2 WHERE - 19 + + - col0 BETWEEN + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT - MAX( ALL - + 84 ) col2 FROM tab0
----
84

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

query I rowsort
SELECT ALL - - col0 * + + 91 AS col1 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1163
SELECT - col0 AS col0 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1163
SELECT - col0 AS col0 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1164
SELECT ALL - COUNT( * ) DIV - 14 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL - COUNT ( * ) / - 14 AS col1 FROM tab0
----
0

query II rowsort
SELECT ALL + col0, col0 * + 86 FROM tab1
----
51
4386
85
7310
91
7826

query I rowsort
SELECT ALL 84 * + + 13 * + - col0 AS col1 FROM tab2 cor0
----
-50232
-69888
-81900

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT + COUNT( ALL + - col2 ) * + 61 col2 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1167
SELECT + COUNT ( ALL + - col2 ) * + 61 col2 FROM tab1 AS cor0
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT DISTINCT + 75 DIV 61 * + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT + 75 / 61 * + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + 49 * - col1 * 27 FROM tab0
----
-107163
-1323
-27783

query I rowsort
SELECT ALL col2 * - - 68 + + - col1 FROM tab0
----
3115
659
6731

query I rowsort
SELECT DISTINCT + ( + col1 ) + - 67 FROM tab1
----
-20
-53
-62

query I rowsort
SELECT 51 + col0 AS col2 FROM tab0 AS cor0
----
138
148
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT DISTINCT - - SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT - - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
185

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN + 16 AND 9 - col2
----

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

query I rowsort
SELECT 36 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT COUNT( * ) * - 13 + + + COUNT( * ) * ( COUNT( * ) ) + 72 FROM tab1, tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1179
SELECT COUNT ( * ) * - 13 + + + COUNT ( * ) * ( COUNT ( * ) ) + 72 FROM tab1, tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL - 43 + - 10 + + - COUNT( * ) FROM tab1, tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL - 43 + - 10 + + - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-62

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

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

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL MAX ( DISTINCT 87 ) AS col2 FROM tab0
----
87

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

query I rowsort
SELECT + col0 * col2 + + 94 FROM tab1 AS cor0
----
4990
5109
6282

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1186
SELECT - ( + COUNT( * ) ) DIV + 11 FROM tab1 AS cor0
----
0

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 64 * 85 + + - col1 IS NOT NULL
----

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

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

query I rowsort
SELECT + col0 + + col2 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
104
133
69

query I rowsort
SELECT 77 * col1 * + + 12 FROM tab0
----
19404
74844
924

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

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + + col2 + - - 62 * + - col2 + - + col0 <= NULL
----

query I rowsort
SELECT DISTINCT + 16 + col0 FROM tab0 WHERE ( - - col1 ) IS NOT NULL
----
103
113
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 48, col2 col0 FROM tab0
----
48
10
48
47
48
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - + col0 col0 FROM tab2
----
-141
-142
-97

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 78 + - + col0 ) > - col1 + col0
----
75
67
58

query I rowsort
SELECT - ( + + 12 ) + + col2 AS col0 FROM tab1 AS cor0
----
47
56
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT 22 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + 41 NOT IN ( ( + - ( 27 ) ) )
----
66

skipif mysql # not compatible
query I rowsort label-1200
SELECT 22 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + 41 NOT IN ( ( + - ( 27 ) ) )
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + col0 col0 FROM tab1
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 59, col1 col2 FROM tab0
----
59
1
59
21
59
81

query I rowsort
SELECT ALL col1 + + ( + - 37 ) FROM tab1
----
-23
-32
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col0 ) col2 FROM tab2 cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - - col0 col2 FROM tab0 AS cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 75 * - col1 + + col1 + - + 69 col0, col1 * + - col0 AS col1 FROM tab2 AS cor0
----
-3843
-2346
-5027
-5025
-5767
-4928

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT - MAX( - - 25 ) FROM tab2 AS cor0 WHERE - col0 * - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT - MAX ( - - 25 ) FROM tab2 AS cor0 WHERE - col0 * - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL - 32 * - - COUNT( * ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - 32 * - - COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT col0 - - - ( col1 ) FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT 10 * + 81 + + col0 AS col2 FROM tab0
----
825
897
907

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT col2 DIV col1 + col1 AS col2 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-1213
SELECT col2 / col1 + col1 AS col2 FROM tab0
----
100
21
81

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

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

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

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT - CAST ( + 41 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - 30 + - - col2 AS col2 FROM tab1
----
29
38
66

query I rowsort
SELECT col2 + - 28 AS col0 FROM tab1
----
31
40
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) IS NULL
----
-3

query I rowsort
SELECT ALL 53 + + col0 + col1 + + - col0 AS col0 FROM tab0 AS cor0
----
134
54
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1220
SELECT ALL - 30 DIV + SUM( col2 ) * - COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL - 30 / + SUM ( col2 ) * - COUNT ( * ) AS col1 FROM tab2 cor0
----
0

query II rowsort
SELECT 69 AS col1, - col1 AS col0 FROM tab0
----
69
-1
69
-21
69
-81

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

skipif mysql # not compatible
query I rowsort label-1222
SELECT - 63 * COUNT ( * ) AS col2 FROM tab0
----
-189

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

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

query I rowsort
SELECT - AVG ( DISTINCT 4 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1226
SELECT + MAX( DISTINCT - + ( col2 ) ) AS col2, 42 - + 89 AS col0 FROM tab2 AS cor0
----
-23
-47

skipif mysql # not compatible
query II rowsort label-1226
SELECT + MAX ( DISTINCT - + ( col2 ) ) AS col2, 42 - + 89 AS col0 FROM tab2 AS cor0
----
-23
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT ALL 78 * CAST( NULL AS SIGNED ) + + - col0 * + col2 * + col0 / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT + ( + col0 ) * col0, 29 * + - 0 AS col2 FROM tab0 AS cor0
----
225
0
7569
0
9409
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1231
SELECT DISTINCT COUNT( * ), COUNT( * ) * + 32 AS col2 FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-1231
SELECT DISTINCT COUNT ( * ), COUNT ( * ) * + 32 AS col2 FROM tab1 AS cor0
----
3
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1233
SELECT ALL + - ( - CAST( + col1 AS SIGNED ) ), 61 * + 91 AS col0 FROM tab1 AS cor0
----
14
5551
47
5551
5
5551

skipif mysql # not compatible
query II rowsort label-1233
SELECT ALL + - ( - CAST ( + col1 AS INTEGER ) ), 61 * + 91 AS col0 FROM tab1 AS cor0
----
14
5551
47
5551
5
5551

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

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

query I rowsort
SELECT ALL + col2 + + col1 * - 48 AS col1 FROM tab2 AS cor0
----
-2425
-3158
-3656

query I rowsort
SELECT ALL - col1 + + + col2 AS col2 FROM tab0
----
-11
-34
98

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + col2 + - - col0 col0 FROM tab0 AS cor0
----
-12
122
23

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

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

query I rowsort
SELECT DISTINCT + - col2 * - ( - - col1 ) + + - 95 - 78 * - col0 AS col1 FROM tab1 AS cor0
----
10199
5227
6830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT - - ( - 76 ) - + col2 * CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
1268
219
3120

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - - ( - 76 ) - + col2 * CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
1268
219
3120

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT ALL 83 * col1 - - col2 + - col1 DIV - 92 * col2 * - col1 FROM tab0
----
1753
182
6770

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL 83 * col1 - - col2 + - col1 / - 92 * col2 * - col1 FROM tab0
----
1753
182
6770

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT DISTINCT 28 DIV + col1 AS col0 FROM tab1
----
0
2
5

skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT 28 / + col1 AS col0 FROM tab1
----
0
2
5

query I rowsort
SELECT DISTINCT col2 * - + 84 FROM tab1
----
-4956
-5712
-8064

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1248
SELECT DISTINCT + + MAX( DISTINCT - col1 ) AS col0, - 13 FROM tab1 AS cor0
----
-5
-13

skipif mysql # not compatible
query II rowsort label-1248
SELECT DISTINCT + + MAX ( DISTINCT - col1 ) AS col0, - 13 FROM tab1 AS cor0
----
-5
-13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <> ( NULL )
----

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

query I rowsort
SELECT + + 67 * + col1 AS col1 FROM tab1 AS cor0
----
3149
335
938

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col2 + col0 AS col1 FROM tab0
----
1
-2
21
77
81
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL COUNT( * ) + + - 5 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL COUNT ( * ) + + - 5 FROM tab1
----
-2

query I rowsort
SELECT - 27 * col2 / - + 39 AS col1 FROM tab2 cor0 WHERE col0 - + 17 * + ( - + col2 ) + + 21 + + col1 IS NULL
----

query I rowsort
SELECT ALL col0 + + - 19 + + - col1 * + col0 * 66 + + col0 FROM tab0 AS cor0
----
-120427
-6227
-80179

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

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0, - 93 FROM tab1 cor0
----
51
-93
85
-93
91
-93

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

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

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

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL ( + 44 ) + + - COUNT ( col0 ) FROM tab0
----
41

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1262
SELECT DISTINCT + - 86 - + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-83

query II rowsort
SELECT ALL - + col2 + - 45, - ( + col1 ) * - + col0 AS col1 FROM tab2 AS cor0
----
-103
5025
-68
2346
-85
4928

query I rowsort
SELECT DISTINCT + 46 * + - col0 * + - col2 FROM tab1 AS cor0
----
225216
230690
284648

onlyif mysql # aggregate syntax: 
query II rowsort label-1265
SELECT - + 66 + + COUNT( * ), + 38 AS col1 FROM tab2 AS cor0
----
-63
38

skipif mysql # not compatible
query II rowsort label-1265
SELECT - + 66 + + COUNT ( * ), + 38 AS col1 FROM tab2 AS cor0
----
-63
38

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

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT COUNT ( * ) - + - ( + COUNT ( * ) ) + + 61 FROM tab1
----
67

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

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

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

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

query I rowsort
SELECT - + 13 FROM tab0 WHERE NOT ( + 27 >= - col2 )
----

query II rowsort
SELECT DISTINCT + col0, + col0 * + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
714
85
425
91
4277

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

query II rowsort
SELECT DISTINCT 6, + col1 FROM tab1
----
6
14
6
47
6
5

query I rowsort
SELECT + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT 32 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1274
SELECT 93 AS col1, - 91 + - 46 DIV + 96 FROM tab1 AS cor0
----
93
-91
93
-91
93
-91

skipif mysql # not compatible
query II rowsort label-1274
SELECT 93 AS col1, - 91 + - 46 / + 96 FROM tab1 AS cor0
----
93
-91
93
-91
93
-91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1276
SELECT - 70 DIV + - COUNT( * ) + + SUM( ALL - + ( - col1 ) ) col0, 4 col2 FROM tab1 AS cor0
----
89
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1276
SELECT - 70 / + - COUNT ( * ) + + SUM ( ALL - + ( - col1 ) ) col0, 4 col2 FROM tab1 AS cor0
----
89
4

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

query I rowsort
SELECT ALL + - col2 + - - 58 + + + 63 AS col0 FROM tab1 AS cor0
----
25
53
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT ALL + - 46 DIV col1 + + col0 AS col2 FROM tab1 AS cor0
----
48
76
91

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + - 46 / col1 + + col0 AS col2 FROM tab1 AS cor0
----
48
76
91

query I rowsort
SELECT - 82 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT - COUNT( * ) * + 23 * + 10 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-690

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT - COUNT ( * ) * + 23 * + 10 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL + COUNT( DISTINCT + + ( - 36 ) ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1282
SELECT ALL + COUNT ( DISTINCT + + ( - 36 ) ) col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT col1 + - col1 AS col2, col2 AS col1 FROM tab1 cor0
----
0
59
0
68
0
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1284
SELECT ( + 8 ) + + - 57 DIV + col1 FROM tab2
----
7
8
8

skipif mysql # not compatible
query I rowsort label-1284
SELECT ( + 8 ) + + - 57 / + col1 FROM tab2
----
7
8
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE - - col2 / + 51 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE - - col2 / + 51 IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL col1 + 10 FROM tab2 AS cor0
----
61
77
87

query I rowsort
SELECT ALL + + 28 * 14 * + col0 * + col2 * + ( - + 11 ) * 0 + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT ALL - 86 * + COUNT( * ) AS col1 FROM tab0 cor0 WHERE col1 + + col0 IS NOT NULL
----
-258

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL - 86 * + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE col1 + + col0 IS NOT NULL
----
-258

query II rowsort
SELECT ALL ( + 48 ) + + 89 AS col1, col1 AS col1 FROM tab0 AS cor0
----
137
1
137
21
137
81

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE NOT ( NOT col2 + - col1 IS NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT ALL 40 DIV - 53 + + + 22 + - 78 + - + col0 AS col0 FROM tab0 AS cor0
----
-143
-153
-71

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL 40 / - 53 + + + 22 + - 78 + - + col0 AS col0 FROM tab0 AS cor0
----
-143
-153
-71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 41 <= + + col1
----
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT col2 + - ( - - 6 ) DIV - 49 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1296
SELECT col2 + - ( - - 6 ) / - 49 FROM tab1 AS cor0
----
59
68
96

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col2 * 87 * - col1 col1 FROM tab2 AS cor0
----
17149440
25356150
4694346

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 8 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1300
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 8 BETWEEN NULL AND NULL
----
0

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT + 69 * ( + col0 ) DIV + col2 FROM tab0
----
22
600
67

skipif mysql # not compatible
query I rowsort label-1305
SELECT + 69 * ( + col0 ) / + col2 FROM tab0
----
22
600
67

query I rowsort
SELECT + 36 * ( - 17 ) AS col0 FROM tab0
----
-612
-612
-612

query I rowsort
SELECT 86 * - col1 * - + col2 AS col2 FROM tab0
----
18060
327402
8514

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1309
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) + - + 37 AS col1 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) + - + 37 AS col1 FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - 47 < - 46 )
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - 47 < - 46 )
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + col2 col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + + col1 * - 52 FROM tab0 AS cor0
----
-1092
-4212
-52

query I rowsort
SELECT DISTINCT + + col2 * + + col0 * 57 + - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 38 * + col2 * + + col1 IS NOT NULL
----

query II rowsort
SELECT - + col1, 6 * + col2 AS col1 FROM tab2 AS cor0
----
-51
138
-67
348
-77
240

onlyif mysql # DIV for integer division: 
query II rowsort label-1316
SELECT DISTINCT col1, 65 DIV - col1 col0 FROM tab1
----
14
-4
47
-1
5
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1316
SELECT DISTINCT col1, 65 / - col1 col0 FROM tab1
----
14
-4
47
-1
5
-13

query I rowsort
SELECT + col2 * - col0 + + - col2 AS col1 FROM tab1
----
-4992
-5074
-6256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1318
SELECT ALL - + CAST( - MAX( DISTINCT 12 ) AS SIGNED ) AS col0 FROM tab2 WHERE ( - col1 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - + CAST ( - MAX ( DISTINCT 12 ) AS INTEGER ) AS col0 FROM tab2 WHERE ( - col1 ) <> NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( + + ( - col0 ) ) FROM tab2
----
46
64
75

query I rowsort
SELECT ALL 76 * - 61 + - col2 FROM tab1
----
-4695
-4704
-4732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT CAST( NULL AS SIGNED ) + col1 / 18 FROM tab2 WHERE NULL < + col0
----

skipif mysql # not compatible
query I rowsort label-1321
SELECT CAST ( NULL AS INTEGER ) + col1 / 18 FROM tab2 WHERE NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT - 54 + + COUNT( * ) col0 FROM tab0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1322
SELECT - 54 + + COUNT ( * ) col0 FROM tab0
----
-51

query I rowsort
SELECT DISTINCT - 27 * + - col2 + - 68 FROM tab0
----
1201
202
2605

query I rowsort
SELECT DISTINCT - 64 - + 35 AS col2 FROM tab2 AS cor0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1325
SELECT COUNT( * ) DIV + COUNT( * ) + 4 DIV + + 29 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1325
SELECT COUNT ( * ) / + COUNT ( * ) + 4 / + + 29 AS col1 FROM tab1 AS cor0
----
1

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

query I rowsort
SELECT + 68 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1330
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 30 + CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-1330
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 30 + CAST ( NULL AS INTEGER ) * col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL 11 * + COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL 11 * + COUNT ( * ) FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT + MAX( + 27 ) col1 FROM tab0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1334
SELECT + MAX ( + 27 ) col1 FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL < ( 66 )
----
0

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < ( 66 )
----
0

query I rowsort
SELECT DISTINCT + col2 * 3 FROM tab1 AS cor0
----
177
204
288

onlyif mysql # aggregate syntax: 
query II rowsort label-1337
SELECT DISTINCT + 94, COUNT( * ) * + - 12 col0 FROM tab2 AS cor0
----
94
-36

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col1, col1 + + + col2 + 75 AS col2 FROM tab2 cor0
----
-46
149
-64
192
-75
200

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1340
SELECT ALL + CAST( col1 AS SIGNED ) + + 72 AS col1 FROM tab2
----
123
139
149

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL + CAST ( col1 AS INTEGER ) + + 72 AS col1 FROM tab2
----
123
139
149

query I rowsort
SELECT - 95 + - + col0 FROM tab2 AS cor0
----
-141
-159
-170

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

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

query I rowsort
SELECT + col1 + + col1 * + - col1 AS col2 FROM tab2 AS cor0
----
-2550
-4422
-5852

query I rowsort
SELECT ALL + col2 + - - 57 FROM tab2 cor0
----
115
80
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 * + col1 col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT ALL + + SUM( DISTINCT 90 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL + + SUM ( DISTINCT 90 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

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

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

query I rowsort
SELECT ALL 36 * + + col2 FROM tab0
----
1692
3564
360

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

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

query II rowsort
SELECT col1 AS col1, + col2 * + col2 AS col2 FROM tab1
----
14
9216
47
4624
5
3481

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT 12 * 70 * - - ( - 44 ) * + col2 - col0 FROM tab0 AS cor0
----
-1737135
-3659137
-369687

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT ALL 53 DIV + + ( ( col2 ) ) + col0 AS col2 FROM tab2 AS cor0
----
48
65
75

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL 53 / + + ( ( col2 ) ) + col0 AS col2 FROM tab2 AS cor0
----
48
65
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT - col2 * col1 DIV 45 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
-2
-4
-84

skipif mysql # not compatible
query I rowsort label-1356
SELECT - col2 * col1 / 45 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
-2
-4
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, ( - col1 ) + 73 + ( - 72 ) * + 37 col0 FROM tab2
----
51
-2642
67
-2658
77
-2668

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1358
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( + 61 AS SIGNED ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-1358
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( + 61 AS INTEGER ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1361
SELECT ALL MAX ( DISTINCT 14 ) col1 FROM tab0 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-1362
SELECT 72 AS col0, 4 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
72
-12

skipif mysql # not compatible
query II rowsort label-1362
SELECT 72 AS col0, 4 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
72
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT + + col0 * + CAST( + col0 AS SIGNED ) * 9 AS col2 FROM tab0 AS cor0
----
2025
68121
84681

skipif mysql # not compatible
query I rowsort label-1363
SELECT + + col0 * + CAST ( + col0 AS INTEGER ) * 9 AS col2 FROM tab0 AS cor0
----
2025
68121
84681

query I rowsort
SELECT ALL - col0 * - col0 + - 8 / - - col0 / + col0 / - - col0 / - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - ( 90 ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1365
SELECT - COUNT ( 90 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1366
SELECT DISTINCT + CAST( + MAX( ALL + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT + CAST ( + MAX ( ALL + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( 65 ) IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT ( - col1 ) * + col2 + + col0 DIV - ( 37 ) FROM tab2
----
-1174
-3081
-3888

skipif mysql # not compatible
query I rowsort label-1368
SELECT ( - col1 ) * + col2 + + col0 / - ( 37 ) FROM tab2
----
-1174
-3081
-3888

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

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

query I rowsort
SELECT DISTINCT - 32 * col2 FROM tab1
----
-1888
-2176
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> - 2 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> - 2 * - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1372
SELECT * FROM tab1 WHERE NOT + - 94 BETWEEN - CAST( - + 8 AS SIGNED ) AND - 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1372
SELECT * FROM tab1 WHERE NOT + - 94 BETWEEN - CAST ( - + 8 AS INTEGER ) AND - 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * - col2 + + + ( ( ( + col0 ) ) ) AS col2, col0 AS col2 FROM tab0
----
-13
87
-2194
15
-9704
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + - 13 col1 FROM tab1
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL - + 42 + + + COUNT( * ) + COUNT( 21 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL
----
-42

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - + 42 + + + COUNT ( * ) + COUNT ( 21 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL
----
-42

query I rowsort
SELECT + 67 * - col2 FROM tab1 cor0
----
-3953
-4556
-6432

query I rowsort
SELECT DISTINCT + col2 + - - col0 AS col1 FROM tab0 AS cor0
----
196
62
97

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

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

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT + 69 * - col1 + - 9 - + 76 + - - ( + + col2 ) * + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT DISTINCT 33 - - col0 DIV + - col2 FROM tab1 AS cor0
----
32
33

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT 33 - - col0 / + - col2 FROM tab1 AS cor0
----
32
33

query I rowsort
SELECT ALL - ( col2 ) FROM tab2 WHERE NOT - 3 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1383
SELECT 76 DIV + col1 + - - ( + 14 ) * + 88 * + - col1 col2 FROM tab2
----
-62831
-82543
-94864

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1383
SELECT 76 / + col1 + - - ( + 14 ) * + 88 * + - col1 col2 FROM tab2
----
-62831
-82543
-94864

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL COUNT( * ) + - - COUNT( ALL + - 54 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL COUNT ( * ) + - - COUNT ( ALL + - 54 ) FROM tab0
----
6

query I rowsort
SELECT DISTINCT col2 + + 61 FROM tab1 AS cor0 WHERE NULL IS NULL
----
120
129
157

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 3 col2 FROM tab2
----
153
201
231

query I rowsort
SELECT ( - 31 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 12 * + ( 8 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 12 * + ( 8 ) IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 95 * - col2 IS NOT NULL
----

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

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

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

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

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

query II rowsort
SELECT 86 AS col1, col1 AS col2 FROM tab1
----
86
14
86
47
86
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1397
SELECT DISTINCT + ( - col0 ) AS col2, col2 DIV - col2 + + col1 FROM tab0
----
-15
80
-87
20
-97
0

skipif mysql # not compatible
query II rowsort label-1397
SELECT DISTINCT + ( - col0 ) AS col2, col2 / - col2 + + col1 FROM tab0
----
-15
80
-87
20
-97
0

query II rowsort
SELECT col1, ( - 31 ) FROM tab0
----
1
-31
21
-31
81
-31

query III rowsort
SELECT ALL * FROM tab2 WHERE - 71 NOT IN ( + 24 * col1, - col0, - 54 * + 61 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT 81 * 3 DIV ( col1 ) AS col1 FROM tab1
----
17
48
5

skipif mysql # not compatible
query I rowsort label-1401
SELECT 81 * 3 / ( col1 ) AS col1 FROM tab1
----
17
48
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT + + MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT + + MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT col2 AS col2, 13 FROM tab2 WHERE 37 IN ( ( + 75 ), col0 )
----

query I rowsort
SELECT DISTINCT 9 + - ( - 0 ) FROM tab2
----
9

query I rowsort
SELECT ALL + + ( - - 39 ) + + col1 AS col1 FROM tab0 AS cor0
----
120
40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT SUM( ALL - + 48 ) + + 4 - - 93 FROM tab0 AS cor0 WHERE ( + col1 * + 32 ) IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-1407
SELECT SUM ( ALL - + 48 ) + + 4 - - 93 FROM tab0 AS cor0 WHERE ( + col1 * + 32 ) IS NOT NULL
----
-47

query I rowsort
SELECT 40 + - col2 FROM tab2 AS cor0
----
-18
0
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1409
SELECT ALL col0 + col0 AS col0, - col0, CAST( NULL AS SIGNED ) + 25 AS col1 FROM tab1 AS cor0
----
9 values hashing to f680a977aea6be72e793b5402c86b430

skipif mysql # not compatible
query III rowsort label-1409
SELECT ALL col0 + col0 AS col0, - col0, CAST ( NULL AS INTEGER ) + 25 AS col1 FROM tab1 AS cor0
----
9 values hashing to f680a977aea6be72e793b5402c86b430

query I rowsort
SELECT + 1 + 21 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1411
SELECT DISTINCT - + 63 - + 93 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + ( - ( - CAST( + col2 AS SIGNED ) ) ) / col1 IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-1411
SELECT DISTINCT - + 63 - + 93 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + ( - ( - CAST ( + col2 AS INTEGER ) ) ) / col1 IS NULL
----
-156

query I rowsort
SELECT ALL - col1 * + col2 - col2 * - 65 + - ( col1 ) FROM tab0 AS cor0
----
-833
419
6335

query I rowsort
SELECT ALL + - 91 + - col2 * - col1 - - + ( + col0 ) AS col1 FROM tab1 AS cor0
----
1304
289
3196

query I rowsort
SELECT ALL + 95 FROM tab0 AS cor0 WHERE col0 / - 97 IS NULL
----

query I rowsort
SELECT ALL - 15 * + + 4 FROM tab0
----
-60
-60
-60

query I rowsort
SELECT - - col1 * col2 * + + col2 - + 30 FROM tab2 AS cor0
----
123170
225358
26949

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1417
SELECT + - 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-1417
SELECT + - CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT COUNT( DISTINCT 39 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-1420
SELECT COUNT ( DISTINCT 39 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT - MAX( ALL - 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-1421
SELECT - MAX ( ALL - 43 ) FROM tab2
----
43

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 82 IN ( + 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL - MIN ( ALL ( col2 ) ) AS col1 FROM tab2
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT ALL COUNT( * ) - SUM( DISTINCT + col1 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL COUNT ( * ) - SUM ( DISTINCT + col1 ) FROM tab1
----
-63

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 + + col0 col1 FROM tab1
----
29
63
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT + COUNT( * ) FROM tab0 WHERE col1 * col2 + 39 * 52 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1428
SELECT + COUNT ( * ) FROM tab0 WHERE col1 * col2 + 39 * 52 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT MIN( ALL 27 ) + + COUNT( * ) AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT MIN ( ALL 27 ) + + COUNT ( * ) AS col2 FROM tab2
----
30

query I rowsort
SELECT + col0 + col0 FROM tab1 WHERE - col1 = col2 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT DISTINCT + ( SUM( + 38 ) ) AS col0 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT + ( SUM ( + 38 ) ) AS col0 FROM tab0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT DISTINCT ( + MIN( DISTINCT - col0 ) ) col1 FROM tab0
----
-97

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

query I rowsort
SELECT - col2 + 56 FROM tab0
----
-43
46
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT MIN( DISTINCT - 58 ) AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-1434
SELECT MIN ( DISTINCT - 58 ) AS col2 FROM tab0
----
-58

query I rowsort
SELECT DISTINCT col0 * + 81 FROM tab1
----
4131
6885
7371

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1439
SELECT * FROM tab0 cor0 WHERE - 28 + col2 * + CAST( + ( 10 ) + col1 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1439
SELECT * FROM tab0 cor0 WHERE - 28 + col2 * + CAST ( + ( 10 ) + col1 AS INTEGER ) >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT + 53 + 12 * + COUNT( * ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-1441
SELECT + 53 + 12 * + COUNT ( * ) FROM tab0
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT - + 51 + COUNT( * ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - + 51 + COUNT ( * ) FROM tab0 AS cor0
----
-48

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

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

query I rowsort
SELECT ALL + col0 - - col2 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1447
SELECT ALL + col2 + CAST( NULL AS DECIMAL ) 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-1447
SELECT ALL + col2 + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( + col2 * col2 )
----
14
47
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1450
SELECT + MIN( ( CAST( NULL AS SIGNED ) ) ) - 45 * 79 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT + MIN ( ( CAST ( NULL AS INTEGER ) ) ) - 45 * 79 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 - + col1 FROM tab1 cor0
----
-10
-28
-94

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

query I rowsort
SELECT ALL - 42 - 25 FROM tab0 AS cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT - 98 + - COUNT( * ) col1 FROM tab2 AS cor0
----
-101

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT DISTINCT 52 - + MIN( DISTINCT col2 ) DIV COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT 52 - + MIN ( DISTINCT col2 ) / COUNT ( * ) FROM tab2
----
45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( 11 * col0 )
----

query I rowsort
SELECT + col0 + + ( col0 ) * col1 FROM tab2
----
2392
4992
5100

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

query I rowsort
SELECT + col0 * - 51 * - col0 FROM tab1
----
132651
368475
422331

query I rowsort
SELECT ALL + 30 AS col2 FROM tab1 AS cor0 WHERE - ( + col0 ) * 19 + 23 IS NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 IN ( + 56 + - 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + ( - 94 ) ) FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1466
SELECT ALL 38 col2, CAST( NULL AS SIGNED ) + - 13 / + col1 FROM tab2
----
38
NULL
38
NULL
38
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1466
SELECT ALL 38 col2, CAST ( NULL AS INTEGER ) + - 13 / + col1 FROM tab2
----
38
NULL
38
NULL
38
NULL

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

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

query I rowsort
SELECT ALL + col1 * - - col2 + + - col0 * - col2 FROM tab2 AS cor0
----
2231
5640
8236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1470
SELECT DISTINCT - + SUM( 74 ) DIV + CAST( - MAX( ALL + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT - + SUM ( 74 ) / + CAST ( - MAX ( ALL + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT 44 * - MAX( + col2 ) FROM tab1 AS cor0
----
-4224

skipif mysql # not compatible
query I rowsort label-1471
SELECT 44 * - MAX ( + col2 ) FROM tab1 AS cor0
----
-4224

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1472
SELECT 79 / CAST( NULL AS DECIMAL ) * + col0 - + 32 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT 79 / CAST ( NULL AS REAL ) * + col0 - + 32 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 32 ) + - 59 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + 83 * + col2 * - col1 + - col0 + + 98 FROM tab0 AS cor0
----
-17419
-315898
-8216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + col2 * 51 * col1 + col2 col1 FROM tab1 AS cor0
----
-14901
-162837
-68397

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL - COUNT( ALL col2 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1477
SELECT ALL - COUNT ( ALL col2 ) col1 FROM tab1
----
-3

query I rowsort
SELECT + 96 * - 95 AS col1 FROM tab2 WHERE NOT 21 IS NOT NULL
----

query I rowsort
SELECT + 91 + - col0 + col1 AS col0 FROM tab1
----
11
47
54

query I rowsort
SELECT 6 * col1 + - - 58 + col0 FROM tab2
----
410
535
584

query III rowsort
SELECT * FROM tab0 WHERE ( - 25 ) > NULL
----

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

skipif mysql # not compatible
query III rowsort label-1482
SELECT * FROM tab1 WHERE + 65 <> + CAST ( NULL AS INTEGER ) * - col1
----

query I rowsort
SELECT - col0 * - + col1 * 68 FROM tab2 cor0
----
159528
335104
341700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1484
SELECT ALL + ( + + ( - 97 ) ) DIV + COUNT( * ) - MIN( + col0 ) * 49 AS col2 FROM tab1 AS cor0
----
-2531

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + ( + + ( - 97 ) ) / + COUNT ( * ) - MIN ( + col0 ) * 49 AS col2 FROM tab1 AS cor0
----
-2531

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT ALL - 83 DIV col2 + - 16 AS col1 FROM tab1 AS cor0
----
-16
-17
-17

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - 83 / col2 + - 16 AS col1 FROM tab1 AS cor0
----
-16
-17
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT ALL + 60 DIV + col2 + + col0 FROM tab1 AS cor0
----
51
86
91

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL + 60 / + col2 + + col0 FROM tab1 AS cor0
----
51
86
91

query I rowsort
SELECT - 17 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 44 * - 31 IS NOT NULL
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT - col0 / col0 AS col2 FROM tab2 cor0 WHERE - 2 * + - col2 IN ( + - 43 + + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT - - COUNT( * ) + + + 71 AS col0 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-1489
SELECT - - COUNT ( * ) + + + 71 AS col0 FROM tab2 AS cor0
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1490
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 7 * - ( ( - 77 ) ) * + col0 AND ( CAST( NULL AS DECIMAL ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-1490
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 7 * - ( ( - 77 ) ) * + col0 AND ( CAST ( NULL AS REAL ) * col0 )
----

query I rowsort
SELECT + 67 + - - 60 FROM tab1 cor0
----
127
127
127

query I rowsort
SELECT DISTINCT - col2 - - 8 FROM tab0 AS cor0
----
-2
-39
-91

query II rowsort
SELECT col1 AS col0, col1 - + 46 AS col0 FROM tab0 AS cor0
----
1
-45
21
-25
81
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - + col2 IN ( + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= + col0
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + + 72 IS NULL
----

query II rowsort
SELECT DISTINCT + 46, 0 AS col2 FROM tab1
----
46
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT ( - ( 19 ) ) DIV - 25 * + ( + 60 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1502
SELECT ( - ( 19 ) ) / - 25 * + ( + 60 ) AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL + col1 + 26, - col1 * - - 76 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 <> col1 + - col1
----

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1510
SELECT CAST ( - 66 AS INTEGER ) col2 FROM tab2
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT + MAX( - col0 ) * MAX( + + 93 ) col2 FROM tab0
----
-1395

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1511
SELECT + MAX ( - col0 ) * MAX ( + + 93 ) col2 FROM tab0
----
-1395

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 15 * - + 42 ) NOT IN ( col1 )
----

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

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( ( - - 24 * 20 + col0 / col2 IS NOT NULL ) ) )
----
51
67
77

query I rowsort
SELECT - + 20 * + col2 * + + col1 FROM tab0 AS cor0
----
-1980
-4200
-76140

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL COUNT( * ) * + SUM( + + 19 ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL COUNT ( * ) * + SUM ( + + 19 ) FROM tab2 AS cor0
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1518
SELECT DISTINCT - - COUNT( * ) DIV - 12 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT - - COUNT ( * ) / - 12 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT - - 82 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT + CAST( + 24 AS SIGNED ) AS col0 FROM tab2
----
24
24
24

skipif mysql # not compatible
query I rowsort label-1521
SELECT + CAST ( + 24 AS INTEGER ) AS col0 FROM tab2
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1522
SELECT 60 * - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT 60 * - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1523
SELECT ALL - 73 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL - 73 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL 8 * SUM( - col0 ) FROM tab0
----
-1592

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL 8 * SUM ( - col0 ) FROM tab0
----
-1592

query I rowsort
SELECT DISTINCT + 11 + + col2 AS col1 FROM tab2
----
34
51
69

query I rowsort
SELECT ALL + col2 + 19 FROM tab1
----
115
78
87

onlyif mysql # DIV for integer division: 
query II rowsort label-1527
SELECT ALL + col2 + + col2 DIV - col0 col0, + 70 AS col1 FROM tab2 AS cor0
----
23
70
40
70
58
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1527
SELECT ALL + col2 + + col2 / - col0 col0, + 70 AS col1 FROM tab2 AS cor0
----
23
70
40
70
58
70

query I rowsort
SELECT ALL - col0 * + + 61 + + col2 FROM tab1 AS cor0
----
-3015
-5126
-5483

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

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

query I rowsort
SELECT - ( - ( - - 26 ) ) FROM tab2
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT - ( COUNT( * ) ) + + 82 FROM tab2 AS cor0 WHERE 50 IS NULL
----
82

skipif mysql # not compatible
query I rowsort label-1532
SELECT - ( COUNT ( * ) ) + + 82 FROM tab2 AS cor0 WHERE 50 IS NULL
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL - COUNT( * ) - 2 col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1533
SELECT ALL - COUNT ( * ) - 2 col2 FROM tab1 cor0
----
-5

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 67 IS NULL
----

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

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NULL <> - ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1537
SELECT + col1 * - CAST( - - col2 AS SIGNED ) - - col1 AS col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

skipif mysql # not compatible
query I rowsort label-1537
SELECT + col1 * - CAST ( - - col2 AS INTEGER ) - - col1 AS col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT ALL - col0 / + + col0 AS col2 FROM tab0 AS cor0 WHERE - col2 NOT IN ( - + col2 )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1541
SELECT - COUNT( * ) AS col1, - COUNT( + CAST( ( 47 ) AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab1
----
-3
-6

skipif mysql # not compatible
query II rowsort label-1541
SELECT - COUNT ( * ) AS col1, - COUNT ( + CAST ( ( 47 ) AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab1
----
-3
-6

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

query II rowsort
SELECT 74 * + 35 * + + col2, + col1 FROM tab1
----
152810
5
176120
47
248640
14

query II rowsort
SELECT + 88 AS col0, + col1 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + col1 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT + col0 DIV col1 FROM tab1 AS cor0 WHERE NOT - 63 * 19 DIV ( - - col1 ) * + col2 IN ( + - col2, ( - ( + 42 ) ) * col0 )
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1545
SELECT + col0 / col1 FROM tab1 AS cor0 WHERE NOT - 63 * 19 / ( - - col1 ) * + col2 IN ( + - col2, ( - ( + 42 ) ) * col0 )
----
1
17
3

query I rowsort
SELECT - 77 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * - 25 FROM tab2 AS cor0
----
-1150
-1600
-1875

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 82 BETWEEN + col2 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 26 FROM tab2 WHERE NOT col0 * + col2 NOT BETWEEN - col2 + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT DISTINCT CAST( 77 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
77

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT CAST ( 77 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
77

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

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

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

query I rowsort
SELECT - col0 + + 45 AS col2 FROM tab2 AS cor0
----
-1
-19
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT - col2 DIV col2 + + col2 AS col2 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-1555
SELECT - col2 / col2 + + col2 AS col2 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT MIN( - col0 ) + - 72 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-1556
SELECT MIN ( - col0 ) + - 72 FROM tab2 AS cor0
----
-147

query I rowsort
SELECT + 54 + + + ( - ( + 37 ) ) AS col2 FROM tab1 AS cor0
----
17
17
17

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

query I rowsort
SELECT - col1 + 96 * + + col0 AS col0 FROM tab0 AS cor0
----
1359
8331
9311

query I rowsort
SELECT + + 54 * + 65 * + + 96 + - + 77 * + - ( ( + - col1 ) ) + + - 72 AS col0 FROM tab1 AS cor0
----
333269
335810
336503

query I rowsort
SELECT + 66 FROM tab2 WHERE - 81 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 66 * - + 82 AS col1 FROM tab0
----
-5412
-5412
-5412

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( NOT + 51 < 91 )
----

query I rowsort
SELECT ALL col1 + + col0 * + col2 AS col2 FROM tab0
----
786
891
9604

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * 69 + + + col0 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1566
SELECT + + 81 * + col2 * - col0 - - CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-57024
-70449
-777842

skipif mysql # not compatible
query I rowsort label-1566
SELECT + + 81 * + col2 * - col0 - - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-57024
-70449
-777842

query I rowsort
SELECT DISTINCT + ( - - col1 ) * + col1 + 58 FROM tab0 AS cor0
----
499
59
6619

query II rowsort
SELECT + col2 AS col2, 43 * + + ( - col1 ) - + ( ( - 26 ) ) + col2 FROM tab1 AS cor0
----
59
-130
68
-1927
96
-480

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1570
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) + - + col1 * + + ( + col2 ) / - 38 - + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1570
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - + col1 * + + ( + col2 ) / - 38 - + col0 IS NULL
----

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

query I rowsort
SELECT ALL + 34 * - col2 FROM tab1 AS cor0
----
-2006
-2312
-3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1573
SELECT DISTINCT - + col0 * - + 97 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT + 82 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - + col0 * - + 97 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT + 82 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - 45 * col0 / + col1 * 78
----

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

query I rowsort
SELECT ALL - col0 * - + 28 + - col1 FROM tab0 AS cor0
----
2415
2715
339

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT IN ( + 95 * - - 96 + - col1 + - - col2, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT 20 * - col1 FROM tab0
----
-1620
-20
-420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1581
SELECT ALL - 98 DIV - - COUNT( * ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL - 98 / - - COUNT ( * ) FROM tab0
----
-32

query I rowsort
SELECT 43 * 60 AS col1 FROM tab1
----
2580
2580
2580

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL < + col0
----

query I rowsort
SELECT - 78 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + COUNT( * ) + + + 1 AS col2 FROM tab2 cor0 WHERE + col1 <= + col2 * + col2
----
4

skipif mysql # not compatible
query I rowsort label-1585
SELECT + COUNT ( * ) + + + 1 AS col2 FROM tab2 cor0 WHERE + col1 <= + col2 * + col2
----
4

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

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

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

query I rowsort
SELECT - - 17 * + col1 FROM tab2 AS cor0
----
1139
1309
867

onlyif mysql # aggregate syntax: 
query II rowsort label-1589
SELECT 86 + COUNT( * ) AS col1, ( - 35 ) AS col0 FROM tab0
----
89
-35

skipif mysql # not compatible
query II rowsort label-1589
SELECT 86 + COUNT ( * ) AS col1, ( - 35 ) AS col0 FROM tab0
----
89
-35

query I rowsort
SELECT 11 + - col2 - + + ( + col1 ) + - - col0 FROM tab0
----
-102
67
8

query I rowsort
SELECT 34 + - col2 + - col1 - - - col2 AS col0 FROM tab1
----
-149
-172
-89

query I rowsort
SELECT col0 + - + 59 FROM tab2
----
-13
16
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT DISTINCT col2 * - ( - 23 ) + + CAST( - col0 AS SIGNED ) * + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
-2713
1494
932

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT col2 * - ( - 23 ) + + CAST ( - col0 AS INTEGER ) * + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
-2713
1494
932

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL ( 45 ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL ( 45 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT + - COUNT( * ) * - 61 + COUNT( * ) FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT + - COUNT ( * ) * - 61 + COUNT ( * ) FROM tab0 AS cor0
----
186

query I rowsort
SELECT DISTINCT + 93 * - ( - 87 ) FROM tab0
----
8091

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

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 0 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ( - 86 ) FROM tab0
----
-86
-86
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1600
SELECT 21 * - + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-1600
SELECT 21 * - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
-63

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

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
196
2209
25

query II rowsort
SELECT ALL + col2 * - 83, col1 FROM tab0 AS cor0
----
-3901
81
-8217
1
-830
21

query II rowsort
SELECT ALL - col0 * + 21 AS col1, - col2 FROM tab0 AS cor0
----
-1827
-10
-2037
-99
-315
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT DISTINCT - 48 DIV - + col0 * + col2 * - - 98 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT - 48 / - + col0 * + col2 * - - 98 AS col1 FROM tab1 cor0
----
0

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

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

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

query I rowsort
SELECT - 48 * - - col0 FROM tab0
----
-4176
-4656
-720

onlyif mysql # DIV for integer division: 
query II rowsort label-1609
SELECT DISTINCT - ( + 21 ) DIV 19, col1 AS col1 FROM tab1
----
-1
14
-1
47
-1
5

skipif mysql # not compatible
query II rowsort label-1609
SELECT DISTINCT - ( + 21 ) / 19, col1 AS col1 FROM tab1
----
-1
14
-1
47
-1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT ALL CAST( 54 AS SIGNED ) AS col1 FROM tab2
----
54
54
54

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL CAST ( 54 AS INTEGER ) AS col1 FROM tab2
----
54
54
54

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT - MIN( ALL - + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1614
SELECT - MIN ( ALL - + col2 ) AS col0 FROM tab1
----
96

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1618
SELECT + 86 DIV + COUNT( * ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-1618
SELECT + 86 / + COUNT ( * ) FROM tab1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT + - CAST( - col0 AS SIGNED ) + col1 AS col0 FROM tab1 cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-1619
SELECT + - CAST ( - col0 AS INTEGER ) + col1 AS col0 FROM tab1 cor0
----
138
65
90

query II rowsort
SELECT + 96 + ( 62 ) + col0 AS col0, col0 AS col0 FROM tab0 cor0
----
173
15
245
87
255
97

query I rowsort
SELECT col1 + + 67 * col1 * - 63 * col0 FROM tab1 AS cor0
----
-1793920
-18053170
-3013780

query I rowsort
SELECT col1 + + 61 FROM tab1 AS cor0
----
108
66
75

query I rowsort
SELECT + col1 + + col2 + + col1 * + col0 * - col0 FROM tab0 AS cor0
----
-158918
-18097
-9309

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1624
SELECT * FROM tab2 AS cor0 WHERE col2 / ( + 31 ) >= ( + - 89 * + col1 * col0 + - + col2 + + col2 + - + CAST( NULL AS SIGNED ) - - ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-1624
SELECT * FROM tab2 AS cor0 WHERE col2 / ( + 31 ) >= ( + - 89 * + col1 * col0 + - + col2 + + col2 + - + CAST ( NULL AS INTEGER ) - - ( - col0 ) )
----

query I rowsort
SELECT + 78 * - col2 + - ( 30 ) AS col1 FROM tab1 AS cor0
----
-4632
-5334
-7518

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT + ( - COUNT( DISTINCT + col1 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + ( - COUNT ( DISTINCT + col1 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 33 NOT BETWEEN + + col1 + - 37 * - ( col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 24 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1631
SELECT ALL COUNT( * ) AS col2, 61 AS col2 FROM tab2
----
3
61

skipif mysql # not compatible
query II rowsort label-1631
SELECT ALL COUNT ( * ) AS col2, 61 AS col2 FROM tab2
----
3
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT - - 75 NOT IN ( - col2 * col1, + col0 + - - 62, - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - - 75 NOT IN ( - col2 * col1, + col0 + - - 62, - + col0 )
----
0

query II rowsort
SELECT ALL - col1 * - col1 + 63 AS col0, col1 + col1 FROM tab0
----
504
42
64
2
6624
162

query I rowsort
SELECT - col2 * col2 - - 24 AS col2 FROM tab0
----
-2185
-76
-9777

query I rowsort
SELECT - - 83 - + col0 FROM tab0 AS cor0
----
-14
-4
68

query I rowsort
SELECT - 22 - col2 AS col0 FROM tab2 cor0
----
-45
-62
-80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * - + col1 + + + col0 col2 FROM tab1 AS cor0
----
-1272
-355
-60

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

query I rowsort
SELECT + 21 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 <= + + col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT COUNT( * ) * - 41 * 5 AS col2 FROM tab2
----
-615

skipif mysql # not compatible
query I rowsort label-1642
SELECT COUNT ( * ) * - 41 * 5 AS col2 FROM tab2
----
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT + MIN( ALL - ( 90 ) ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1643
SELECT + MIN ( ALL - ( 90 ) ) FROM tab1
----
-90

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

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

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) < NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1649
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) + + + col0, + col2 * + - col0 )
----

skipif mysql # not compatible
query III rowsort label-1649
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) + + + col0, + col2 * + - col0 )
----

query I rowsort
SELECT 21 * + col1 - col1 FROM tab1 AS cor0
----
100
280
940

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

query II rowsort
SELECT ALL col2 AS col2, + 54 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL + 61 * - 14 + col1 + col1 FROM tab1 AS cor0
----
-760
-826
-844

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + 36, col1, + - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT + SUM( ALL col2 ) col2 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1657
SELECT + SUM ( ALL col2 ) col2 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT - 31 * - + MIN( DISTINCT - col2 ) AS col1 FROM tab2
----
-1798

skipif mysql # not compatible
query I rowsort label-1658
SELECT - 31 * - + MIN ( DISTINCT - col2 ) AS col1 FROM tab2
----
-1798

onlyif mysql # aggregate syntax: 
query II rowsort label-1659
SELECT ALL COUNT( * ) + + - COUNT( * ) AS col1, 90 + 55 FROM tab2
----
0
145

skipif mysql # not compatible
query II rowsort label-1659
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col1, 90 + 55 FROM tab2
----
0
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1660
SELECT + CAST( + col1 AS SIGNED ), + col2 AS col0 FROM tab0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-1660
SELECT + CAST ( + col1 AS INTEGER ), + col2 AS col0 FROM tab0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 + - col1 col2 FROM tab2 AS cor0
----
12
22
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT DISTINCT + COUNT( DISTINCT + + col0 ) + + 72 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT + COUNT ( DISTINCT + + col0 ) + + 72 FROM tab1 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT ALL 9 DIV col1 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL 9 / col1 FROM tab1 cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1665
SELECT ( CAST( NULL AS SIGNED ) ) + ( 3 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1665
SELECT ( CAST ( NULL AS INTEGER ) ) + ( 3 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL - - COUNT ( * ) + - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
226

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

query I rowsort
SELECT DISTINCT - col2 * + ( col0 ) - + + col1 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT + 20 * - COUNT( ALL + 39 ) * + - COUNT( * ) + - 94 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-1671
SELECT + 20 * - COUNT ( ALL + 39 ) * + - COUNT ( * ) + - 94 FROM tab1
----
86

query I rowsort
SELECT - col1 + - + ( + col2 ) FROM tab2
----
-117
-125
-74

query II rowsort
SELECT + ( + ( col0 ) ) + - 13 AS col1, + col0 * + + col2 FROM tab2
----
33
1058
51
2560
62
4350

query I rowsort
SELECT DISTINCT - - 47 * 71 + + col2 + - - col0 FROM tab2 AS cor0
----
3406
3441
3470

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1676
SELECT - 32 DIV + COUNT( * ) + + - COUNT( * ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-1676
SELECT - 32 / + COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
-13

query I rowsort
SELECT + 59 + - 34 FROM tab1
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 15 col2, - 41 - col2 AS col0 FROM tab2
----
-15
-64
-15
-81
-15
-99

query I rowsort
SELECT DISTINCT - ( + - col2 ) + col1 FROM tab0
----
100
128
31

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

query I rowsort
SELECT + + col2 * 30 FROM tab0 AS cor0
----
1410
2970
300

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

query I rowsort
SELECT + 6 * + + col2 FROM tab1 AS cor0
----
354
408
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1684
SELECT ALL - COUNT( * ) * - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col2 FROM tab1, tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - COUNT ( * ) * - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col2 FROM tab1, tab2 cor0
----
0

query I rowsort
SELECT DISTINCT col1 + + 42 * - 10 + + 20 AS col2 FROM tab2
----
-323
-333
-349

query I rowsort
SELECT ALL - 49 * - col0 + 27 AS col0 FROM tab2
----
2281
3163
3702

query I rowsort
SELECT DISTINCT 62 - - 57 FROM tab0 AS cor0
----
119

query I rowsort
SELECT + col1 + - 33 AS col0 FROM tab0 cor0
----
-12
-32
48

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

query I rowsort
SELECT DISTINCT col0 - - ( col1 ) + + col2 * - 55 AS col2 FROM tab1 AS cor0
----
-3155
-3602
-5215

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1692
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col0 + + col2 + - col1 ) AND - CAST( NULL AS SIGNED ) * + + col2
----

skipif mysql # not compatible
query III rowsort label-1692
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col0 + + col2 + - col1 ) AND - CAST ( NULL AS INTEGER ) * + + col2
----

query I rowsort
SELECT DISTINCT - - 32 - + 44 - + 91 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + 53 FROM tab2 AS cor0 WHERE NULL IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT - + MAX( col1 ) * + SUM( + + 37 ) FROM tab1 AS cor0
----
-5217

skipif mysql # not compatible
query I rowsort label-1695
SELECT - + MAX ( col1 ) * + SUM ( + + 37 ) FROM tab1 AS cor0
----
-5217

query I rowsort
SELECT - col1 * 86 * col2 AS col2 FROM tab2
----
-100878
-264880
-334196

query I rowsort
SELECT ALL 20 * + + col0 * col2 AS col1 FROM tab1
----
100300
123760
97920

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT + MIN( DISTINCT + ( + 93 ) ) - + 3 AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT + MIN ( DISTINCT + ( + 93 ) ) - + 3 AS col0 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL 6 * + MAX( - 91 ) + + 98 AS col0 FROM tab0
----
-448

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL 6 * + MAX ( - 91 ) + + 98 AS col0 FROM tab0
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT SUM( - + 27 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1700
SELECT SUM ( - + 27 ) FROM tab2
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-1701
SELECT DISTINCT - ( - + 4 ) DIV - 73, - 35 AS col0 FROM tab1 AS cor0
----
0
-35

skipif mysql # not compatible
query II rowsort label-1701
SELECT DISTINCT - ( - + 4 ) / - 73, - 35 AS col0 FROM tab1 AS cor0
----
0
-35

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

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

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

query I rowsort
SELECT col2 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT + SUM( ALL + 12 ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT + SUM ( ALL + 12 ) FROM tab0 AS cor0
----
36

query I rowsort
SELECT col1 * 95 AS col0 FROM tab0 AS cor0
----
1995
7695
95

query I rowsort
SELECT ALL - + 19 FROM tab0 cor0
----
-19
-19
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT ALL - - MAX( DISTINCT + + ( + 36 ) ) AS col1 FROM tab2 cor0
----
36

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL - - MAX ( DISTINCT + + ( + 36 ) ) AS col1 FROM tab2 cor0
----
36

query II rowsort
SELECT + 99 AS col1, + col0 AS col1 FROM tab0 WHERE ( NOT ( NULL ) IS NULL )
----

query II rowsort
SELECT col2 AS col2, - col0 AS col1 FROM tab0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 79 BETWEEN - + 51 AND + 75 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL 22 + - + col1 FROM tab1
----
-25
17
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1716
SELECT AVG ( - col0 ) + ( COUNT( * ) ) + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + 91 * COUNT( DISTINCT + 67 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT AVG ( - col0 ) + ( COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + 91 * COUNT ( DISTINCT + 67 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE - ( - + col2 ) * - + 22 BETWEEN - - 48 AND + 37
----

query I rowsort
SELECT + col2 + col1 + - 2 FROM tab2 AS cor0
----
115
123
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1719
SELECT - COUNT( * ) DIV - COUNT( - - col0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1719
SELECT - COUNT ( * ) / - COUNT ( - - col0 ) FROM tab0
----
1

query I rowsort
SELECT + 90 * - + col0 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT - 56 * + MIN( DISTINCT - col0 ) AS col2 FROM tab1
----
5096

skipif mysql # not compatible
query I rowsort label-1721
SELECT - 56 * + MIN ( DISTINCT - col0 ) AS col2 FROM tab1
----
5096

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1724
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED ) - - - 11 / + + AVG ( + - col1 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER ) - - - 11 / + + AVG ( + - col1 ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 69 * - col2 * + 83 AS col2 FROM tab1 AS cor0
----
337893
389436
549792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1726
SELECT DISTINCT - 78 DIV + 51, COUNT( * ) AS col0 FROM tab0
----
-1
3

skipif mysql # not compatible
query II rowsort label-1726
SELECT DISTINCT - 78 / + 51, COUNT ( * ) AS col0 FROM tab0
----
-1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT ALL + ( col2 ) DIV + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL + ( col2 ) / + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1728
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) * + + 2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) * + + 2 < NULL
----
0

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT 94 + 49 + - 63 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT + 58 * + ( 88 ) + - COUNT( * ) * + 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
5014

skipif mysql # not compatible
query I rowsort label-1732
SELECT + 58 * + ( 88 ) + - COUNT ( * ) * + 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
5014

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT MAX( - 99 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-1733
SELECT MAX ( - 99 ) FROM tab1
----
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT - SUM( - 48 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
432

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT - SUM ( - 48 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
432

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( col2 + col0 * - 14 ) IS NULL
----
14
47
5

query I rowsort
SELECT - + ( - col1 ) * + 50 FROM tab0 AS cor0
----
1050
4050
50

query I rowsort
SELECT ALL + ( - col0 ) + + 85 FROM tab0 AS cor0
----
-12
-2
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT DISTINCT col0 * col0 + col0 + - col2 DIV - - col2 AS col1 FROM tab2 AS cor0
----
2161
4159
5699

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT col0 * col0 + col0 + - col2 / - - col2 AS col1 FROM tab2 AS cor0
----
2161
4159
5699

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 > + col0 * - col2 / + col2
----
15
81
47
97
1
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 - + col0 + - col0 * 42 - 30 >= + 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL ( + - MAX ( ALL + col1 ) ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - 45 * col0 FROM tab2
----
-2070
-2880
-3375

query I rowsort
SELECT + + col1 AS col2 FROM tab2 WHERE + ( - 72 ) - + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 <= + col1 * + col0 + + + 87 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 33 + col1 * + col0 FROM tab2
----
2379
4961
5058

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 59 * + col1 < NULL
----

query I rowsort
SELECT - col1 * col2 * + 42 FROM tab0 cor0
----
-159894
-4158
-8820

query I rowsort
SELECT 90 * + - col2 FROM tab0 AS cor0
----
-4230
-8910
-900

query I rowsort
SELECT ALL + col1 * 5 + - 60 AS col1 FROM tab0 AS cor0
----
-55
345
45

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

query I rowsort
SELECT + - 2 * col0 - + 2 FROM tab0 cor0
----
-176
-196
-32

query II rowsort
SELECT + - 21 + col1 * + col0 + - 44, + col1 AS col0 FROM tab0 AS cor0
----
1150
81
1762
21
32
1

query I rowsort
SELECT - 8 * - + 73 + col2 FROM tab2 WHERE NULL IS NULL
----
607
624
642

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1755
SELECT ALL SUM( - CAST( NULL AS DECIMAL ) ) * + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL SUM ( - CAST ( NULL AS REAL ) ) * + COUNT ( * ) AS col2 FROM tab2
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 58 / - 60 <> - 41
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT + - col1 DIV + 49 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1759
SELECT + - col1 / + 49 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col1 * - col1 FROM tab2 AS cor0
----
-2578
-4431
-5889

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + 61 <= 83
----

skipif mysql # not compatible
query I rowsort label-1765
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + 61 <= 83
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1766
SELECT - col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN - 39 * + - col0 + - + CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1766
SELECT - col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN - 39 * + - col0 + - + CAST ( NULL AS REAL ) AND NULL
----

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

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

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

query I rowsort
SELECT ( + + col0 ) AS col0 FROM tab2 WHERE NOT ( NOT - col2 IS NOT NULL )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT 26 * - COUNT( * ) * + 46 AS col1 FROM tab2
----
-3588

skipif mysql # not compatible
query I rowsort label-1770
SELECT 26 * - COUNT ( * ) * + 46 AS col1 FROM tab2
----
-3588

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL + COUNT( DISTINCT - 10 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL + COUNT ( DISTINCT - 10 ) AS col2 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1773
SELECT ALL + col1 * + + col2 * + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL + col1 * + + col2 * + col1 / + col1 AS col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT 38 * - - MAX( 45 ) * - COUNT( * ) FROM tab0 cor0
----
-5130

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT 38 * - - MAX ( 45 ) * - COUNT ( * ) FROM tab0 cor0
----
-5130

query I rowsort
SELECT + 13 AS col0 FROM tab1 AS cor0 WHERE NOT 90 >= col1 * - ( ( 84 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT - - COUNT( ALL + + 54 ) - - + 24 FROM tab2 WHERE NOT - + 89 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-1776
SELECT - - COUNT ( ALL + + 54 ) - - + 24 FROM tab2 WHERE NOT - + 89 IS NOT NULL
----
24

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 * 23 + ( - col1 ) col0 FROM tab1
----
-1136
-1875
-2049

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT DISTINCT - ( + + col2 ) DIV ( + 50 ) AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT - ( + + col2 ) / ( + 50 ) AS col1 FROM tab2
----
-1
0

query I rowsort
SELECT - ( + - 64 ) * col1 AS col2 FROM tab2 AS cor0
----
3264
4288
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT - - COUNT( * ) * + 61 AS col1 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT - - COUNT ( * ) * + 61 AS col1 FROM tab0 AS cor0
----
183

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

query II rowsort
SELECT DISTINCT + + col2 + - col2 + - 59 AS col0, + col2 FROM tab1 AS cor0 WHERE NOT + 62 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT - COUNT ( ALL + 2 ) FROM tab0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL COUNT( * ) + - 21 col1 FROM tab1
----
-18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT ALL 82 DIV + col1 + + 60 * + col1 col1 FROM tab2
----
3061
4021
4621

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1788
SELECT ALL 82 / + col1 + + 60 * + col1 col1 FROM tab2
----
3061
4021
4621

query I rowsort
SELECT - 19 + 2 + - col0 * + col2 * - - col0 FROM tab2 AS cor0
----
-163857
-326267
-48685

query I rowsort
SELECT - - col0 - + col2 AS col2 FROM tab1 AS cor0 WHERE + col2 = + - 49
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 50 - - + col2 + - + col1 / - - 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 45 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT DISTINCT - ( - col1 ) * + col0 - + col0 FROM tab2
----
2300
4864
4950

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1794
SELECT CAST( col1 AS SIGNED ) * col0 * + col2 DIV + col2 AS col2 FROM tab0
----
1215
1827
97

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

query I rowsort
SELECT ALL - - 18 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT ALL COUNT( DISTINCT - 23 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL COUNT ( DISTINCT - 23 ) FROM tab2
----
1

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - col2 - - col0 FROM tab2 AS cor0
----
1664
3439
575

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT ALL - 70 DIV - col2 + + - col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-20
-39
-57

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL - 70 / - col2 + + - col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-20
-39
-57

query I rowsort
SELECT 98 * - - ( 64 ) FROM tab2
----
6272
6272
6272

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1803
SELECT - + col1 DIV 84 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1803
SELECT - + col1 / 84 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1804
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 BETWEEN ( CAST( - 80 AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1804
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 BETWEEN ( CAST ( - 80 AS INTEGER ) ) AND ( NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 * - col2 * + col0 / + col1 + + col1 + - 5 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT 84 * col1 AS col0 FROM tab2
----
4284
5628
6468

query II rowsort
SELECT ALL - col0 - + col2 AS col1, col0 + + col2 - - 8 * - col1 + + col2 + - col1 / + + 86 * - - col1 FROM tab1 WHERE - + col2 + ( col0 ) IS NULL
----

query I rowsort
SELECT - col0 + + 56 FROM tab1 AS cor0
----
-29
-35
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + + 75 + + + col1 * - col2 * + col0 - ( 66 ) * + 25 col1 FROM tab1 cor0
----
-26599
-292360
-70068

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

query II rowsort
SELECT DISTINCT 28, 63 * col2 AS col0 FROM tab2 AS cor0
----
28
1449
28
2520
28
3654

onlyif mysql # aggregate syntax: 
query II rowsort label-1815
SELECT - 17 AS col1, - ( - MIN( - - col1 ) ) AS col0 FROM tab0 WHERE - - col1 + + - col1 > ( + + ( - col1 ) )
----
-17
1

skipif mysql # not compatible
query II rowsort label-1815
SELECT - 17 AS col1, - ( - MIN ( - - col1 ) ) AS col0 FROM tab0 WHERE - - col1 + + - col1 > ( + + ( - col1 ) )
----
-17
1

query I rowsort
SELECT ALL + 23 + + col0 AS col1 FROM tab2
----
69
87
98

query III rowsort
SELECT * FROM tab2 WHERE 32 * + col0 * + col2 + + col1 < + col2 - - 94 + + + 2
----

query II rowsort
SELECT DISTINCT + 29 + col0 + + + 99, + col2 AS col0 FROM tab1
----
179
96
213
59
219
68

query II rowsort
SELECT + 25 - 20 AS col0, - col2 AS col2 FROM tab1 AS cor0
----
5
-59
5
-68
5
-96

query I rowsort
SELECT - + 85 - 49 AS col1 FROM tab0 AS cor0
----
-134
-134
-134

query I rowsort
SELECT - 81 + col1 AS col2 FROM tab2 AS cor0
----
-14
-30
-4

query I rowsort
SELECT DISTINCT - + 97 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-97

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL >= - - 73
----

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

skipif mysql # not compatible
query I rowsort label-1824
SELECT + col1 / - ( col0 ) * - col0 + + col2 FROM tab1 AS cor0
----
59
68
96

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 BETWEEN 6 AND - col0 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT - COUNT( * ) col0, COUNT( * ) * COUNT( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
-3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1828
SELECT - COUNT ( * ) col0, COUNT ( * ) * COUNT ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
-3
9

query I rowsort
SELECT DISTINCT + ( - 18 ) * 79 FROM tab1 AS cor0
----
-1422

query II rowsort
SELECT DISTINCT + + 44 AS col1, col1 FROM tab0 cor0
----
44
1
44
21
44
81

query II rowsort
SELECT DISTINCT - col1 AS col0, 25 + - + 29 FROM tab2 AS cor0
----
-51
-4
-67
-4
-77
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT SUM( DISTINCT - 89 ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT SUM ( DISTINCT - 89 ) FROM tab0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col0, + 91 AS col2 FROM tab1
----
-9
91

skipif mysql # not compatible
query II rowsort label-1833
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0, + 91 AS col2 FROM tab1
----
-9
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1834
SELECT - col0 FROM tab0 WHERE NOT - - col1 NOT BETWEEN CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1834
SELECT - col0 FROM tab0 WHERE NOT - - col1 NOT BETWEEN CAST ( col2 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT - + CAST( - 54 AS SIGNED ) FROM tab0 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-1835
SELECT - + CAST ( - 54 AS INTEGER ) FROM tab0 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col1 FROM tab0 AS cor0
----
-14
-14
-14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT ALL + + 78 AS col0 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1839
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * - col0 * + col1 + + col2 >= + + 55
----

skipif mysql # not compatible
query III rowsort label-1839
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * - col0 * + col1 + + col2 >= + + 55
----

query I rowsort
SELECT col2 + - + 28 FROM tab0
----
-18
19
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL - 11 + + + COUNT( * ) * MAX( DISTINCT - col2 ) * - + 94 FROM tab2
----
6475

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - 11 + + + COUNT ( * ) * MAX ( DISTINCT - col2 ) * - + 94 FROM tab2
----
6475

query I rowsort
SELECT DISTINCT - col2 * + col2 * col1 + - col1 AS col0 FROM tab1
----
-129038
-17410
-217375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1843
SELECT ALL CAST( + 23 AS SIGNED ) * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
120
1878
570

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL CAST ( + 23 AS INTEGER ) * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
120
1878
570

query I rowsort
SELECT DISTINCT - 31 + col1 FROM tab1 AS cor0
----
-17
-26
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 54 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT - 4 + + MAX( col2 ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-1846
SELECT - 4 + + MAX ( col2 ) AS col1 FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL + ( - COUNT( * ) ) * - + 67 AS col1 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + ( - COUNT ( * ) ) * - + 67 AS col1 FROM tab0
----
201

query I rowsort
SELECT 76 + col1 + - col1 * - + ( + + col1 ) AS col0 FROM tab1
----
106
2332
286

query I rowsort
SELECT 50 + + + col1 AS col2 FROM tab0
----
131
51
71

query I rowsort
SELECT DISTINCT + 62 * - + ( - + 31 ) * - col1 * + 47 FROM tab2
----
-4607034
-6052378
-6955718

query I rowsort
SELECT col1 + + 30 FROM tab1
----
35
44
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 44 * - col2 IS NOT NULL
----

query I rowsort
SELECT 9 + col1 AS col1 FROM tab1
----
14
23
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT COUNT( * ) + SUM( ALL 69 ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT COUNT ( * ) + SUM ( ALL 69 ) FROM tab2
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT - 5 DIV - ( - col1 ) FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-1855
SELECT - 5 / - ( - col1 ) FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab0 AS cor0 WHERE + ( - col1 ) * ( col2 ) NOT BETWEEN NULL AND + ( + col1 ) * - - col1 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1857
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1857
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 > CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT - + CAST( ( + 61 ) AS SIGNED ) FROM tab2 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-1858
SELECT - + CAST ( ( + 61 ) AS INTEGER ) FROM tab2 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT DISTINCT + COUNT( DISTINCT - col1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1859
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) col2 FROM tab1
----
3

query I rowsort
SELECT 31 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + + 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
52

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - ( - ( + col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT - COUNT( ALL + 35 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT - COUNT ( ALL + 35 ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1865
SELECT - + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE - 13 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL + COUNT( DISTINCT + 8 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL + COUNT ( DISTINCT + 8 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT ALL + COUNT( * ), + SUM( DISTINCT + 92 ) AS col2 FROM tab2
----
3
92

skipif mysql # not compatible
query II rowsort label-1868
SELECT ALL + COUNT ( * ), + SUM ( DISTINCT + 92 ) AS col2 FROM tab2
----
3
92

query II rowsort
SELECT DISTINCT col0 AS col2, col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1870
SELECT ALL - COUNT( * ) + - ( - 90 ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( + 35 AS SIGNED ) IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL - COUNT ( * ) + - ( - 90 ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( + 35 AS INTEGER ) IS NULL
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT DISTINCT 41 * ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT + col0 + 26 BETWEEN - CAST( NULL AS SIGNED ) * - 50 AND ( - col0 )
----
123

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT 41 * ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT + col0 + 26 BETWEEN - CAST ( NULL AS INTEGER ) * - 50 AND ( - col0 )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL - 33 * + COUNT( * ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL - 33 * + COUNT ( * ) FROM tab1
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT - 83 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + col2 < ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 > + 79 + 55 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE - col0 - col0 BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT + col2 * 98 AS col2 FROM tab0
----
4606
9702
980

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT DISTINCT col2 DIV - 16 FROM tab1
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT col2 / - 16 FROM tab1
----
-3
-4
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT ALL COUNT( * ) * MAX( ALL col0 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL COUNT ( * ) * MAX ( ALL col0 ) FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT SUM( DISTINCT - 25 ) FROM tab0 WHERE 83 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT SUM ( DISTINCT - 25 ) FROM tab0 WHERE 83 NOT BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + col0 * col0 col1 FROM tab1
----
2547
7171
8227

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 26 * col0 = NULL
----

query I rowsort
SELECT ( 0 ) FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 94 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( - col0 / col2 + - 57 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1886
SELECT + CAST( NULL AS SIGNED ) + col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1886
SELECT + CAST ( NULL AS INTEGER ) + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT + 22 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1887
SELECT + 22 / + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - 72 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT col2 DIV 66 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT col2 / 66 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 90 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1891
SELECT - ( + 91 ) DIV + 25 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1891
SELECT - ( + 91 ) / + 25 FROM tab1
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1892
SELECT + col2 DIV + 20 AS col1 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-1892
SELECT + col2 / + 20 AS col1 FROM tab1
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE - 39 * col0 + + col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE - 39 * col0 + + col0 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT 82 FROM tab2 WHERE 72 = 16 * CAST( + ( 49 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1894
SELECT 82 FROM tab2 WHERE 72 = 16 * CAST ( + ( 49 ) AS INTEGER )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( NULL ) <> ( + col2 ) / - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL - COUNT( - 94 ) + - 67 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL - COUNT ( - 94 ) + - 67 FROM tab0
----
-70

query I rowsort
SELECT + 53 * 6 FROM tab1 AS cor0
----
318
318
318

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + 70 + col2 ) AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 65 <= - 99
----
3

skipif mysql # not compatible
query I rowsort label-1899
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 65 <= - 99
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - 57 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 31 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT ALL col0 * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - 84 > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL col0 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - 84 > ( NULL )
----

query I rowsort
SELECT DISTINCT 8 FROM tab2 WHERE NOT 44 IN ( - col0 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT - COUNT( CAST( + 20 AS SIGNED ) ) * 16 AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1904
SELECT - COUNT ( CAST ( + 20 AS INTEGER ) ) * 16 AS col0 FROM tab2
----
-48

query I rowsort
SELECT + - ( - col2 ) * + 27 FROM tab2 cor0
----
1080
1566
621

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT - - MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT - - MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT col1 * - 42 FROM tab0 AS cor0
----
-3402
-42
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL - SUM( 16 ) AS col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL - SUM ( 16 ) AS col1 FROM tab0 AS cor0
----
-48

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 / - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1910
SELECT - - 36 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT - - 36 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT + 8 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1911
SELECT + 8 / - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( col0 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 73 BETWEEN ( - 54 ) AND NULL
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( - col0 )
----

query I rowsort
SELECT + ( col1 ) FROM tab2 WHERE NOT - ( - col0 ) BETWEEN ( NULL ) AND - col2 + - col1 * col0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * col2 < ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT MIN( DISTINCT - 90 ) col1 FROM tab0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1918
SELECT DISTINCT MIN ( DISTINCT - 90 ) col1 FROM tab0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN ( 46 ) AND + 49
----

query I rowsort
SELECT ALL + col1 + + - col1 - + col2 AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT - COUNT( DISTINCT + - col2 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1921
SELECT - COUNT ( DISTINCT + - col2 ) col2 FROM tab2
----
-3

query I rowsort
SELECT ALL 38 + - - 38 * - 30 AS col0 FROM tab0
----
-1102
-1102
-1102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1923
SELECT + COUNT( * ) DIV + - SUM( col2 ) + - 45 AS col0 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-1923
SELECT + COUNT ( * ) / + - SUM ( col2 ) + - 45 AS col0 FROM tab1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1924
SELECT DISTINCT + CAST( - - 38 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT + CAST ( - - 38 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 9 + + 9 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( + 35 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - col2 BETWEEN + col0 * 97 AND + col0 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - COUNT( * ) * COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-90

skipif mysql # not compatible
query I rowsort label-1928
SELECT - COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-90

query III rowsort
SELECT ALL * FROM tab0 WHERE + 45 IN ( ( - col0 ) )
----

query II rowsort
SELECT + - col2 AS col1, 30 * - 47 FROM tab2 cor0
----
-23
-1410
-40
-1410
-58
-1410

query I rowsort
SELECT DISTINCT - + 71 + - 51 * + - ( ( + col0 ) ) * - 11 AS col0 FROM tab0 AS cor0
----
-48878
-54488
-8486

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 ) >= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT - - 74 + COUNT( * ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1933
SELECT DISTINCT - - 74 + COUNT ( * ) col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1934
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - + CAST( NULL AS DECIMAL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1934
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - + CAST ( NULL AS REAL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * col0 AS col1 FROM tab1 AS cor0 WHERE ( + 4 ) IS NOT NULL
----
2601
7225
8281

query I rowsort
SELECT - + 14 + - col2 FROM tab2 AS cor0
----
-37
-54
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT + SUM( ALL 6 ) + + + 29 + COUNT( * ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1937
SELECT + SUM ( ALL 6 ) + + + 29 + COUNT ( * ) FROM tab0 AS cor0
----
50

query I rowsort
SELECT ALL col1 - - - ( + col1 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - SUM( col1 ) + - 30 + - 96 - - COUNT( * ) AS col2 FROM tab0
----
-226

skipif mysql # not compatible
query I rowsort label-1939
SELECT - SUM ( col1 ) + - 30 + - 96 - - COUNT ( * ) AS col2 FROM tab0
----
-226

query I rowsort
SELECT col1 + 63 + - col2 AS col2 FROM tab1
----
-19
42
9

query I rowsort
SELECT + 4 * - 31 + + + 99 - - col0 * col0 FROM tab2
----
2091
4071
5600

query II rowsort
SELECT col0 * + col2, - col0 AS col1 FROM tab2
----
1058
-46
2560
-64
4350
-75

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 67 AND + col0
----

query I rowsort
SELECT col2 * - 69 FROM tab2 AS cor0 WHERE NOT 4 + + + 44 = ( - col0 )
----
-1587
-2760
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1945
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 29 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 - col0 col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT DISTINCT - - col1 * - + col1 FROM tab1 cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT ALL + 49 * 54 DIV col1 FROM tab1 cor0
----
189
529
56

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL + 49 * 54 / col1 FROM tab1 cor0
----
189
529
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1951
SELECT DISTINCT 47 * + SUM( + col2 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-2444

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT 47 * + SUM ( + col2 ) / - COUNT ( * ) FROM tab0 AS cor0
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT - ( + COUNT( DISTINCT 74 ) ) + - - 15 FROM tab0 cor0
----
14

skipif mysql # not compatible
query I rowsort label-1952
SELECT - ( + COUNT ( DISTINCT 74 ) ) + - - 15 FROM tab0 cor0
----
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT DISTINCT - + CAST( + + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT - + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 46 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + col0 * + - col1 + - - col1 AS col1 FROM tab0 AS cor0
----
-1134
-1806
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 * - col1 col1 FROM tab2 AS cor0 WHERE NOT col1 + + ( - - col2 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col0 + ( col0 ) + - 27 * + col0 * 6 AS col0 FROM tab1
----
-13770
-14742
-8262

query I rowsort
SELECT ALL + AVG ( - - col2 ) AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 99 * - col0 < - - 14 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT + COUNT( DISTINCT + 60 ) + + + 21 AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT + COUNT ( DISTINCT + 60 ) + + + 21 AS col2 FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1962
SELECT COUNT( * ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1962
SELECT COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1963
SELECT col1 AS col1, - col1 DIV - col0 + - + ( - col2 ) FROM tab0 AS cor0
----
1
99
21
10
81
52

skipif mysql # not compatible
query II rowsort label-1963
SELECT col1 AS col1, - col1 / - col0 + - + ( - col2 ) FROM tab0 AS cor0
----
1
99
21
10
81
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1964
SELECT DISTINCT + + COUNT( * ) DIV + 73 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT + + COUNT ( * ) / + 73 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL - - col1 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT + col0 + col1 + - col2 AS col1 FROM tab2 AS cor0
----
101
74
84

query I rowsort
SELECT ALL + 74 + + - col1 FROM tab1
----
27
60
69

query I rowsort
SELECT ALL - 37 + - 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query III rowsort
SELECT * FROM tab2 WHERE - 4 * 25 < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - - 84 ) * col2 IN ( + ( col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1971
SELECT + 71 DIV + COUNT( * ) FROM tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-1971
SELECT + 71 / + COUNT ( * ) FROM tab1 cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 > - - 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - + col0 < NULL
----

query I rowsort
SELECT DISTINCT - col2 - + 59 FROM tab2 AS cor0
----
-117
-82
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 8 + - - ( - - col1 ) + + - 86 * + col0 + + col0 col2 FROM tab0 AS cor0
----
-1186
-7366
-8236

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 16 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL + MIN( DISTINCT - + 93 ) AS col0 FROM tab1 WHERE NOT NULL >= + 12 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + MIN ( DISTINCT - + 93 ) AS col0 FROM tab1 WHERE NOT NULL >= + 12 * + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL MIN( DISTINCT + + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL MIN ( DISTINCT + + col2 ) FROM tab1
----
59

query I rowsort
SELECT + 75 * + - col1 FROM tab1
----
-1050
-3525
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1980
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT + col1 + 28 > + col1 + + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT + col1 + 28 > + col1 + + - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL - + SUM( DISTINCT 12 ) AS col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - + SUM ( DISTINCT 12 ) AS col2 FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT - SUM( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-1982
SELECT - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
223

query II rowsort
SELECT 15 AS col1, col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 58
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT DISTINCT + ( ( COUNT( * ) ) ) AS col2 FROM tab0 AS cor0 WHERE NOT 97 NOT IN ( - - col2 + col1 + + + 56 - CAST( + + col2 AS SIGNED ) + + 26 + ( - 16 ) * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT + ( ( COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0 WHERE NOT 97 NOT IN ( - - col2 + col1 + + + 56 - CAST ( + + col2 AS INTEGER ) + + 26 + ( - 16 ) * col2 )
----
0

query I rowsort
SELECT ALL - - 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + COUNT( ALL - col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1986
SELECT + COUNT ( ALL - col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1987
SELECT CAST( + ( COUNT( * ) ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * + 54 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT CAST ( + ( COUNT ( * ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + 54 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + ( + + 76 ) AS col1 FROM tab0 AS cor0
----
-11
-21
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL MAX( ALL - + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL MAX ( ALL - + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - 43 * + + col1 * + + col1 FROM tab1 AS cor0
----
-1075
-8428
-94987

query I rowsort
SELECT ALL ( + + 19 ) AS col1 FROM tab2 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + 48 col0 FROM tab1
----
-2256
-240
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1993
SELECT 38 / CAST( NULL AS SIGNED ) + + 91 + + - COUNT( * ) - 93 * COUNT( * ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1993
SELECT 38 / CAST ( NULL AS INTEGER ) + + 91 + + - COUNT ( * ) - 93 * COUNT ( * ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT COUNT( * ) * - - 60 AS col1 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT COUNT ( * ) * - - 60 AS col1 FROM tab0
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + + 58 col1 FROM tab2
----
103
103
103

query I rowsort
SELECT 67 + - - col0 AS col0 FROM tab2
----
113
131
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT - col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT - col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( 0 ) + - col1 col0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT - ( + col0 ) * - + col0 AS col0 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2000
SELECT + 50 - + AVG ( col1 ) + + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT + 50 - + AVG ( col1 ) + + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col2 - - - col1 + - col1 * - ( - + 34 ) FROM tab1 AS cor0
----
-1713
-234
-586

query I rowsort
SELECT DISTINCT - + col1 * + - 7 * + - col1 + + - 37 + - - 14 FROM tab2 cor0
----
-18230
-31446
-41526

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE - 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2004
SELECT ALL + 22 AS col0, 24 * + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
query II rowsort label-2004
SELECT ALL + 22 AS col0, 24 * + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
22
NULL
22
NULL
22
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - col1 * - col0 <= + ( - col2 ) + ( + col0 )
----

query I rowsort
SELECT ALL col0 + + - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT - ( - - 65 ) FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT + col1 / + 20 AS col2 FROM tab2 AS cor0 WHERE NOT - 37 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2009
SELECT + col2 col2, + col1 + - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2009
SELECT + col2 col2, + col1 + - CAST ( NULL AS REAL ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col0 FROM tab1
----
-91
-91
-91

query I rowsort
SELECT ( ( + ( - + 51 ) ) ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # DIV for integer division: 
query II rowsort label-2012
SELECT 58 DIV + col1 col1, - ( - ( - ( + + col1 ) ) ) FROM tab1
----
1
-47
11
-5
4
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2012
SELECT 58 / + col1 col1, - ( - ( - ( + + col1 ) ) ) FROM tab1
----
1
-47
11
-5
4
-14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2013
SELECT ALL + CAST( ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL + CAST ( ( + CAST ( NULL AS INTEGER ) ) AS REAL ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - 20 AS col2, - 56 FROM tab1
----
-20
-56
-20
-56
-20
-56

query I rowsort
SELECT + 62 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query II rowsort
SELECT DISTINCT 27 + + col0 * + - 89 AS col2, - 66 FROM tab2 AS cor0
----
-4067
-66
-5669
-66
-6648
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2017
SELECT ALL - + 46 AS col0, + COUNT( * ) col2 FROM tab2 AS cor0
----
-46
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2017
SELECT ALL - + 46 AS col0, + COUNT ( * ) col2 FROM tab2 AS cor0
----
-46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT - + MAX( + 37 ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT - + MAX ( + 37 ) FROM tab2 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL - MIN( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + 21 + - col0 * - + col1 FROM tab1 AS cor0
----
4298
446
735

query I rowsort
SELECT col1 * + col1 + + - col0 * - 20 + - col1 AS col0 FROM tab1 AS cor0
----
1202
1720
3982

query I rowsort
SELECT + 26 + + + col0 AS col1 FROM tab0 AS cor0
----
113
123
41

query I rowsort
SELECT DISTINCT + - 99 AS col1 FROM tab0 cor0
----
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 > - col1
----

query I rowsort
SELECT - col2 - - 57 AS col0 FROM tab0 AS cor0
----
-42
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL - COUNT( * ) + COUNT( + 13 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - COUNT ( * ) + COUNT ( + 13 ) FROM tab2 cor0
----
0

query I rowsort
SELECT - - col2 * - 30 - + 42 FROM tab1 cor0
----
-1812
-2082
-2922

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2028
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT - 61 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT + COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2030
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2032
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 88, 39 * CAST( 88 AS SIGNED ) * 97 - 8 + + + col2 )
----

skipif mysql # not compatible
query III rowsort label-2032
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 88, 39 * CAST ( 88 AS INTEGER ) * 97 - 8 + + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL - MIN( ALL + col1 ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2033
SELECT ALL - MIN ( ALL + col1 ) col2 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT + 17 / - - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT + 17 / - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT - 57 * COUNT( * ) FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT - 57 * COUNT ( * ) FROM tab1 AS cor0
----
-171

query II rowsort
SELECT DISTINCT + 11 AS col1, 76 + + ( - col1 ) - col2 * + ( - 19 ) FROM tab1 cor0
----
11
1192
11
1321
11
1886

onlyif mysql # aggregate syntax: 
query II rowsort label-2037
SELECT 76, MIN( + 95 ) AS col2 FROM tab2
----
76
95

skipif mysql # not compatible
query II rowsort label-2037
SELECT 76, MIN ( + 95 ) AS col2 FROM tab2
----
76
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2038
SELECT DISTINCT + 56 DIV + col1 FROM tab0
----
0
2
56

skipif mysql # not compatible
query I rowsort label-2038
SELECT DISTINCT + 56 / + col1 FROM tab0
----
0
2
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2039
SELECT - 1 * - CAST( col2 AS SIGNED ) DIV - + col2 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2039
SELECT - 1 * - CAST ( col2 AS INTEGER ) / - + col2 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + ( col0 ) AS col2 FROM tab0 WHERE NOT - - col1 BETWEEN + - col0 AND NULL
----

query II rowsort
SELECT ALL col1, + 73 + - col2 FROM tab0 AS cor0
----
1
-26
21
63
81
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT - 54 * + + MIN( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
-2754

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2042
SELECT - 54 * + + MIN ( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
-2754

query I rowsort
SELECT DISTINCT - 46 + + - col0 + - col2 * + col1 * - col2 FROM tab2
----
123090
225267
26887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT ALL CAST( + col2 AS SIGNED ) + + col1 AS col0 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL CAST ( + col2 AS INTEGER ) + + col1 AS col0 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT DISTINCT 73 + COUNT( DISTINCT + 82 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT 73 + COUNT ( DISTINCT + 82 ) FROM tab0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + - - 79 col0 FROM tab2
----
2425
5007
5104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 97 col0 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 6 + + col1 * - - col1 ) IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT ALL AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 24 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT + - ( + col0 ) + + 43 DIV - + 46 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2051
SELECT + - ( + col0 ) + + 43 / - + 46 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > - 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 86 * + col2 col1 FROM tab1
----
-5015
-5780
-8160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2054
SELECT + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2054
SELECT + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 13 col2, 40 FROM tab1 WHERE 1 BETWEEN col0 - - col0 / + 1 AND 61
----

query I rowsort
SELECT ALL - col1 + - - col0 FROM tab1
----
37
44
80

query I rowsort
SELECT - - col0 FROM tab2 WHERE - + 39 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - - 75 + col1 FROM tab2 AS cor0
----
126
142
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - col1 AND - - ( + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col0 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT ALL COUNT( DISTINCT - 90 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL COUNT ( DISTINCT - 90 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + + 6 AS col1 FROM tab1 cor0
----
6

query II rowsort
SELECT ALL col0 * - col0 AS col1, + 48 AS col0 FROM tab0 cor0
----
-225
48
-7569
48
-9409
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 > + ( - col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 * col2 + + col1 + + col2 + + col2 * 71, col1 FROM tab1 AS cor0 WHERE NOT ( NOT + 43 IS NOT NULL )
----
4548
5
8139
47
8270
14

query I rowsort
SELECT ( 26 ) AS col1 FROM tab1 cor0
----
26
26
26

query III rowsort
SELECT * FROM tab1 WHERE NOT 78 BETWEEN - ( + + ( - col2 ) ) AND NULL
----
51
14
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2068
SELECT ALL + 46 DIV + MAX( - ( col1 ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + 46 / + MAX ( - ( col1 ) ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2069
SELECT + 7, - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
7
-3

skipif mysql # not compatible
query II rowsort label-2069
SELECT + 7, - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
7
-3

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT + - col0 - - col1 >= col1 * col1
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > col0
----

query I rowsort
SELECT ALL - 69 + + + col1 AS col2 FROM tab0 cor0
----
-48
-68
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL - + MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - + MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT - CAST( + - col2 AS SIGNED ) * - 18 - + col2 + - col1 + - - ( col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
-1008
-1784
-222

skipif mysql # not compatible
query I rowsort label-2074
SELECT - CAST ( + - col2 AS INTEGER ) * - 18 - + col2 + - col1 + - - ( col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
-1008
-1784
-222

query II rowsort
SELECT col1 * + - col2 + col1 - col0 * + col0 AS col0, 96 AS col1 FROM tab1 AS cor0
----
-11430
96
-3931
96
-7515
96

query I rowsort
SELECT DISTINCT 17 + col2 * 14 + - col2 AS col1 FROM tab2
----
316
537
771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2077
SELECT - CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2078
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( 77 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2078
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( 77 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT ALL + col0 + - 30 DIV - col2 FROM tab0 AS cor0
----
15
90
97

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL + col0 + - 30 / - col2 FROM tab0 AS cor0
----
15
90
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT - COUNT( * ) + + 86 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2080
SELECT - COUNT ( * ) + + 86 FROM tab2 AS cor0
----
83

query I rowsort
SELECT - col0 + + + col2 * + col1 FROM tab0 AS cor0
----
123
2
3792

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - 83 IS NULL
----

query I rowsort
SELECT ALL + 97 - col0 AS col0 FROM tab1 AS cor0
----
12
46
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT + COUNT( 52 ) AS col0 FROM tab1 cor0 WHERE + col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT + COUNT ( 52 ) AS col0 FROM tab1 cor0 WHERE + col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL - - COUNT( * ) * + + 13 AS col0 FROM tab0 AS cor0 WHERE NOT 90 * - - 43 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL - - COUNT ( * ) * + + 13 AS col0 FROM tab0 AS cor0 WHERE NOT 90 * - - 43 IS NOT NULL
----
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT + 64 * + 28 AS col0 FROM tab1
----
1792
1792
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT DISTINCT 35 + - - COUNT( * ) + - 31 AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT 35 + - - COUNT ( * ) + - 31 AS col0 FROM tab0
----
7

query I rowsort
SELECT + col1 / + + col1 FROM tab0 WHERE + + 98 + - col1 * col2 IS NULL
----

query I rowsort
SELECT + col2 - - 25 AS col1 FROM tab1
----
121
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT - SUM( - 61 ) FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT - SUM ( - 61 ) FROM tab0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2092
SELECT DISTINCT + col0 + - + 74 + - col2 + - col0 * CAST( NULL AS SIGNED ) AS col1, col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2092
SELECT DISTINCT + col0 + - + 74 + - col2 + - col0 * CAST ( NULL AS INTEGER ) AS col1, col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL col1 + - 82 + + + col1 AS col1 FROM tab0 AS cor0
----
-40
-80
80

query I rowsort
SELECT 1 * + col0 + + 40 + - - col0 AS col1 FROM tab2 AS cor0
----
132
168
190

query I rowsort
SELECT ALL - col1 * - - col1 * + col2 * + + col2 FROM tab2 AS cor0
----
-1375929
-15100996
-9486400

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT DISTINCT 50 DIV - + COUNT( * ) AS col2 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT 50 / - + COUNT ( * ) AS col2 FROM tab0
----
-16

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL - COUNT( ALL - 38 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL - COUNT ( ALL - 38 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col0 col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT - 65 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2101
SELECT - 65 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 AS cor0 WHERE + ( - 65 ) + 55 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT 82 * + + 43 FROM tab1 AS cor0
----
3526

onlyif mysql # DIV for integer division: 
query I rowsort label-2104
SELECT DISTINCT - - col1 DIV + + col0 AS col0 FROM tab0 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT - - col1 / + + col0 AS col0 FROM tab0 cor0
----
0
5

query II rowsort
SELECT 3, ( + + 74 ) AS col1 FROM tab1 AS cor0
----
3
74
3
74
3
74

query II rowsort
SELECT - ( + + 49 ), col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT COUNT( * ) AS col2, - 37 FROM tab2, tab2 AS cor0
----
9
-37

skipif mysql # not compatible
query II rowsort label-2107
SELECT COUNT ( * ) AS col2, - 37 FROM tab2, tab2 AS cor0
----
9
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT - SUM( ALL + + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - SUM ( ALL + + col2 ) FROM tab0
----
-156

query I rowsort
SELECT ALL col2 + 43 FROM tab2
----
101
66
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT 50 * + - COUNT( * ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-2110
SELECT 50 * + - COUNT ( * ) FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-2111
SELECT COUNT( * ) + - 52, + COUNT( * ) AS col0 FROM tab1
----
-49
3

skipif mysql # not compatible
query II rowsort label-2111
SELECT COUNT ( * ) + - 52, + COUNT ( * ) AS col0 FROM tab1
----
-49
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL + COUNT( * ) + 55 col1 FROM tab1
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2112
SELECT ALL + COUNT ( * ) + 55 col1 FROM tab1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT - 26 DIV col1 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2113
SELECT - 26 / col1 col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT - + MAX( DISTINCT + col1 ) AS col1, - COUNT( * ) FROM tab0 WHERE - ( - + col2 ) < NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2114
SELECT - + MAX ( DISTINCT + col1 ) AS col1, - COUNT ( * ) FROM tab0 WHERE - ( - + col2 ) < NULL
----
NULL
0

query I rowsort
SELECT - 74 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT DISTINCT - COUNT( * ) + - 14 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT - COUNT ( * ) + - 14 FROM tab1 AS cor0
----
-17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col1 <= + 21
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2118
SELECT DISTINCT + - 13 + col2 + + - col2 DIV - 85 + - + col2 AS col2, 71 * - 68 AS col1 FROM tab1 AS cor0
----
-12
-4828
-13
-4828

skipif mysql # not compatible
query II rowsort label-2118
SELECT DISTINCT + - 13 + col2 + + - col2 / - 85 + - + col2 AS col2, 71 * - 68 AS col1 FROM tab1 AS cor0
----
-12
-4828
-13
-4828

query I rowsort
SELECT ALL 46 - + col1 AS col0 FROM tab0 cor0
----
-35
25
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + col2 BETWEEN - 90 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT + + 79 - COUNT( * ) * - COUNT( - col0 ) FROM tab2 cor0
----
88

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT + + 79 - COUNT ( * ) * - COUNT ( - col0 ) FROM tab2 cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT - 36 + + SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-2122
SELECT - 36 + + SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT ALL CAST( - 15 AS SIGNED ) FROM tab0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL CAST ( - 15 AS INTEGER ) FROM tab0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT col2 - - 61 FROM tab0
----
108
160
71

query I rowsort
SELECT 66 * col0 * + 27 * + col2 + - 6 FROM tab1
----
11027010
8724666
8936724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT DISTINCT CAST( + MAX( 74 ) AS SIGNED ) AS col1 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT CAST ( + MAX ( 74 ) AS INTEGER ) AS col1 FROM tab2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT DISTINCT 47 * - col1 + 13 DIV - col0 FROM tab1
----
-2209
-235
-658

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT 47 * - col1 + 13 / - col0 FROM tab1
----
-2209
-235
-658

query II rowsort
SELECT + col2 AS col1, 3 FROM tab0
----
10
3
47
3
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT + + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2129
SELECT + + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT DISTINCT - SUM( 99 ) * - MIN( DISTINCT 14 ) AS col0 FROM tab0 cor0
----
4158

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - SUM ( 99 ) * - MIN ( DISTINCT 14 ) AS col0 FROM tab0 cor0
----
4158

query I rowsort
SELECT DISTINCT col1 * col1 + - - col1 AS col0 FROM tab0 AS cor0
----
2
462
6642

query I rowsort
SELECT + 26 + - col0 AS col2 FROM tab0 AS cor0
----
-61
-71
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT + MAX( DISTINCT col1 ) + - 87 AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2133
SELECT + MAX ( DISTINCT col1 ) + - 87 AS col0 FROM tab0 AS cor0
----
-6

query II rowsort
SELECT ALL + 99, col2 AS col0 FROM tab2
----
99
23
99
40
99
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL - SUM( 11 ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
-33

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL - SUM ( 11 ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2136
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query II rowsort
SELECT + col0 * - ( 38 ) * + + col2 * - 15 + + col2 AS col0, col0 FROM tab2 AS cor0
----
1459240
64
2479558
75
603083
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2138
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + col1 col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2138
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col1 col1 FROM tab1 AS cor0
----
-37
-44
-80

query II rowsort
SELECT ALL col1 AS col2, - 69 AS col1 FROM tab1 AS cor0 WHERE col1 BETWEEN + + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= col0 + 65
----

query I rowsort
SELECT DISTINCT - - ( + col1 ) FROM tab1 cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2142
SELECT col2 + + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-2142
SELECT col2 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT - MIN( DISTINCT + col1 ) + 18 col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2143
SELECT - MIN ( DISTINCT + col1 ) + 18 col1 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT ALL - + col0 + - + 1 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT ALL + MAX( ALL - col2 ) + 95 AS col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL + MAX ( ALL - col2 ) + 95 AS col1 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT + ( - COUNT( * ) ) - + COUNT( * ) col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2146
SELECT DISTINCT + ( - COUNT ( * ) ) - + COUNT ( * ) col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT 14 * - - col0 AS col1 FROM tab2 AS cor0
----
1050
644
896

query I rowsort
SELECT - 15 + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + + col0 + + col1 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT + COUNT( * ) - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * + 51 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT DISTINCT ( col1 ) DIV + + col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT ( col1 ) / + + col1 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2154
SELECT col2 AS col2, col1 DIV - - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
2
47
1
99
0

skipif mysql # not compatible
query II rowsort label-2154
SELECT col2 AS col2, col1 / - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
2
47
1
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT DISTINCT + - CAST( 65 AS SIGNED ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT + - CAST ( 65 AS INTEGER ) FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT + col1 + col1 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( ( NOT + - col0 IS NOT NULL ) ) )
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL - SUM( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - SUM ( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( - 12 ) IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2159
SELECT DISTINCT + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL - MAX( + - col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - MAX ( + - col2 ) FROM tab2 cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT 50 + + 46 + - - col2 DIV + - col1 FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-2161
SELECT 50 + + 46 + - - col2 / + - col1 FROM tab2
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT DISTINCT ( 9 ) + - COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT ( 9 ) + - COUNT ( * ) AS col2 FROM tab0
----
6

query I rowsort
SELECT ALL - ( - + 55 ) FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + col1 + - 46 AS col1 FROM tab1 AS cor0
----
-32
-41
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2165
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - + 81 AS col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT ALL 33 * - col1 * - col2 AS col0 FROM tab1
----
105468
44352
9735

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT - COUNT( * ) * - - 75 * 84 * - 26 FROM tab0
----
491400

skipif mysql # not compatible
query I rowsort label-2168
SELECT - COUNT ( * ) * - - 75 * 84 * - 26 FROM tab0
----
491400

onlyif mysql # aggregate syntax: 
query II rowsort label-2169
SELECT - COUNT( * ) AS col1, 97 FROM tab0
----
-3
97

skipif mysql # not compatible
query II rowsort label-2169
SELECT - COUNT ( * ) AS col1, 97 FROM tab0
----
-3
97

query I rowsort
SELECT ALL - 20 * col1 AS col0 FROM tab0
----
-1620
-20
-420

query I rowsort
SELECT ALL - col2 * + 87 + - col0 + col1 AS col1 FROM tab1 AS cor0
----
-5213
-5960
-8389

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2172
SELECT - col0 * col2 - - 39 DIV - CAST( col1 AS SIGNED ) FROM tab0 cor0
----
-705
-871
-9642

skipif mysql # not compatible
query I rowsort label-2172
SELECT - col0 * col2 - - 39 / - CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
-705
-871
-9642

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL - + COUNT( * ) + - + 33 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - + COUNT ( * ) + - + 33 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT DISTINCT col1 - ( + - 21 ) + - col0 AS col0 FROM tab0 AS cor0
----
-45
-75
87

query I rowsort
SELECT DISTINCT col0 * ( - + 55 ) FROM tab1 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT ALL 87 - col2 - + 73 AS col2 FROM tab2 AS cor0
----
-26
-44
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT ALL - - CAST( NULL AS SIGNED ) - ( col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL - - CAST ( NULL AS INTEGER ) - ( col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - col0 + - - 80
----

query I rowsort
SELECT DISTINCT + col2 * + col0 * - - col1 AS col0 FROM tab2
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT ALL + ( + col1 ) DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL + ( + col1 ) / + col2 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 19 <> + + col2
----

query II rowsort
SELECT ALL col0 AS col0, + 97 AS col2 FROM tab0 WHERE NOT 69 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT DISTINCT - COUNT( * ) - - + 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
80

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT - COUNT ( * ) - - + 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
80

query I rowsort
SELECT ALL - 65 * col2 + - col2 FROM tab0 cor0
----
-3102
-6534
-660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT DISTINCT CAST( 23 AS SIGNED ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT CAST ( 23 AS INTEGER ) FROM tab2 cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 col0, + col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT + col1 AS col2 FROM tab1 cor0 WHERE NULL < NULL
----

query II rowsort
SELECT ALL - col0, - col0 AS col1 FROM tab1 cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT + col0 + + col1 DIV + 12 FROM tab1 AS cor0
----
52
85
94

skipif mysql # not compatible
query I rowsort label-2190
SELECT + col0 + + col1 / + 12 FROM tab1 AS cor0
----
52
85
94

query I rowsort
SELECT + 84 * - 27 + col2 FROM tab1 cor0
----
-2172
-2200
-2209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT 82 + - 68 + + + 83 DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2192
SELECT 82 + - 68 + + + 83 / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
41

query I rowsort
SELECT DISTINCT + 7 * - + col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-212
-357
-473

query I rowsort
SELECT 18 + col0 + + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-127
-2100
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT DISTINCT COUNT( * ) * 56 col2 FROM tab2
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2195
SELECT DISTINCT COUNT ( * ) * 56 col2 FROM tab2
----
168

query I rowsort
SELECT ALL - - col2 - + col0 * + col1 * + col2 AS col1 FROM tab1 WHERE ( NOT col2 * - + col2 + col1 BETWEEN NULL AND - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * + 34 + + col2 col0 FROM tab1
----
-142
-170
-179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT DISTINCT + col0 + - + CAST( NULL AS SIGNED ) + + 11 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT + col0 + - + CAST ( NULL AS INTEGER ) + + 11 FROM tab0
----
NULL

query I rowsort
SELECT ( - 76 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # aggregate syntax: 
query II rowsort label-2200
SELECT ALL + 29, COUNT( * ) AS col1 FROM tab0
----
29
3

skipif mysql # not compatible
query II rowsort label-2200
SELECT ALL + 29, COUNT ( * ) AS col1 FROM tab0
----
29
3

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE ( + col0 * + col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2202
SELECT DISTINCT - col2 + - CAST( - col0 AS SIGNED ) + - + 88, - col2 AS col1 FROM tab1
----
-133
-96
-62
-59
-65
-68

skipif mysql # not compatible
query II rowsort label-2202
SELECT DISTINCT - col2 + - CAST ( - col0 AS INTEGER ) + - + 88, - col2 AS col1 FROM tab1
----
-133
-96
-62
-59
-65
-68

query I rowsort
SELECT + ( - - 43 ) AS col1 FROM tab0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - + 48 col2 FROM tab0 AS cor0
----
-39
-49
33

query I rowsort
SELECT - - 17 - - - col2 AS col0 FROM tab2 AS cor0
----
-23
-41
-6

query I rowsort
SELECT ( - + 90 ) AS col2 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT + MAX( ALL - - 57 ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2207
SELECT + MAX ( ALL - - 57 ) FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL - COUNT( * ) AS col2 FROM tab0 cor0 WHERE ( 85 * - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE ( 85 * - col0 ) IS NULL
----
0

query I rowsort
SELECT ALL - col1 * - 34 AS col0 FROM tab0 AS cor0
----
2754
34
714

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT ALL col0 DIV - 53 + - col2 FROM tab2 AS cor0
----
-23
-41
-59

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL col0 / - 53 + - col2 FROM tab2 AS cor0
----
-23
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL + COUNT( * ) * - - COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2211
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) col1 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT ALL + 80 DIV + - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL + 80 / + - col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT - CAST( 15 AS SIGNED ) AS col1 FROM tab1
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-2214
SELECT - CAST ( 15 AS INTEGER ) AS col1 FROM tab1
----
-15
-15
-15

query II rowsort
SELECT + col0, + col0 FROM tab0 cor0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 80 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT ALL - col1 DIV + 1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL - col1 / + 1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT DISTINCT 26 + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
35

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT 26 + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT - ( - COUNT( * ) ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT - ( - COUNT ( * ) ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> + - col1
----

query I rowsort
SELECT - col1 * + col0 * - 43 + col2 * col0 * + col2 * - 61 AS col0 FROM tab1 cor0
----
-18030710
-25483913
-28640274

query I rowsort
SELECT + col2 + - 51 / + 3 * + - col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2223
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2223
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL - 52 AS col2 FROM tab2 AS cor0 WHERE NOT col2 - + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + - col1 + - col2 * - + col1 * col1 + - 83 AS col1 FROM tab2
----
232149
255254
57394

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2226
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( NULL AS DECIMAL ) + + - col1 AND col1
----

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS REAL ) + + - col1 AND col1
----

query I rowsort
SELECT ALL + col0 * - - 6 + + - 37 FROM tab1
----
269
473
509

query I rowsort
SELECT ALL + 17 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT 34 + - CAST( NULL AS SIGNED ) + - - ( + 14 ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT 34 + - CAST ( NULL AS INTEGER ) + - - ( + 14 ) * - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2230
SELECT ALL col0 + - CAST( - col0 AS SIGNED ), col2 AS col0 FROM tab2
----
128
40
150
58
92
23

skipif mysql # not compatible
query II rowsort label-2230
SELECT ALL col0 + - CAST ( - col0 AS INTEGER ), col2 AS col0 FROM tab2
----
128
40
150
58
92
23

query I rowsort
SELECT ALL - 86 - - col0 AS col0 FROM tab2 AS cor0
----
-11
-22
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 98 AND - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( ( NULL ) IS NOT NULL ) )
----

query I rowsort
SELECT col1 - - col1 * - + 87 FROM tab1
----
-1204
-4042
-430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT DISTINCT MAX( ALL + + CAST( + 45 AS SIGNED ) ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT MAX ( ALL + + CAST ( + 45 AS INTEGER ) ) FROM tab0
----
45

query II rowsort
SELECT col2 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT - - 46 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL - 16 * + + col0 FROM tab2 AS cor0
----
-1024
-1200
-736

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 13 / + + col1
----

query II rowsort
SELECT - col0 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT - MIN( + 86 ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2241
SELECT - MIN ( + 86 ) FROM tab2 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * - + 14 col1 FROM tab0
----
-1106
-1106
-1106

query I rowsort
SELECT - AVG ( 10 ) FROM tab1 WHERE NOT ( col0 IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL - col0 * - 80 * + col2 AS col2 FROM tab2
----
204800
348000
84640

query I rowsort
SELECT DISTINCT - - col0 * + 20 FROM tab0 AS cor0
----
1740
1940
300

query I rowsort
SELECT + ( + - col2 ) * - ( - - col2 ) AS col1 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2247
SELECT ALL + + col0 / - 55 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL + + col0 / - 55 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2248
SELECT + 39 DIV - - COUNT( * ) AS col1, SUM( DISTINCT + + 2 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
4
2

skipif mysql # not compatible
query II rowsort label-2248
SELECT + 39 / - - COUNT ( * ) AS col1, SUM ( DISTINCT + + 2 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
4
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT - + col1 + + - col0 DIV + col2 AS col2 FROM tab2 AS cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-2249
SELECT - + col1 + + - col0 / + col2 AS col2 FROM tab2 AS cor0
----
-53
-68
-78

query I rowsort
SELECT ALL + col1 + - - col0 - col0 * + col0 FROM tab0 AS cor0
----
-129
-7461
-9311

query II rowsort
SELECT 17 * + col2 + + 28 AS col2, - col0 * - + col2 AS col0 FROM tab1 AS cor0
----
1031
5015
1184
6188
1660
4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT DISTINCT - COUNT( * ) DIV - + 89 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT - COUNT ( * ) / - + 89 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT col2 DIV 34 - - + col1 AS col0 FROM tab2 AS cor0
----
51
68
78

skipif mysql # not compatible
query I rowsort label-2253
SELECT col2 / 34 - - + col1 AS col0 FROM tab2 AS cor0
----
51
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2254
SELECT ALL 59 AS col2, CAST( - col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
59
-23
59
-40
59
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2254
SELECT ALL 59 AS col2, CAST ( - col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
59
-23
59
-40
59
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * - + col0 - 65 * - - 18 col1 FROM tab2 AS cor0
----
-5356
-6994
-7995

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT 37 DIV + col0 * + - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2256
SELECT 37 / + col0 * + - col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT ALL - ( 37 ) DIV ( - - 98 ) DIV - col2 + 69 FROM tab2
----
69
69
69

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL - ( 37 ) / ( - - 98 ) / - col2 + 69 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT - + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 - + col2 AND col2 + - + col0 - - col1
----
0

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 - + col2 AND col2 + - + col0 - - col1
----
0

query II rowsort
SELECT + ( col0 ), col0 * + col1 AS col1 FROM tab2
----
46
2346
64
4928
75
5025

query I rowsort
SELECT 85 - + ( - ( - + 47 ) ) FROM tab2
----
38
38
38

query I rowsort
SELECT - col2 - + 67 FROM tab0 cor0
----
-114
-166
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT + COUNT( * ) + + COUNT( * ) * - 57 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2262
SELECT + COUNT ( * ) + + COUNT ( * ) * - 57 FROM tab2 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT 51 * ( + ( - - 17 ) ) * + + COUNT( * ) FROM tab2
----
2601

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT 51 * ( + ( - - 17 ) ) * + + COUNT ( * ) FROM tab2
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL + COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL + COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col0 FROM tab0, tab0 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * - col1 * + - 82 AS col2 FROM tab1 AS cor0
----
-34850
-350714
-58548

query I rowsort
SELECT DISTINCT 34 * + + 9 FROM tab1 AS cor0
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT COUNT( * ) * + - 21 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT COUNT ( * ) * + - 21 FROM tab0 AS cor0
----
-63

query II rowsort
SELECT + ( 16 ) * col2, + col1 AS col1 FROM tab1 AS cor0
----
1088
47
1536
14
944
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + COUNT( * ) * + 84 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + COUNT ( * ) * + 84 FROM tab1 AS cor0
----
252

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 2 + - 88 / col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2273
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2273
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL + - MAX( DISTINCT + + 85 ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + - MAX ( DISTINCT + + 85 ) FROM tab2 AS cor0
----
-85

query II rowsort
SELECT ALL - 35 AS col2, col1 * - 42 FROM tab0
----
-35
-3402
-35
-42
-35
-882

query I rowsort
SELECT ALL ( ( + - col0 ) ) FROM tab1 WHERE NOT + col1 IS NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col0 + - - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 93 <> col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT 76 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT 76 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + 46, col1 AS col1 FROM tab0 WHERE NOT NULL <= + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2281
SELECT - - col0 + - col1 DIV col1 - + + col1 AS col1 FROM tab0 AS cor0
----
-67
65
95

skipif mysql # not compatible
query I rowsort label-2281
SELECT - - col0 + - col1 / col1 - + + col1 AS col1 FROM tab0 AS cor0
----
-67
65
95

query I rowsort
SELECT ALL - col0 * ( - col1 ) FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT COUNT( ALL 87 ) + - 26 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2283
SELECT COUNT ( ALL 87 ) + - 26 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + + 89 * - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-4590
-7650
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT DISTINCT 69 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT 69 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2286
SELECT + + col0 + + col1 - CAST( NULL AS DECIMAL ) + 75 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT + + col0 + + col1 - CAST ( NULL AS REAL ) + 75 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + + 45 <> - col2 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT - - 94 * ( - COUNT( * ) ) FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-2288
SELECT - - 94 * ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT + ( - MIN( - col2 ) ) + + + 12 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT + ( - MIN ( - col2 ) ) + + + 12 FROM tab0 AS cor0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT DISTINCT - col2 * + col1 * col1 + ( - col2 ) - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT - col2 * + col1 * col1 + ( - col2 ) - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + col2 * col2 + 29 FROM tab0 AS cor0
----
178958
2129
9830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT ALL - col0 * col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - col0 * col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2293
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST( + - 51 AS SIGNED ) <= NULL AND NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2293
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST ( + - 51 AS INTEGER ) <= NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 - - 35 + - col0 AS col0 FROM tab1 AS cor0
----
-135
-147
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT DISTINCT - SUM( ALL - 65 ) AS col1 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT - SUM ( ALL - 65 ) AS col1 FROM tab0 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT + - COUNT( * ) * - COUNT( * ) + + 35 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2296
SELECT + - COUNT ( * ) * - COUNT ( * ) + + 35 FROM tab2 AS cor0
----
44

query I rowsort
SELECT DISTINCT - col1 * - + col0 AS col2 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * + col1 + + col1 - - 46 col0 FROM tab0
----
106
1306
4906

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT DISTINCT + COUNT( + col2 ) - + - SUM( ALL - col2 ) + + 14 col1 FROM tab0
----
-139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2299
SELECT DISTINCT + COUNT ( + col2 ) - + - SUM ( ALL - col2 ) + + 14 col1 FROM tab0
----
-139

query I rowsort
SELECT col0 + col0 + + 18 * col2 AS col2 FROM tab1
----
1232
1406
1830

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT col2 + - col1 + - 64 DIV + col2 FROM tab1
----
21
53
82

skipif mysql # not compatible
query I rowsort label-2301
SELECT col2 + - col1 + - 64 / + col2 FROM tab1
----
21
53
82

query I rowsort
SELECT col1 + - + 61 AS col0 FROM tab1
----
-14
-47
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2303
SELECT + - col1 * + - col0 + 94 FROM tab2 WHERE ( CAST( - 79 AS DECIMAL ) + - ( 95 ) > NULL )
----

skipif mysql # not compatible
query I rowsort label-2303
SELECT + - col1 * + - col0 + 94 FROM tab2 WHERE ( CAST ( - 79 AS REAL ) + - ( 95 ) > NULL )
----

query I rowsort
SELECT ALL ( - + 51 ) * + 93 + - ( - col0 ) AS col0 FROM tab2
----
-4668
-4679
-4697

query I rowsort
SELECT DISTINCT - - 69 * + col2 FROM tab1 cor0
----
4071
4692
6624

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE col2 * 81 IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2307
SELECT DISTINCT * FROM tab2 WHERE col1 / CAST( 86 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2307
SELECT DISTINCT * FROM tab2 WHERE col1 / CAST ( 86 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col1 - - col2 AND ( 93 )
----

query I rowsort
SELECT DISTINCT - ( col2 ) * col2 + + col1 AS col0 FROM tab2
----
-1523
-3297
-478

query III rowsort
SELECT * FROM tab1 WHERE col1 + - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 49 NOT BETWEEN - col1 + + col2 * + 76 AND - col0 * + col2
----

query III rowsort
SELECT * FROM tab1 WHERE + 35 IN ( + 12 + + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 18 FROM tab1 WHERE NOT col1 + - col0 IS NOT NULL
----

query I rowsort
SELECT col1 * - 37 FROM tab2 WHERE ( NULL ) <> col1
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col0 <= ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 76 - - 23 NOT BETWEEN - col2 AND 53 + col0
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( + ( + col1 ) + col0 )
----

query I rowsort
SELECT ALL 30 - col0 FROM tab1
----
-21
-55
-61

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN ( + 39 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 + - col0 / + ( - col1 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT ALL 18 AS col1 FROM tab1 WHERE - CAST( - col0 AS SIGNED ) * col0 IS NOT NULL
----
18
18
18

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL 18 AS col1 FROM tab1 WHERE - CAST ( - col0 AS INTEGER ) * col0 IS NOT NULL
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 74 col2 FROM tab1
----
121
79
88

query I rowsort
SELECT col2 + 62 * + 99 FROM tab2
----
6161
6178
6196

query I rowsort
SELECT 35 FROM tab0 WHERE NOT col2 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT - CAST( 13 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-2326
SELECT - CAST ( 13 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL ( COUNT( * ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2327
SELECT ALL ( COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2328
SELECT CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab1 AS cor0 WHERE ( col2 * col0 + ( - col0 ) ) IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-2328
SELECT CAST ( NULL AS REAL ) * col1 AS col0 FROM tab1 AS cor0 WHERE ( col2 * col0 + ( - col0 ) ) IN ( col1 )
----

query I rowsort
SELECT col2 * + 13 AS col1 FROM tab0 AS cor0
----
1287
130
611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2330
SELECT + CAST( - COUNT( * ) AS SIGNED ) + + 28 AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2330
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + 28 AS col2 FROM tab2
----
25

query I rowsort
SELECT ALL + 82 + + 86 * col0 AS col0 FROM tab0
----
1372
7564
8424

query I rowsort
SELECT ALL 7 * col1 AS col2 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT - col1 * + 14 + - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 + - 53 FROM tab0 AS cor0
----
-38
34
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL + + COUNT( * ) + - 98 AS col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + + COUNT ( * ) + - 98 AS col2 FROM tab1 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2336
SELECT - - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2336
SELECT - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + ( COUNT( * ) ) col2 FROM tab2 AS cor0 WHERE ( - 42 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2337
SELECT + ( COUNT ( * ) ) col2 FROM tab2 AS cor0 WHERE ( - 42 ) IS NULL
----
0

query I rowsort
SELECT 53 * 86 FROM tab2 AS cor0
----
4558
4558
4558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - 13 * + col0 col0 FROM tab0 AS cor0
----
-1218
-1358
-210

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 56 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT ALL 88 * - CAST( + 0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL 88 * - CAST ( + 0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT DISTINCT + 94 * MIN( ALL + ( col0 ) + + col1 ) FROM tab1 AS cor0
----
6110

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT + 94 * MIN ( ALL + ( col0 ) + + col1 ) FROM tab1 AS cor0
----
6110

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 + col1 ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL SUM( + col2 ) * 71 col2 FROM tab2
----
8591

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2345
SELECT ALL SUM ( + col2 ) * 71 col2 FROM tab2
----
8591

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN 88 AND - ( - 63 )
----

query I rowsort
SELECT ALL - ( + 88 ) + col2 * - 67 FROM tab1
----
-4041
-4644
-6520

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) NOT BETWEEN - col1 + 61 AND - 46 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT 68 FROM tab0 WHERE ( col0 - + CAST( NULL AS SIGNED ) ) IS NULL
----
68
68
68

skipif mysql # not compatible
query I rowsort label-2349
SELECT 68 FROM tab0 WHERE ( col0 - + CAST ( NULL AS INTEGER ) ) IS NULL
----
68
68
68

query I rowsort
SELECT DISTINCT - col0 * - + 43 AS col1 FROM tab1
----
2193
3655
3913

query I rowsort
SELECT DISTINCT - 3 + col2 * + col1 FROM tab0
----
207
3804
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2352
SELECT + 45 - + - CAST( NULL AS DECIMAL ) / + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2352
SELECT + 45 - + - CAST ( NULL AS REAL ) / + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 64 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT + col0 * 91 FROM tab0 WHERE NOT - col2 + col1 * + CAST( 5 + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2354
SELECT + col0 * 91 FROM tab0 WHERE NOT - col2 + col1 * + CAST ( 5 + col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 / + 48 + - 62 > - 40 OR NOT + col2 * 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + - 68 FROM tab0 AS cor0
----
-3196
-6732
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT + + 2 * COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT + + 2 * COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 51 ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - ( + 97 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT 45 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL + + MAX( DISTINCT col1 ) AS col1 FROM tab0 cor0 WHERE NOT 17 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + + MAX ( DISTINCT col1 ) AS col1 FROM tab0 cor0 WHERE NOT 17 < NULL
----
NULL

query I rowsort
SELECT - col2 * - col2 + - 7 AS col0 FROM tab0 cor0
----
2202
93
9794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT - 66 DIV + + COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2363
SELECT - 66 / + + COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0
----
-19

query I rowsort
SELECT DISTINCT - ( - - ( + 1 ) ) AS col2 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * - col1 * + col2 + - 61 < ( NULL )
----

query II rowsort
SELECT DISTINCT + - 76, col2 AS col2 FROM tab0 AS cor0
----
-76
10
-76
47
-76
99

query I rowsort
SELECT + col0 * - - 23 AS col0 FROM tab0 AS cor0
----
2001
2231
345

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT + + col1 * col0 + 61 DIV - 7 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
417
4269
706

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT + + col1 * col0 + 61 / - 7 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
417
4269
706

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL SUM( DISTINCT + 94 ) col2 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2370
SELECT ALL SUM ( DISTINCT + 94 ) col2 FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) * - col0 * + col2 + 13 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) * - col0 * + col2 + 13 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 * col2 + - 90 AS col0 FROM tab2 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 27 * + + 29 + + col1 / 9 AND 75 * 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT - COUNT( DISTINCT + col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2374
SELECT - COUNT ( DISTINCT + col2 ) AS col2 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * + col2 * col2 * 87 + 98 col2 FROM tab2
----
-19023322
-2991397
-9047902

query I rowsort
SELECT DISTINCT - 99 * - 58 + - col2 FROM tab0
----
5643
5695
5732

query I rowsort
SELECT + col2 FROM tab0 WHERE + + col0 NOT IN ( + 13 + col0 )
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2378
SELECT COUNT( * ) / + CAST( NULL AS SIGNED ) * + MAX( col1 ) + 49 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + MAX ( col1 ) + 49 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT + COUNT( DISTINCT - 89 ) + 63 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-2379
SELECT + COUNT ( DISTINCT - 89 ) + 63 FROM tab1
----
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - + 93 * 83 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - 50 * + col0 * - + 68 AS col1 FROM tab1
----
1445000
14541800
2427600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2382
SELECT - COUNT( * ) DIV + + 18 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2382
SELECT - COUNT ( * ) / + + 18 col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT 33 * - col1 - - CAST( NULL AS SIGNED ) / + 26 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT 33 * - col1 - - CAST ( NULL AS INTEGER ) / + 26 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= col1 AND NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2385
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN ( + col0 * - 77 + + CAST( NULL AS SIGNED ) ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2385
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN ( + col0 * - 77 + + CAST ( NULL AS INTEGER ) ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 57 - + col0 AS col2 FROM tab0 AS cor0
----
-30
-40
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 * + + col2 * + 67 * col0 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2388
SELECT * FROM tab1 AS cor0 WHERE NULL > 50 + - + ( + CAST( - ( 81 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2388
SELECT * FROM tab1 AS cor0 WHERE NULL > 50 + - + ( + CAST ( - ( 81 ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT - CAST( NULL AS SIGNED ) + + AVG ( 73 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT - CAST ( NULL AS INTEGER ) + + AVG ( 73 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col1 FROM tab2 WHERE - - 8 IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT ( + col1 ) AS col0, 48 AS col1 FROM tab1
----
14
48
47
48
5
48

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( - - ( + - col2 ) ) ) BETWEEN + 46 + col1 AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT DISTINCT MAX( ALL col0 ) * - AVG ( 60 + ( CAST( col1 AS SIGNED ) ) ) AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( col2, 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT MAX ( ALL col0 ) * - AVG ( 60 + ( CAST ( col1 AS INTEGER ) ) ) AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( col2, 88 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col1 * col1 col0 FROM tab2
----
254898
439922
581042

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col1 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2396
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) IN ( - + col0 * col0 + + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-2396
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) IN ( - + col0 * col0 + + col2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT ALL COUNT( * ), + 59 AS col2 FROM tab0
----
3
59

skipif mysql # not compatible
query II rowsort label-2397
SELECT ALL COUNT ( * ), + 59 AS col2 FROM tab0
----
3
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT + col0 * + + 74 * 58 * col0 DIV col0 * - + col2 FROM tab1
----
-21013632
-21524380
-26558896

skipif mysql # not compatible
query I rowsort label-2398
SELECT + col0 * + + 74 * 58 * col0 / col0 * - + col2 FROM tab1
----
-21013632
-21524380
-26558896

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2399
SELECT - CAST( NULL AS DECIMAL ) * + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT - CAST ( NULL AS REAL ) * + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 + + + col0 + - + 31 / 84 ) NOT BETWEEN ( 36 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT + SUM( - col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT + SUM ( - col2 ) AS col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT + + 68 + - COUNT( * ) DIV + - 91 AS col1 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2402
SELECT + + 68 + - COUNT ( * ) / + - 91 AS col1 FROM tab2 AS cor0
----
68

query I rowsort
SELECT - col0 + + col2 + - col0 * + 80 FROM tab2 AS cor0
----
-3703
-5144
-6017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2404
SELECT DISTINCT COUNT( * ) DIV MIN( col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT COUNT ( * ) / MIN ( col0 ) FROM tab1
----
0

query II rowsort
SELECT ALL col1 AS col0, col2 AS col1 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL COUNT( * ) + + + 82 AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL COUNT ( * ) + + + 82 AS col1 FROM tab2
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col0 - - - col0 AS col2 FROM tab1
----
-14
0
-47
0
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT DISTINCT - 10 DIV - ( - 26 ) * - col1 * col2 + + 1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - 10 / - ( - 26 ) * - col1 * col2 + + 1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT DISTINCT - col1 + + + 26 DIV + col2 + col2 FROM tab0
----
-34
-9
98

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT - col1 + + + 26 / + col2 + col2 FROM tab0
----
-34
-9
98

query I rowsort
SELECT ALL + + 68 + col1 FROM tab2 AS cor0
----
119
135
145

query I rowsort
SELECT - col0 + - + col1 FROM tab1 cor0
----
-138
-65
-90

query II rowsort
SELECT DISTINCT - + col2 + + - col2 * + col0 + + + 11 AS col1, + 79 FROM tab0 AS cor0
----
-741
79
-869
79
-9691
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT - SUM( - + col0 ) - + COUNT( * ) * 10 * COUNT( * ) + + + 67 AS col2 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - SUM ( - + col0 ) - + COUNT ( * ) * 10 * COUNT ( * ) + + + 67 AS col2 FROM tab1 AS cor0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT ALL - CAST( 51 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL - CAST ( 51 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * - col2 ) NOT IN ( + col0, + 42 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + - + ( col2 ) >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2417
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) / + - COUNT( * ) / + 21 AS col0 FROM tab2 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) / + 21 AS col0 FROM tab2 WHERE + col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 55 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2419
SELECT - COUNT( * ) * + 16, 77 AS col0 FROM tab1 WHERE NOT + + col1 < ( + col2 * + - col0 * + 89 )
----
-48
77

skipif mysql # not compatible
query II rowsort label-2419
SELECT - COUNT ( * ) * + 16, 77 AS col0 FROM tab1 WHERE NOT + + col1 < ( + col2 * + - col0 * + 89 )
----
-48
77

query I rowsort
SELECT - col0 * - + col0 * + col2 + col0 FROM tab0 AS cor0
----
10590
75777
931588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT col0 * - 6 * - ( + CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-2550
-25662
-4284

skipif mysql # not compatible
query I rowsort label-2421
SELECT col0 * - 6 * - ( + CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-2550
-25662
-4284

query I rowsort
SELECT DISTINCT + 54 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2423
SELECT DISTINCT 31 DIV - 69 * - + ( - + col0 ) + + col2 + 57 col1, col1 * + col1 AS col2 FROM tab2 AS cor0
----
115
4489
80
2601
97
5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2423
SELECT DISTINCT 31 / - 69 * - + ( - + col0 ) + + col2 + 57 col1, col1 * + col1 AS col2 FROM tab2 AS cor0
----
115
4489
80
2601
97
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT ALL - 4 + - + 62 + - 17 * + + col1 + + 94 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1206
-1376
-934

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL - 4 + - + 62 + - 17 * + + col1 + + 94 / - col1 AS col2 FROM tab2 AS cor0
----
-1206
-1376
-934

query I rowsort
SELECT + col2 + col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT + + MAX( ALL - + col1 ) * - + COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + + MAX ( ALL - + col1 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( ( + col2 ) ) )
----

query II rowsort
SELECT - col0 + col0, col1 * - 68 AS col2 FROM tab1
----
0
-3196
0
-340
0
-952

query I rowsort
SELECT col2 * + 85 + - col0 AS col2 FROM tab1
----
4930
5689
8109

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT - 24 + - COUNT( ALL + - col0 ) col2, 58 col1 FROM tab2
----
-27
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2430
SELECT - 24 + - COUNT ( ALL + - col0 ) col2, 58 col1 FROM tab2
----
-27
58

query I rowsort
SELECT 27 + - col0 FROM tab0 WHERE 23 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT COUNT( ALL + 20 ) - + 18 AS col0 FROM tab2 WHERE - col2 <= ( NULL )
----
-18

skipif mysql # not compatible
query I rowsort label-2432
SELECT COUNT ( ALL + 20 ) - + 18 AS col0 FROM tab2 WHERE - col2 <= ( NULL )
----
-18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 80 NOT IN ( - 44 + + 98 )
----

query I rowsort
SELECT ALL + col1 + + - 61 AS col2 FROM tab0 AS cor0 WHERE NOT 63 IS NULL
----
-40
-60
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL COUNT( * ) + - - 78 AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL COUNT ( * ) + - - 78 AS col2 FROM tab2
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT col2 / + - ( + - col2 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, col1, + 90, - col0 * col1 - + 48 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2440
SELECT ALL COUNT( * ), - 70 AS col2 FROM tab1 AS cor0
----
3
-70

skipif mysql # not compatible
query II rowsort label-2440
SELECT ALL COUNT ( * ), - 70 AS col2 FROM tab1 AS cor0
----
3
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT DISTINCT - COUNT( DISTINCT + - 29 ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT - COUNT ( DISTINCT + - 29 ) AS col0 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT + COUNT( DISTINCT - 60 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT + COUNT ( DISTINCT - 60 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - 95 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + col0 + + col0, col2 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * col2 <= ( + 83 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 42 / - + 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT - CAST( AVG ( DISTINCT - + col2 ) AS SIGNED ) AS col0 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-2446
SELECT - CAST ( AVG ( DISTINCT - + col2 ) AS INTEGER ) AS col0 FROM tab0
----
52

query I rowsort
SELECT ALL - 43 + + 41 AS col2 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - 2 + + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-2448
SELECT - 2 + + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
-11

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT + 72 + + COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT + 72 + + COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT COUNT( * ) + + 97 AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-2451
SELECT COUNT ( * ) + + 97 AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + 84 + + + MIN( + - col1 ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 84 + + + MIN ( + - col1 ) FROM tab1 AS cor0
----
37

query I rowsort
SELECT + col0 * - + col2 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT - - 7, COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 cor0
----
7
-9

skipif mysql # not compatible
query II rowsort label-2454
SELECT - - 7, COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 cor0
----
7
-9

query II rowsort
SELECT DISTINCT col2 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT col1 / + 50 * - + 43 FROM tab1 AS cor0 WHERE NULL <> 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2457
SELECT - 34 * + COUNT( * ) AS col0, + SUM( - col2 ) AS col2 FROM tab2
----
-102
-121

skipif mysql # not compatible
query II rowsort label-2457
SELECT - 34 * + COUNT ( * ) AS col0, + SUM ( - col2 ) AS col2 FROM tab2
----
-102
-121

query I rowsort
SELECT ( + col2 ) * - ( - col0 ) FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT 32 + col1 AS col2 FROM tab0
----
113
33
53

query I rowsort
SELECT DISTINCT - col0 * + col0 * col2 * col2 AS col0 FROM tab1
----
-23970816
-25150225
-38291344

onlyif mysql # aggregate syntax: 
query II rowsort label-2461
SELECT - 33 AS col1, COUNT( * ) AS col1 FROM tab1
----
-33
3

skipif mysql # not compatible
query II rowsort label-2461
SELECT - 33 AS col1, COUNT ( * ) AS col1 FROM tab1
----
-33
3

query I rowsort
SELECT DISTINCT - ( - col0 ) + + + col1 FROM tab0
----
108
96
98

query II rowsort
SELECT DISTINCT + col0 + + - col2 AS col2, - 15 FROM tab0 AS cor0
----
-2
-15
-32
-15
77
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT - COUNT( * ) + + - SUM( DISTINCT - col2 ) * - MIN( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-2786

skipif mysql # not compatible
query I rowsort label-2464
SELECT - COUNT ( * ) + + - SUM ( DISTINCT - col2 ) * - MIN ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-2786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT DISTINCT + - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 38 * - - ( + + col1 ) AS col0 FROM tab0
----
3078
38
798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2467
SELECT + CAST( NULL AS SIGNED ) / - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 + - - col0 NOT BETWEEN - 37 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2467
SELECT + CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 + - - col0 NOT BETWEEN - 37 AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + ( + col0 ) - - + col0 * - + col2 IS NOT NULL
----

query I rowsort
SELECT - ( - + col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT + MAX( ALL - 27 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2470
SELECT + MAX ( ALL - 27 ) FROM tab2 AS cor0
----
-27

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE + 39 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT - MAX( + 42 ) AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT - MAX ( + 42 ) AS col0 FROM tab0
----
-42

query II rowsort
SELECT col2, - 54 FROM tab1
----
59
-54
68
-54
96
-54

query I rowsort
SELECT + col2 * + 25 FROM tab0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT 75 * - - COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2475
SELECT 75 * - - COUNT ( * ) FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL SUM( ALL + 67 ) AS col0 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL SUM ( ALL + 67 ) AS col0 FROM tab1
----
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 39 col0 FROM tab2 cor0
----
39
39
39

query I rowsort
SELECT ALL 21 + - col2 AS col2 FROM tab1 AS cor0
----
-38
-47
-75

query II rowsort
SELECT DISTINCT - col0 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT + 17 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL + - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL + - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + - col0 + col1 - + 44 FROM tab2 AS cor0
----
-31
-39
-52

query I rowsort
SELECT ALL - col2 + - col0 + + 90 FROM tab1 AS cor0
----
-54
-57
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2485
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2485
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - ( 81 ) * col2 - col0 FROM tab0 AS cor0
----
-3822
-8116
-897

query II rowsort
SELECT col1 * 43, - 66 AS col2 FROM tab2 AS cor0 WHERE NULL <> 14
----

query I rowsort
SELECT 49 + + 12 AS col2 FROM tab2 AS cor0
----
61
61
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + col0 ) > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT MIN( + col1 ) + + 93 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-2490
SELECT MIN ( + col1 ) + + 93 FROM tab1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2491
SELECT - 7 * + + COUNT( * ) / + + COUNT( * ) * + + 42 + - CAST( NULL AS SIGNED ) * - 58 AS col1 FROM tab2 WHERE - - col2 NOT IN ( col1 + - col0 / + 69 * - - col2, + 1 + + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT - 7 * + + COUNT ( * ) / + + COUNT ( * ) * + + 42 + - CAST ( NULL AS INTEGER ) * - 58 AS col1 FROM tab2 WHERE - - col2 NOT IN ( col1 + - col0 / + 69 * - - col2, + 1 + + 34 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * + col2 col2 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT - col0 + + ( + - col1 ) * - col2 FROM tab0
----
123
2
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT COUNT( * ) + 32 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-2494
SELECT COUNT ( * ) + 32 FROM tab0
----
35

query I rowsort
SELECT ALL + col2 + 5 * - 87 + 22 * + ( col0 ) FROM tab1 WHERE + col1 * - col1 + col2 + ( + - 67 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2496
SELECT - col2 * CAST( col2 AS DECIMAL ) * - - col2 + + ( - col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT - col2 * CAST ( col2 AS REAL ) * - - col2 + + ( - col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2497
SELECT + + 59 FROM tab0 WHERE - - CAST( NULL AS DECIMAL ) + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2497
SELECT + + 59 FROM tab0 WHERE - - CAST ( NULL AS REAL ) + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 28 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2499
SELECT * FROM tab2 WHERE NOT + - col2 + - - CAST( NULL AS SIGNED ) NOT IN ( - 88, 13, - - col1 + - + col2 )
----

skipif mysql # not compatible
query III rowsort label-2499
SELECT * FROM tab2 WHERE NOT + - col2 + - - CAST ( NULL AS INTEGER ) NOT IN ( - 88, 13, - - col1 + - + col2 )
----

query I rowsort
SELECT ALL - ( - 93 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT - + MIN( + ( - + col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2501
SELECT - + MIN ( + ( - + col2 ) ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL - ( + + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL - ( + + COUNT ( * ) ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - MAX( DISTINCT 95 ) AS col0 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2503
SELECT - MAX ( DISTINCT 95 ) AS col0 FROM tab1 AS cor0
----
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < - 26 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 92 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL + COUNT( * ) * + 48 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + COUNT ( * ) * + 48 FROM tab0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT COUNT( + + ( - col1 ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2507
SELECT COUNT ( + + ( - col1 ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT + MIN( DISTINCT - + col0 ) + - SUM( DISTINCT 81 ) FROM tab1 AS cor0
----
-172

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT + MIN ( DISTINCT - + col0 ) + - SUM ( DISTINCT 81 ) FROM tab1 AS cor0
----
-172

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col1 >= NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 * col0 IS NULL
----

query II rowsort
SELECT DISTINCT 79, - 71 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 99 * + 77 * + ( - col2 ) + + col2 AS col0 FROM tab1
----
-449698
-518296
-731712

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT - 65 + + SUM( - - col0 ) * + 64 FROM tab2 AS cor0
----
11775

skipif mysql # not compatible
query I rowsort label-2513
SELECT - 65 + + SUM ( - - col0 ) * + 64 FROM tab2 AS cor0
----
11775

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT DISTINCT + - 8 DIV - 73 + 74 AS col0 FROM tab0 cor0
----
74

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT + - 8 / - 73 + 74 AS col0 FROM tab0 cor0
----
74

query II rowsort
SELECT DISTINCT + 84, col2 FROM tab1 AS cor0
----
84
59
84
68
84
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2516
SELECT * FROM tab2 AS cor0 WHERE - 25 * + + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2516
SELECT * FROM tab2 AS cor0 WHERE - 25 * + + CAST ( NULL AS INTEGER ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - ( - col2 ) AND + col2 * + 86
----

query I rowsort
SELECT + + 59 * + + 17 AS col0 FROM tab2 cor0
----
1003
1003
1003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 32 ) * + - col2 + + col1 + + + col1 + + + 9 + + col0 col0 FROM tab1 AS cor0
----
-1784
-1982
-2984

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT 48 * - 24 - COUNT( * ) FROM tab0
----
-1155

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT 48 * - 24 - COUNT ( * ) FROM tab0
----
-1155

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2521
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN + - col1 AND ( 32 ) * + - col0 + - + col1 + + + 42 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2521
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN + - col1 AND ( 32 ) * + - col0 + - + col1 + + + 42 - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL NOT IN ( - - 24, - col1 * + - 21 )
----

query I rowsort
SELECT DISTINCT - col2 * col2 * + 36 FROM tab0
----
-352836
-3600
-79524

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT col0 DIV col0 - col1 AS col2 FROM tab0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT col0 / col0 - col1 AS col2 FROM tab0
----
-20
-80
0

query I rowsort
SELECT DISTINCT + col2 * + col2 + - col1 AS col0 FROM tab1 WHERE ( + 69 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 20 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2528
SELECT ALL * FROM tab1 cor0 WHERE col2 * + - col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2528
SELECT ALL * FROM tab1 cor0 WHERE col2 * + - col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 * - 61 AS col2, col2 FROM tab1 AS cor0
----
-3111
96
-5185
59
-5551
68

query I rowsort
SELECT DISTINCT - 49 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2531
SELECT + + CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2531
SELECT + + CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab2 WHERE NOT - 23 IS NULL
----
-51
-67
-77

query I rowsort
SELECT - + 22 * - + 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f68dee9c8f01dda2bac39209e33c51

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT DISTINCT - 54 * ( - + COUNT( * ) ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT - 54 * ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
162

query I rowsort
SELECT ALL - + col0 * + 89 FROM tab1 AS cor0
----
-4539
-7565
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT - MAX( DISTINCT + + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-96

skipif mysql # not compatible
query I rowsort label-2536
SELECT - MAX ( DISTINCT + + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-96

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT 14 <> - col2 * + col1 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT - + 55 DIV + COUNT( * ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2538
SELECT - + 55 / + COUNT ( * ) FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2539
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( + ( + col0 ) AS SIGNED ) AND + col0 - - col2 * - 7
----

skipif mysql # not compatible
query III rowsort label-2539
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( + ( + col0 ) AS INTEGER ) AND + col0 - - col2 * - 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col1 FROM tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT MIN( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT MIN ( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT DISTINCT - col2 DIV - 49 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT - col2 / - 49 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT - ( AVG ( ALL - - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT - ( AVG ( ALL - - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2544
SELECT + col1 + + 55 * - col1 * - 18 * - - ( col0 ) * CAST( - - 73 AS SIGNED ) + col2 AS col1, + ( - - 48 ) FROM tab1
----
30714814
48
309098905
48
51600890
48

skipif mysql # not compatible
query II rowsort label-2544
SELECT + col1 + + 55 * - col1 * - 18 * - - ( col0 ) * CAST ( - - 73 AS INTEGER ) + col2 AS col1, + ( - - 48 ) FROM tab1
----
30714814
48
309098905
48
51600890
48

query I rowsort
SELECT ALL 18 * + + col0 FROM tab0
----
1566
1746
270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2546
SELECT * FROM tab1 WHERE + - col1 = - CAST( NULL AS SIGNED ) * + 3 / - + 56
----

skipif mysql # not compatible
query III rowsort label-2546
SELECT * FROM tab1 WHERE + - col1 = - CAST ( NULL AS INTEGER ) * + 3 / - + 56
----

query I rowsort
SELECT ALL - + ( - col2 ) + + - col1 + + 72 + + - ( - col2 ) * + 25 FROM tab1 AS cor0
----
1601
1793
2554

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + ( 43 ) AND - col1
----

query I rowsort
SELECT DISTINCT + - 17 AS col0 FROM tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL + COUNT( * ) - - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL + COUNT ( * ) - - - COUNT ( * ) FROM tab1
----
0

query II rowsort
SELECT DISTINCT 7 AS col1, + col0 AS col1 FROM tab2
----
7
46
7
64
7
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT - MIN( 72 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-2552
SELECT - MIN ( 72 ) FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT 48 * + ( + COUNT( * ) ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-2553
SELECT 48 * + ( + COUNT ( * ) ) FROM tab0
----
144

query II rowsort
SELECT + col1, - 39 FROM tab0
----
1
-39
21
-39
81
-39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - - col2 + - ( ( + col0 ) ) + - col0 * - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 69 - - col2 > NULL
----

query II rowsort
SELECT DISTINCT + + 52 AS col2, col1 * + col2 FROM tab1 cor0
----
52
1344
52
295
52
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT MIN( + col2 ) * 7 AS col2 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-2558
SELECT MIN ( + col2 ) * 7 AS col2 FROM tab0
----
70

query I rowsort
SELECT DISTINCT - 98 FROM tab1 WHERE NOT NULL < + - col1
----

query I rowsort
SELECT - 62 * 16 FROM tab0 AS cor0 WHERE - - 10 + ( + 77 ) IN ( - col0 * + + col0 + - col2, col0 + + - 32 ) AND NULL <> 61
----

query I rowsort
SELECT - ( - col1 ) + + col0 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT ALL + 46 AS col1 FROM tab1
----
46
46
46

query I rowsort
SELECT ALL - - col1 + + 75 AS col1 FROM tab2 WHERE - col1 * + - col0 - + 75 * - - ( 29 ) IS NOT NULL
----
126
142
152

query I rowsort
SELECT DISTINCT col2 + - + col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT DISTINCT COUNT( * ) + 82 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT COUNT ( * ) + 82 FROM tab2 AS cor0
----
85

query I rowsort
SELECT 25 + 97 FROM tab0
----
122
122
122

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 34 = - 71 AND NOT ( - 68 ) + - 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2568
SELECT DISTINCT - ( - col2 ) + + - col1 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - ( - col2 ) + + - col1 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT - 87 AS col1, - COUNT( ( - - col2 ) ) col2 FROM tab1 AS cor0
----
-87
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2569
SELECT - 87 AS col1, - COUNT ( ( - - col2 ) ) col2 FROM tab1 AS cor0
----
-87
-3

query I rowsort
SELECT + 9 * - col0 FROM tab1 AS cor0
----
-459
-765
-819

query I rowsort
SELECT ALL + 69 - 64 * + ( + col1 ) FROM tab1 AS cor0
----
-251
-2939
-827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT - CAST( - + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2572
SELECT - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - - col0 * - + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT + + CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2574
SELECT + + CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT - - CAST( - 46 AS SIGNED ) FROM tab1 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-2575
SELECT - - CAST ( - 46 AS INTEGER ) FROM tab1 AS cor0
----
-46
-46
-46

query III rowsort
SELECT * FROM tab2 WHERE + + col0 <> ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2577
SELECT - CAST( col2 AS SIGNED ) - col0 + - + 14 + + col0 FROM tab0
----
-113
-24
-61

skipif mysql # not compatible
query I rowsort label-2577
SELECT - CAST ( col2 AS INTEGER ) - col0 + - + 14 + + col0 FROM tab0
----
-113
-24
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL <= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 / - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT SUM( + 50 ) AS col0 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT SUM ( + 50 ) AS col0 FROM tab1 AS cor0
----
150

query I rowsort
SELECT DISTINCT + + col0 + + 78 AS col2 FROM tab2 WHERE col2 - + 42 < + col0
----
124
142
153

query II rowsort
SELECT + 88 AS col1, 60 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to e58b2f040fd5816856ec805e9c1f462b

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT - MAX( 79 ) AS col1 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-2585
SELECT - MAX ( 79 ) AS col1 FROM tab0
----
-79

query III rowsort
SELECT * FROM tab0 WHERE NOT + 3 + - 0 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2587
SELECT 72 AS col1, MIN( - 17 ) AS col2 FROM tab1
----
72
-17

skipif mysql # not compatible
query II rowsort label-2587
SELECT 72 AS col1, MIN ( - 17 ) AS col2 FROM tab1
----
72
-17

query I rowsort
SELECT - - 22 AS col1 FROM tab0 cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT DISTINCT - + ( + 15 ) + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT - + ( + 15 ) + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - 52 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - 33 ) AS col0 FROM tab2 AS cor0
----
-33
-33
-33

query II rowsort
SELECT + col1 AS col0, col0 AS col0 FROM tab1 cor0
----
14
51
47
91
5
85

query II rowsort
SELECT - - 73, - col1 * + 18 AS col2 FROM tab1 AS cor0
----
73
-252
73
-846
73
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 34 >= + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT MIN( - 64 ) FROM tab2 WHERE - + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT MIN ( - 64 ) FROM tab2 WHERE - + col0 < NULL
----
NULL

query I rowsort
SELECT ALL - ( - + col1 ) + - 83 + + col2 FROM tab1
----
-19
27
32

query II rowsort
SELECT col2 + - - ( - 61 ) * - 40, + 14 AS col2 FROM tab0
----
2450
14
2487
14
2539
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT ALL 52 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL 52 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT - 92 + COUNT( * ) AS col0 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-2599
SELECT - 92 + COUNT ( * ) AS col0 FROM tab0
----
-89

query I rowsort
SELECT col1 + + + 82 * + col2 FROM tab1
----
4843
5623
7886

query I rowsort
SELECT col2 + - col0 + col1 + + 23 AS col0 FROM tab2
----
51
73
76

query I rowsort
SELECT ALL + + col2 - - col2 FROM tab0 cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT + 91 DIV col2 AS col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2603
SELECT + 91 / col2 AS col2 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT + MIN( col2 ) * - - 2 FROM tab2 WHERE ( NULL ) IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + MIN ( col2 ) * - - 2 FROM tab2 WHERE ( NULL ) IS NULL
----
46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + + col0 + + col1 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT + + ( + col0 ) <= - + 72
----
23
40
58

query I rowsort
SELECT ALL + 1 + col1 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL - - SUM( DISTINCT - col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL - - SUM ( DISTINCT - col2 ) AS col1 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT DISTINCT COUNT( - - 5 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT COUNT ( - - 5 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT col2 AS col2, col0 * + - 64 AS col0 FROM tab1
----
59
-5440
68
-5824
96
-3264

query I rowsort
SELECT ALL col0 + - + 81 AS col0 FROM tab2 AS cor0 WHERE NOT - 3 IS NULL
----
-17
-35
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2612
SELECT - CAST( NULL AS SIGNED ), - col2 * + - col1 AS col1 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

skipif mysql # not compatible
query II rowsort label-2612
SELECT - CAST ( NULL AS INTEGER ), - col2 * + - col1 AS col1 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2613
SELECT + CAST( + SUM( DISTINCT - - 62 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
62

skipif mysql # not compatible
query I rowsort label-2613
SELECT + CAST ( + SUM ( DISTINCT - - 62 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
62

query I rowsort
SELECT DISTINCT + 23 + - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2615
SELECT DISTINCT CAST( + 24 AS SIGNED ), col0 AS col1 FROM tab0 AS cor0
----
24
15
24
87
24
97

skipif mysql # not compatible
query II rowsort label-2615
SELECT DISTINCT CAST ( + 24 AS INTEGER ), col0 AS col1 FROM tab0 AS cor0
----
24
15
24
87
24
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 74 * col2 / - - 81 * - col0 / + + 21 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT COUNT( * ) + - MIN( - 41 ) * 11 FROM tab0 AS cor0
----
454

skipif mysql # not compatible
query I rowsort label-2617
SELECT COUNT ( * ) + - MIN ( - 41 ) * 11 FROM tab0 AS cor0
----
454

query II rowsort
SELECT DISTINCT - ( - - col1 ) AS col2, - ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT - 43 BETWEEN NULL AND - 97
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT 62 DIV 85 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT 62 / 85 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT col0 AS col0, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2622
SELECT ALL + CAST( NULL AS DECIMAL ) * 69 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + CAST ( NULL AS REAL ) * 69 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 33 + - col0 FROM tab2
----
-108
-79
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col0 FROM tab0 WHERE 98 * + - 75 + 53 + - + 6 IS NOT NULL
----
58
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT - COUNT( * ) - 42 FROM tab2 WHERE - CAST( NULL AS SIGNED ) + + 80 IS NULL
----
-45

skipif mysql # not compatible
query I rowsort label-2625
SELECT - COUNT ( * ) - 42 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + + 80 IS NULL
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL - - COUNT( ALL - col2 ) + + 65 FROM tab0 cor0
----
68

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - - COUNT ( ALL - col2 ) + + 65 FROM tab0 cor0
----
68

query I rowsort
SELECT ALL + col1 * col1 - - 98 + + col1 + + 59 FROM tab2 AS cor0
----
2809
4713
6163

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL - 75 + + COUNT( * ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL - 75 + + COUNT ( * ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT 47 + 41 AS col1 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query II rowsort label-2630
SELECT - 4 + + col0 * + col2 AS col1, 50 DIV + ( + col0 ) AS col0 FROM tab1 AS cor0
----
4892
0
5011
0
6184
0

skipif mysql # not compatible
query II rowsort label-2630
SELECT - 4 + + col0 * + col2 AS col1, 50 / + ( + col0 ) AS col0 FROM tab1 AS cor0
----
4892
0
5011
0
6184
0

query I rowsort
SELECT DISTINCT - 6 * col2 FROM tab0 AS cor0
----
-282
-594
-60

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 74 * - + col2 * - - col0 FROM tab0
----
-52170
-64380
-710622

query I rowsort
SELECT + - 1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query II rowsort
SELECT col1 * col1 AS col0, col0 AS col2 FROM tab2
----
2601
46
4489
75
5929
64

query I rowsort
SELECT - col2 * + col0 * 48 * col2 FROM tab0 AS cor0
----
-1590480
-417600
-45633456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 97 col0 FROM tab1 AS cor0
----
-1358
-4559
-485

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + ( 26 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, - 40 col1 FROM tab1
----
51
-40
85
-40
91
-40

query I rowsort
SELECT DISTINCT - 20 * + - 44 AS col2 FROM tab2 AS cor0
----
880

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT + + 1 DIV + - col2 * - + ( - 66 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2642
SELECT + + 1 / + - col2 * - + ( - 66 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL + ( 37 ) * COUNT( * ) * + + 42 + + SUM( ALL col0 ) col0 FROM tab1 AS cor0
----
4889

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2643
SELECT ALL + ( 37 ) * COUNT ( * ) * + + 42 + + SUM ( ALL col0 ) col0 FROM tab1 AS cor0
----
4889

query II rowsort
SELECT DISTINCT - 9, col0 AS col2 FROM tab2 AS cor0
----
-9
46
-9
64
-9
75

query II rowsort
SELECT DISTINCT + 52 AS col0, - col1 * + 3 + + 79 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 10
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 50 - + ( + - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 67 * 80 + + col1 FROM tab2
----
-5283
-5293
-5309

query I rowsort
SELECT DISTINCT 98 - - - 38 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
60

query I rowsort
SELECT ALL col0 + - 26 AS col0 FROM tab1
----
25
59
65

query II rowsort
SELECT ALL + - col0 AS col0, - 58 AS col2 FROM tab0 AS cor0
----
-15
-58
-87
-58
-97
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT SUM( ALL ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2651
SELECT SUM ( ALL ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT col2 AS col2, - col0 * - - col0 AS col0 FROM tab0 AS cor0
----
10
-7569
47
-225
99
-9409

query II rowsort
SELECT DISTINCT + 30 AS col1, - 86 * ( - - 99 ) AS col1 FROM tab2 cor0
----
30
-8514

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2654
SELECT * FROM tab2 AS cor0 WHERE 15 * + - col0 = + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2654
SELECT * FROM tab2 AS cor0 WHERE 15 * + - col0 = + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT 42 - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
42

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT 42 - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col0 FROM tab0 WHERE NULL IS NULL
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2657
SELECT ALL COUNT( DISTINCT CAST( - 34 AS SIGNED ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL COUNT ( DISTINCT CAST ( - 34 AS INTEGER ) ) FROM tab2
----
1

query I rowsort
SELECT col0 + 18 * col2 FROM tab2
----
1119
460
784

query I rowsort
SELECT ALL col1 * col2 + + 78 + + + col0 AS col1 FROM tab0
----
274
375
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL - 98 + COUNT( DISTINCT + - col0 ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - 98 + COUNT ( DISTINCT + - col0 ) FROM tab2
----
-95

query II rowsort
SELECT ALL - col2 - - 89 AS col2, col0 AS col2 FROM tab2 AS cor0
----
31
75
49
64
66
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( col0 )
----

query II rowsort
SELECT + 52 - + 67 + col1 + - ( - - 89 ) * - col0, + 24 AS col1 FROM tab2
----
4130
24
5758
24
6727
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL + - COUNT( ALL + - 39 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2664
SELECT ALL + - COUNT ( ALL + - 39 ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 74 * + col1 AS col1 FROM tab0 cor0
----
-1554
-5994
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 / + col2 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT DISTINCT 37 * - + SUM( - col2 ) FROM tab2 AS cor0
----
4477

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT 37 * - + SUM ( - col2 ) FROM tab2 AS cor0
----
4477

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2668
SELECT + 51 * + + CAST( + 30 AS DECIMAL ) FROM tab2 WHERE NOT col1 * + col0 + + + CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2668
SELECT + 51 * + + CAST ( + 30 AS REAL ) FROM tab2 WHERE NOT col1 * + col0 + + + CAST ( + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT - CAST( + 18 AS SIGNED ) col1 FROM tab2
----
-18
-18
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT - CAST ( + 18 AS INTEGER ) col1 FROM tab2
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * + col0 * + 34 col0 FROM tab2
----
140760
195840
229500

query I rowsort
SELECT 61 AS col0 FROM tab1 WHERE NOT NULL < - 91
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 74 ) <> col1 + col0
----

query I rowsort
SELECT DISTINCT + col2 * + 61 FROM tab2 cor0
----
1403
2440
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 + - - 57 AND + 84 * col2 + 95
----
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 + - - 57 AND + 84 * col2 + 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT 5 DIV + 84 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT 5 / + 84 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( + col0 ) ) * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT DISTINCT - CAST( - 69 AS SIGNED ) + - + 81 AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - CAST ( - 69 AS INTEGER ) + - + 81 AS col0 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT 47 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 + + col0 )
----

query I rowsort
SELECT ALL - - ( + + col0 ) - - + 51 * + col2 AS col2 FROM tab2 AS cor0
----
1219
2104
3033

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT + SUM( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + SUM ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ( - - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2682
SELECT ALL + COUNT( * ) AS col2, MIN( col1 ) AS col0 FROM tab1
----
3
5

skipif mysql # not compatible
query II rowsort label-2682
SELECT ALL + COUNT ( * ) AS col2, MIN ( col1 ) AS col0 FROM tab1
----
3
5

query II rowsort
SELECT ALL col1 AS col0, - 38 FROM tab2
----
51
-38
67
-38
77
-38

query I rowsort
SELECT DISTINCT 74 * col2 + + + col0 AS col2 FROM tab1
----
4451
5123
7155

query I rowsort
SELECT + 22 * + 78 AS col2 FROM tab2 WHERE col1 BETWEEN - col0 + col2 AND 75
----
1716
1716

query I rowsort
SELECT ALL + ( - 41 ) + - col0 FROM tab0
----
-128
-138
-56

query I rowsort
SELECT + col1 - + 21 AS col1 FROM tab0 AS cor0
----
-20
0
60

query I rowsort
SELECT 72 + - 32 AS col0 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT DISTINCT 36 - + 59 AS col1 FROM tab0 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / - 18 * - - 64 * + + 84 IS NULL
----

query I rowsort
SELECT DISTINCT + 44 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
44

query II rowsort
SELECT - col2 * + - col1, - col0 AS col0 FROM tab0 AS cor0
----
210
-87
3807
-15
99
-97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 + + + 44 IS NOT NULL
----

query II rowsort
SELECT ALL - - ( - + 80 ) AS col0, + col1 FROM tab0 AS cor0
----
-80
1
-80
21
-80
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT - col0 * - CAST( NULL AS SIGNED ) * ( - 83 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT - col0 * - CAST ( NULL AS INTEGER ) * ( - 83 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2696
SELECT ALL + + COUNT( + 48 ), ( - + 27 ) col1 FROM tab1 cor0
----
3
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2696
SELECT ALL + + COUNT ( + 48 ), ( - + 27 ) col1 FROM tab1 cor0
----
3
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 39 <> + 26 / + ( ( 54 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT ALL + 27, - MIN( ALL col1 ) * 28 * + 11 col0 FROM tab2
----
27
-15708

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2699
SELECT ALL + 27, - MIN ( ALL col1 ) * 28 * + 11 col0 FROM tab2
----
27
-15708

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT + COUNT( ALL + + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT + COUNT ( ALL + + col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL col0 + + col0 + - col2 * - col2 FROM tab0
----
2239
274
9995

query I rowsort
SELECT + 57 * - col2 * - - col0 + + col1 FROM tab0 cor0
----
-40104
-49569
-547370

query I rowsort
SELECT + col1 + 16 + + col1 FROM tab1 AS cor0
----
110
26
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2704
SELECT ALL 32 DIV COUNT( * ) DIV - 90 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL 32 / COUNT ( * ) / - 90 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2705
SELECT ALL + col1 + col1 * - col1 + - CAST( + + col2 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT col2 <> 97
----

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL + col1 + col1 * - col1 + - CAST ( + + col2 AS REAL ) FROM tab0 AS cor0 WHERE NOT col2 <> 97
----

query I rowsort
SELECT ALL - 47 * col1 FROM tab0
----
-3807
-47
-987

query I rowsort
SELECT col0 - 39 FROM tab0
----
-24
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT DISTINCT + COUNT( - col1 ) * - ( 91 ) AS col0 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + COUNT ( - col1 ) * - ( 91 ) AS col0 FROM tab2
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 17 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2709
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 17 col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE 28 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2712
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT CAST ( NULL AS REAL ) * + 0 AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT col2 DIV + 4 AS col0 FROM tab2
----
10
14
5

skipif mysql # not compatible
query I rowsort label-2713
SELECT col2 / + 4 AS col0 FROM tab2
----
10
14
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT DISTINCT + 88 * - col1 + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
-1827
-7047
-87

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + 88 * - col1 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
-1827
-7047
-87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN 83 AND + 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT - 37 DIV col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2716
SELECT - 37 / col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL 48 - + 10 FROM tab2
----
38
38
38

query I rowsort
SELECT DISTINCT - 85 + col0 AS col1 FROM tab1
----
-34
0
6

query I rowsort
SELECT col1 * - 37 FROM tab0
----
-2997
-37
-777

query III rowsort
SELECT ALL * FROM tab0 WHERE - 5 * - ( + 33 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT DISTINCT ( - col2 ) + col2 DIV col1 AS col1 FROM tab0
----
-10
-47
0

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT ( - col2 ) + col2 / col1 AS col1 FROM tab0
----
-10
-47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT - MAX( DISTINCT + col1 ) * 51 AS col0 FROM tab1
----
-2397

skipif mysql # not compatible
query I rowsort label-2722
SELECT - MAX ( DISTINCT + col1 ) * 51 AS col0 FROM tab1
----
-2397

query I rowsort
SELECT + ( col1 ) * + 49 AS col0 FROM tab2
----
2499
3283
3773

query I rowsort
SELECT ALL + col0 + + col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
128
150
92

query I rowsort
SELECT + 18 * 32 FROM tab2
----
576
576
576

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 / col0 + 57 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT ALL + COUNT( ALL 81 ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL + COUNT ( ALL 81 ) * COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT ALL + col1 * 26 AS col1 FROM tab1
----
1222
130
364

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - 4 * - COUNT( * ) FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-2729
SELECT - 4 * - COUNT ( * ) FROM tab0 cor0
----
12

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT 23 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col2 FROM tab0 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT + col1 * 18 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT + col1 * 18 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= ( 15 / ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT + MAX( ALL 47 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT + MAX ( ALL 47 ) FROM tab0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 55 col1 FROM tab2 AS cor0
----
2530
3520
4125

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 5 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + COUNT( * ) + AVG ( DISTINCT col1 + + col1 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT + COUNT ( * ) + AVG ( DISTINCT col1 + + col1 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT 67 * ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + 66 IS NULL
----
201

skipif mysql # not compatible
query I rowsort label-2738
SELECT 67 * ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + 66 IS NULL
----
201

query I rowsort
SELECT - - col1 * ( - col2 + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 / - col1 + 67 / - col2 FROM tab2 cor0 WHERE NOT - col2 * + 14 <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 - 64 * - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT - MIN( - + 84 ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-2742
SELECT - MIN ( - + 84 ) AS col0 FROM tab0
----
84

query I rowsort
SELECT + col2 * - - 41 AS col0 FROM tab0
----
1927
4059
410

query I rowsort
SELECT ALL + 94 + - col1 - col1 AS col0 FROM tab2
----
-40
-60
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT CAST( + col0 AS SIGNED ) FROM tab0 WHERE NOT 18 NOT IN ( 98 )
----

skipif mysql # not compatible
query I rowsort label-2745
SELECT CAST ( + col0 AS INTEGER ) FROM tab0 WHERE NOT 18 NOT IN ( 98 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 44 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT + col2 * - - col0 + + CAST( NULL AS SIGNED ) / + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT + col2 * - - col0 + + CAST ( NULL AS INTEGER ) / + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col1 - col0 * + col1 * col0 FROM tab2 AS cor0
----
-107814
-315238
-376741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2750
SELECT + + 99 DIV - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2750
SELECT + + 99 / - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-30

query II rowsort
SELECT ALL - col2 AS col2, + ( 38 ) FROM tab2
----
-23
38
-40
38
-58
38

query I rowsort
SELECT - + 77 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL BETWEEN col1 AND NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - - col2 AND ( - ( ( col1 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT ALL - + CAST( NULL AS SIGNED ) * - + col1 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL - + CAST ( NULL AS INTEGER ) * - + col1 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + col1, col1 FROM tab1 cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT + 65 + - COUNT( * ) AS col0 FROM tab0 cor0
----
62

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT + 65 + - COUNT ( * ) AS col0 FROM tab0 cor0
----
62

query II rowsort
SELECT - col1 AS col2, + ( + col1 ) FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL 84 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN 98 AND NULL
----
84
84

query II rowsort
SELECT + col2, + 58 * - col0 * + col2 FROM tab1 AS cor0
----
59
-290870
68
-358904
96
-283968

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT DISTINCT + col1 DIV - 62 - + col2 AS col2 FROM tab2 AS cor0
----
-23
-41
-59

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT + col1 / - 62 - + col2 AS col2 FROM tab2 AS cor0
----
-23
-41
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2762
SELECT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - + 12 FROM tab1 AS cor0
----
-17
-26
-59

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2765
SELECT ALL 15 * COUNT( * ) DIV + - 94 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL 15 * COUNT ( * ) / + - 94 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2766
SELECT DISTINCT col1 DIV + col1, col2 FROM tab0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-2766
SELECT DISTINCT col1 / + col1, col2 FROM tab0
----
1
10
1
47
1
99

query I rowsort
SELECT col1 * - ( col0 ) FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT - col1 * col0 DIV - col2 FROM tab0 AS cor0
----
0
182
25

skipif mysql # not compatible
query I rowsort label-2768
SELECT - col1 * col0 / - col2 FROM tab0 AS cor0
----
0
182
25

query I rowsort
SELECT ALL - col2 - - ( - col2 ) / 87 FROM tab0 cor0 WHERE col0 * 5 = col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 65 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - + 26 * + col1 - 30 )
----

query I rowsort
SELECT 88 * + col2 AS col0 FROM tab0 AS cor0
----
4136
8712
880

query I rowsort
SELECT col2 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1600
3364
529

query I rowsort
SELECT - - col1 * 3 FROM tab2 AS cor0
----
153
201
231

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT + COUNT( * ) * MIN( DISTINCT + col2 ), + 61 AS col2 FROM tab2 AS cor0
----
69
61

skipif mysql # not compatible
query II rowsort label-2775
SELECT + COUNT ( * ) * MIN ( DISTINCT + col2 ), + 61 AS col2 FROM tab2 AS cor0
----
69
61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL - - COUNT( * ) * 80 * 64 AS col2 FROM tab0 AS cor0
----
15360

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - - COUNT ( * ) * 80 * 64 AS col2 FROM tab0 AS cor0
----
15360

query I rowsort
SELECT ALL - ( - + 18 ) AS col2 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT + - 83 * + 7 FROM tab0 AS cor0
----
-581
-581
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT SUM( DISTINCT + 49 ) FROM tab0 AS cor0 WHERE NOT ( + col0 * - col0 ) <> 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT SUM ( DISTINCT + 49 ) FROM tab0 AS cor0 WHERE NOT ( + col0 * - col0 ) <> 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT - ( 5 ) IN ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2781
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - ( 5 ) IN ( + col2 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT DISTINCT - COUNT( * ) AS col0, + COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-2782
SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( * ) FROM tab1
----
-3
3

query I rowsort
SELECT col1 + + 5 FROM tab2
----
56
72
82

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE ( + - col1 * + - col1 ) <> ( col2 * + 29 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2785
SELECT ALL - col2 / + - CAST( NULL AS SIGNED ) + 80 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - col2 / + - CAST ( NULL AS INTEGER ) + 80 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT 54 * + 53 + COUNT( * ) AS col0 FROM tab1
----
2865

skipif mysql # not compatible
query I rowsort label-2786
SELECT 54 * + 53 + COUNT ( * ) AS col0 FROM tab1
----
2865

query I rowsort
SELECT DISTINCT - 86 * 4 + + - col2 AS col0 FROM tab2
----
-367
-384
-402

query I rowsort
SELECT ALL 16 + col1 + + 5 FROM tab1 AS cor0
----
26
35
68

query I rowsort
SELECT ALL + - ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 = 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE 99 * - - 33 BETWEEN - 30 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= 48
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( + ( + 68 ) * - 46 ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2794
SELECT * FROM tab0 WHERE + col1 + + - 42 BETWEEN CAST( NULL AS SIGNED ) * - - col0 - - 52 * + CAST( - col0 AS SIGNED ) AND - ( col1 ) - col0
----

skipif mysql # not compatible
query III rowsort label-2794
SELECT * FROM tab0 WHERE + col1 + + - 42 BETWEEN CAST ( NULL AS INTEGER ) * - - col0 - - 52 * + CAST ( - col0 AS INTEGER ) AND - ( col1 ) - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 65 * - col0 / 3 * + 35 * col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * - col0 * + + col1 + + col1 AS col1 FROM tab1 AS cor0
----
25080
290883
68558

query I rowsort
SELECT ALL 48 + + + 60 FROM tab1 cor0
----
108
108
108

query I rowsort
SELECT - - col2 AS col2 FROM tab1 WHERE NOT + col0 + col2 BETWEEN + col0 AND + col0
----
59
68
96

query II rowsort
SELECT 64, col0 AS col2 FROM tab1
----
64
51
64
85
64
91

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( NULL <> + + col1 / col1 ) OR ( NULL ) IS NULL
----
51
85
91

query II rowsort
SELECT col1, - col1 - - col2 FROM tab1
----
14
82
47
21
5
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT ALL + 1 DIV - 72 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + 1 / - 72 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col1 * + col0 ) >= - col0
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2804
SELECT DISTINCT MAX( ALL col2 ) FROM tab1 WHERE NOT + CAST( - col0 AS SIGNED ) / col0 = - ( + - col0 ) * - col1 / - col0
----
96

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT MAX ( ALL col2 ) FROM tab1 WHERE NOT + CAST ( - col0 AS INTEGER ) / col0 = - ( + - col0 ) * - col1 / - col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2805
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT 30 * MIN( col2 ) AS col2 FROM tab1
----
1770

skipif mysql # not compatible
query I rowsort label-2806
SELECT 30 * MIN ( col2 ) AS col2 FROM tab1
----
1770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2807
SELECT ALL - COUNT( DISTINCT CAST( - 60 AS SIGNED ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL - COUNT ( DISTINCT CAST ( - 60 AS INTEGER ) ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT ALL + + 81 * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL + + 81 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT COUNT( * ) * - MIN( DISTINCT + + 74 ) AS col0 FROM tab1 cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2809
SELECT COUNT ( * ) * - MIN ( DISTINCT + + 74 ) AS col0 FROM tab1 cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2810
SELECT + - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - MIN( ALL + 67 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-2811
SELECT - MIN ( ALL + 67 ) FROM tab1
----
-67

query I rowsort
SELECT ALL + + 89 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + col2 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ALL + SUM( - + 78 ) FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL + SUM ( - + 78 ) FROM tab0 AS cor0
----
-234

query I rowsort
SELECT col2 + col2 - col1 AS col2 FROM tab0 AS cor0
----
-1
13
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - ( + + 91 ) col0 FROM tab2 AS cor0
----
-16
-27
-45

query I rowsort
SELECT ALL - 30 * + col0 + + col2 FROM tab2 AS cor0
----
-1357
-1880
-2192

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT DISTINCT - - col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT - - col1 / + col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - ( - 73 ) AS col2 FROM tab1 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT + MAX( col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2821
SELECT + MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT MAX( DISTINCT - 7 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-2822
SELECT MAX ( DISTINCT - 7 ) FROM tab0
----
-7

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 16 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL + COUNT( * ) + + + MIN( DISTINCT + col0 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + COUNT ( * ) + + + MIN ( DISTINCT + col0 ) FROM tab1
----
54

query I rowsort
SELECT ALL ( 41 ) FROM tab2
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT - + col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) + col1 - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2827
SELECT - + col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) + col1 - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 25 ) * + 94 + - col1 FROM tab0
----
2269
2329
2349

query I rowsort
SELECT DISTINCT 5 + + - col0 FROM tab2
----
-41
-59
-70

query I rowsort
SELECT ALL - col0 + + 86 FROM tab2 AS cor0
----
11
22
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + 45 * 45 + + COUNT( ALL col0 ) col0 FROM tab2 AS cor0
----
2028

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2831
SELECT DISTINCT + 45 * 45 + + COUNT ( ALL col0 ) col0 FROM tab2 AS cor0
----
2028

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + + col0 * + col1 col1 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2834
SELECT - 79 + - 7 DIV - + col1 - - CAST( + col1 AS SIGNED ), col2 FROM tab0 AS cor0
----
-58
10
-71
99
2
47

skipif mysql # not compatible
query II rowsort label-2834
SELECT - 79 + - 7 / - + col1 - - CAST ( + col1 AS INTEGER ), col2 FROM tab0 AS cor0
----
-58
10
-71
99
2
47

query I rowsort
SELECT + col2 + + 3 + + col1 + col2 * + + col2 FROM tab2 WHERE 84 IS NOT NULL
----
1720
3492
606

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 + col0 col2 FROM tab1
----
0
34
40

query I rowsort
SELECT DISTINCT + 62 + 65 FROM tab1
----
127

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 61 + col2 AND col1
----

query I rowsort
SELECT DISTINCT - 67 * col1 AS col2 FROM tab0 AS cor0
----
-1407
-5427
-67

query I rowsort
SELECT ALL - 88 AS col1 FROM tab1 AS cor0 WHERE NULL <= + col2 * - + col0 * - + 25
----

query I rowsort
SELECT DISTINCT col0 * - + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT 20 + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-2842
SELECT 20 + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
23

query I rowsort
SELECT ALL - + 84 + - + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + + col2 AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT COUNT( 18 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT COUNT ( 18 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 14 * - col0 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-1050
-644
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL + + SUM( 46 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
414

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + + SUM ( 46 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
414

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL SUM( DISTINCT + 79 ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL SUM ( DISTINCT + 79 ) FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT 28 + ( COUNT( * ) ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT 28 + ( COUNT ( * ) ) FROM tab0
----
31

query I rowsort
SELECT DISTINCT - col2 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
1219
3144
3961

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 40 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT - 15 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2851
SELECT - 15 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + col0 * 86 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + col0 * 86 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2853
SELECT DISTINCT - 4 DIV - 2 - COUNT( DISTINCT + CAST( col1 AS SIGNED ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT - 4 / - 2 - COUNT ( DISTINCT + CAST ( col1 AS INTEGER ) ) FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT DISTINCT MAX( - - col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT MAX ( - - col1 ) AS col1 FROM tab1 AS cor0
----
47

query II rowsort
SELECT ALL - 0, + col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2856
SELECT col2 DIV - col1 + col1 FROM tab0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-2856
SELECT col2 / - col1 + col1 FROM tab0
----
-98
21
81

query I rowsort
SELECT ALL + 33 + - col1 * - - col1 FROM tab2
----
-2568
-4456
-5896

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT COUNT( * ) + - 6 AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2858
SELECT COUNT ( * ) + - 6 AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT DISTINCT 11 * + + 2 AS col1 FROM tab2 WHERE ( - CAST( + col2 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT 11 * + + 2 AS col1 FROM tab2 WHERE ( - CAST ( + col2 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT ALL col2 * + 7 * + 14 + ( - col2 ) * - col0 AS col0 FROM tab1
----
10797
12852
14304

query I rowsort
SELECT col0 * + + col0 + - col0 + 20 + col1 FROM tab2
----
2141
4129
5637

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT + AVG ( + col0 ) * - - SUM( ALL + col2 ) FROM tab0 WHERE col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT + AVG ( + col0 ) * - - SUM ( ALL + col2 ) FROM tab0 WHERE col2 NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + + 64 AND ( + 41 )
----

query I rowsort
SELECT - + col0 + + col1 - - - col2 AS col0 FROM tab0 AS cor0
----
-195
-76
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - col2 ) + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL + 12 * + 36 - - - COUNT( * ) FROM tab0 cor0
----
429

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL + 12 * + 36 - - - COUNT ( * ) FROM tab0 cor0
----
429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 40 AS col0, + ( - 32 ) col1 FROM tab2
----
40
-32
40
-32
40
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2868
SELECT ALL + 3 DIV COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + 3 / COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT CAST( NULL AS SIGNED ) / + col1 - - + 47 * + 98 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT CAST ( NULL AS INTEGER ) / + col1 - - + 47 * + 98 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col1 ) col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab2 AS cor0 WHERE col1 >= ( - + col1 )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL MAX( ALL + 6 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL MAX ( ALL + 6 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col2, - col0 FROM tab0 cor0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 6 * + + 42
----

query II rowsort
SELECT - col2 AS col1, col2 * ( col2 ) FROM tab2 AS cor0
----
-23
529
-40
1600
-58
3364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT DISTINCT - + ( + CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT - + ( + CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT + 96 AS col1, - col0 FROM tab2
----
96
-46
96
-64
96
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT DISTINCT + COUNT( DISTINCT col2 ) + - + COUNT( ALL + col0 ) FROM tab2 WHERE NOT + col2 + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT + COUNT ( DISTINCT col2 ) + - + COUNT ( ALL + col0 ) FROM tab2 WHERE NOT + col2 + - col2 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2879
SELECT ALL MAX( + + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL MAX ( + + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT + col2 * - - CAST( - + ( + col1 ) AS SIGNED ) AS col0 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-2880
SELECT + col2 * - - CAST ( - + ( + col1 ) AS INTEGER ) AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2881
SELECT + 52 DIV + + 17 AS col1 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2881
SELECT + 52 / + + 17 AS col1 FROM tab2
----
3
3
3

query I rowsort
SELECT ALL - col2 * - col0 - 91 FROM tab0 AS cor0
----
614
779
9512

onlyif mysql # DIV for integer division: 
query II rowsort label-2883
SELECT + + col2 col0, - col0 * + col1 DIV + col1 FROM tab0 cor0
----
10
-87
47
-15
99
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2883
SELECT + + col2 col0, - col0 * + col1 / + col1 FROM tab0 cor0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2884
SELECT ALL 93 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) < + + col2
----

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL 93 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) < + + col2
----

query II rowsort
SELECT ALL - - col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < - col1 / 56 * + 53
----

query I rowsort
SELECT ALL - 74 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT 79 DIV - 99 + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2888
SELECT 79 / - 99 + col1 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 * - col0 + + 85 col0 FROM tab1
----
36210
36499
389292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT - 35 col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-35
-35
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2890
SELECT - 35 col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-35
-35
-35

query II rowsort
SELECT ALL - col0 * + + 87 * + col2, col0 FROM tab0 AS cor0
----
-61335
15
-75690
87
-835461
97

query I rowsort
SELECT + col2 * col1 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT 4 * + 58 * + - col1 AS col1 FROM tab2 cor0
----
-11832
-15544
-17864

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2894
SELECT DISTINCT - col0 * + - CAST( - CAST( + - col0 AS SIGNED ) AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT - col0 * + - CAST ( - CAST ( + - col0 AS INTEGER ) AS REAL ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - 24 * + + ( - + ( col2 ) ) FROM tab2
----
1392
552
960

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT DISTINCT + COUNT( * ) + + - ( 34 ) * - 58 + MAX( + col1 ) * - - 84 * - COUNT( * ) FROM tab2
----
-17429

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT + COUNT ( * ) + + - ( 34 ) * - 58 + MAX ( + col1 ) * - - 84 * - COUNT ( * ) FROM tab2
----
-17429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT - 53 * + CAST( - col1 AS SIGNED ) - + + col1 + - 17 FROM tab0 AS cor0
----
1075
35
4195

skipif mysql # not compatible
query I rowsort label-2898
SELECT - 53 * + CAST ( - col1 AS INTEGER ) - + + col1 + - 17 FROM tab0 AS cor0
----
1075
35
4195

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT - 0 DIV - col2 + + + col1 + - - ( - + col0 ) FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-2899
SELECT - 0 / - col2 + + + col1 + - - ( - + col0 ) FROM tab0
----
-66
-96
66

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - 75 AS col2 FROM tab1 AS cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2902
SELECT + MIN( + - col2 ), COUNT( * ) AS col2 FROM tab1 cor0
----
-96
3

skipif mysql # not compatible
query II rowsort label-2902
SELECT + MIN ( + - col2 ), COUNT ( * ) AS col2 FROM tab1 cor0
----
-96
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT + 89 DIV - 57 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2903
SELECT + 89 / - 57 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2904
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2904
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col0 FROM tab2 AS cor0
----
6
6
6

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 <= + col1 + + 93 - + - 91 + + col1 / + col2 * + - 71 * - col0 * 46
----

query I rowsort
SELECT col2 * + + 81 AS col1 FROM tab0
----
3807
8019
810

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ALL + ( + COUNT( ALL + + col0 ) ) * + COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + ( + COUNT ( ALL + + col0 ) ) * + COUNT ( * ) AS col2 FROM tab2
----
9

query I rowsort
SELECT 76 * 27 FROM tab1
----
2052
2052
2052

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT - col0 DIV - col0 DIV 7 * + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2910
SELECT - col0 / - col0 / 7 * + col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 7 <> + 5
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT ALL + CAST( NULL AS SIGNED ) + - 96 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL + CAST ( NULL AS INTEGER ) + - 96 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT - col2 * + col2 DIV + col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2913
SELECT - col2 * + col2 / + col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT + + 39 + SUM( ALL col2 ) FROM tab2 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-2914
SELECT + + 39 + SUM ( ALL col2 ) FROM tab2 AS cor0
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2915
SELECT DISTINCT 47 AS col2, - CAST( NULL AS SIGNED ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-2915
SELECT DISTINCT 47 AS col2, - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
47
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT + 67 + + - 80 DIV + + col0 AS col1 FROM tab2 cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-2916
SELECT + 67 + + - 80 / + + col0 AS col1 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT ALL - - 55 FROM tab0 WHERE NOT NULL < - col1 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL MIN( DISTINCT - - col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL MIN ( DISTINCT - - col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT col0 * - + 0 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col2 * + col1 + + 26 FROM tab2
----
1199
3106
3912

query I rowsort
SELECT ( col2 ) + + col2 AS col2 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2922
SELECT DISTINCT col0 DIV CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT col0 / CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT ALL col1 + - col2 + + col1 * 34 DIV col2 AS col2 FROM tab0
----
-98
82
92

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL col1 + - col2 + + col1 * 34 / col2 AS col2 FROM tab0
----
-98
82
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT - - COUNT( + - 93 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2924
SELECT - - COUNT ( + - 93 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL col0 AS col1, col2 - - 95 AS col1 FROM tab2
----
46
118
64
135
75
153

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT - + col2 < NULL
----

query II rowsort
SELECT + - col0, - ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 18, - col2 AS col1 FROM tab2 AS cor0
----
18
-23
18
-40
18
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT - MAX( + 16 ) AS col0 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2929
SELECT - MAX ( + 16 ) AS col0 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT - + col1 + - col2 + + + 59 - - col1 - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL + col1 * 10 AS col0 FROM tab1 cor0
----
140
470
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2932
SELECT DISTINCT - col2 DIV ( - 20 ) FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT - col2 / ( - 20 ) FROM tab0 AS cor0
----
0
2
4

query I rowsort
SELECT ALL - 21 * 62 FROM tab0 AS cor0
----
-1302
-1302
-1302

query I rowsort
SELECT col2 * + 11 * 12 FROM tab1
----
12672
7788
8976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2935
SELECT ALL CAST( + ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 75 * - 47 IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 * + col2 + 37 + - col1 FROM tab1 AS cor0
----
-3449
-4634
-9193

query I rowsort
SELECT - - col2 / - col0 AS col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT + col0 * + ( + - col1 ) + 25 AS col1 FROM tab0
----
-1190
-1802
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18

query I rowsort
SELECT DISTINCT - col2 + - 33 FROM tab2 cor0
----
-56
-73
-91

query I rowsort
SELECT ALL + + 23 + + col1 + col2 AS col1 FROM tab0 cor0
----
123
151
54

query I rowsort
SELECT DISTINCT - 27 * - col1 AS col2 FROM tab2 AS cor0
----
1377
1809
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT DISTINCT + COUNT( * ) * - 52 * - 19 * 0 AS col0, + COUNT( * ) * + + 93 FROM tab2
----
0
279

skipif mysql # not compatible
query II rowsort label-2944
SELECT DISTINCT + COUNT ( * ) * - 52 * - 19 * 0 AS col0, + COUNT ( * ) * + + 93 FROM tab2
----
0
279

query II rowsort
SELECT DISTINCT - col0, + ( + 78 ) AS col2 FROM tab0
----
-15
78
-87
78
-97
78

query I rowsort
SELECT 70 FROM tab1 WHERE NULL NOT IN ( + + col2 + + 45 * 8 + + 25, col2 )
----

query I rowsort
SELECT DISTINCT 30 + - col1 FROM tab2
----
-21
-37
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE + 5 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2948
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE + 5 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2949
SELECT DISTINCT - ( - 39 ) DIV + + col1 - - 23 AS col0 FROM tab0
----
23
24
62

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT - ( - 39 ) / + + col1 - - 23 AS col0 FROM tab0
----
23
24
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2950
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) < - CAST( NULL AS SIGNED ) OR NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2950
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) < - CAST ( NULL AS INTEGER ) OR NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2951
SELECT - col1, + col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
0
-21
8
-81
0

skipif mysql # not compatible
query II rowsort label-2951
SELECT - col1, + col0 / + col2 AS col2 FROM tab0 AS cor0
----
-1
0
-21
8
-81
0

query I rowsort
SELECT + 14 FROM tab1 cor0 WHERE NOT - col0 * + + 66 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * + 71 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * col1 * - col0 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2956
SELECT DISTINCT - + COUNT( * ) * MAX( - 34 ) + - - 40 * COUNT( * ) * - SUM( DISTINCT 15 ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
-1698
3

skipif mysql # not compatible
query II rowsort label-2956
SELECT DISTINCT - + COUNT ( * ) * MAX ( - 34 ) + - - 40 * COUNT ( * ) * - SUM ( DISTINCT 15 ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-1698
3

query I rowsort
SELECT ALL - col2 * + 34 - ( + col1 ) FROM tab0 AS cor0
----
-1679
-3367
-361

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 IS NULL OR NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 * col0 * - 10 FROM tab2 AS cor0
----
23460
49280
50250

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT DISTINCT col0 DIV + + 21 AS col2 FROM tab1
----
2
4

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT col0 / + + 21 AS col2 FROM tab1
----
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 22 col0, 82 AS col1 FROM tab2
----
-22
82
-22
82
-22
82

query I rowsort
SELECT ALL - col1 + + 41 AS col2 FROM tab1
----
-6
27
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL COUNT( * ) * 23 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL COUNT ( * ) * 23 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT + 89 + - MAX( - col1 ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-2964
SELECT + 89 + - MAX ( - col1 ) AS col0 FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) * + 59 + + col2 col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2967
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) * + 59 + + col2 col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT col0 / - CAST( NULL AS SIGNED ) / - - 99 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT col0 / - CAST ( NULL AS INTEGER ) / - - 99 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL - 40 + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-31

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL - 40 + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-31

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN - + col1 AND + col0 + 52
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT + 98 - + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
95

skipif mysql # not compatible
query I rowsort label-2972
SELECT + 98 - + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2973
SELECT DISTINCT - col2 + + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT - col2 + + - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT DISTINCT col0 * - CAST( + - col2 AS SIGNED ) - - + col1 * + ( col2 ) FROM tab2 AS cor0
----
2231
5640
8236

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT col0 * - CAST ( + - col2 AS INTEGER ) - - + col1 * + ( col2 ) FROM tab2 AS cor0
----
2231
5640
8236

query II rowsort
SELECT DISTINCT + col1 + col0, - col2 AS col0 FROM tab2 AS cor0
----
141
-40
142
-58
97
-23

query I rowsort
SELECT ALL + + 18 - + col2 * col2 FROM tab1 cor0
----
-3463
-4606
-9198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 * - + col0 col1 FROM tab2 AS cor0 WHERE - ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2978
SELECT * FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) / + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2978
SELECT * FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) / + - col1 IS NOT NULL
----

query I rowsort
SELECT - col0 * - col0 + - 85 AS col2 FROM tab2
----
2031
4011
5540

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT COUNT( * ) * + - 31 AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-2980
SELECT COUNT ( * ) * + - 31 AS col2 FROM tab1
----
-93

query I rowsort
SELECT ALL col2 - - - col0 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 53 > - col0 - - - 27
----
15
81
47

query I rowsort
SELECT ALL + ( + 73 ) FROM tab0
----
73
73
73

query II rowsort
SELECT DISTINCT col2 + col2 AS col2, 43 * + col0 + col1 * + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
118
3680
136
6122
192
2389

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT COUNT( * ) - + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2985
SELECT COUNT ( * ) - + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2986
SELECT ALL 64 DIV 22 + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
83

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL 64 / 22 + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2987
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-2987
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2988
SELECT DISTINCT COUNT( + CAST( 26 AS SIGNED ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT COUNT ( + CAST ( 26 AS INTEGER ) ) AS col0 FROM tab1
----
3

query II rowsort
SELECT ALL + 47 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
47
-1
47
-21
47
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT 61 + - MAX( ALL 37 ) AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2990
SELECT 61 + - MAX ( ALL 37 ) AS col1 FROM tab0 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 25 * + - 49 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT + SUM( - col2 ) * + + 62 + - - 66 FROM tab1 AS cor0
----
-13760

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT + SUM ( - col2 ) * + + 62 + - - 66 FROM tab1 AS cor0
----
-13760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col2 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT + col0 * - col0 * col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT DISTINCT + col0 * - col1 + + ( + 87 ) FROM tab1 AS cor0 WHERE NOT col0 < + + 54
----
-338
-4190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 cor0 WHERE - 73 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT SUM( + ( + col0 ) ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-2997
SELECT SUM ( + ( + col0 ) ) AS col2 FROM tab1 cor0
----
227

query I rowsort
SELECT - + 17 * - + col1 FROM tab0 cor0
----
1377
17
357

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + - col1 ) BETWEEN ( NULL ) AND 7 + + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) <> - col1 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3001
SELECT 79 DIV - + COUNT( * ), ( 75 ) + - 28 + + ( + 57 ) AS col1 FROM tab2
----
-26
104

skipif mysql # not compatible
query II rowsort label-3001
SELECT 79 / - + COUNT ( * ), ( 75 ) + - 28 + + ( + 57 ) AS col1 FROM tab2
----
-26
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + MAX( DISTINCT 2 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3002
SELECT + MAX ( DISTINCT 2 ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL 90 * + 11 + - - COUNT( * ) * + COUNT( * ) * - SUM( col1 ) * MAX( DISTINCT + col2 ) AS col1 FROM tab1
----
-56034

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL 90 * + 11 + - - COUNT ( * ) * + COUNT ( * ) * - SUM ( col1 ) * MAX ( DISTINCT + col2 ) AS col1 FROM tab1
----
-56034

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 NOT BETWEEN NULL AND + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT - col0 * + col0 DIV + col0 + - col1 AS col2 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT - col0 * + col0 / + col0 + - col1 AS col2 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT col2 + + - ( col1 ) FROM tab2
----
-28
-37
-9

query III rowsort
SELECT * FROM tab1 WHERE + col0 > 38 + col1
----
85
5
59
91
47
68

query I rowsort
SELECT ALL col0 + col2 * + 2 AS col1 FROM tab1
----
203
227
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 82 * - col1 col1 FROM tab1
----
-16072
-181138
-2050

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL MAX( + + col2 ) * MAX( - col0 ) + + - 83 FROM tab0 cor0
----
-1568

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL MAX ( + + col2 ) * MAX ( - col0 ) + + - 83 FROM tab0 cor0
----
-1568

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - - col2
----

query I rowsort
SELECT 33 + - col1 AS col1 FROM tab2 cor0
----
-18
-34
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT col1 DIV - - 85 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT col1 / - - 85 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * ( + - ( - col1 ) ) * - ( + + ( ( + col1 ) ) ) * + - 24 + - 10 * - col2 FROM tab0 AS cor0 WHERE - col1 + 57 IS NOT NULL
----
105940
3366
7401278

query II rowsort
SELECT col0 - + col0 * + - 6 * - col2 AS col2, col2 + col1 FROM tab2 AS cor0
----
-15296
117
-26025
125
-6302
74

query I rowsort
SELECT - - col2 - + + 5 FROM tab1 AS cor0
----
54
63
91

query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3019
SELECT DISTINCT * FROM tab1 WHERE + ( - col0 ) NOT IN ( + CAST( - + col1 AS SIGNED ) * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3019
SELECT DISTINCT * FROM tab1 WHERE + ( - col0 ) NOT IN ( + CAST ( - + col1 AS INTEGER ) * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 97 ) * ( + 75 ) + + 71 FROM tab0
----
-7204
-7204
-7204

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT SUM( DISTINCT ( - col1 ) ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT SUM ( DISTINCT ( - col1 ) ) AS col1 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT + - COUNT( * ) * + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + - 66
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3024
SELECT ALL SUM( ALL + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL SUM ( ALL + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3025
SELECT ALL 96 + + - 10 + + + col1 DIV col0 FROM tab2
----
86
87
87

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL 96 + + - 10 + + + col1 / col0 FROM tab2
----
86
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL - - COUNT( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - - COUNT ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col2 + + 26 + - + col1 * - col0 + + col1 * + - col1 FROM tab1
----
2026
367
448

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3028
SELECT DISTINCT * FROM tab2 WHERE + + col0 * + CAST( NULL AS SIGNED ) BETWEEN NULL AND - col0 + - 89
----

skipif mysql # not compatible
query III rowsort label-3028
SELECT DISTINCT * FROM tab2 WHERE + + col0 * + CAST ( NULL AS INTEGER ) BETWEEN NULL AND - col0 + - 89
----

query I rowsort
SELECT DISTINCT + 57 + + + col2 * - 37 FROM tab1
----
-2126
-2459
-3495

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT - ( col1 ) + col1 DIV - + col0 + col1 * + 98 * + 84 FROM tab2
----
419780
551477
633786

skipif mysql # not compatible
query I rowsort label-3030
SELECT - ( col1 ) + col1 / - + col0 + col1 * + 98 * + 84 FROM tab2
----
419780
551477
633786

query I rowsort
SELECT 89 + - 29 + 30 * + col1 + - 16 FROM tab1
----
1454
194
464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT DISTINCT - 30 + - CAST( NULL AS SIGNED ) - 54 * + MIN( DISTINCT + 79 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - 30 + - CAST ( NULL AS INTEGER ) - 54 * + MIN ( DISTINCT + 79 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT 6 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN - + 91 * + col0 + 51 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3033
SELECT 6 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN - + 91 * + col0 + 51 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 55 + - 51 + + col1 AS col2 FROM tab0 AS cor0
----
-105
-25
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL + 89 * COUNT( * ) - 16 FROM tab0 cor0
----
251

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL + 89 * COUNT ( * ) - 16 FROM tab0 cor0
----
251

query I rowsort
SELECT ALL + col0 * + + 16 AS col2 FROM tab2
----
1024
1200
736

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT DISTINCT col0 DIV - 71 + ( + + col1 ) * col2 FROM tab1
----
1344
294
3195

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT col0 / - 71 + ( + + col1 ) * col2 FROM tab1
----
1344
294
3195

query II rowsort
SELECT - - col2 AS col0, col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 54 * - col2 > + + 13 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 * + 73 * + 20 * + col2 FROM tab1 AS cor0
----
1962240
430700
4666160

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
90

query I rowsort
SELECT DISTINCT + ( - + 39 ) * - + col1 FROM tab2 cor0
----
1989
2613
3003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * - 83 col2 FROM tab1
----
1660
1660
1660

query I rowsort
SELECT ALL + ( col0 ) * - - col2 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT col1 AS col2, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + ( + 27 ) AS col0 FROM tab0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT + - COUNT( * ) AS col0 FROM tab0 WHERE NOT - 84 > - 47
----
-3

skipif mysql # not compatible
query I rowsort label-3047
SELECT + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 84 > - 47
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT DISTINCT + + 3 FROM tab0 WHERE + 8 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT + + 3 FROM tab0 WHERE + 8 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN - col0 AND NULL
----

query II rowsort
SELECT ALL + - col0 AS col1, + 16 AS col1 FROM tab1 AS cor0
----
-51
16
-85
16
-91
16

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT - MAX( DISTINCT 52 ) + - 69 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-121

skipif mysql # not compatible
query I rowsort label-3052
SELECT - MAX ( DISTINCT 52 ) + - 69 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-121

query I rowsort
SELECT DISTINCT col2 + - + col1 + - 92 FROM tab0 AS cor0
----
-103
-126
6

query I rowsort
SELECT ALL + + 13 FROM tab1 AS cor0 WHERE NOT 55 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE 17 IS NULL
----

query I rowsort
SELECT DISTINCT - 1 FROM tab0 cor0
----
-1

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-3058
SELECT - COUNT( * ) DIV 35 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3058
SELECT - COUNT ( * ) / 35 AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 97 > + 77 * col0 - - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 93 * + - 21 AS col2 FROM tab0
----
-1953

query I rowsort
SELECT DISTINCT - col1 + + - ( - col2 ) - 71 FROM tab2
----
-108
-80
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL + COUNT( ALL 53 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL + COUNT ( ALL 53 ) FROM tab1
----
3

query I rowsort
SELECT - col0 + 70 + + col0 * 23 FROM tab0 AS cor0
----
1984
2204
400

query I rowsort
SELECT ALL - col2 * + + col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT - + 28 + - 13 AS col2 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT SUM( + col0 ) + COUNT( * ) AS col2 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-3066
SELECT SUM ( + col0 ) + COUNT ( * ) AS col2 FROM tab2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT - + 92 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-3067
SELECT - + 92 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3068
SELECT - 46 * - CAST( - col1 AS SIGNED ) * + 27 * - CAST( + col1 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
243483
2743669
31135

skipif mysql # not compatible
query I rowsort label-3068
SELECT - 46 * - CAST ( - col1 AS INTEGER ) * + 27 * - CAST ( + col1 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
243483
2743669
31135

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT - + MIN( col1 ) * - COUNT( * ) + 28 AS col1 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3069
SELECT - + MIN ( col1 ) * - COUNT ( * ) + 28 AS col1 FROM tab0 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT + 14 * SUM( - - 92 ) AS col1 FROM tab0 AS cor0
----
3864

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT + 14 * SUM ( - - 92 ) AS col1 FROM tab0 AS cor0
----
3864

query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + col0 + - col2 IN ( - 95, 6 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( + + col2 + + 68 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 66 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 * col1 AS col0, - 5 AS col0 FROM tab1
----
1344
-5
295
-5
3196
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT col0 DIV - + col1 AS col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT col0 / - + col1 AS col1 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3077
SELECT COUNT( * ) * - 9, 79 AS col0 FROM tab2 AS cor0
----
-27
79

skipif mysql # not compatible
query II rowsort label-3077
SELECT COUNT ( * ) * - 9, 79 AS col0 FROM tab2 AS cor0
----
-27
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT CAST( NULL AS SIGNED ) * - 92 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT CAST ( NULL AS INTEGER ) * - 92 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE + + col2 / + - 21 < NULL
----

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + + col2 / + - 21 < NULL
----

query II rowsort
SELECT col2 AS col1, 12 FROM tab0
----
10
12
47
12
99
12

query I rowsort
SELECT ALL - 79 + - - col2 * + col0 * + - col2 FROM tab0 AS cor0
----
-33214
-8779
-950776

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT + COUNT( * ) + - - 3 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT + COUNT ( * ) + - - 3 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3083
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( - - col2 AS DECIMAL ) / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3083
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( - - col2 AS REAL ) / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 65 + - + col2 + ( - col2 ) + + 90 + 34 * + col1 FROM tab0 AS cor0
----
-139
2685
719

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab0 cor0
----
44

query I rowsort
SELECT DISTINCT - col2 * - + 40 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
2360
2720
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL - COUNT( ALL - 0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - COUNT ( ALL - 0 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT MAX( + col2 ) col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3088
SELECT DISTINCT MAX ( + col2 ) col2 FROM tab0 cor0
----
99

query I rowsort
SELECT DISTINCT col0 * - + 1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + col1 * - col1 FROM tab2 WHERE NOT 37 IS NULL
----
-2601
-4489
-5929

query I rowsort
SELECT ( - 78 ) + + col2 AS col2 FROM tab2
----
-20
-38
-55

query I rowsort
SELECT + col2 * - 78 + + 96 FROM tab0
----
-3570
-684
-7626

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * - col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3094
SELECT COUNT( * ) * CAST( - 0 AS SIGNED ) + MAX( DISTINCT + + col2 ) * - MAX( ( + 67 ) ) AS col2 FROM tab2
----
-3886

skipif mysql # not compatible
query I rowsort label-3094
SELECT COUNT ( * ) * CAST ( - 0 AS INTEGER ) + MAX ( DISTINCT + + col2 ) * - MAX ( ( + 67 ) ) AS col2 FROM tab2
----
-3886

query I rowsort
SELECT - col2 + - ( + - col2 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3096
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= CAST( - + CAST( 68 AS SIGNED ) AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3096
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= CAST ( - + CAST ( 68 AS INTEGER ) AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3097
SELECT DISTINCT + 42 / ( 83 ) + - col2 * + - col1 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT + 42 / ( 83 ) + - col2 * + - col1 / CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT DISTINCT - + 93 FROM tab2 WHERE CAST( + col2 AS SIGNED ) = + + col0 + - col2
----
-93

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT - + 93 FROM tab2 WHERE CAST ( + col2 AS INTEGER ) = + + col0 + - col2
----
-93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > - 71
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + 60 ) * + col1 AS col1 FROM tab1 AS cor0
----
2820
300
840

query I rowsort
SELECT DISTINCT + + 60 * - col1 AS col1 FROM tab0 cor0
----
-1260
-4860
-60

query I rowsort
SELECT DISTINCT + + 60 * col0 FROM tab2 AS cor0
----
2760
3840
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ALL + + MAX( DISTINCT - 19 ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL + + MAX ( DISTINCT - 19 ) FROM tab2 AS cor0
----
-19

query I rowsort
SELECT DISTINCT 0 * + + col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + + col1 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3106
SELECT - + 79 AS col1, MAX( ALL - col2 ) AS col2 FROM tab2 WHERE NOT - + 72 IS NULL
----
-79
-23

skipif mysql # not compatible
query II rowsort label-3106
SELECT - + 79 AS col1, MAX ( ALL - col2 ) AS col2 FROM tab2 WHERE NOT - + 72 IS NULL
----
-79
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3107
SELECT DISTINCT col0 AS col1, - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3107
SELECT DISTINCT col0 AS col1, - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT DISTINCT MIN( ALL - 28 ) / + COUNT( 34 ) FROM tab2 WHERE - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT MIN ( ALL - 28 ) / + COUNT ( 34 ) FROM tab2 WHERE - + col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT - 94 * 16 DIV - - col1 FROM tab2
----
-19
-22
-29

skipif mysql # not compatible
query I rowsort label-3109
SELECT - 94 * 16 / - - col1 FROM tab2
----
-19
-22
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3110
SELECT - 15 AS col2, 31 - COUNT( * ) FROM tab1
----
-15
28

skipif mysql # not compatible
query II rowsort label-3110
SELECT - 15 AS col2, 31 - COUNT ( * ) FROM tab1
----
-15
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL - 2 + - - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL - 2 + - - COUNT ( * ) FROM tab1
----
1

query II rowsort
SELECT ( + - col0 ) AS col0, + col1 + + - col1 + + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 28 AND - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3114
SELECT 6 DIV + col1 * + 70 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3114
SELECT 6 / + col1 * + 70 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL - 19 + - 24 * - SUM( DISTINCT + 87 ) col1 FROM tab1
----
2069

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3115
SELECT ALL - 19 + - 24 * - SUM ( DISTINCT + 87 ) col1 FROM tab1
----
2069

query I rowsort
SELECT col0 + + col1 AS col1 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN 81 AND NULL
----
141
142
97

query I rowsort
SELECT DISTINCT + col1 + - 80 AS col2 FROM tab0 cor0
----
-59
-79
1

query I rowsort
SELECT + col0 * + - 13 FROM tab0 AS cor0
----
-1131
-1261
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3119
SELECT DISTINCT col1 + col2 - CAST( NULL AS SIGNED ) / col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT col1 + col2 - CAST ( NULL AS INTEGER ) / col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 76 col0, + 2 col0 FROM tab2
----
76
2
76
2
76
2

query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - ( col1 ) >= NULL
----

query I rowsort
SELECT col2 + + + 58 FROM tab0
----
105
157
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col0 + col1 + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT - + ( 29 ) + col1 + + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3125
SELECT - + ( 29 ) + col1 + + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 44 - - col0 AS col2 FROM tab2
----
108
119
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3127
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( * ) FROM tab0 WHERE NOT col2 NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab0 WHERE NOT col2 NOT IN ( + col2 )
----
NULL

query I rowsort
SELECT col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 + + col2 / - 15 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + ( col2 ) AS col2 FROM tab0
----
196
62
97

query I rowsort
SELECT + 76 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
76
76
76

query I rowsort
SELECT ALL + col1 + 67 * col1 FROM tab0
----
1428
5508
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL 35 + COUNT( * ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL 35 + COUNT ( * ) FROM tab0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3135
SELECT ALL COUNT( * ) DIV + 10 + - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL COUNT ( * ) / + 10 + - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT COUNT( * ) FROM tab0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT COUNT ( * ) FROM tab0 WHERE + col2 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + 56 < NULL
----

query I rowsort
SELECT col0 - 90 * col0 AS col0 FROM tab0
----
-1335
-7743
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT + COUNT( DISTINCT - 90 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3139
SELECT + COUNT ( DISTINCT - 90 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL + MAX( ALL - 48 ) FROM tab0 WHERE NOT - col2 + + col0 * - col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + MAX ( ALL - 48 ) FROM tab0 WHERE NOT - col2 + + col0 * - col0 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT col2 * + col0 FROM tab0 WHERE NOT col1 <> col1
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <> ( NULL )
----
0

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab1 WHERE NOT + 60 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT COUNT( * ) + 45 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-3145
SELECT COUNT ( * ) + 45 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT SUM( ALL col2 ) + MAX( - 75 + col2 ) AS col1 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-3146
SELECT SUM ( ALL col2 ) + MAX ( - 75 + col2 ) AS col1 FROM tab0
----
180

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - col2 BETWEEN - 34 AND ( ( ( - col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT 50 + COUNT( * ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-3148
SELECT 50 + COUNT ( * ) FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT 19 + COUNT( * ) * + 51 AS col2 FROM tab0
----
172

skipif mysql # not compatible
query I rowsort label-3149
SELECT 19 + COUNT ( * ) * + 51 AS col2 FROM tab0
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT ALL - 53 DIV 52 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - 53 / 52 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 0 * + col1 + 50 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - 57 AS col0 FROM tab0 AS cor0
----
-104
-156
-67

query I rowsort
SELECT ALL - col0 - - 17 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 * + col1 )
----

query I rowsort
SELECT 33 FROM tab0 cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT 65 + - ( 68 + + ( - col2 ) * CAST( NULL AS SIGNED ) ) col0 FROM tab0 WHERE 10 - 28 < + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3156
SELECT 65 + - ( 68 + + ( - col2 ) * CAST ( NULL AS INTEGER ) ) col0 FROM tab0 WHERE 10 - 28 < + col1
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 - + ( - 93 ) AS col1 FROM tab0 AS cor0
----
103
140
192

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - col0 + ( + 46 )
----

query I rowsort
SELECT 69 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1242
3149
3955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 74 NOT IN ( - CAST( col0 AS SIGNED ) * + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 74 NOT IN ( - CAST ( col0 AS INTEGER ) * + 70 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + - col2 col0 FROM tab1 AS cor0
----
-24
13
4

query I rowsort
SELECT 92 + - col0 AS col1 FROM tab2
----
17
28
46

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3164
SELECT - COUNT( * ) * + - CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT - COUNT ( * ) * + - CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 / + col2 + - 80 < NULL
----

query I rowsort
SELECT DISTINCT 10 + col2 + col2 AS col0 FROM tab0
----
104
208
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT COUNT( + col1 ) + SUM( col0 + + col1 ) AS col0 FROM tab0
----
305

skipif mysql # not compatible
query I rowsort label-3167
SELECT COUNT ( + col1 ) + SUM ( col0 + + col1 ) AS col0 FROM tab0
----
305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col1 col0 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * + col0 col2 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT + CAST( col1 AS SIGNED ) * 47 FROM tab2
----
2397
3149
3619

skipif mysql # not compatible
query I rowsort label-3170
SELECT + CAST ( col1 AS INTEGER ) * 47 FROM tab2
----
2397
3149
3619

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT ( 15 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL + SUM( ALL + 67 ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL + SUM ( ALL + 67 ) FROM tab2
----
201

query I rowsort
SELECT ( - 97 ) * - col0 AS col2 FROM tab2
----
4462
6208
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT + 53 * + MAX( ALL col2 ) col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) + 62 / - col1 BETWEEN ( - 15 * - 3 ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3174
SELECT + 53 * + MAX ( ALL col2 ) col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) + 62 / - col1 BETWEEN ( - 15 * - 3 ) AND NULL
----
NULL

query I rowsort
SELECT + 23 * + col1 AS col1 FROM tab0 AS cor0
----
1863
23
483

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 48 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 48 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 17 * + + col0 col1 FROM tab0 AS cor0
----
1479
1649
255

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - MAX( ALL - - 28 ) AS col2 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-3178
SELECT - MAX ( ALL - - 28 ) AS col2 FROM tab1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3179
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-3179
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + + 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL <> ( + 67 * col1 )
----

query I rowsort
SELECT + col0 / + ( col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, - 68 * + col2 col2 FROM tab2 AS cor0
----
-46
-1564
-64
-2720
-75
-3944

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + col2 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT 62 * + 89 AS col1 FROM tab2 AS cor0
----
5518
5518
5518

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT + - MAX( col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3186
SELECT + - MAX ( col2 ) FROM tab0 AS cor0
----
-99

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 50 - + col2 - col1 * col0 ) < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT - MAX( ALL - col1 ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3189
SELECT - MAX ( ALL - col1 ) AS col1 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL MAX( + 16 ) AS col1 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL MAX ( + 16 ) AS col1 FROM tab1 AS cor0
----
16

query II rowsort
SELECT DISTINCT + - 39 AS col1, col1 FROM tab1 cor0
----
-39
14
-39
47
-39
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT 70 * MAX( - - col2 ) FROM tab1
----
6720

skipif mysql # not compatible
query I rowsort label-3192
SELECT 70 * MAX ( - - col2 ) FROM tab1
----
6720

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL >= + 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT DISTINCT - col0 + + col0 + + - col0 + - col0 DIV + 61 FROM tab1
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - col0 + + col0 + + - col0 + - col0 / + 61 FROM tab1
----
-51
-86
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT - col2 = + col2 + + 1 * col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT - col2 = + col2 + + 1 * col2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + - col2 + ( col0 ) / - 26 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col1 AND + 16
----

query III rowsort
SELECT * FROM tab1 WHERE ( + + col2 + - - 22 ) IN ( 45 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 > ( NULL )
----

query I rowsort
SELECT - 75 * ( 39 ) AS col1 FROM tab1 WHERE 85 * + + col2 * + 20 IS NOT NULL
----
-2925
-2925
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( - ( - col2 ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( - ( - col2 ) ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE + col0 + - - 42 - - 84 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE + col0 + - - 42 - - 84 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT col2 / + col0 + - - CAST( NULL AS SIGNED ) * + ( 22 ) - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT col2 / + col0 + - - CAST ( NULL AS INTEGER ) * + ( 22 ) - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / + 57 col2 FROM tab0 AS cor0 WHERE NULL < + col0
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 60 ) < - ( + col1 )
----

query I rowsort
SELECT 7 + 33 FROM tab1
----
40
40
40

query I rowsort
SELECT ( - 93 ) + - 22 * + col2 FROM tab1
----
-1391
-1589
-2205

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT + - COUNT( * ) AS col2, - 20 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
-17

skipif mysql # not compatible
query II rowsort label-3208
SELECT + - COUNT ( * ) AS col2, - 20 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
-17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 + + col0 + - 64 - - - 33 + col1 / + 45 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT SUM( col1 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3210
SELECT SUM ( col1 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
198

query I rowsort
SELECT DISTINCT - + 64 - + col1 + - 47 * col0 AS col2 FROM tab2 AS cor0
----
-2277
-3149
-3656

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 IN ( + col0 )
----

query II rowsort
SELECT ALL + col2 AS col2, 24 * 26 FROM tab1 AS cor0
----
59
624
68
624
96
624

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT + - MAX( + + 43 ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3214
SELECT + - MAX ( + + 43 ) FROM tab0 AS cor0
----
-43

query I rowsort
SELECT DISTINCT 60 * - + 38 FROM tab0 AS cor0
----
-2280

query I rowsort
SELECT DISTINCT col0 * - 92 AS col1 FROM tab1
----
-4692
-7820
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT - SUM( DISTINCT col0 ) * 94 FROM tab2
----
-17390

skipif mysql # not compatible
query I rowsort label-3217
SELECT - SUM ( DISTINCT col0 ) * 94 FROM tab2
----
-17390

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT + COUNT( * ) * - ( + - COUNT( 2 ) ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3218
SELECT + COUNT ( * ) * - ( + - COUNT ( 2 ) ) AS col2 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT DISTINCT COUNT( * ) col1, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3219
SELECT DISTINCT COUNT ( * ) col1, - COUNT ( * ) FROM tab1
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT + col1 DIV + 32 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3220
SELECT + col1 / + 32 FROM tab2
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + - SUM( DISTINCT - col0 ) * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-3221
SELECT + - SUM ( DISTINCT - col0 ) * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3222
SELECT - 38 DIV + COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3222
SELECT - 38 / + COUNT ( * ) FROM tab2 AS cor0
----
-12

query II rowsort
SELECT DISTINCT - ( + - col2 ), 10 * + col1 AS col0 FROM tab2 AS cor0
----
23
510
40
770
58
670

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT DISTINCT + - col2 * CAST( NULL AS SIGNED ) + + col0 - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + 1 + + col1
----

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT + - col2 * CAST ( NULL AS INTEGER ) + + col0 - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + 1 + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 * - col1 * + 13 * - col2 NOT BETWEEN - 1 AND - col2 + 29 * + 91
----

query I rowsort
SELECT + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * col2 * - col1 * + col2 AND + + 62
----

query I rowsort
SELECT + col1 + - - col0 AS col0 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3229
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + - + MAX( ALL - + col0 ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + - + MAX ( ALL - + col0 ) AS col1 FROM tab2
----
49

query I rowsort
SELECT 78 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - - 42 ) + ( ( + col0 ) ) AS col2 FROM tab2
----
106
117
88

query I rowsort
SELECT DISTINCT col0 + + - 4 AS col2 FROM tab1
----
47
81
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL - CAST( + 41 AS SIGNED ) + + 87 + col2 AS col0 FROM tab0 AS cor0
----
145
56
93

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL - CAST ( + 41 AS INTEGER ) + + 87 + col2 AS col0 FROM tab0 AS cor0
----
145
56
93

query I rowsort
SELECT ALL + 30 + + col1 FROM tab0 AS cor0
----
111
31
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 63 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 21 + - + col2 FROM tab1 AS cor0
----
-38
-47
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT DISTINCT + col2 + col1 FROM tab0 AS cor0 WHERE NOT ( - 34 * CAST( col1 AS SIGNED ) ) >= - col1 + + - col0 * - col0 - - col0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT + col2 + col1 FROM tab0 AS cor0 WHERE NOT ( - 34 * CAST ( col1 AS INTEGER ) ) >= - col1 + + - col0 * - col0 - - col0
----
100
128
31

query I rowsort
SELECT DISTINCT - + 88 AS col2 FROM tab0 cor0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT ALL 19 DIV + col2 + - + ( 77 ) FROM tab2
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL 19 / + col2 + - + ( 77 ) FROM tab2
----
-77
-77
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT DISTINCT - SUM( CAST( NULL AS SIGNED ) ) * - + MAX( ALL + col0 ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3240
SELECT DISTINCT - SUM ( CAST ( NULL AS INTEGER ) ) * - + MAX ( ALL + col0 ) col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 32 + + 28 AS col0 FROM tab0
----
60
60
60

query I rowsort
SELECT 76 - + 98 FROM tab1
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT DISTINCT 16 + - + COUNT( * ) * - 10 AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT 16 + - + COUNT ( * ) * - 10 AS col1 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT + 89 * - - CAST( NULL AS SIGNED ) * + - col2 + + col2 - - + 31 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT + 89 * - - CAST ( NULL AS INTEGER ) * + - col2 + + col2 - - + 31 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 97 + + + ( + - col0 ) FROM tab2 cor0
----
-143
-161
-172

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 6 / col0 NOT IN ( + col2 + + 7, - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3247
SELECT DISTINCT - AVG ( ALL - CAST( NULL AS SIGNED ) ) * - 41 + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) * - 41 + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT - + ( + col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT - ( + col2 ) * + + 51 AS col1, 33 FROM tab0
----
-2397
33
-5049
33
-510
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3250
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col2 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3252
SELECT ALL + 90 * - + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3252
SELECT ALL + 90 * - + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL SUM( - ( + col2 ) ) col2 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3253
SELECT ALL SUM ( - ( + col2 ) ) col2 FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 40 col2 FROM tab0
----
-1880
-3960
-400

query I rowsort
SELECT - 35 * - 76 FROM tab1
----
2660
2660
2660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3256
SELECT DISTINCT - - COUNT( * ) DIV - 98 FROM tab0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT - - COUNT ( * ) / - 98 FROM tab0 WHERE NOT NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT - ( - CAST( + + 62 AS SIGNED ) ) FROM tab1
----
62
62
62

skipif mysql # not compatible
query I rowsort label-3257
SELECT - ( - CAST ( + + 62 AS INTEGER ) ) FROM tab1
----
62
62
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - col0 + - col1
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE + 11 + + 88 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col1 AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT - COUNT( * ) * ( - SUM( ALL - col2 ) ) AS col0 FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT - COUNT ( * ) * ( - SUM ( ALL - col2 ) ) AS col0 FROM tab2 AS cor0
----
-363

query I rowsort
SELECT ALL - col2 * col2 * - col0 FROM tab1
----
295885
420784
470016

query II rowsort
SELECT col0 AS col1, col0 AS col1 FROM tab0
----
15
15
87
87
97
97

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON + + 80 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + COUNT( DISTINCT - col0 ) + - 19 AS col1 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-3265
SELECT + COUNT ( DISTINCT - col0 ) + - 19 AS col1 FROM tab1
----
-16

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab0 AS cor0 WHERE NOT 37 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 39
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 30 + - 69 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3269
SELECT DISTINCT - - 19 AS col2, - SUM( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
19
121

skipif mysql # not compatible
query II rowsort label-3269
SELECT DISTINCT - - 19 AS col2, - SUM ( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
19
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3270
SELECT 61 + - col1 FROM tab0 cor0 WHERE 65 / - ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3270
SELECT 61 + - col1 FROM tab0 cor0 WHERE 65 / - ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3271
SELECT - - 71 AS col1, 2 + COUNT( * ) FROM tab2 AS cor0
----
71
5

skipif mysql # not compatible
query II rowsort label-3271
SELECT - - 71 AS col1, 2 + COUNT ( * ) FROM tab2 AS cor0
----
71
5

query I rowsort
SELECT - 95 AS col0 FROM tab0 WHERE ( + col0 + col0 IS NOT NULL )
----
-95
-95
-95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 43 IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3274
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3274
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3275
SELECT ALL CAST( NULL AS DECIMAL ) * + + 10 + - col2 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL CAST ( NULL AS REAL ) * + + 10 + - col2 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL + 93 * SUM( + + col1 ) + - COUNT( * ) FROM tab0 AS cor0
----
9576

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + 93 * SUM ( + + col1 ) + - COUNT ( * ) FROM tab0 AS cor0
----
9576

query I rowsort
SELECT - - col0 + - ( 50 ) FROM tab2 AS cor0
----
-4
14
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT CAST( NULL AS SIGNED ) + + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT CAST ( NULL AS INTEGER ) + + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL COUNT( - col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3279
SELECT ALL COUNT ( - col2 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT - SUM( ( - col2 ) ) + 42 * + + 16 AS col2 FROM tab1
----
895

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - SUM ( ( - col2 ) ) + 42 * + + 16 AS col2 FROM tab1
----
895

query I rowsort
SELECT ALL - 52 + - col1 AS col2 FROM tab0
----
-133
-53
-73

query I rowsort
SELECT ALL + col2 + - - col1 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE NOT + col1 * 29 + + col2 * + col0 IS NULL
----
1
21
81

query II rowsort
SELECT DISTINCT + + col2, + col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT col0 * + - 33 AS col0 FROM tab0 AS cor0
----
-2871
-3201
-495

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3286
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - CAST( NULL AS DECIMAL ) * - 37 AND + col2
----

skipif mysql # not compatible
query III rowsort label-3286
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - CAST ( NULL AS REAL ) * - 37 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL + col2 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) >= - + 48
----

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + col2 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) >= - + 48
----

query II rowsort
SELECT col2 AS col1, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 * col1 AS col2 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT ALL col2 * + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT SUM( DISTINCT - 82 ) FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3291
SELECT SUM ( DISTINCT - 82 ) FROM tab0 AS cor0
----
-82

query I rowsort
SELECT DISTINCT - 40 * + col1 FROM tab0 AS cor0
----
-3240
-40
-840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3293
SELECT DISTINCT CAST( NULL AS DECIMAL ) * MAX( - - 2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT CAST ( NULL AS REAL ) * MAX ( - - 2 ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3294
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3295
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN - col2 AND + - CAST( col2 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN - col2 AND + - CAST ( col2 AS INTEGER )
----
0

query II rowsort
SELECT + - col0 AS col0, + ( col2 ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT ALL CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT COUNT( * ) * - 99 AS col2 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-3298
SELECT COUNT ( * ) * - 99 AS col2 FROM tab0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + - ( COUNT( * ) ) * + 47 FROM tab2 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-3299
SELECT + - ( COUNT ( * ) ) * + 47 FROM tab2 cor0
----
-141

query I rowsort
SELECT + 11 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + COUNT( * ) + - SUM( DISTINCT + col0 ) FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + COUNT ( * ) + - SUM ( DISTINCT + col0 ) FROM tab1
----
-224

query I rowsort
SELECT ALL col1 + - ( - + ( + 27 ) ) FROM tab0
----
108
28
48

query I rowsort
SELECT ALL + col0 + + 53 FROM tab0
----
140
150
68

query I rowsort
SELECT ALL ( col1 ) + + - col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3305
SELECT ALL 3 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL 3 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + - 75 * - col0 FROM tab0 cor0
----
1125
6525
7275

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + 61
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND + 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL - MIN( ALL 20 ) AS col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - MIN ( ALL 20 ) AS col0 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL + - 32 + + COUNT( * ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + - 32 + + COUNT ( * ) FROM tab0 AS cor0
----
-29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 7 IS NOT NULL
----

query I rowsort
SELECT + ( + 30 ) + + 97 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
31
59
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3313
SELECT ALL + 44 * - + 88 * col2 + - CAST( NULL AS SIGNED ) / 62 AS col2 FROM tab1 AS cor0 WHERE NOT 0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL + 44 * - + 88 * col2 + - CAST ( NULL AS INTEGER ) / 62 AS col2 FROM tab1 AS cor0 WHERE NOT 0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT col0 DIV + col1 + col0 * - - col1 * - 69 AS col1 FROM tab1
----
-29308
-295112
-49263

skipif mysql # not compatible
query I rowsort label-3314
SELECT col0 / + col1 + col0 * - - col1 * - 69 AS col1 FROM tab1
----
-29308
-295112
-49263

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT ALL + COUNT( * ) DIV - 64 DIV COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL + COUNT ( * ) / - 64 / COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 + + ( - col1 ) AS col2 FROM tab2 WHERE - col0 IN ( - + col0, + col0 )
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT - 23 * + + COUNT( * ) + 84 AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3317
SELECT - 23 * + + COUNT ( * ) + 84 AS col1 FROM tab2
----
15

query I rowsort
SELECT DISTINCT + 14 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 / + col1 + col0 = NULL
----

query I rowsort
SELECT + col2 * - 36 + - + 43 AS col1 FROM tab2
----
-1483
-2131
-871

query I rowsort
SELECT ALL ( 71 ) + - + ( - - col2 ) * + + ( col1 ) FROM tab0
----
-139
-28
-3736

query II rowsort
SELECT + col2 AS col2, 50 FROM tab1 AS cor0
----
59
50
68
50
96
50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 19 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT + COUNT( - + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT + COUNT ( - + col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT col2 * - + col2 - + col0 * - col2 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT col2 * - + col2 - + col0 * - col2 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT COUNT( * ) + + SUM( - col2 ) * - 74 AS col0 FROM tab1
----
16505

skipif mysql # not compatible
query I rowsort label-3326
SELECT COUNT ( * ) + + SUM ( - col2 ) * - 74 AS col0 FROM tab1
----
16505

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3327
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( ( + + ( - col2 ) ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3327
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( ( + + ( - col2 ) ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3328
SELECT ALL - ( + CAST( NULL AS SIGNED ) ), - COUNT( * ) DIV - 23 AS col2 FROM tab2 cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3328
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ), - COUNT ( * ) / - 23 AS col2 FROM tab2 cor0
----
NULL
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 20 * + 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT + - COUNT( ALL 66 ) * - 95 col0 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3330
SELECT DISTINCT + - COUNT ( ALL 66 ) * - 95 col0 FROM tab2 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT - MIN( ALL + col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3331
SELECT - MIN ( ALL + col2 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT + ( - + 15 ) FROM tab1
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT col2 DIV - 94 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3333
SELECT col2 / - 94 FROM tab0
----
-1
0
0

query II rowsort
SELECT + 74 AS col0, col1 FROM tab1
----
74
14
74
47
74
5

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT - 0 <= 55
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3338
SELECT 91 * 18 * + - col0 DIV + + col0 FROM tab2 AS cor0
----
-1638
-1638
-1638

skipif mysql # not compatible
query I rowsort label-3338
SELECT 91 * 18 * + - col0 / + + col0 FROM tab2 AS cor0
----
-1638
-1638
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT - - SUM( ALL + + 68 ) AS col2 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3339
SELECT - - SUM ( ALL + + 68 ) AS col2 FROM tab2 AS cor0
----
204

query I rowsort
SELECT col2 + - + ( + + 70 ) AS col1 FROM tab0
----
-23
-60
29

query I rowsort
SELECT + 94 + - + col0 + - col1 FROM tab0
----
-14
-2
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT ALL - col2 + col0 DIV col2 AS col2 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL - col2 + col0 / col2 AS col2 FROM tab1
----
-58
-67
-96

query III rowsort
SELECT * FROM tab2 WHERE + - 9 BETWEEN + 32 * + col0 / 50 * - col2 + - + col2 + + - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + 51 AS col2 FROM tab0 AS cor0
----
150
61
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT ALL col2 DIV - + 92 * - col2 FROM tab2 AS cor0 WHERE NOT ( NOT + - col0 < col1 - - + col2 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL col2 / - + 92 * - col2 FROM tab2 AS cor0 WHERE NOT ( NOT + - col0 < col1 - - + col2 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT 33 * COUNT( * ) * + ( - 83 ) FROM tab1 AS cor0
----
-8217

skipif mysql # not compatible
query I rowsort label-3347
SELECT 33 * COUNT ( * ) * + ( - 83 ) FROM tab1 AS cor0
----
-8217

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT + + MIN( col0 ) * COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3348
SELECT + + MIN ( col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
45

query I rowsort
SELECT - col1 * - 10 FROM tab2 AS cor0
----
510
670
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT 49 * - + col2 AS col1 FROM tab0 cor0
----
-2303
-4851
-490

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + 5 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT COUNT( ALL col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT COUNT ( ALL col2 ) FROM tab1
----
3

query I rowsort
SELECT ALL + + 93 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT DISTINCT col0 DIV + - 52 + - - col2 FROM tab0
----
47
9
98

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT col0 / + - 52 + - - col2 FROM tab0
----
47
9
98

query I rowsort
SELECT ALL 48 * - col0 FROM tab0
----
-4176
-4656
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 WHERE NOT col2 + - col1 * + - 63 IS NULL
----
51
67
77

query I rowsort
SELECT ( + + 47 ) - + - col2 FROM tab1
----
106
115
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL - COUNT( ALL 55 ) - - 18 * - - SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
3579

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - COUNT ( ALL 55 ) - - 18 * - - SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
3579

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT - + 17 * + 8 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1224

skipif mysql # not compatible
query I rowsort label-3361
SELECT - + 17 * + 8 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1224

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT + 47 DIV - ( + 43 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3362
SELECT + 47 / - ( + 43 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 48 * + col1, col1 col0 FROM tab0 AS cor0
----
-1008
21
-3888
81
-48
1

query I rowsort
SELECT - - col2 + - + 13 FROM tab1 cor0 WHERE NOT ( - col2 ) + + col0 IS NULL
----
46
55
83

query II rowsort
SELECT ALL 30, - 89 AS col0 FROM tab0 AS cor0
----
30
-89
30
-89
30
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT ALL + col0 DIV - - 56 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + col0 / - - 56 FROM tab1 AS cor0
----
0
1
1

query II rowsort
SELECT DISTINCT - col2 AS col2, - 47 FROM tab2 AS cor0
----
-23
-47
-40
-47
-58
-47

query II rowsort
SELECT + col0 AS col2, + 38 + col1 AS col1 FROM tab1 AS cor0
----
51
52
85
43
91
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col2, - 13 AS col2 FROM tab2 AS cor0
----
46
-13
64
-13
75
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + + SUM( - + col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3370
SELECT + + SUM ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + col1 * + col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 26 ) >= ( NULL )
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col1 + - + col0 AS col2 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3375
SELECT - 11 / + - ( - - CAST( NULL AS DECIMAL ) ) AS col2, + col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3375
SELECT - 11 / + - ( - - CAST ( NULL AS REAL ) ) AS col2, + col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 40 NOT BETWEEN NULL AND - 91
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT + 66 * - CAST( NULL AS SIGNED ) - - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT + 66 * - CAST ( NULL AS INTEGER ) - - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL 71 + - - MIN( - col0 ) + + SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL 71 + - - MIN ( - col0 ) + + SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
46

query I rowsort
SELECT + ( + 94 ) FROM tab0 AS cor0 WHERE + 0 * - col1 IS NOT NULL
----
94
94
94

query I rowsort
SELECT col1 * + 4 + + + col0 FROM tab0 AS cor0
----
101
171
339

query I rowsort
SELECT - 79 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + ( col2 ) - col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col2 AS col1, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab1 cor0 WHERE 36 * + col0 > + 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT ALL + - 38 AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-38
3

skipif mysql # not compatible
query II rowsort label-3385
SELECT ALL + - 38 AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-38
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT - COUNT( * ) * + - MIN( DISTINCT - ( 92 ) ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - COUNT ( * ) * + - MIN ( DISTINCT - ( 92 ) ) FROM tab0
----
-276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * col0 col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL - col0 + + + col1 + - - col1 FROM tab1
----
-23
-75
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3389
SELECT - ( + COUNT( - col0 ) ) DIV + + COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3389
SELECT - ( + COUNT ( - col0 ) ) / + + COUNT ( * ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + - col0 * + + ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT DISTINCT 10 * - col0 * + CAST( col0 AS SIGNED ) col1 FROM tab1
----
-26010
-72250
-82810

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3391
SELECT DISTINCT 10 * - col0 * + CAST ( col0 AS INTEGER ) col1 FROM tab1
----
-26010
-72250
-82810

query I rowsort
SELECT DISTINCT - 13 + - 19 AS col0 FROM tab0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 * col2 + col0 col2 FROM tab0
----
2318
4948
577

query II rowsort
SELECT + ( col0 ), + ( 12 ) + + col0 FROM tab1
----
51
63
85
97
91
103

query I rowsort
SELECT DISTINCT 99 * - col0 + - col2 AS col1 FROM tab0
----
-1532
-8623
-9702

query I rowsort
SELECT - 29 AS col0 FROM tab1 WHERE NOT NULL <> NULL AND + col2 + - - 60 IS NULL
----

query I rowsort
SELECT + ( - 98 ) AS col0 FROM tab2
----
-98
-98
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3398
SELECT DISTINCT + COUNT( * ) DIV - 92 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + COUNT ( * ) / - 92 FROM tab2
----
0

query I rowsort
SELECT ALL + - 35 AS col2 FROM tab0 AS cor0
----
-35
-35
-35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT MAX( ALL - + 57 ) col2 FROM tab1 cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3402
SELECT DISTINCT MAX ( ALL - + 57 ) col2 FROM tab1 cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 BETWEEN - col0 AND ( - col2 ) * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT SUM( - 34 ) FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-3404
SELECT SUM ( - 34 ) FROM tab1
----
-102

query I rowsort
SELECT DISTINCT + - col0 - + - 80 + - 81 + + col0 + + 22 * col1 AS col1 FROM tab2 WHERE NOT 47 IS NULL
----
1121
1473
1693

query II rowsort
SELECT col1 AS col2, + col2 AS col1 FROM tab0
----
1
99
21
10
81
47

query II rowsort
SELECT 81 AS col0, col0 AS col0 FROM tab1
----
81
51
81
85
81
91

query III rowsort
SELECT * FROM tab2 WHERE NOT 32 / - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 41 ) col2, + ( + 89 ) FROM tab1
----
-41
89
-41
89
-41
89

query III rowsort
SELECT ALL * FROM tab0 WHERE + 23 / - col1 = + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3411
SELECT - 3 AS col2, 48 * - - CAST( NULL AS SIGNED ) FROM tab1
----
-3
NULL
-3
NULL
-3
NULL

skipif mysql # not compatible
query II rowsort label-3411
SELECT - 3 AS col2, 48 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
-3
NULL
-3
NULL
-3
NULL

query I rowsort
SELECT ALL ( + 45 ) FROM tab1
----
45
45
45

query I rowsort
SELECT + col2 * + ( + col0 ) FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT - + col1 + - CAST( + - ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-3414
SELECT - + col1 + - CAST ( + - ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT + - 65 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT - 89 + + + col2 + CAST( NULL AS SIGNED ) * - + col2 * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT - 89 + + + col2 + CAST ( NULL AS INTEGER ) * - + col2 * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( NOT ( NULL ) >= + 47 )
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( NOT ( NULL ) >= + 47 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT ALL - col1 DIV - 50 + - + col2 * - + ( - col0 ) AS col2 FROM tab2 cor0
----
-1057
-2559
-4349

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - col1 / - 50 + - + col2 * - + ( - col0 ) AS col2 FROM tab2 cor0
----
-1057
-2559
-4349

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + - - col1 = + + col1
----

query I rowsort
SELECT DISTINCT - col2 - + - col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - COUNT( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3421
SELECT - COUNT ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * 11 BETWEEN + - col0 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT + COUNT( col1 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3423
SELECT + COUNT ( col1 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3424
SELECT + - CAST( NULL AS SIGNED ) * + col2 + - + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT + - CAST ( NULL AS INTEGER ) * + col2 + - + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL 2 - + - COUNT( ( - col2 ) ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL 2 - + - COUNT ( ( - col2 ) ) FROM tab2 AS cor0
----
5

query I rowsort
SELECT ALL - 93 * - ( col0 ) AS col1 FROM tab1
----
4743
7905
8463

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 35, col2, + 28, - - 82, + - 22, - + col2 )
----

query I rowsort
SELECT col2 * - + ( + col2 ) - - col1 FROM tab0
----
-2128
-79
-9800

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT - SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT DISTINCT + + 39 AS col1 FROM tab1 AS cor0
----
39

query II rowsort
SELECT ALL 10 AS col2, + col1 AS col1 FROM tab0 AS cor0 WHERE col0 BETWEEN - col2 - - - col2 AND + - 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * - + 45 * - 41 col0 FROM tab0
----
178965
178965
178965

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT col1 * - col0 DIV + col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3433
SELECT col1 * - col0 / + col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT CAST( - col0 AS SIGNED ) * - - 33 AS col2 FROM tab2 cor0
----
-1518
-2112
-2475

skipif mysql # not compatible
query I rowsort label-3434
SELECT CAST ( - col0 AS INTEGER ) * - - 33 AS col2 FROM tab2 cor0
----
-1518
-2112
-2475

onlyif mysql # DIV for integer division: 
query I rowsort label-3435
SELECT - + col1 DIV 94 * - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3435
SELECT - + col1 / 94 * - col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - col1 FROM tab1 cor0 WHERE NOT col1 * - col0 + - col2 IS NULL
----
138
65
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3438
SELECT DISTINCT ( - ( + CAST( + COUNT( * ) AS SIGNED ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT ( - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 28 + - 70 * - 25 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT ALL + col2 DIV + ( - 24 ) FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + col2 / + ( - 24 ) FROM tab0
----
-1
-4
0

query I rowsort
SELECT - 98 + + 91 FROM tab1
----
-7
-7
-7

query I rowsort
SELECT DISTINCT - ( + 96 ) * col0 + 91 * col2 FROM tab0
----
-303
-7442
2837

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - col1 + - col0 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT DISTINCT 90 AS col2, COUNT( * ) FROM tab2 AS cor0
----
90
3

skipif mysql # not compatible
query II rowsort label-3444
SELECT DISTINCT 90 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
90
3

query II rowsort
SELECT DISTINCT + col1 AS col0, + 89 FROM tab1
----
14
89
47
89
5
89

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE + 69 * + + 17 + 57 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 14 col2 FROM tab0
----
1
73
83

query II rowsort
SELECT + - col0 + + col0 AS col1, 92 * + col1 FROM tab2 AS cor0
----
0
4692
0
6164
0
7084

query II rowsort
SELECT 11 + + col2 AS col2, col2 FROM tab1 AS cor0
----
107
96
70
59
79
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3450
SELECT + + 62 + + col1 + + col2 DIV col1 FROM tab2 AS cor0
----
113
129
139

skipif mysql # not compatible
query I rowsort label-3450
SELECT + + 62 + + col1 + + col2 / col1 FROM tab2 AS cor0
----
113
129
139

query I rowsort
SELECT ALL + + col2 + + col1 - + col1 * - col1 * + + col0 FROM tab2 cor0
----
119720
336800
379573

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE + col2 NOT IN ( - + col0 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT + 99 + + COUNT( * ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3453
SELECT + 99 + + COUNT ( * ) FROM tab2 AS cor0
----
102

query II rowsort
SELECT ALL ( + - col1 ), + col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 31 * - col2 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL + MIN( col1 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3456
SELECT ALL + MIN ( col1 ) col2 FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 WHERE - 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3458
SELECT - CAST( col2 AS SIGNED ) AS col1, col2 AS col0 FROM tab1
----
-59
59
-68
68
-96
96

skipif mysql # not compatible
query II rowsort label-3458
SELECT - CAST ( col2 AS INTEGER ) AS col1, col2 AS col0 FROM tab1
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * col2 col0 FROM tab1
----
4189
4828
6816

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 38 * + col0 * col2 AS col0 FROM tab1
----
186048
190570
235144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3462
SELECT + 29 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3462
SELECT + 29 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT - col2 * + col2 + + col0 + + - col1 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( + - col1 ) + + + col2 * col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
1109
2637
4417

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3465
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( 79 * - col0 / + - CAST( NULL AS SIGNED ), 66, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3465
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( 79 * - col0 / + - CAST ( NULL AS INTEGER ), 66, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT 71 + - - MIN( ALL col0 ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT 71 + - - MIN ( ALL col0 ) FROM tab2 AS cor0
----
117

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT - - col2 DIV ( col1 ) * + - col0 AS col2 FROM tab0 AS cor0
----
-9603
0
0

skipif mysql # not compatible
query I rowsort label-3468
SELECT - - col2 / ( col1 ) * + - col0 AS col2 FROM tab0 AS cor0
----
-9603
0
0

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - ( 51 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT + - MIN( ALL - 14 ) col2 FROM tab0 cor0 WHERE NOT 10 IS NOT NULL OR + + col1 * 9 * + 25 * 48 * + 46 + - col1 BETWEEN ( - 14 ) AND + col2 + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3470
SELECT + - MIN ( ALL - 14 ) col2 FROM tab0 cor0 WHERE NOT 10 IS NOT NULL OR + + col1 * 9 * + 25 * 48 * + 46 + - col1 BETWEEN ( - 14 ) AND + col2 + col2
----
NULL

query I rowsort
SELECT DISTINCT - 28 / - + col2 * - 84 AS col2 FROM tab1 AS cor0 WHERE 69 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( - + 17 + + 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT CAST( NULL AS SIGNED ) * - + 91 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT CAST ( NULL AS INTEGER ) * - + 91 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - MIN( ALL + - 50 ) AS col2 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-3474
SELECT - MIN ( ALL + - 50 ) AS col2 FROM tab0
----
50

query I rowsort
SELECT DISTINCT col0 + - - 48 FROM tab0
----
135
145
63

query III rowsort
SELECT ALL * FROM tab2 WHERE - 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 43 + + + 44 AS col0 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT col0 + + col1 + 38 FROM tab2
----
135
179
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL + - 40 * COUNT( * ) * - COUNT( * ) - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
3249

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + - 40 * COUNT ( * ) * - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
3249

query I rowsort
SELECT ALL - ( + 44 ) FROM tab1
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT 96 + 86 - COUNT( * ) FROM tab0
----
179

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT 96 + 86 - COUNT ( * ) FROM tab0
----
179

query I rowsort
SELECT DISTINCT col1 + + - 65 AS col0 FROM tab2 AS cor0
----
-14
12
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3483
SELECT - ( col0 ) - - - 90 col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
-105
NULL
-177
NULL
-187
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3483
SELECT - ( col0 ) - - - 90 col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
-105
NULL
-177
NULL
-187
NULL

query I rowsort
SELECT + col0 - col0 * col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT 58 - - col2 AS col1 FROM tab1 cor0
----
117
126
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + COUNT( * ) * + + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3486
SELECT + COUNT ( * ) * + + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT - COUNT( * ) * - - MIN( ALL + col1 ) * + - 66 FROM tab2
----
10098

skipif mysql # not compatible
query I rowsort label-3487
SELECT - COUNT ( * ) * - - MIN ( ALL + col1 ) * + - 66 FROM tab2
----
10098

query I rowsort
SELECT - 19 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT 66 * - col0 AS col1 FROM tab2
----
-3036
-4224
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT - + col1 * - col1 + - + ( - + CAST( NULL AS SIGNED ) ) * - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3491
SELECT - + col1 * - col1 + - + ( - + CAST ( NULL AS INTEGER ) ) * - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - + SUM( - - col0 ) AS col0 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3492
SELECT - + SUM ( - - col0 ) AS col0 FROM tab1 cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL - SUM( - ( col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - SUM ( - ( col0 ) ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3495
SELECT DISTINCT + col2, - col2 AS col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + - 24 = - - ( + col2 )
----

skipif mysql # not compatible
query II rowsort label-3495
SELECT DISTINCT + col2, - col2 AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + - 24 = - - ( + col2 )
----

query I rowsort
SELECT ALL - col2 * - col1 * + + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT - col2 * + + 83 FROM tab2 AS cor0
----
-1909
-3320
-4814

query I rowsort
SELECT ALL - col0 + - col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT ALL 77 AS col2, + MAX( ALL col1 ) col2 FROM tab2
----
77
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3499
SELECT ALL 77 AS col2, + MAX ( ALL col1 ) col2 FROM tab2
----
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT ALL CAST( NULL AS SIGNED ) + + 86 / - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL CAST ( NULL AS INTEGER ) + + 86 / - COUNT ( * ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT + col1 AS col1, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT - 64 FROM tab0 AS cor0 WHERE + col0 - 98 + + col0 IN ( - col2 * + col0 + - 12, + 90, + - col2 - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3503
SELECT DISTINCT COUNT( * ) col0, + 96 FROM tab0 AS cor0
----
3
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3503
SELECT DISTINCT COUNT ( * ) col0, + 96 FROM tab0 AS cor0
----
3
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT DISTINCT - col1 DIV + - 50 - - + 75 - - col0 + - + col0 * + ( - 12 ) AS col0 FROM tab2 cor0
----
1051
674
908

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT - col1 / + - 50 - - + 75 - - col0 + - + col0 * + ( - 12 ) AS col0 FROM tab2 cor0
----
1051
674
908

query I rowsort
SELECT + 59 - + col1 FROM tab1
----
12
45
54

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL NOT IN ( + - col1, 42, + 88 )
----

query I rowsort
SELECT + 35 + 86 + 65 AS col2 FROM tab1 AS cor0
----
186
186
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( + col2 ) AND + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( + col2 ) AND + col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT + ( - MAX( ALL col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3509
SELECT + ( - MAX ( ALL col1 ) ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ( - col0 ) * + - col2 AS col1 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT - MIN( DISTINCT + 86 ) AS col2 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT - MIN ( DISTINCT + 86 ) AS col2 FROM tab1
----
-86

query II rowsort
SELECT 66 AS col1, col1 * + col2 FROM tab1
----
66
1344
66
295
66
3196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3514
SELECT DISTINCT - col2 DIV - 27 FROM tab1
----
2
3

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT - col2 / - 27 FROM tab1
----
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL + - SUM( DISTINCT + col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + - SUM ( DISTINCT + col2 ) FROM tab2 cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3516
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3516
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL - 41 AS col2 FROM tab2 cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3518
SELECT DISTINCT - CAST( + - COUNT( ALL + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT - CAST ( + - COUNT ( ALL + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT 32 + + + 71 FROM tab1
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT DISTINCT + COUNT( * ) + - - 14 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + COUNT ( * ) + - - 14 FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3521
SELECT DISTINCT - 0 AS col2, COUNT( * ) * ( - - CAST( COUNT( * ) AS SIGNED ) ) FROM tab0 cor0
----
0
9

skipif mysql # not compatible
query II rowsort label-3521
SELECT DISTINCT - 0 AS col2, COUNT ( * ) * ( - - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0 cor0
----
0
9

query II rowsort
SELECT DISTINCT + col2, 90 FROM tab2 AS cor0
----
23
90
40
90
58
90

query I rowsort
SELECT - + ( 50 ) * + col1 AS col0 FROM tab1 AS cor0
----
-2350
-250
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT + ( - 5 ) DIV + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT + ( - 5 ) / + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT DISTINCT - 50, MAX( - + col0 ) AS col0 FROM tab1 AS cor0
----
-50
-51

skipif mysql # not compatible
query II rowsort label-3525
SELECT DISTINCT - 50, MAX ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-50
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT SUM( + col2 ) FROM tab0 WHERE NULL >= + + col2 + col0 * + col1 / - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT SUM ( + col2 ) FROM tab0 WHERE NULL >= + + col2 + col0 * + col1 / - + col2
----
NULL

query I rowsort
SELECT col1 * + + col0 AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT - MAX( DISTINCT 85 ) AS col2 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-3529
SELECT - MAX ( DISTINCT 85 ) AS col2 FROM tab2
----
-85

query I rowsort
SELECT + col0 + - col1 * - + 82 + + 92 FROM tab1 WHERE col2 NOT IN ( - col1 + - 81, + col1, + 72, col1, - + col1 * + col1 * col0 )
----
1291
4037
587

query I rowsort
SELECT ALL + 93 FROM tab0 WHERE - 74 + + 57 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT + + 64 + 49 * 36 DIV col2 FROM tab2 AS cor0
----
108
140
94

skipif mysql # not compatible
query I rowsort label-3532
SELECT + + 64 + 49 * 36 / col2 FROM tab2 AS cor0
----
108
140
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 58 + + 2 * + col1 col1 FROM tab2 AS cor0
----
206
267
276

query I rowsort
SELECT - col2 + + + 69 FROM tab2 AS cor0
----
11
29
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT + COUNT( * ) + 1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3535
SELECT + COUNT ( * ) + 1 FROM tab2 AS cor0
----
4

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT ALL 3 DIV col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3537
SELECT ALL 3 / col0 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT + + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3538
SELECT + + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + + 36 AS col2 FROM tab0 cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT - - SUM( + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT - - SUM ( + col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT COUNT( + - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3541
SELECT COUNT ( + - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT ALL + CAST( NULL AS SIGNED ) * + ( - - col2 ) - 23 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( - - col2 ) - 23 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - ( col2 ) FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - - 7 * + - col1 FROM tab1 AS cor0
----
-329
-35
-98

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT ALL col0 / + - col2 * - ( - CAST( NULL AS SIGNED ) ) * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL col0 / + - col2 * - ( - CAST ( NULL AS INTEGER ) ) * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 53 * - col0 FROM tab1
----
-2703
-4505
-4823

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT ALL - col0 DIV + col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - col0 / + col2 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT + col2 DIV - 37 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3550
SELECT + col2 / - 37 FROM tab2 cor0
----
-1
-1
0

query II rowsort
SELECT - col1 * + + col1, col0 FROM tab0 AS cor0
----
-1
97
-441
87
-6561
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT ALL - + ( - + col1 ) DIV col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3552
SELECT ALL - + ( - + col1 ) / col2 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3554
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + col2 AND - - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 41 / - + col1 * - 73
----

query I rowsort
SELECT DISTINCT + col2 * - + col0 * - 0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col2 + - col0 + 64 * - + 50 FROM tab1
----
-3155
-3223
-3226

onlyif mysql # DIV for integer division: 
query I rowsort label-3559
SELECT + col1 DIV + 15 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3559
SELECT + col1 / + 15 AS col0 FROM tab0
----
0
1
5

query I rowsort
SELECT + 61 * - col2 FROM tab1
----
-3599
-4148
-5856

query II rowsort
SELECT - col1 AS col0, + 71 FROM tab0
----
-1
71
-21
71
-81
71

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE - + 63 < NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col1 * + ( 11 ) FROM tab1
----
-103
-426
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68 col0, - col2 AS col2 FROM tab0
----
68
-10
68
-47
68
-99

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE 87 NOT IN ( - 41 )
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col0 col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT - - col2 - - col2 * col0 AS col0 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT DISTINCT CAST( NULL AS SIGNED ) * 26 - 98 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 26 - 98 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col1 ) + - col2 IS NOT NULL
----

query I rowsort
SELECT col1 + col0 - - col2 FROM tab2 cor0 WHERE NOT NULL <= + col2
----

query II rowsort
SELECT col0 * - + 45, - col2 AS col2 FROM tab1 AS cor0
----
-2295
-96
-3825
-59
-4095
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + col2 ) >= + - col2 * - - 0
----

query I rowsort
SELECT ALL - col0 + - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3574
SELECT DISTINCT + 49 * SUM( DISTINCT + - col0 ), - 93 AS col0 FROM tab2 AS cor0
----
-9065
-93

skipif mysql # not compatible
query II rowsort label-3574
SELECT DISTINCT + 49 * SUM ( DISTINCT + - col0 ), - 93 AS col0 FROM tab2 AS cor0
----
-9065
-93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3575
SELECT DISTINCT - col0 * col1 + col2 - - col2 + - CAST( NULL AS SIGNED ) * + 15 DIV + + col1, + col0 + + col1 + + col1 DIV - 45 AS col2 FROM tab2 AS cor0
----
NULL
140
NULL
141
NULL
96

skipif mysql # not compatible
query II rowsort label-3575
SELECT DISTINCT - col0 * col1 + col2 - - col2 + - CAST ( NULL AS INTEGER ) * + 15 / + + col1, + col0 + + col1 + + col1 / - 45 AS col2 FROM tab2 AS cor0
----
NULL
140
NULL
141
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT ALL col0 * + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL col0 * + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col0, + col1 - col0 AS col0 FROM tab1
----
59
-80
68
-44
96
-37

query I rowsort
SELECT DISTINCT col0 * + 94 AS col0 FROM tab0
----
1410
8178
9118

query I rowsort
SELECT + 52 * - ( + col0 ) FROM tab0
----
-4524
-5044
-780

query I rowsort
SELECT ALL + - 56 * - col0 * - 77 FROM tab0 WHERE NOT ( NOT - col1 * + col1 + + col1 + + 62 IS NOT NULL )
----
-375144
-418264
-64680

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT col1 = + col2 * - col1
----
51
85
91

query I rowsort
SELECT + 29 * 83 FROM tab0
----
2407
2407
2407

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - col1 <= ( 60 )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - col2 * 4 FROM tab1
----
-236
-272
-384

query I rowsort
SELECT 25 * col1 + + col1 FROM tab1
----
1222
130
364

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( 64 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) > - 85 + - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT 19 * MIN( col2 ) + + 65 FROM tab1 WHERE - col0 BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT 19 * MIN ( col2 ) + + 65 FROM tab1 WHERE - col0 BETWEEN NULL AND + col0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 21 ) < NULL
----

query I rowsort
SELECT ( - ( 30 ) ) * col0 AS col0 FROM tab0
----
-2610
-2910
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT + COUNT( ( col0 ) ) * 82 AS col0 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-3591
SELECT + COUNT ( ( col0 ) ) * 82 AS col0 FROM tab0
----
246

query I rowsort
SELECT 16 / + 51 + + 23 AS col1 FROM tab2 WHERE NOT ( + 67 ) / - col1 + + 81 * 31 NOT BETWEEN ( - 48 * + 72 ) AND ( 23 * - 89 )
----

query I rowsort
SELECT ALL + ( + 50 ) FROM tab2
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT 60 * COUNT( * ) + - ( 73 ) FROM tab2
----
107

skipif mysql # not compatible
query I rowsort label-3595
SELECT 60 * COUNT ( * ) + - ( 73 ) FROM tab2
----
107

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE - col2 * - col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3597
SELECT + 2 DIV COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT + 2 / COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 / col1 >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT - 92 DIV - col1 AS col1 FROM tab0
----
1
4
92

skipif mysql # not compatible
query I rowsort label-3599
SELECT - 92 / - col1 AS col1 FROM tab0
----
1
4
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3600
SELECT - ( - ( col1 ) ) DIV - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3600
SELECT - ( - ( col1 ) ) / - col0 FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL SUM( col2 ) + COUNT( * ) FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL SUM ( col2 ) + COUNT ( * ) FROM tab1
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( col0 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( col0 + col2 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT COUNT( * ) + + SUM( col0 ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-3604
SELECT COUNT ( * ) + + SUM ( col0 ) FROM tab1
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT - 37 * + col0 + - 9 DIV col0 AS col0 FROM tab0
----
-3219
-3589
-555

skipif mysql # not compatible
query I rowsort label-3605
SELECT - 37 * + col0 + - 9 / col0 AS col0 FROM tab0
----
-3219
-3589
-555

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 90 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 76 * col2 + ( ( - 60 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 21 / - col2 + - col1 NOT IN ( col0 + col2 )
----

query I rowsort
SELECT - col2 * 65 AS col2 FROM tab1 AS cor0
----
-3835
-4420
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT COUNT( DISTINCT 38 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3610
SELECT COUNT ( DISTINCT 38 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT 30 FROM tab1 AS cor0 CROSS JOIN tab0
----
30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( 80 ) > 5
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( 0 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3614
SELECT DISTINCT - COUNT( * ) DIV 33 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT - COUNT ( * ) / 33 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - ( ( col1 ) ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT 50 BETWEEN - col1 AND col2
----
-10
-47

query I rowsort
SELECT ALL - col1 * + 61 AS col2 FROM tab1 AS cor0
----
-2867
-305
-854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3618
SELECT ALL + CAST( ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + CAST ( ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3619
SELECT 87 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3619
SELECT 87 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT MAX( DISTINCT 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3620
SELECT MAX ( DISTINCT 72 ) FROM tab0 AS cor0
----
72

query I rowsort
SELECT + ( col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL + + COUNT( * ) * - 72 AS col0 FROM tab0 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + + COUNT ( * ) * - 72 AS col0 FROM tab0 cor0
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT DISTINCT - AVG ( DISTINCT + 65 ) FROM tab1 WHERE NULL BETWEEN ( + CAST( - col2 AS SIGNED ) + col2 ) AND ( col1 ) * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT - AVG ( DISTINCT + 65 ) FROM tab1 WHERE NULL BETWEEN ( + CAST ( - col2 AS INTEGER ) + col2 ) AND ( col1 ) * col2
----
NULL

query I rowsort
SELECT + 34 * 69 AS col2 FROM tab1
----
2346
2346
2346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 41 ) col1 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3627
SELECT ALL + CAST( - col0 AS SIGNED ) DIV - col0 FROM tab0 WHERE col2 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + CAST ( - col0 AS INTEGER ) / - col0 FROM tab0 WHERE col2 IS NOT NULL
----
1
1
1

query I rowsort
SELECT ALL col0 * + col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL + MAX( col1 ) + COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + MAX ( col1 ) + COUNT ( * ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT DISTINCT - COUNT( * ) * 88 col1 FROM tab1
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3630
SELECT DISTINCT - COUNT ( * ) * 88 col1 FROM tab1
----
-264

query I rowsort
SELECT ALL - col1 - - 58 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 69 * - col1 AS col1 FROM tab1
----
-3243
-345
-966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT CAST( NULL AS SIGNED ) / AVG ( DISTINCT + 14 ) / - MAX( ( 89 ) + - col0 ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT CAST ( NULL AS INTEGER ) / AVG ( DISTINCT + 14 ) / - MAX ( ( 89 ) + - col0 ) + COUNT ( * ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + 93 col2 FROM tab2
----
144
160
170

query I rowsort
SELECT 40 + + col2 AS col0 FROM tab2 AS cor0
----
63
80
98

query I rowsort
SELECT - - 47 + - col0 FROM tab2 AS cor0
----
-17
-28
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT 91 * - CAST( NULL AS SIGNED ) / + CAST( + 9 * - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT 91 * - CAST ( NULL AS INTEGER ) / + CAST ( + 9 * - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 71 * + col2 * - col0 AS col2 FROM tab0
----
-50055
-61770
-681813

query I rowsort
SELECT ALL 2 + + - 6 + - col0 FROM tab1
----
-55
-89
-95

query I rowsort
SELECT + 37 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT col0 - - 28 FROM tab1
----
113
119
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL COUNT( * ) + + 86 AS col1 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL COUNT ( * ) + + 86 AS col1 FROM tab2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT - ( CAST( - col1 AS SIGNED ) ) + + col0 AS col2 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-3643
SELECT - ( CAST ( - col1 AS INTEGER ) ) + + col0 AS col2 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 65 / col0 + - 12 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3645
SELECT * FROM tab1 cor0 WHERE 14 NOT BETWEEN ( + col1 + - CAST( NULL AS DECIMAL ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3645
SELECT * FROM tab1 cor0 WHERE 14 NOT BETWEEN ( + col1 + - CAST ( NULL AS REAL ) ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 WHERE + ( - col2 ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 WHERE + ( - col2 ) IS NOT NULL
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 - + - 30 * + 81 col2 FROM tab0 AS cor0
----
2406

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( - col2 * col2 * - 3 + col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3648
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( - col2 * col2 * - 3 + col2 ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3649
SELECT ALL col2 * ( + - col2 ) + - col0 - + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL col2 * ( + - col2 ) + - col0 - + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT col0 * CAST( + 53 AS SIGNED ) * + col2 AS col0 FROM tab0
----
37365
46110
508959

skipif mysql # not compatible
query I rowsort label-3650
SELECT col0 * CAST ( + 53 AS INTEGER ) * + col2 AS col0 FROM tab0
----
37365
46110
508959

query I rowsort
SELECT AVG ( DISTINCT - - col2 ) FROM tab1 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT + 87 * - 68 AS col0 FROM tab2
----
-5916
-5916
-5916

query I rowsort
SELECT DISTINCT - 71 - 18 FROM tab1 WHERE NULL IS NULL
----
-89

query I rowsort
SELECT col1 + 84 FROM tab0 WHERE col2 * - col1 BETWEEN NULL AND ( + col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT DISTINCT - col1 + - + CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT - col1 + - + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT + 54 * + ( + 41 ) * - col2 * + 40 FROM tab0
----
-4162320
-8767440
-885600

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( + 11 ) <= ( + ( - 57 ) )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 98 + 40 AS col2 FROM tab1 AS cor0 WHERE - ( + ( + ( 71 ) ) ) * - 13 - - col2 < + 59 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT + MAX( + + ( + - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3661
SELECT + MAX ( + + ( + - col1 ) ) FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + COUNT( * ) * - 91 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-3664
SELECT + COUNT ( * ) * - 91 FROM tab0
----
-273

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab0 cor0 WHERE NOT ( col1 + + + 0 - - col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL + SUM( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + SUM ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----
NULL

query I rowsort
SELECT - 27 * - + col2 * + 56 + + 76 AS col2 FROM tab1 AS cor0
----
102892
145228
89284

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3668
SELECT CAST( NULL AS DECIMAL ) * - 99 + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT CAST ( NULL AS REAL ) * - 99 + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----
NULL

query I rowsort
SELECT + 31 * + col1 AS col2 FROM tab0 WHERE NOT ( + - col0 + + - ( + col2 ) ) <= ( NULL )
----

query I rowsort
SELECT - ( ( - - col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 NOT IN ( - col0 - - col1 - 58 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - 44 + + col2 FROM tab1 WHERE NOT col2 < + + col1
----
20
66
71

query II rowsort
SELECT col2, - col0 + + - 31 FROM tab1
----
59
-116
68
-122
96
-82

query III rowsort
SELECT * FROM tab2 WHERE NULL > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT DISTINCT - 97 AS col0 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN col0 AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - 97 AS col0 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN col0 AND + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - col0 + + col1 + - + col2 FROM tab1 AS cor0
----
-31
31
70

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT - - col2 DIV + col2 + - 4 FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-3678
SELECT - - col2 / + col2 + - 4 FROM tab2 AS cor0
----
-3
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 IN ( 82 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 4 AS col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - col2 + + 55 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - col2 + + 55 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT DISTINCT COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + 79, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + 90 * COUNT( * ) - + 0 AS col1 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3686
SELECT + 90 * COUNT ( * ) - + 0 AS col1 FROM tab2 AS cor0
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT - col2 DIV + + col2 - 70 + + + 53 + + 21 + + + ( col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3687
SELECT - col2 / + + col2 - 70 + + + 53 + + 21 + + + ( col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT - 42 * - + 60 * ( + CAST( NULL AS SIGNED ) ) - 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT - 42 * - + 60 * ( + CAST ( NULL AS INTEGER ) ) - 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT col2 DIV - 97 - + 94 AS col0 FROM tab2 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-3689
SELECT col2 / - 97 - + 94 AS col0 FROM tab2 AS cor0
----
-94
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT col0 - col1 DIV + 4 AS col2 FROM tab1 AS cor0
----
48
80
84

skipif mysql # not compatible
query I rowsort label-3690
SELECT col0 - col1 / + 4 AS col2 FROM tab1 AS cor0
----
48
80
84

query I rowsort
SELECT ALL col1 * - col1 - + col1 * 17 FROM tab0 AS cor0
----
-18
-7938
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT - - MIN( - - 62 ) * COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3692
SELECT - - MIN ( - - 62 ) * COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT - 87 * + COUNT( * ) FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT - 87 * + COUNT ( * ) FROM tab2 AS cor0
----
-261

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT + CAST( NULL AS SIGNED ) - ( + 50 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT + CAST ( NULL AS INTEGER ) - ( + 50 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 41 AS col1 FROM tab2 WHERE - - col1 = - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 89 NOT IN ( - + col2 )
----

query I rowsort
SELECT 60 - col0 FROM tab1
----
-25
-31
9

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT + + 99 * + 60 < - col2 / col2 * + col2 - col0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT ALL - 76 DIV - 55 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - 76 / - 55 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT MAX( ALL + ( + ( + col0 ) ) ) * 93 FROM tab1
----
8463

skipif mysql # not compatible
query I rowsort label-3701
SELECT MAX ( ALL + ( + ( + col0 ) ) ) * 93 FROM tab1
----
8463

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT - COUNT( + 37 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT - COUNT ( + 37 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT ALL + col2 col2 FROM tab2 WHERE col0 + - - 80 * + - col1 BETWEEN - - 19 * - + col0 + + - CAST( col0 AS SIGNED ) + + col1 * + 2 AND col0 * + col1 + - 92 / CAST( 12 * - 26 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3703
SELECT ALL + col2 col2 FROM tab2 WHERE col0 + - - 80 * + - col1 BETWEEN - - 19 * - + col0 + + - CAST ( col0 AS INTEGER ) + + col1 * + 2 AND col0 * + col1 + - 92 / CAST ( 12 * - 26 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 + + col1 * col2 IN ( + CAST( NULL AS SIGNED ) / + - col0 + col2 )
----

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 + + col1 * col2 IN ( + CAST ( NULL AS INTEGER ) / + - col0 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - 28 * + col0 NOT IN ( - 26 )
----

skipif mysql # not compatible
query I rowsort label-3706
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - 28 * + col0 NOT IN ( - 26 )
----

query II rowsort
SELECT + 76, 27 AS col2 FROM tab2 AS cor0
----
76
27
76
27
76
27

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NULL NOT IN ( col0, + ( + - 41 ), - col0 + + col1 - + col2 * col2 * col0 )
----

query I rowsort
SELECT + 10 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( - col2 ) col1, - col0 * + col2 + + + 88 AS col0 FROM tab1 AS cor0
----
-59
-4927
-68
-6100
-96
-4808

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + MIN( DISTINCT - col1 ) * + 43 AS col0 FROM tab0 AS cor0
----
-3483

skipif mysql # not compatible
query I rowsort label-3711
SELECT + MIN ( DISTINCT - col1 ) * + 43 AS col0 FROM tab0 AS cor0
----
-3483

query I rowsort
SELECT + col1 * + + col0 AS col0 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-3713
SELECT COUNT( * ) * - + COUNT( * ) AS col0, COUNT( - 20 ) col1 FROM tab0 cor0
----
-9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3713
SELECT COUNT ( * ) * - + COUNT ( * ) AS col0, COUNT ( - 20 ) col1 FROM tab0 cor0
----
-9
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 68 * col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + - col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 75 + col0 col0 FROM tab2
----
144
179
208

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT COUNT( * ) + + 43 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT COUNT ( * ) + + 43 FROM tab2
----
46

query I rowsort
SELECT ALL col2 + - ( - col1 ) - - + col1 FROM tab1
----
124
162
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT ALL - ( - - MIN( DISTINCT + col1 ) ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL - ( - - MIN ( DISTINCT + col1 ) ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2

query II rowsort
SELECT + + col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 31
----
0

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 31
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
15
87
97

query I rowsort
SELECT ALL + 76 + col0 FROM tab2
----
122
140
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 * - 35 + + + col1 col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3725
SELECT ALL - CAST( NULL AS SIGNED ) - + + col2 AS col2, 2 FROM tab2 AS cor0
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
query II rowsort label-3725
SELECT ALL - CAST ( NULL AS INTEGER ) - + + col2 AS col2, 2 FROM tab2 AS cor0
----
NULL
2
NULL
2
NULL
2

query I rowsort
SELECT ALL - col2 - - ( - col2 ) AS col0 FROM tab2 cor0
----
-116
-46
-80

query I rowsort
SELECT ALL - + 19 * - + 12 * - col2 AS col1 FROM tab1 AS cor0
----
-13452
-15504
-21888

query I rowsort
SELECT DISTINCT + - 22 * + 75 AS col0 FROM tab1 AS cor0
----
-1650

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + 69 >= NULL
----

query I rowsort
SELECT ALL ( + - col0 ) * col1 + - col0 AS col2 FROM tab0
----
-1230
-1914
-194

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 IN ( - col2 * - + col2 + + + 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT - CAST( NULL AS SIGNED ) * + + col0 * + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT - CAST ( NULL AS INTEGER ) * + + col0 * + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 15 * - col0 FROM tab2
----
1125
690
960

query I rowsort
SELECT col1 * ( + 5 ) FROM tab2
----
255
335
385

query I rowsort
SELECT + col2 * + - col0 AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT - COUNT( - 33 ) * + + 70 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT - COUNT ( - 33 ) * + + 70 FROM tab1
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-3737
SELECT 77 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3737
SELECT 77 / + col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT COUNT( * ) AS col1 FROM tab0, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3738
SELECT COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
9

query II rowsort
SELECT 49 + - - col0, col0 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3741
SELECT ( + - MIN( - + 19 ) ) AS col2, - COUNT( * ) FROM tab0
----
19
-3

skipif mysql # not compatible
query II rowsort label-3741
SELECT ( + - MIN ( - + 19 ) ) AS col2, - COUNT ( * ) FROM tab0
----
19
-3

query II rowsort
SELECT col0 AS col2, + 5 AS col1 FROM tab1
----
51
5
85
5
91
5

query II rowsort
SELECT 77 AS col0, - 4 AS col2 FROM tab0
----
77
-4
77
-4
77
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE 77 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - 88 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 84 col1, + col1 AS col1 FROM tab0 cor0
----
84
1
84
21
84
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT DISTINCT - MIN( - col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT - MIN ( - col1 ) AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - - 82 AS col0 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT MIN( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT MIN ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT - CAST( + + 66 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-3750
SELECT - CAST ( + + 66 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL COUNT( * ) * - 79 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL COUNT ( * ) * - 79 FROM tab0 AS cor0
----
-237

query I rowsort
SELECT ALL col0 + - + 43 AS col0 FROM tab2 AS cor0
----
21
3
32

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( - col0 )
----

query I rowsort
SELECT col2 * - col1 * - 8 FROM tab1
----
10752
2360
25568

query III rowsort
SELECT * FROM tab0 WHERE + ( - col2 ) / + + col0 * - 56 + + 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 FROM tab0 WHERE NULL BETWEEN NULL AND ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - ( - + 95 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT + col2 DIV + col2 FROM tab0 WHERE - 41 + + - col2 * + + col0 * - - col0 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3759
SELECT + col2 / + col2 FROM tab0 WHERE - 41 + + - col2 * + + col0 * - - col0 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT ALL + COUNT( * ) + + 51 - 14 * + 3 * + 67 AS col0 FROM tab2
----
-2760

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL + COUNT ( * ) + + 51 - 14 * + 3 * + 67 AS col0 FROM tab2
----
-2760

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 25 ) <= NULL
----

query I rowsort
SELECT + - col0 + - - col1 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT - + col0 + + 76 AS col2 FROM tab2 AS cor0
----
1
12
30

query I rowsort
SELECT DISTINCT + col0 * - 81 AS col0 FROM tab1 AS cor0
----
-4131
-6885
-7371

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 46 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT ALL + col2 * col2 * + CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL + col2 * col2 * + CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col0, col0 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
46
-2116
64
-4096
75
-5625

query II rowsort
SELECT - 67, col0 FROM tab1 AS cor0
----
-67
51
-67
85
-67
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT DISTINCT + COUNT( * ) * + 6 - COUNT( * ) - - 22 * COUNT( * ) * 83 * + - 47 FROM tab0 AS cor0
----
-257451

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT + COUNT ( * ) * + 6 - COUNT ( * ) - - 22 * COUNT ( * ) * 83 * + - 47 FROM tab0 AS cor0
----
-257451

query I rowsort
SELECT ALL + 92 * - col1 * col1 + + col1 FROM tab0 AS cor0
----
-40551
-603531
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - col0 FROM tab0 AS cor0 WHERE ( + 43 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - col0 FROM tab0 AS cor0 WHERE ( + 43 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT - COUNT( * ) * 76 AS col1 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - COUNT ( * ) * 76 AS col1 FROM tab0 AS cor0
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3773
SELECT + col1 + - - 74 + + + col0 AS col0, col0 + - + col2 AS col1 FROM tab0 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + - - col2 ) >= NULL
----

skipif mysql # not compatible
query II rowsort label-3773
SELECT + col1 + - - 74 + + + col0 AS col0, col0 + - + col2 AS col1 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + - - col2 ) >= NULL
----

query II rowsort
SELECT ALL 87 AS col2, + col1 FROM tab2 AS cor0
----
87
51
87
67
87
77

query II rowsort
SELECT DISTINCT col2 * - 10 AS col1, + col1 + + col1 AS col0 FROM tab1
----
-590
10
-680
94
-960
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT COUNT( * ) * - COUNT( * ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3776
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) col0 FROM tab0
----
-9

query I rowsort
SELECT + 42 * 10 * - - col1 FROM tab1
----
19740
2100
5880

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 41 <= NULL
----

query II rowsort
SELECT + col1, 64 AS col0 FROM tab1 cor0
----
14
64
47
64
5
64

query II rowsort
SELECT - col2, - 22 AS col0 FROM tab1 AS cor0
----
-59
-22
-68
-22
-96
-22

query I rowsort
SELECT ALL + 97 * - col2 AS col2 FROM tab2 AS cor0
----
-2231
-3880
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT + + COUNT( * ) * - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3782
SELECT + + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col0, + 78 * - 79 - col2 AS col2 FROM tab0 AS cor0
----
-1
-6261
-21
-6172
-81
-6209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 AS col0, + col2 col1 FROM tab1 AS cor0
----
4
59
4
68
4
96

query II rowsort
SELECT ALL 38 * + - 40 + + col0 + + col0 + ( + - col1 ) AS col2, col2 - col2 AS col2 FROM tab1 AS cor0
----
-1355
0
-1385
0
-1432
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT ALL + 19 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL + 19 / - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-31

query I rowsort
SELECT DISTINCT col0 + - 5 + + col1 AS col0 FROM tab0
----
103
91
93

query I rowsort
SELECT 37 * - 95 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6e81219d32f9245fbf475700737a064d

query I rowsort
SELECT - 69 * - 90 FROM tab2 AS cor0
----
6210
6210
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ( - MAX( - - col0 ) ) col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3791
SELECT ( - MAX ( - - col0 ) ) col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL - MIN( col0 ) * + - COUNT( * ) * + 3 FROM tab2 cor0
----
414

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - MIN ( col0 ) * + - COUNT ( * ) * + 3 FROM tab2 cor0
----
414

query I rowsort
SELECT col0 + - col1 + col0 - - col1 AS col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3794
SELECT DISTINCT - ( - + 36 ) DIV COUNT( * ) col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3794
SELECT DISTINCT - ( - + 36 ) / COUNT ( * ) col2 FROM tab1 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT ALL - col0 DIV + - col0 + + ( - + 9 ) FROM tab2 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - col0 / + - col0 + + ( - + 9 ) FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL 77 FROM tab0 cor0 WHERE NOT - 66 BETWEEN - col0 * + 87 * + 6 AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE - - ( + 83 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 53 * - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT - - col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 66 ) AS col1 FROM tab2, tab1 AS cor0
----
66

query II rowsort
SELECT ALL 6 AS col1, 83 FROM tab2
----
6
83
6
83
6
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - 15 + + - COUNT( * ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3802
SELECT - 15 + + - COUNT ( * ) AS col1 FROM tab0
----
-18

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 IN ( + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * 5 * col1 + + - col2 col1 FROM tab0
----
1040
18988
396

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL + + COUNT( * ) FROM tab0 WHERE col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + + COUNT ( * ) FROM tab0 WHERE col1 = NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + 92 / - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT + col2 DIV + col2 col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3807
SELECT + col2 / + col2 col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 + - 94 AS col2 FROM tab2
----
-17
-27
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ALL + SUM( col0 ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + SUM ( col0 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
196

query I rowsort
SELECT ALL - - 53 * - - col0 FROM tab2 AS cor0
----
2438
3392
3975

query I rowsort
SELECT - 95 FROM tab0 AS cor0 WHERE NOT 54 BETWEEN + col0 AND + col0
----
-95
-95
-95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 80 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - ( ( + SUM( - col0 ) ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3813
SELECT - ( ( + SUM ( - col0 ) ) ) FROM tab1
----
227

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND 21 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL MAX( - + col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL MAX ( - + col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT - ( - + 13 ) AS col0 FROM tab2
----
13
13
13

query I rowsort
SELECT ALL - 73 * + col1 * - + 71 * + col0 * - + 18 FROM tab0
----
-113352210
-170448138
-9049518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT - 33 * - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT - 33 * - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + col2 * + col2 * + + col1 BETWEEN - col2 + + col0 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 / col0 + 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT + - COUNT( ALL + ( + - col1 ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3821
SELECT + - COUNT ( ALL + ( + - col1 ) ) AS col2 FROM tab2 cor0
----
-3

query II rowsort
SELECT ALL col0, 89 FROM tab0
----
15
89
87
89
97
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT 27 * - col2 + 32 DIV col2 FROM tab2
----
-1080
-1566
-620

skipif mysql # not compatible
query I rowsort label-3823
SELECT 27 * - col2 + 32 / col2 FROM tab2
----
-1080
-1566
-620

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 AS cor0 WHERE - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL - COUNT( * ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3825
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT ALL - + col2 + + 8 + + - 86 AS col2 FROM tab2 AS cor0
----
-101
-118
-136

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3827
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3827
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT DISTINCT - + ( - ( CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT - + ( - ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT + + SUM( ALL col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3829
SELECT + + SUM ( ALL col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT + col2 DIV + - col1 * - + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3830
SELECT + col2 / + - col1 * - + col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 36 col1, + col2 * + col2 AS col1 FROM tab2 AS cor0
----
36
1600
36
3364
36
529

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT - SUM( - 62 ) AS col0 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-3832
SELECT - SUM ( - 62 ) AS col0 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL COUNT( + col0 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3833
SELECT ALL COUNT ( + col0 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT 92 + COUNT( * ) AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT 92 + COUNT ( * ) AS col0 FROM tab0
----
95

query I rowsort
SELECT col2 * + 25 - + col2 FROM tab0
----
1128
2376
240

query I rowsort
SELECT - 6 - 74 FROM tab2
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT ALL + ( - MAX( - col0 ) ) + + 45 AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + ( - MAX ( - col0 ) ) + + 45 AS col0 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT ALL 26 + - 10 AS col0, + COUNT( * ) FROM tab1
----
16
3

skipif mysql # not compatible
query II rowsort label-3838
SELECT ALL 26 + - 10 AS col0, + COUNT ( * ) FROM tab1
----
16
3

query III rowsort
SELECT * FROM tab1 WHERE - - 95 >= + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + col0 IN ( col2, + col1 * + - col1, + - col2 )
----

query I rowsort
SELECT 99 + - 80 AS col2 FROM tab0 cor0
----
19
19
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT + COUNT( - col0 ) * - 89 + + - COUNT( * ) + 3 + + ( + ( - + COUNT( * ) ) ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT + COUNT ( - col0 ) * - 89 + + - COUNT ( * ) + 3 + + ( + ( - + COUNT ( * ) ) ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - col0 * + + col0 FROM tab1 cor0
----
249696
426275
563108

query I rowsort
SELECT + col2 * - + 36 * + 87 AS col0 FROM tab1 AS cor0
----
-184788
-212976
-300672

onlyif mysql # aggregate syntax: 
query II rowsort label-3845
SELECT DISTINCT ( COUNT( * ) ), - AVG ( DISTINCT col2 ) col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + - 39
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3845
SELECT DISTINCT ( COUNT ( * ) ), - AVG ( DISTINCT col2 ) col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + - 39
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT ALL + CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL + CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT + col0 AS col2, col2 + + 30 + - - col0 FROM tab2 AS cor0
----
46
99
64
134
75
163

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 75 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17, - col1 col1 FROM tab1 AS cor0
----
-17
-14
-17
-47
-17
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3850
SELECT ALL + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3850
SELECT ALL + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3852
SELECT ALL * FROM tab2 WHERE + col1 + - 4 + - col0 * - 31 / + 2 * + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3852
SELECT ALL * FROM tab2 WHERE + col1 + - 4 + - col0 * - 31 / + 2 * + CAST ( NULL AS INTEGER ) > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( + col1 ) * - 31 > + - col0 * ( - 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 98 + col2 AS col2 FROM tab2
----
121
138
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT ALL + col0 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL + col0 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT - ( col0 ), - col0 * - - col2 AS col2 FROM tab1 AS cor0
----
-51
-4896
-85
-5015
-91
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT DISTINCT + 8 + - col2 * col1 DIV - col0 FROM tab1 AS cor0
----
11
34
43

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT + 8 + - col2 * col1 / - col0 FROM tab1 AS cor0
----
11
34
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT ALL 38 + - 77 DIV - col1 FROM tab0 AS cor0
----
115
38
41

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL 38 + - 77 / - col1 FROM tab0 AS cor0
----
115
38
41

query II rowsort
SELECT ALL 22 * col2 AS col2, - 86 FROM tab2
----
1276
-86
506
-86
880
-86

query I rowsort
SELECT + + col1 AS col2 FROM tab2 WHERE ( NULL ) >= ( NULL )
----

query I rowsort
SELECT 74 * - 56 AS col1 FROM tab2
----
-4144
-4144
-4144

query I rowsort
SELECT + 23 * + - col1 AS col0 FROM tab2
----
-1173
-1541
-1771

onlyif mysql # DIV for integer division: 
query II rowsort label-3863
SELECT col0, + col2 DIV 83 * + col1 AS col1 FROM tab1
----
51
14
85
0
91
0

skipif mysql # not compatible
query II rowsort label-3863
SELECT col0, + col2 / 83 * + col1 AS col1 FROM tab1
----
51
14
85
0
91
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + 54 <> + 84
----

query I rowsort
SELECT - col0 * + col0 * - 86 AS col2 FROM tab1
----
223686
621350
712166

query I rowsort
SELECT + ( - - col0 ) * col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 56 + 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL MAX( + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL MAX ( + col0 ) AS col0 FROM tab2 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> - 46
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 79 + + col0 = - + 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * - + 8 AS col0 FROM tab2
----
-368
-512
-600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, + 1 FROM tab0
----
-15
1
-87
1
-97
1

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-1
-21
-81

query I rowsort
SELECT ALL - + 60 + + col1 AS col1 FROM tab0 AS cor0
----
-39
-59
21

query I rowsort
SELECT - col2 + col1 + + col0 + + col0 FROM tab1 AS cor0
----
116
161
20

query I rowsort
SELECT DISTINCT - - 46 AS col1 FROM tab1 cor0
----
46

query I rowsort
SELECT + - col2 + 74 AS col2 FROM tab1 AS cor0
----
-22
15
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL - - ( MAX( + - col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL - - ( MAX ( + - col2 ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3879
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * + - col2 * - col0 + - - 65 + + col0 + + + 81 * + col2 + - + 41 FROM tab2
----
-193792
-286653
-52025

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * + - col2 * - col0 + - - 65 + + col0 + + + 81 * + col2 + - + 41 FROM tab2
----
-193792
-286653
-52025

onlyif mysql # aggregate syntax: 
query II rowsort label-3880
SELECT DISTINCT - 6 + + 53 * ( COUNT( * ) ), - MIN( - col0 ) + + COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IN ( 29, 77 + + col2, - col2, + col0, 65 / - + 31 * 80 )
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-3880
SELECT DISTINCT - 6 + + 53 * ( COUNT ( * ) ), - MIN ( - col0 ) + + COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IN ( 29, 77 + + col2, - col2, + col0, 65 / - + 31 * 80 )
----
-6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT DISTINCT COUNT( * ) * 75 AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT COUNT ( * ) * 75 AS col0 FROM tab2
----
225

query I rowsort
SELECT DISTINCT 60 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL + + ( COUNT( * ) ) - - 24 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + + ( COUNT ( * ) ) - - 24 FROM tab1 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT DISTINCT - - col0 + - col2 DIV col0 AS col0 FROM tab1 cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - - col0 + - col2 / col0 AS col0 FROM tab1 cor0
----
50
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + + 77 col1, 7 + col2 AS col0 FROM tab1 AS cor0
----
-14
75
-8
66
26
103

query II rowsort
SELECT DISTINCT col0 - - col0, - 40 * - - col1 AS col1 FROM tab0 AS cor0
----
174
-840
194
-40
30
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT - MIN( + - col0 ) * + + 49 FROM tab0 AS cor0
----
4753

skipif mysql # not compatible
query I rowsort label-3887
SELECT - MIN ( + - col0 ) * + + 49 FROM tab0 AS cor0
----
4753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3888
SELECT DISTINCT - COUNT( * ) + - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT - COUNT ( * ) + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 28 * - 31 col1, - 63 AS col2 FROM tab2 AS cor0
----
-868
-63

query I rowsort
SELECT - 97 - + + 92 AS col1 FROM tab1 AS cor0
----
-189
-189
-189

query I rowsort
SELECT + col0 - 85 * - 54 FROM tab2 cor0
----
4636
4654
4665

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL ( + 27 ) AS col1 FROM tab0
----
27
27
27

query I rowsort
SELECT col1 - + - col2 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT ( col1 ) - + col1 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3896
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT ( - CAST( NULL AS SIGNED ) + + col2 IS NOT NULL ) ) )
----

skipif mysql # not compatible
query III rowsort label-3896
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT ( - CAST ( NULL AS INTEGER ) + + col2 IS NOT NULL ) ) )
----

query I rowsort
SELECT ALL 33 * - - col0 AS col1 FROM tab0
----
2871
3201
495

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL COUNT( * ) + - 46 + 57 AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL COUNT ( * ) + - 46 + 57 AS col0 FROM tab2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT DISTINCT + col0 DIV - - 28 FROM tab1
----
1
3

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT + col0 / - - 28 FROM tab1
----
1
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + col1 ) * - col2 * 33 + + 34 * col2 * - 63 AND NULL
----

query II rowsort
SELECT DISTINCT col1 * + 16 * - 99, col0 AS col1 FROM tab2 AS cor0
----
-106128
75
-121968
64
-80784
46

query I rowsort
SELECT DISTINCT - ( + + col0 ) * + 93 * + col1 * 58 AS col2 FROM tab2
----
-12654324
-26581632
-27104850

query II rowsort
SELECT DISTINCT - col1 AS col1, ( - + 4 ) AS col0 FROM tab2
----
-51
-4
-67
-4
-77
-4

query I rowsort
SELECT + col1 * + 16 AS col0 FROM tab0 cor0
----
1296
16
336

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3905
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - CAST( NULL AS SIGNED ) + - ( - 61 ) > + 96 )
----

skipif mysql # not compatible
query III rowsort label-3905
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - CAST ( NULL AS INTEGER ) + - ( - 61 ) > + 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3907
SELECT + 89 col2, SUM( ALL 1 ) * + - COUNT( + col0 ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
89
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3907
SELECT + 89 col2, SUM ( ALL 1 ) * + - COUNT ( + col0 ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
89
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT + CAST( NULL AS SIGNED ) / col1 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT + CAST ( NULL AS INTEGER ) / col1 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3909
SELECT ALL - + col1 DIV + - 5 FROM tab0 AS cor0
----
0
16
4

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - + col1 / + - 5 FROM tab0 AS cor0
----
0
16
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 85 - + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + + COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3911
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - + col2 + + col0 * - + ( 1 ) FROM tab2 WHERE + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 15 * - 56 IS NULL
----

query I rowsort
SELECT - + col2 * + col1 / 54 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 9 - + 83 AS col2 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT ALL - 84 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3918
SELECT - CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT 84 + + + col1 * + - 51 AS col2, 39 FROM tab1
----
-171
39
-2313
39
-630
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT COUNT( * ) + - + COUNT( * ) + + MIN( ALL + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3920
SELECT COUNT ( * ) + - + COUNT ( * ) + + MIN ( ALL + col2 ) FROM tab2
----
23

query I rowsort
SELECT ALL + 53 + + col2 AS col2 FROM tab0 AS cor0
----
100
152
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + ( + + col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + ( + + col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + col2 * - 22 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 9 - + 40 AS col1 FROM tab0 AS cor0
----
-49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 44 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 97 - 33 * + col0 FROM tab2
----
-1421
-2015
-2378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - - col1 col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT MIN( + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT MIN ( + col0 ) AS col0 FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT - 85 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3930
SELECT col1 * + col2, col2 DIV - 53 + + col2 DIV - ( + col1 ) - 63 AS col2 FROM tab0
----
210
-63
3807
-63
99
-163

skipif mysql # not compatible
query II rowsort label-3930
SELECT col1 * + col2, col2 / - 53 + + col2 / - ( + col1 ) - 63 AS col2 FROM tab0
----
210
-63
3807
-63
99
-163

query I rowsort
SELECT ALL 26 * + 38 FROM tab2 AS cor0
----
988
988
988

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + - col2 <> - 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
0

query I rowsort
SELECT ALL + col1 * + 17 FROM tab0
----
1377
17
357

query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT DISTINCT - col2 * + CAST( - - col0 AS SIGNED ) FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - col2 * + CAST ( - - col0 AS INTEGER ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - col2 / - col0 * ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + 66 + - col2
----

query I rowsort
SELECT DISTINCT - + 0 * - col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * - ( 42 ) * + + col0 + - 91 + + col0 FROM tab1 AS cor0
----
109202
303444
347802

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 > col1 * + + 9 / - + 78
----

query I rowsort
SELECT DISTINCT ( + + col1 ) * - + 16 + + + col2 AS col0 FROM tab0 AS cor0
----
-1249
-326
83

query I rowsort
SELECT ALL - - 66 * - + 28 * - col0 FROM tab2 AS cor0
----
118272
138600
85008

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT col0 DIV + + col2 AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3943
SELECT col0 / + + col2 AS col0 FROM tab0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL 15 + + COUNT( * ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL 15 + + COUNT ( * ) AS col0 FROM tab0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT DISTINCT 33 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT 33 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + + col1 ) AS col1, + col2 col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT + MAX( + col2 ) * - SUM( ALL + 56 ) FROM tab1
----
-16128

skipif mysql # not compatible
query I rowsort label-3947
SELECT + MAX ( + col2 ) * - SUM ( ALL + 56 ) FROM tab1
----
-16128

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL COUNT( * ) + COUNT( col0 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL COUNT ( * ) + COUNT ( col0 ) AS col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3949
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col2, - COUNT( - 34 ) col0 FROM tab2
----
-121
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3949
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col2, - COUNT ( - 34 ) col0 FROM tab2
----
-121
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + + col2 col1 FROM tab0
----
148
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT COUNT( * ) FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT COUNT ( * ) FROM tab1, tab1 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) <> + ( - 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT + col1, col1 AS col0, + 8 AS col2 FROM tab1 AS cor0
----
9 values hashing to 0c88f0b11dd1e6365912881bfe60f05b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3954
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3954
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3955
SELECT + + 44 AS col1, CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL IS NULL
----
44
NULL
44
NULL
44
NULL

skipif mysql # not compatible
query II rowsort label-3955
SELECT + + 44 AS col1, CAST ( NULL AS REAL ) FROM tab0 WHERE NULL IS NULL
----
44
NULL
44
NULL
44
NULL

query I rowsort
SELECT ALL + 96 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT DISTINCT + 78 + + COUNT( * ) col1, ( - ( - 66 ) ) FROM tab2
----
81
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3957
SELECT DISTINCT + 78 + + COUNT ( * ) col1, ( - ( - 66 ) ) FROM tab2
----
81
66

query I rowsort
SELECT ALL - col0 - + col2 + col2 * 34 * col2 + - col1 FROM tab1 AS cor0
----
118205
157010
313183

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT + ( + SUM( ALL - + 33 ) ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3959
SELECT + ( + SUM ( ALL - + 33 ) ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-102

query I rowsort
SELECT + col2 * - col2 + + ( + col2 ) FROM tab0 AS cor0
----
-2162
-90
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT - - COUNT( - - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3961
SELECT - - COUNT ( - - col0 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= col1 * - - 40 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT - ( + ( - + MAX( DISTINCT - + 66 ) ) ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-3963
SELECT - ( + ( - + MAX ( DISTINCT - + 66 ) ) ) FROM tab2
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-3964
SELECT ALL + 17, col1 + - col1 DIV col1 AS col1 FROM tab2
----
17
50
17
66
17
76

skipif mysql # not compatible
query II rowsort label-3964
SELECT ALL + 17, col1 + - col1 / col1 AS col1 FROM tab2
----
17
50
17
66
17
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT ALL + CAST( NULL AS SIGNED ) * - - ( - CAST( - col2 AS SIGNED ) ) FROM tab0 WHERE NOT - ( col2 ) - - + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL + CAST ( NULL AS INTEGER ) * - - ( - CAST ( - col2 AS INTEGER ) ) FROM tab0 WHERE NOT - ( col2 ) - - + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3966
SELECT + col1 DIV + + col2 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3966
SELECT + col1 / + + col2 AS col0 FROM tab0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT - col1 DIV + 77 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT - col1 / + 77 AS col1 FROM tab0 AS cor0
----
-1
0
0

query II rowsort
SELECT ALL col0 * - col1 + - - col2 AS col1, + col2 FROM tab1 AS cor0
----
-366
59
-4209
68
-618
96

query I rowsort
SELECT 28 * - + col0 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-114688
-157500
-59248

query I rowsort
SELECT ALL 5 FROM tab0 AS cor0 WHERE - col1 * - 0 NOT IN ( + 62 * - col1, + col2 * + - col2, - + ( col2 ), + - 6, + - 3, - col1 * col0, + col1 )
----
5
5
5

query I rowsort
SELECT DISTINCT + 94 * col2 AS col2 FROM tab0 AS cor0
----
4418
9306
940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3972
SELECT - 44 * - CAST( + + 61 AS SIGNED ) * 55 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
147623

skipif mysql # not compatible
query I rowsort label-3972
SELECT - 44 * - CAST ( + + 61 AS INTEGER ) * 55 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
147623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - 32 col1 FROM tab2 AS cor0
----
-1280
-1856
-736

query I rowsort
SELECT + col1 * + col2 * - col0 FROM tab1 cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - + ( SUM( DISTINCT + - 26 ) ) AS col0 FROM tab0 cor0
----
26

skipif mysql # not compatible
query I rowsort label-3975
SELECT - + ( SUM ( DISTINCT + - 26 ) ) AS col0 FROM tab0 cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + MIN( + col2 ) + + + 76 FROM tab1 cor0
----
135

skipif mysql # not compatible
query I rowsort label-3976
SELECT + MIN ( + col2 ) + + + 76 FROM tab1 cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3977
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3977
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab0 cor0 WHERE NOT - col0 + - - col0 + col0 * - col0 + col0 = NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2, col0 / - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT ALL - CAST( - + 68 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL - CAST ( - + 68 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
68
68
68

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 59 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 72 + + col2 FROM tab0
----
-25
-62
27

query I rowsort
SELECT 66 * + col1 + + 33 FROM tab2
----
3399
4455
5115

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 65 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 8 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT DISTINCT - - col1 DIV col1 * 63 * + col0 * col2 AS col0 FROM tab2 cor0
----
161280
274050
66654

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT - - col1 / col1 * 63 * + col0 * col2 AS col0 FROM tab2 cor0
----
161280
274050
66654

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 * - col2 + - - col2 - - col2 < + - col0
----
-9

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 * - col2 + - - col2 - - col2 < + - col0
----
-9

query II rowsort
SELECT ALL + + 35 AS col1, - 48 FROM tab2 AS cor0
----
35
-48
35
-48
35
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT ALL + MIN( + - col1 ), + 56 AS col1 FROM tab0
----
-81
56

skipif mysql # not compatible
query II rowsort label-3989
SELECT ALL + MIN ( + - col1 ), + 56 AS col1 FROM tab0
----
-81
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + MIN( DISTINCT - 91 ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-3990
SELECT + MIN ( DISTINCT - 91 ) FROM tab2
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 84 col1 FROM tab0
----
1260
7308
8148

onlyif mysql # aggregate syntax: 
query II rowsort label-3992
SELECT DISTINCT ( - ( - + COUNT( * ) ) ) AS col0, + COUNT( * ) * 36 AS col0 FROM tab2
----
3
108

skipif mysql # not compatible
query II rowsort label-3992
SELECT DISTINCT ( - ( - + COUNT ( * ) ) ) AS col0, + COUNT ( * ) * 36 AS col0 FROM tab2
----
3
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT - - SUM( - col2 ) col1 FROM tab1 WHERE NOT + col2 <= col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3993
SELECT - - SUM ( - col2 ) col1 FROM tab1 WHERE NOT + col2 <= col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT - MIN( - + 22 ) FROM tab0 WHERE - 55 * 24 + 86 NOT IN ( col2, col2 * + col2 + - col2 )
----
22

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT - MIN ( - + 22 ) FROM tab0 WHERE - 55 * 24 + 86 NOT IN ( col2, col2 * + col2 + - col2 )
----
22

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col1 + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3996
SELECT 21 + + 6 * 9 DIV COUNT( * ) DIV + + 84 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3996
SELECT 21 + + 6 * 9 / COUNT ( * ) / + + 84 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
21

query I rowsort
SELECT - 36 + + col2 AS col2 FROM tab2
----
-13
22
4

query I rowsort
SELECT DISTINCT - 24 FROM tab0 WHERE - - col1 IS NOT NULL
----
-24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = - 79
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + - 2 ) BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT - col0 - - col1 DIV - col1 col2 FROM tab1
----
-52
-86
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4002
SELECT - col0 - - col1 / - col1 col2 FROM tab1
----
-52
-86
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - + col1 * - 80 + + col2 col1, col2 * + 34 FROM tab1
----
15776
3264
176788
2312
2059
2006

query I rowsort
SELECT + col2 + + col1 + + 77 FROM tab1
----
141
187
192

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT ALL + col0 DIV - + 44 + + 74 FROM tab2
----
73
73
73

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL + col0 / - + 44 + + 74 FROM tab2
----
73
73
73

query I rowsort
SELECT ALL 95 + - col1 * col1 FROM tab0
----
-346
-6466
94

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col1 * - 98 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col1 / col1 * - col2
----

query I rowsort
SELECT + 4 * col0 AS col2 FROM tab1 AS cor0
----
204
340
364

query I rowsort
SELECT - + col2 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1219
-3144
-3961

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4011
SELECT ALL + CAST( + ( + col0 ) AS SIGNED ) DIV - col1 FROM tab1 cor0 WHERE - 51 IS NOT NULL
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + CAST ( + ( + col0 ) AS INTEGER ) / - col1 FROM tab1 cor0 WHERE - 51 IS NOT NULL
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT + - CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4012
SELECT + - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - SUM( DISTINCT + col0 ) col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4014
SELECT - SUM ( DISTINCT + col0 ) col1 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 2 + col0 BETWEEN ( NULL ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 85 * 15 FROM tab0 AS cor0
----
-1275
-1275
-1275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT CAST( - 65 AS SIGNED ) FROM tab1
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-4017
SELECT CAST ( - 65 AS INTEGER ) FROM tab1
----
-65
-65
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4018
SELECT ALL - COUNT( * ) * - 78 AS col0, - CAST( + 42 AS SIGNED ) col1 FROM tab2
----
234
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4018
SELECT ALL - COUNT ( * ) * - 78 AS col0, - CAST ( + 42 AS INTEGER ) col1 FROM tab2
----
234
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4019
SELECT DISTINCT col0 DIV - CAST( + col1 AS SIGNED ) FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT col0 / - CAST ( + col1 AS INTEGER ) FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT + ( - 80 ) + + col0 - + 55 < - col2 + + + 94
----
0

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT + ( - 80 ) + + col0 - + 55 < - col2 + + + 94
----
0

query I rowsort
SELECT DISTINCT + 78 * col1 AS col2 FROM tab1
----
1092
3666
390

query II rowsort
SELECT DISTINCT - 83 AS col0, col2 + - col1 * - + ( - col2 ) * + ( - col0 ) + - col2 AS col1 FROM tab1
----
-83
25075
-83
290836
-83
68544

query II rowsort
SELECT DISTINCT 82 AS col0, col0 FROM tab0
----
82
15
82
87
82
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT ( + COUNT( ALL + col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT ( + COUNT ( ALL + col2 ) ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col2 FROM tab2 cor0
----
89
89
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - + 88
----

query I rowsort
SELECT ALL ( + 12 ) FROM tab2 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT + 23 + COUNT( * ) AS col1 FROM tab1 WHERE + + col0 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-4029
SELECT + 23 + COUNT ( * ) AS col1 FROM tab1 WHERE + + col0 IS NULL
----
23

query I rowsort
SELECT - - 4 + - 86 - - col0 AS col2 FROM tab2 AS cor0
----
-18
-36
-7

query II rowsort
SELECT DISTINCT + col1 + col2, col0 FROM tab2 AS cor0
----
117
64
125
75
74
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT + 29 DIV + 18 + + col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4032
SELECT + 29 / + 18 + + col1 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT DISTINCT COUNT( * ) * - 2 + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT COUNT ( * ) * - 2 + - COUNT ( * ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 66 col2 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT ALL + 45 * + + col2 FROM tab0
----
2115
4455
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT COUNT( * ) DIV + 34 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4036
SELECT COUNT ( * ) / + 34 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 71 * - + col1 * - - 27 * - 90 - + col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT MIN( DISTINCT - col1 ) * COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-4038
SELECT MIN ( DISTINCT - col1 ) * COUNT ( * ) FROM tab2
----
-231

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - col2 NOT BETWEEN col1 AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 54 AND - col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4041
SELECT * FROM tab0 WHERE ( + col1 + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4041
SELECT * FROM tab0 WHERE ( + col1 + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT - col2 / col0 + - col2 AS col1 FROM tab2 WHERE NOT 74 + col2 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + ( COUNT( DISTINCT col1 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4046
SELECT + ( COUNT ( DISTINCT col1 ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL MIN( ( 62 ) ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL MIN ( ( 62 ) ) AS col0 FROM tab1
----
62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 IN ( 90 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 71 * 69 - + 51 FROM tab0 WHERE NOT NULL < + col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT MAX( DISTINCT 95 ) AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-4050
SELECT MAX ( DISTINCT 95 ) AS col0 FROM tab0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT ALL col2 DIV - col2 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL col2 / - col2 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL 43 + + COUNT( * ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL 43 + + COUNT ( * ) FROM tab1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4053
SELECT * FROM tab0 WHERE NOT col0 + CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4053
SELECT * FROM tab0 WHERE NOT col0 + CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + ( + col2 ) * col2 FROM tab1
----
3540
4692
9312

query III rowsort
SELECT * FROM tab1 WHERE - col1 IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT ALL - 96 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - 96 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT col2 / 90 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 9 * 65 AS col1 FROM tab0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL + 16 + COUNT( * ) * + 31 FROM tab2 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + 16 + COUNT ( * ) * + 31 FROM tab2 AS cor0
----
109

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 59 * + 90
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT - 81 DIV + col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4061
SELECT - 81 / + col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * 20 + col0 * + CAST( 64 + - col1 AS SIGNED ) NOT IN ( col2 - - col2 / - 8 )
----

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * 20 + col0 * + CAST ( 64 + - col1 AS INTEGER ) NOT IN ( col2 - - col2 / - 8 )
----

query I rowsort
SELECT + ( col1 ) + - ( - col0 ) * 3 FROM tab0 AS cor0
----
126
282
292

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT - 52 * COUNT( * ) FROM tab2 WHERE ( col2 ) IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-4064
SELECT - 52 * COUNT ( * ) FROM tab2 WHERE ( col2 ) IS NOT NULL
----
-156

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) >= 58 * 94 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * - COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
12

query I rowsort
SELECT DISTINCT - 57 - - 30 FROM tab0
----
-27

query I rowsort
SELECT DISTINCT - - ( col0 ) + col1 AS col2 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 + + col0 ) <> - 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT DISTINCT - ( - col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT - ( - col2 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
51
85
91

query I rowsort
SELECT - 53 * - col0 FROM tab1 AS cor0 WHERE + 9 NOT IN ( - col1 + + 82 )
----
2703
4505
4823

query I rowsort
SELECT 15 * - col1 + - 90 FROM tab1 AS cor0 WHERE ( NULL ) <> ( col1 - + col0 )
----

query I rowsort
SELECT + 68 - - col2 AS col2 FROM tab1 AS cor0
----
127
136
164

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 * col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT 87 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4077
SELECT 87 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN + col0 + - 2 * 37 AND - col2 * - col2 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col1 - + col0 * 48 FROM tab1 AS cor0
----
-2434
-4075
-4321

query I rowsort
SELECT 66 AS col2 FROM tab2 WHERE 85 IS NULL OR NOT - col0 IN ( 2 - 11 )
----
66
66
66

query I rowsort
SELECT ALL + 41 AS col1 FROM tab0 WHERE NOT + ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT ( + + COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4082
SELECT DISTINCT ( + + COUNT ( * ) ) col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * + col1 + + col2 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT ALL ( + + col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT - + 99 DIV - + col1 FROM tab0 AS cor0
----
1
4
99

skipif mysql # not compatible
query I rowsort label-4086
SELECT - + 99 / - + col1 FROM tab0 AS cor0
----
1
4
99

query I rowsort
SELECT + ( + - 47 ) AS col2 FROM tab2 AS cor0
----
-47
-47
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 79 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL - MAX( ALL - col1 ) * - 60 FROM tab2 AS cor0
----
-3060

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL - MAX ( ALL - col1 ) * - 60 FROM tab2 AS cor0
----
-3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT ALL - CAST( - - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT IN ( - 73 * - col1 + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - 64 * - 50 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( + col2 ) + - col2 * - col1 ) BETWEEN NULL AND 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - ( - 50 ) * + 81 + COUNT( * ) FROM tab1 AS cor0
----
4053

skipif mysql # not compatible
query I rowsort label-4094
SELECT - ( - 50 ) * + 81 + COUNT ( * ) FROM tab1 AS cor0
----
4053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT COUNT( * ) DIV + 54 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4095
SELECT COUNT ( * ) / + 54 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT + col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT - SUM( + + col1 ) * - MIN( 60 ) AS col1 FROM tab1 AS cor0
----
3960

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT - SUM ( + + col1 ) * - MIN ( 60 ) AS col1 FROM tab1 AS cor0
----
3960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col0 * + 42 col2 FROM tab1 AS cor0
----
51
-2142
85
-3570
91
-3822

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT - 55 DIV - col0 FROM tab0 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4100
SELECT - 55 / - col0 FROM tab0 cor0
----
0
0
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL + SUM( - CAST( - 58 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT - 96 < ( + ( - col2 ) )
----
58

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + SUM ( - CAST ( - 58 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT - 96 < ( + ( - col2 ) )
----
58

query I rowsort
SELECT 66 * - - col1 - + col0 * - col1 AS col2 FROM tab1 AS cor0
----
1638
7379
755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT DISTINCT + 60 * + 91 * + CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT + 60 * + 91 * + CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 cor0 WHERE + col0 BETWEEN - col0 AND col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 52 IS NOT NULL OR NOT col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4106
SELECT - - COUNT( * ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4106
SELECT - - COUNT ( * ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4107
SELECT + 88 DIV - col1 FROM tab0 AS cor0 WHERE NOT ( + col0 + + col0 ) IS NULL
----
-1
-4
-88

skipif mysql # not compatible
query I rowsort label-4107
SELECT + 88 / - col1 FROM tab0 AS cor0 WHERE NOT ( + col0 + + col0 ) IS NULL
----
-1
-4
-88

query III rowsort
SELECT * FROM tab2 WHERE NOT - 56 IN ( 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 94 + 25 FROM tab0 WHERE NOT ( + col2 + col0 / col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 61 + - - CAST( + 44 AS SIGNED ) * COUNT( DISTINCT - col0 + - col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 61 + - - CAST ( + 44 AS INTEGER ) * COUNT ( DISTINCT - col0 + - col1 ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) + - - CAST( NULL AS SIGNED ) + - 12 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4111
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + - 12 col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * 6 FROM tab0
----
126
486
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT col1 + col0 + - + 38 * col1 DIV col1 + + 82 FROM tab1
----
109
134
182

skipif mysql # not compatible
query I rowsort label-4113
SELECT col1 + col0 + - + 38 * col1 / col1 + + 82 FROM tab1
----
109
134
182

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( ( - col2 ) NOT BETWEEN ( NULL ) AND NULL ) )
----

query I rowsort
SELECT DISTINCT - + col2 * col2 + col1 AS col1 FROM tab0 AS cor0
----
-2128
-79
-9800

query I rowsort
SELECT - - ( col1 ) * - + col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT + - col2 DIV - 64 + + + col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4117
SELECT + - col2 / - 64 + + + col1 FROM tab2 cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4118
SELECT ALL - - col2 DIV - ( col0 ) AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - - col2 / - ( col0 ) AS col0 FROM tab1 cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + + + 15 > col0 + - 88
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4121
SELECT DISTINCT 24 DIV MIN( col2 ), COUNT( * ) AS col2 FROM tab0
----
2
3

skipif mysql # not compatible
query II rowsort label-4121
SELECT DISTINCT 24 / MIN ( col2 ), COUNT ( * ) AS col2 FROM tab0
----
2
3

query I rowsort
SELECT ALL - ( + + col2 ) AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE ( - - ( - col0 ) ) <> 8
----
-46
-64
-75

query I rowsort
SELECT 86 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - 75 + - - 26 / + col0 - - 21 * col1 AND - col1 - - 60 * col2
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 34 col2 FROM tab0 AS cor0 WHERE ( col0 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4126
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + + CAST( 80 AS SIGNED ) + + col2 IN ( + ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4126
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + + CAST ( 80 AS INTEGER ) + + col2 IN ( + ( + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4127
SELECT DISTINCT - - CAST( - - ( col1 ) AS SIGNED ), - 73 AS col2 FROM tab1 AS cor0
----
14
-73
47
-73
5
-73

skipif mysql # not compatible
query II rowsort label-4127
SELECT DISTINCT - - CAST ( - - ( col1 ) AS INTEGER ), - 73 AS col2 FROM tab1 AS cor0
----
14
-73
47
-73
5
-73

query I rowsort
SELECT 30 FROM tab0 AS cor0 WHERE - col0 + + 22 IS NULL
----

query I rowsort
SELECT + col0 * - - col0 * col1 * - col1 * - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1554251776
1893796875
253170936

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT col0 NOT BETWEEN - col2 / - + 24 AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( col1 ) IN ( + ( 56 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 0 * + 8 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab0 WHERE NOT NULL >= + 69
----

query I rowsort
SELECT + col2 * + + col2 + + 93 FROM tab2 AS cor0
----
1693
3457
622

query I rowsort
SELECT col1 * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 * + 33 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4136
SELECT DISTINCT + 98 AS col2, 55 DIV 43 FROM tab1 AS cor0
----
98
1

skipif mysql # not compatible
query II rowsort label-4136
SELECT DISTINCT + 98 AS col2, 55 / 43 FROM tab1 AS cor0
----
98
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 * - + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4139
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 36 * + CAST( col1 AS SIGNED ) + - - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4139
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 36 * + CAST ( col1 AS INTEGER ) + - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - ( - col2 ) )
----

query I rowsort
SELECT - - ( + + 27 ) FROM tab0 cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT + CAST( + 47 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-4142
SELECT + CAST ( + 47 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT + COUNT( ALL - - 34 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + COUNT ( ALL - - 34 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT MIN( - + 56 ) AS col1 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-4144
SELECT MIN ( - + 56 ) AS col1 FROM tab2
----
-56

query I rowsort
SELECT DISTINCT 3 * + 16 FROM tab2
----
48

query I rowsort
SELECT + 57 FROM tab2 WHERE - ( col0 ) IS NULL
----

query I rowsort
SELECT ALL col2 + col0 + - col0 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT - 57 + + 16 * - 0 DIV col2 * + 0 col0 FROM tab1 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4148
SELECT - 57 + + 16 * - 0 / col2 * + 0 col0 FROM tab1 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT + COUNT( * ) + + ( COUNT( DISTINCT 18 ) ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4149
SELECT + COUNT ( * ) + + ( COUNT ( DISTINCT 18 ) ) FROM tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
46
64
75

query II rowsort
SELECT 50, col0 / + - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT + + ( - - COUNT( * ) ) - - SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-4152
SELECT + + ( - - COUNT ( * ) ) - - SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
202

query I rowsort
SELECT ALL - - ( + col0 ) FROM tab0 AS cor0 WHERE + 0 + - + 77 NOT IN ( - col0, col1, + ( - col2 ) )
----
15
87
97

query I rowsort
SELECT - + col2 * col1 - + col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT - - col0 - - + CAST( NULL AS SIGNED ) * - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT - - col0 - - + CAST ( NULL AS INTEGER ) * - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - - 53 * - - col0 FROM tab0 AS cor0
----
4632
5142
876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + + AVG ( col0 ) col2 FROM tab2 AS cor0 WHERE NOT - 23 <> + - col1
----
NULL

query I rowsort
SELECT ALL 40 * + + col2 * + - col0 * - 59 AS col2 FROM tab0
----
1663800
2053200
22663080

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT COUNT( * ) * + SUM( - col1 ) AS col2 FROM tab2 WHERE NOT - ( col1 ) <= + - 73
----
-236

skipif mysql # not compatible
query I rowsort label-4159
SELECT COUNT ( * ) * + SUM ( - col1 ) AS col2 FROM tab2 WHERE NOT - ( col1 ) <= + - 73
----
-236

query II rowsort
SELECT ALL - col2, col1 - - col0 AS col0 FROM tab2
----
-23
97
-40
141
-58
142

query II rowsort
SELECT DISTINCT 48, + col0 AS col2 FROM tab0 AS cor0
----
48
15
48
87
48
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 * + + 14 + + col0 ) = col1 / - + 64
----

query II rowsort
SELECT col0 AS col1, ( - 90 ) AS col0 FROM tab2
----
46
-90
64
-90
75
-90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4164
SELECT - 10 DIV + - col0 * - - CAST( - - ( + 30 ) AS SIGNED ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT - 10 / + - col0 * - - CAST ( - - ( + 30 ) AS INTEGER ) FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT col1 DIV - + 84 * + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT col1 / - + 84 * + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT + - 95 * - ( - ( - col2 ) ) * + CAST( NULL AS SIGNED ) - + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT + - 95 * - ( - ( - col2 ) ) * + CAST ( NULL AS INTEGER ) - + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT - COUNT( * ) + - - 40 * - ( - SUM( - col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + 8 * 36 IS NULL
----
-7803

skipif mysql # not compatible
query I rowsort label-4167
SELECT - COUNT ( * ) + - - 40 * - ( - SUM ( - col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + 8 * 36 IS NULL
----
-7803

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT DISTINCT + MAX( ALL ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT + MAX ( ALL ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4169
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 24 * - - col1 * + - col0 < - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4169
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 24 * - - col1 * + - col0 < - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE + - col0 + - 43 = + - 54 * col2
----

query I rowsort
SELECT ALL - col0 * + + ( 22 ) + col0 + + 33 AS col1 FROM tab2
----
-1311
-1542
-933

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT - SUM( + 43 ) col0 FROM tab2
----
-129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4172
SELECT DISTINCT - SUM ( + 43 ) col0 FROM tab2
----
-129

query I rowsort
SELECT ALL col2 + + + col0 AS col1 FROM tab1
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + - ( col0 ) + - + 72 + col0 AS col1, 47 col1 FROM tab0
----
-57
47
15
47
25
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4175
SELECT * FROM tab2 AS cor0 WHERE - 74 >= + col2 * 29 - - col0 OR + ( - col0 ) + + - CAST( NULL AS SIGNED ) * + ( + 40 ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4175
SELECT * FROM tab2 AS cor0 WHERE - 74 >= + col2 * 29 - - col0 OR + ( - col0 ) + + - CAST ( NULL AS INTEGER ) * + ( + 40 ) > ( NULL )
----

query I rowsort
SELECT + 99 + - - col0 AS col2 FROM tab0
----
114
186
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + 5 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4177
SELECT + 5 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL - col2 - + 98 AS col1 FROM tab0 AS cor0
----
-108
-145
-197

onlyif mysql # DIV for integer division: 
query II rowsort label-4179
SELECT - col2 DIV + ( + ( + + col0 ) ) + col1 + col0 col1, ( - 74 ) AS col2 FROM tab1 AS cor0
----
138
-74
64
-74
90
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4179
SELECT - col2 / + ( + ( + + col0 ) ) + col1 + col0 col1, ( - 74 ) AS col2 FROM tab1 AS cor0
----
138
-74
64
-74
90
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 15 <= + col1
----

query I rowsort
SELECT ALL col0 * - 32 AS col1 FROM tab2 AS cor0
----
-1472
-2048
-2400

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 * + - col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT DISTINCT - COUNT( * ) * - 6 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT - COUNT ( * ) * - 6 FROM tab0
----
18

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab2 WHERE + + 18 / ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT COUNT( * ) * + SUM( + - 86 ) FROM tab1
----
-774

skipif mysql # not compatible
query I rowsort label-4185
SELECT COUNT ( * ) * + SUM ( + - 86 ) FROM tab1
----
-774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4186
SELECT DISTINCT + COUNT( - col2 ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT + COUNT ( - col2 ) / COUNT ( * ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT - col0 DIV - - 18 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT - col0 / - - 18 FROM tab0
----
-4
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT SUM( ALL + 22 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT SUM ( ALL + 22 ) FROM tab0
----
66

query II rowsort
SELECT col0 * col2, col1 + - col0 AS col0 FROM tab2
----
1058
5
2560
13
4350
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ( + - 9 ) * 96 + - COUNT( * ) FROM tab0
----
-867

skipif mysql # not compatible
query I rowsort label-4190
SELECT ( + - 9 ) * 96 + - COUNT ( * ) FROM tab0
----
-867

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT - 97 + + - col2 + - col0 + - col2 - - col1 / + - col0 + + col0 > + ( - col2 )
----
1
21
81

query II rowsort
SELECT DISTINCT - + col1, - 37 FROM tab2 AS cor0 WHERE 40 * + + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT - CAST( NULL AS SIGNED ) / - SUM( DISTINCT + + col0 ) FROM tab0 AS cor0 WHERE NOT + col2 / + col0 = + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT - CAST ( NULL AS INTEGER ) / - SUM ( DISTINCT + + col0 ) FROM tab0 AS cor0 WHERE NOT + col2 / + col0 = + col2
----
NULL

query I rowsort
SELECT ALL ( ( + - col0 ) ) AS col2 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - col0 + - 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT 39 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-351

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT 39 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-351

query I rowsort
SELECT ALL + 97 + col1 AS col1 FROM tab0 AS cor0
----
118
178
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - col2 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( - - 93 ) - + + 45 ) > 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL + + ( - 82 ) * + - MIN( - 45 ) FROM tab1 AS cor0
----
-3690

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + + ( - 82 ) * + - MIN ( - 45 ) FROM tab1 AS cor0
----
-3690

query I rowsort
SELECT + - ( + 26 ) AS col2 FROM tab1 cor0
----
-26
-26
-26

query I rowsort
SELECT + 68 * + 56 FROM tab0 cor0
----
3808
3808
3808

query I rowsort
SELECT + - col2 * + 80 * + - 32 AS col0 FROM tab2 AS cor0
----
102400
148480
58880

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - COUNT( * ) * + + MAX( - - 47 ) AS col0 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-4204
SELECT - COUNT ( * ) * + + MAX ( - - 47 ) AS col0 FROM tab2
----
-141

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4205
SELECT * FROM tab2 WHERE + 98 NOT IN ( + 11 * - col0 + - - CAST( + col2 AS DECIMAL ), col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4205
SELECT * FROM tab2 WHERE + 98 NOT IN ( + 11 * - col0 + - - CAST ( + col2 AS REAL ), col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT MAX( 5 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4206
SELECT DISTINCT MAX ( 5 ) col0 FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 / - + col1 * + + 98 + col1 + + 49 - 68 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 55 + - 79 + - col0 + - 31 FROM tab0
----
-142
-152
-70

query I rowsort
SELECT DISTINCT 23 - - col2 AS col2 FROM tab1
----
119
82
91

query I rowsort
SELECT DISTINCT + col1 + 44 * col1 AS col0 FROM tab0 AS cor0
----
3645
45
945

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL + 64 + COUNT( * ) AS col1 FROM tab2 cor0
----
67

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + 64 + COUNT ( * ) AS col1 FROM tab2 cor0
----
67

query I rowsort
SELECT 74 * + col1 + - ( + col0 ) + + col1 AS col1 FROM tab1 AS cor0
----
290
3434
999

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4213
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * - 3 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT - + CAST ( NULL AS REAL ) * - 3 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL ( col2 ), col0 AS col2 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT + + 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT col0 * + CAST( + col0 AS SIGNED ) * col1 * + col0 AS col2 FROM tab2
----
20185088
28265625
4964136

skipif mysql # not compatible
query I rowsort label-4216
SELECT col0 * + CAST ( + col0 AS INTEGER ) * col1 * + col0 AS col2 FROM tab2
----
20185088
28265625
4964136

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL - + COUNT( * ) * + + 68 + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-560

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - + COUNT ( * ) * + + 68 + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT + - COUNT( * ) + - 15 AS col0 FROM tab0 WHERE - 49 IS NOT NULL
----
-18

skipif mysql # not compatible
query I rowsort label-4218
SELECT + - COUNT ( * ) + - 15 AS col0 FROM tab0 WHERE - 49 IS NOT NULL
----
-18

query I rowsort
SELECT DISTINCT + 99 - + col2 * 10 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-131
-301
-481

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 63 AND + 4
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4221
SELECT - COUNT( * ) DIV - + 19 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT - COUNT ( * ) / - + 19 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( - col1 ) * + - ( 78 ) AS col2 FROM tab1 AS cor0
----
-1092
-3666
-390

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN ( NULL ) AND col2 * col1
----

query I rowsort
SELECT col1 * + 10 AS col2 FROM tab2 AS cor0
----
510
670
770

onlyif mysql # aggregate syntax: 
query II rowsort label-4225
SELECT SUM( DISTINCT + col2 ), - 39 * + + 76 AS col2 FROM tab0 AS cor0
----
156
-2964

skipif mysql # not compatible
query II rowsort label-4225
SELECT SUM ( DISTINCT + col2 ), - 39 * + + 76 AS col2 FROM tab0 AS cor0
----
156
-2964

query I rowsort
SELECT ALL - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL <> col1 + - col0
----

query I rowsort
SELECT ALL 1 * - + col0 AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4228
SELECT DISTINCT + col1 * + col0 / + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + col1 * + col0 / + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND - col2 )
----

query I rowsort
SELECT DISTINCT + - 28 AS col1 FROM tab2 WHERE NOT 91 IS NULL
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT 7 * - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-4231
SELECT 7 * - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * - col2 col2 FROM tab0
----
-1485
-150
-705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 10 * + 37 col2 FROM tab0 AS cor0
----
-29970
-370
-7770

query I rowsort
SELECT ALL 96 * + 37 FROM tab1 AS cor0
----
3552
3552
3552

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT DISTINCT col1 DIV + + col1 col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4235
SELECT DISTINCT col1 / + + col1 col2 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT + - col0 DIV + 12 AS col2 FROM tab0 cor0
----
-1
-7
-8

skipif mysql # not compatible
query I rowsort label-4236
SELECT + - col0 / + 12 AS col2 FROM tab0 cor0
----
-1
-7
-8

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 80 * col2 * col1 > NULL
----

query I rowsort
SELECT - + 56 + ( + col1 ) FROM tab0 AS cor0
----
-35
-55
25

query I rowsort
SELECT - ( col0 ) + + col1 + + col2 FROM tab1 AS cor0
----
-21
24
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT DISTINCT + - 22 DIV - 23 + - + 77 AS col1 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT + - 22 / - 23 + - + 77 AS col1 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT + - 86 + - - col2 AS col0 FROM tab0 AS cor0
----
-39
-76
13

query I rowsort
SELECT DISTINCT - - col0 * - 33 * - 64 AS col0 FROM tab2 AS cor0
----
135168
158400
97152

query I rowsort
SELECT - - col1 AS col1 FROM tab2 AS cor0 WHERE col2 * + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - + - MAX( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - + - MAX ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col2 - 95 AS col2 FROM tab0 cor0
----
-48
-85
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 + - - col0 * - 12 col2 FROM tab0 AS cor0
----
-1002
-1162
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL - + COUNT( * ) - - + 66 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL - + COUNT ( * ) - - + 66 FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4248
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4248
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL 88 AS col1, - ( + col2 ) + - ( + col1 ) FROM tab0
----
88
-100
88
-128
88
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT - COUNT( * ) * + 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-657

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - COUNT ( * ) * + 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-657

query I rowsort
SELECT - col0 * + 92 AS col0 FROM tab2
----
-4232
-5888
-6900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT + CAST( + col1 AS SIGNED ) * - 69 * + col0 * - - 11 AS col2 FROM tab2
----
-1780614
-3740352
-3813975

skipif mysql # not compatible
query I rowsort label-4252
SELECT + CAST ( + col1 AS INTEGER ) * - 69 * + col0 * - - 11 AS col2 FROM tab2
----
-1780614
-3740352
-3813975

query I rowsort
SELECT ALL 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT + COUNT( + 2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4254
SELECT + COUNT ( + 2 ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL + 44 + + 78 + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
122

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + 44 + + 78 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
122

query II rowsort
SELECT ALL + 8 AS col2, col2 * 94 AS col0 FROM tab1 AS cor0
----
8
5546
8
6392
8
9024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT 11 DIV + MIN( DISTINCT ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4257
SELECT 11 / + MIN ( DISTINCT ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( - col0 * + + 35 * - 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4260
SELECT DISTINCT + ( - CAST( + 6 AS SIGNED ) ) AS col1, - COUNT( * ) AS col0 FROM tab0
----
-6
-3

skipif mysql # not compatible
query II rowsort label-4260
SELECT DISTINCT + ( - CAST ( + 6 AS INTEGER ) ) AS col1, - COUNT ( * ) AS col0 FROM tab0
----
-6
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 * - col0 col0 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT DISTINCT - col2 / - + col0 + 72 AS col1 FROM tab0 WHERE + ( + col2 ) IS NULL
----

query II rowsort
SELECT ALL col0 * - - 21 * - 39 AS col1, col0 AS col2 FROM tab1
----
-41769
51
-69615
85
-74529
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT - 52 * + + COUNT( - - col1 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT - 52 * + + COUNT ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4265
SELECT + CAST( NULL AS DECIMAL ) * - col0 AS col2, - col0 col1 FROM tab2 cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4265
SELECT + CAST ( NULL AS REAL ) * - col0 AS col2, - col0 col1 FROM tab2 cor0
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT ALL - ( 5 ) + - - col2 * + 93 FROM tab1 cor0
----
5482
6319
8923

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 60 <= + col0
----
15
81
47

query I rowsort
SELECT ALL 2 * + 88 * + 73 AS col2 FROM tab0 cor0
----
12848
12848
12848

query I rowsort
SELECT + 34 * + col0 FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
1564
2176
2550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT - CAST( - - col0 AS SIGNED ) * - - col2 + + - ( + 60 ) FROM tab1
----
-4956
-5075
-6248

skipif mysql # not compatible
query I rowsort label-4270
SELECT - CAST ( - - col0 AS INTEGER ) * - - col2 + + - ( + 60 ) FROM tab1
----
-4956
-5075
-6248

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL - ( + COUNT( * ) ) + - COUNT( * ) * - COUNT( * ) + 10 AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL - ( + COUNT ( * ) ) + - COUNT ( * ) * - COUNT ( * ) + 10 AS col0 FROM tab1
----
16

query I rowsort
SELECT + col1 + + + 1 AS col0 FROM tab2
----
52
68
78

query I rowsort
SELECT DISTINCT - ( - 0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT MAX( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT MAX ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> + col0
----
NULL

query I rowsort
SELECT DISTINCT 37 * + col2 FROM tab1 AS cor0
----
2183
2516
3552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 + - - col2 col2 FROM tab2 cor0
----
-30
-48
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4277
SELECT ALL + MAX( - col0 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + MAX ( - col0 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT MAX( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4278
SELECT MAX ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ( MIN( ALL + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-4279
SELECT ( MIN ( ALL + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1

query I rowsort
SELECT + ( - col0 ) + 7 / + col1 FROM tab1 AS cor0 WHERE - col1 - + + col1 * + 12 * + + col0 BETWEEN - col0 AND + col1 * + 17 - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT + 24 DIV - col1 FROM tab0 AS cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-4281
SELECT + 24 / - col1 FROM tab0 AS cor0
----
-1
-24
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4282
SELECT ALL + col2 + + col1 - - col1 DIV + - CAST( - - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
127
30
99

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + col2 + + col1 - - col1 / + - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
127
30
99

query II rowsort
SELECT ALL col2, - 57 AS col2 FROM tab2 AS cor0
----
23
-57
40
-57
58
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT + COUNT( * ) col2 FROM tab2 AS cor0 WHERE 28 * - ( + + col0 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4284
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE 28 * - ( + + col0 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT - + COUNT( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - + COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT + SUM( ALL + + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4286
SELECT + SUM ( ALL + + col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT CAST( 52 AS SIGNED ) * + col0 - col2 AS col1 FROM tab2 AS cor0
----
2369
3288
3842

skipif mysql # not compatible
query I rowsort label-4287
SELECT CAST ( 52 AS INTEGER ) * + col0 - col2 AS col1 FROM tab2 AS cor0
----
2369
3288
3842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT - CAST( - col1 AS SIGNED ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4288
SELECT - CAST ( - col1 AS INTEGER ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + COUNT( * ) * - 19 AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4289
SELECT + COUNT ( * ) * - 19 AS col0 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL + + 7 * - 86 * - 1 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
605

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL + + 7 * - 86 * - 1 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
605

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + - + ( - col2 ) IN ( + + col0, + 59 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE - col1 * col1 >= - 48
----

query II rowsort
SELECT DISTINCT - - ( col0 ) + + 78 AS col1, col1 FROM tab1 WHERE col1 IS NOT NULL
----
129
14
163
5
169
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT DISTINCT 93 * + COUNT( * ) FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT 93 * + COUNT ( * ) FROM tab2
----
279

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - col1 * + - 29 * 22 = - + 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - SUM( 2 ) * 15 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4297
SELECT - SUM ( 2 ) * 15 FROM tab2 AS cor0
----
-90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 47 AND NULL
----

query I rowsort
SELECT + col2 * - + 62 FROM tab0 cor0
----
-2914
-6138
-620

query II rowsort
SELECT ALL + - col2, - col1 AS col1 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL < col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4301
SELECT + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL < col0
----
0

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT ( NULL ) > + - ( + + 56 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT + CAST( NULL AS SIGNED ) + + AVG ( 53 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT + CAST ( NULL AS INTEGER ) + + AVG ( 53 ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 86 col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
86

query I rowsort
SELECT 1 + + + col0 + + col0 * - + col0 AS col1 FROM tab2
----
-2069
-4031
-5549

query I rowsort
SELECT ALL + col2 - - - 37 * + col2 AS col2 FROM tab2 AS cor0
----
-1440
-2088
-828

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 82 ) NOT BETWEEN + 75 + col0 * col0 * - - col2 * col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + col2 + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT - MIN( ALL + + col2 ) + - SUM( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-4309
SELECT - MIN ( ALL + + col2 ) + - SUM ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-282

query I rowsort
SELECT + - ( - col0 ) * - col1 + - 38 * - 91 * - col0 AS col0 FROM tab1 cor0
----
-177072
-294355
-318955

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 > + + col1
----

query I rowsort
SELECT DISTINCT + ( - - 25 ) * - col1 FROM tab1
----
-1175
-125
-350

query I rowsort
SELECT DISTINCT + col1 + - + 38 * + col1 AS col1 FROM tab0
----
-2997
-37
-777

query I rowsort
SELECT DISTINCT 57 * - + 56 + 46 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4316
SELECT + 93 DIV - + CAST( + col0 AS SIGNED ), col2 + - 21 * + 91 AS col1 FROM tab1
----
-1
-1815
-1
-1843
-1
-1852

skipif mysql # not compatible
query II rowsort label-4316
SELECT + 93 / - + CAST ( + col0 AS INTEGER ), col2 + - 21 * + 91 AS col1 FROM tab1
----
-1
-1815
-1
-1843
-1
-1852

query I rowsort
SELECT + col1 - + col0 AS col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT 78 - + + 34 AS col1 FROM tab2
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL COUNT( * ) * 51 AS col1 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL COUNT ( * ) * 51 AS col1 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT - SUM( + 53 ) AS col2 FROM tab0 cor0 WHERE NOT - col1 + + + 14 / + col0 - - + 81 + - - 93 + col1 / - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT - SUM ( + 53 ) AS col2 FROM tab0 cor0 WHERE NOT - col1 + + + 14 / + col0 - - + 81 + - - 93 + col1 / - col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT DISTINCT - 87 DIV col1 FROM tab0 cor0
----
-1
-4
-87

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT - 87 / col1 FROM tab0 cor0
----
-1
-4
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT + col2 DIV col2 DIV col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT + col2 / col2 / col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT DISTINCT + CAST( col0 AS SIGNED ) FROM tab2 AS cor0 WHERE col2 / - ( - col0 ) * - col1 * + - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 WHERE col2 / - ( - col0 ) * - col1 * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT - - SUM( DISTINCT col0 ) col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * + col2, col2 * col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4324
SELECT DISTINCT - - SUM ( DISTINCT col0 ) col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * + col2, col2 * col0 )
----
NULL

query I rowsort
SELECT col0 * - - 59 * + col2 AS col1 FROM tab1
----
288864
295885
365092

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT ( + - col2 ) - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT 27 * + col2 + + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 67 NOT BETWEEN + 60 - - col2 * - col0 AND - col0
----

query I rowsort
SELECT ALL 24 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT + - SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT + - SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4332
SELECT ALL + 46 AS col0, - CAST( NULL AS SIGNED ) * + + 19 FROM tab1
----
46
NULL
46
NULL
46
NULL

skipif mysql # not compatible
query II rowsort label-4332
SELECT ALL + 46 AS col0, - CAST ( NULL AS INTEGER ) * + + 19 FROM tab1
----
46
NULL
46
NULL
46
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - - 6 + + col1 + - col2
----

query II rowsort
SELECT col2 AS col1, 87 * + col2 FROM tab0
----
10
870
47
4089
99
8613

query I rowsort
SELECT ALL col1 * - ( - col0 ) + + col1 + - 81 * - col2 AS col2 FROM tab1
----
5209
8504
9832

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 63
----

query I rowsort
SELECT + 98 * + col2 AS col0 FROM tab2
----
2254
3920
5684

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( col2, - col0 + + + 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - COUNT( * ) + - MAX( + 12 ) * + COUNT( * ) FROM tab0 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4339
SELECT - COUNT ( * ) + - MAX ( + 12 ) * + COUNT ( * ) FROM tab0 cor0
----
-39

query I rowsort
SELECT + 57 + - 74 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT - + 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT DISTINCT + - ( + col1 ) * col2 AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + 64 - col2 FROM tab0 AS cor0
----
-35
17
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT DISTINCT COUNT( * ) * + - 58 + + 13 + + COUNT( ALL - col0 ) - - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT COUNT ( * ) * + - 58 + + 13 + + COUNT ( ALL - col0 ) - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT - 50 DIV col0 - + + ( + + 60 ) col1 FROM tab0 AS cor0
----
-60
-60
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4345
SELECT - 50 / col0 - + + ( + + 60 ) col1 FROM tab0 AS cor0
----
-60
-60
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL - MAX( DISTINCT + 82 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL - MAX ( DISTINCT + 82 ) FROM tab1 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT ALL col0 - CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL col0 - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT DISTINCT + 8 * 87 DIV - - col1 FROM tab0
----
33
696
8

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + 8 * 87 / - - col1 FROM tab0
----
33
696
8

query I rowsort
SELECT - col2 * + + col2 * - 11 + + - col2 AS col0 FROM tab1 WHERE - - 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT DISTINCT + + COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + + COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - col1 BETWEEN col1 * - + 28 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 83 - - + 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT DISTINCT - - col1 / - ( CAST( NULL AS SIGNED ) ) * - 3 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - - col1 / - ( CAST ( NULL AS INTEGER ) ) * - 3 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + - 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - ( - col0 ), - ( col2 ), - col2 - + + 86 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4356
SELECT ALL + COUNT( * ) AS col0, 83 FROM tab2
----
3
83

skipif mysql # not compatible
query II rowsort label-4356
SELECT ALL + COUNT ( * ) AS col0, 83 FROM tab2
----
3
83

query I rowsort
SELECT 62 * + 87 AS col0 FROM tab2
----
5394
5394
5394

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 65 <= NULL
----

query II rowsort
SELECT + + 40, col1 FROM tab2 AS cor0
----
40
51
40
67
40
77

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT col1 * - - 96 FROM tab0 AS cor0
----
2016
7776
96

query I rowsort
SELECT - + 32 + col0 AS col1 FROM tab1 AS cor0
----
19
53
59

query III rowsort
SELECT * FROM tab2 WHERE col0 + + - 75 - - + col2 / col2 IS NULL
----

query I rowsort
SELECT + col2 + - 66 AS col0 FROM tab0
----
-19
-56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL COUNT( * ) + - 6 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL COUNT ( * ) + - 6 AS col2 FROM tab0
----
-3

query I rowsort
SELECT 45 * - 70 + + + col1 FROM tab2
----
-3073
-3083
-3099

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL <= - 35 + col1
----
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL <= - 35 + col1
----
0

query II rowsort
SELECT ALL + 79 + + 99 AS col1, - col0 FROM tab2
----
178
-46
178
-64
178
-75

query I rowsort
SELECT ALL - 96 + - col2 FROM tab2
----
-119
-136
-154

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 NOT BETWEEN - 80 + + col0 * - col0 AND + col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT DISTINCT 0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT 0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT + col0 * - - col2 + col2 + ( + 95 ), col1 FROM tab2 cor0
----
1176
51
2695
77
4503
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT - COUNT( * ) + SUM( DISTINCT - 67 ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4373
SELECT - COUNT ( * ) + SUM ( DISTINCT - 67 ) FROM tab1 AS cor0
----
-70

query I rowsort
SELECT ALL - 92 + + col2 AS col2 FROM tab1 AS cor0
----
-24
-33
4

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - SUM( ALL - col1 ) col0 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4376
SELECT - SUM ( ALL - col1 ) col0 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - col2 ) col1 FROM tab1
----
59
68
96

query II rowsort
SELECT DISTINCT - 70 AS col1, col0 FROM tab0
----
-70
15
-70
87
-70
97

query I rowsort
SELECT - ( - 47 ) + - ( - 62 ) + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT - - 41 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT + 49 * + col0 FROM tab1 AS cor0
----
2499
4165
4459

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT col0 DIV + 42 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4382
SELECT col0 / + 42 FROM tab0 AS cor0
----
0
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT 29 + - - col0 DIV + col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
30
30
30

skipif mysql # not compatible
query I rowsort label-4383
SELECT 29 + - - col0 / + col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
30
30
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + - 0 + - col1 + - col2 * + + 69 + 27 IS NULL )
----

query I rowsort
SELECT DISTINCT ( 99 ) + - col1 FROM tab0 AS cor0
----
18
78
98

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - + 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT SUM( ALL 72 ) AS col2 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-4387
SELECT SUM ( ALL 72 ) AS col2 FROM tab1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL COUNT( * ) + + 94 AS col2 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL COUNT ( * ) + + 94 AS col2 FROM tab1
----
97

query I rowsort
SELECT - 74 + - col1 AS col1 FROM tab2 cor0
----
-125
-141
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT ALL 88 DIV + col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL 88 / + col2 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4391
SELECT - 24 * COUNT( * ) AS col0, - 55 * - 19 AS col2 FROM tab2
----
-72
1045

skipif mysql # not compatible
query II rowsort label-4391
SELECT - 24 * COUNT ( * ) AS col0, - 55 * - 19 AS col2 FROM tab2
----
-72
1045

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 cor1 ON NOT NULL BETWEEN NULL AND NULL, tab1 AS cor2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4393
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4393
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4394
SELECT MIN( DISTINCT 67 ), + 71 AS col2 FROM tab2 AS cor0
----
67
71

skipif mysql # not compatible
query II rowsort label-4394
SELECT MIN ( DISTINCT 67 ), + 71 AS col2 FROM tab2 AS cor0
----
67
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 + + col2 * + - col2 / - col2 + + + ( 27 ) ) IS NOT NULL
----

query I rowsort
SELECT + + col0 * + 75 AS col1 FROM tab1 AS cor0
----
3825
6375
6825

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT 67 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + col1 + - col2 * + - col1 < 88 / 73 + + 43
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT - col0 DIV - 59 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4399
SELECT - col0 / - 59 AS col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - COUNT( + 64 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4400
SELECT - COUNT ( + 64 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 * + 5 FROM tab0 AS cor0
----
235
495
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4402
SELECT + ( - + 0 ) DIV - - col1 + 97 + + col0 FROM tab0 AS cor0
----
112
184
194

skipif mysql # not compatible
query I rowsort label-4402
SELECT + ( - + 0 ) / - - col1 + 97 + + col0 FROM tab0 AS cor0
----
112
184
194

query II rowsort
SELECT col0, - col0 + - col2 + 37 AS col2 FROM tab1 AS cor0
----
51
-110
85
-107
91
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4404
SELECT ALL - - MAX( ALL + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - - MAX ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4405
SELECT ALL + - 53 * 49 DIV + col1 - - col1 FROM tab1 AS cor0
----
-171
-514
-8

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL + - 53 * 49 / + col1 - - col1 FROM tab1 AS cor0
----
-171
-514
-8

query II rowsort
SELECT - 42 AS col2, 22 * - + col0 * - + 71 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4408
SELECT ALL - ( + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ) FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL - ( + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) FROM tab1, tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT DISTINCT ( ( + + SUM( ALL col2 ) ) ) + + 57 col1 FROM tab2
----
178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4409
SELECT DISTINCT ( ( + + SUM ( ALL col2 ) ) ) + + 57 col1 FROM tab2
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT 7 + COUNT( * ) AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT 7 + COUNT ( * ) AS col0 FROM tab1
----
10

query I rowsort
SELECT - ( - - col0 ) * col1 * 4 FROM tab2
----
-19712
-20100
-9384

query I rowsort
SELECT DISTINCT - col2 + - - col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL - MIN( - col2 ) + - + MAX( + + 62 ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL - MIN ( - col2 ) + - + MAX ( + + 62 ) FROM tab0 AS cor0
----
37

query I rowsort
SELECT ALL + ( + col2 ) + + 62 FROM tab0 AS cor0
----
109
161
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT + 75 - + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4415
SELECT + 75 - + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 57 - - + col0 + + - col2 - - + col0 AS col2 FROM tab0 cor0
----
152
221
40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4418
SELECT + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * + col2 col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4418
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * + col2 col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL + 93 + + - COUNT( * ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + 93 + + - COUNT ( * ) AS col0 FROM tab0
----
90

query I rowsort
SELECT 6 * + col1 AS col1 FROM tab1
----
282
30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4421
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
3

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-15
-87
-97

query I rowsort
SELECT + ( - + col1 ) * + 94 FROM tab2 cor0
----
-4794
-6298
-7238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col1 col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE + 99 - + - CAST( NULL AS SIGNED ) + - 66 <> NULL
----

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE + 99 - + - CAST ( NULL AS INTEGER ) + - 66 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4426
SELECT ALL - CAST( + MIN( - 9 ) AS SIGNED ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - CAST ( + MIN ( - 9 ) AS INTEGER ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE 31 / - col2 IS NULL
----

query I rowsort
SELECT - + 51 * col2 AS col2 FROM tab1 WHERE NOT NULL > + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4429
SELECT MIN( DISTINCT - col0 ), + COUNT( * ) * + 74 + COUNT( * ) AS col1 FROM tab2
----
-75
225

skipif mysql # not compatible
query II rowsort label-4429
SELECT MIN ( DISTINCT - col0 ), + COUNT ( * ) * + 74 + COUNT ( * ) AS col1 FROM tab2
----
-75
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL - COUNT( * ) * COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4430
SELECT ALL - COUNT ( * ) * COUNT ( * ) col1 FROM tab0
----
-9

query I rowsort
SELECT ALL col0 + - col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT - 44 DIV - 10 AS col0 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4432
SELECT - 44 / - 10 AS col0 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT ALL + 36 FROM tab2 cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - - SUM( ALL - col2 ) FROM tab1 AS cor0 WHERE NOT 36 < + ( 68 ) + - - col2 / - col1 + - + 94
----
-223

skipif mysql # not compatible
query I rowsort label-4434
SELECT - - SUM ( ALL - col2 ) FROM tab1 AS cor0 WHERE NOT 36 < + ( 68 ) + - - col2 / - col1 + - + 94
----
-223

query I rowsort
SELECT ALL col0 + - + 9 FROM tab1
----
42
76
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT DISTINCT 82 + 41 DIV col0 FROM tab1 WHERE NOT + 55 * - + col2 DIV + + col2 <= - col2
----
82

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT 82 + 41 / col0 FROM tab1 WHERE NOT + 55 * - + col2 / + + col2 <= - col2
----
82

query II rowsort
SELECT ALL + col1 * 14 * + col1 AS col1, col2 FROM tab0
----
14
99
6174
10
91854
47

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT DISTINCT - 91 * + 47 FROM tab1
----
-4277

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT 89 + + MIN( ALL - col1 ) col1 FROM tab2 cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4441
SELECT DISTINCT 89 + + MIN ( ALL - col1 ) col1 FROM tab2 cor0
----
12

query II rowsort
SELECT ALL + + 97 AS col1, - 51 + + 92 * + col1 FROM tab1 AS cor0
----
97
1237
97
409
97
4273

onlyif mysql # DIV for integer division: 
query I rowsort label-4443
SELECT col1 DIV 73 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4443
SELECT col1 / 73 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4444
SELECT 26 AS col0, + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
26
10
26
47
26
99

skipif mysql # not compatible
query II rowsort label-4444
SELECT 26 AS col0, + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
26
10
26
47
26
99

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) IS NULL AND ( NULL ) NOT BETWEEN col1 + + col2 * - 35 * 18 AND NULL
----

query I rowsort
SELECT 2 - - 20 FROM tab0
----
22
22
22

query I rowsort
SELECT 71 AS col0 FROM tab0 WHERE NULL NOT BETWEEN 30 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL COUNT( * ) + + COUNT( * ) + COUNT( * ) + 59 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) + 59 FROM tab0
----
68

query I rowsort
SELECT DISTINCT - 42 * - col2 * 2 FROM tab1
----
4956
5712
8064

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT COUNT( * ) * - + 20 + + - 83 col1 FROM tab1 AS cor0
----
-143

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4450
SELECT COUNT ( * ) * - + 20 + + - 83 col1 FROM tab1 AS cor0
----
-143

query II rowsort
SELECT - col0 AS col2, + 10 AS col1 FROM tab2 cor0
----
-46
10
-64
10
-75
10

query I rowsort
SELECT ALL - 92 - col1 AS col1 FROM tab2 AS cor0
----
-143
-159
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4453
SELECT 96 DIV MAX( - col1 ) DIV + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4453
SELECT 96 / MAX ( - col1 ) / + COUNT ( * ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4454
SELECT DISTINCT COUNT( * ) DIV + 60 * - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT COUNT ( * ) / + 60 * - COUNT ( * ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT DISTINCT MAX( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT MAX ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + - 68 * - + col0 FROM tab1 AS cor0
----
332928
341020
420784

query I rowsort
SELECT ALL + col0 * + 96 + + + 81 FROM tab2 AS cor0
----
4497
6225
7281

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 42 + - + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT ALL col2 DIV - - col0 + - 32 * + 64 FROM tab1 AS cor0
----
-2047
-2048
-2048

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL col2 / - - col0 + - 32 * + 64 FROM tab1 AS cor0
----
-2047
-2048
-2048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT + CAST( - 83 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

skipif mysql # not compatible
query I rowsort label-4461
SELECT + CAST ( - 83 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT + ( + 66 ) FROM tab2
----
66
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT + 57 DIV col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4463
SELECT + 57 / col0 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + col1 * - col2 col2 FROM tab0 AS cor0
----
15
-3807
87
-210
97
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT DISTINCT - + AVG ( DISTINCT - + col2 ) col0, - MIN( - col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4465
SELECT DISTINCT - + AVG ( DISTINCT - + col2 ) col0, - MIN ( - col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
NULL

query I rowsort
SELECT 96 - + 57 FROM tab2
----
39
39
39

query I rowsort
SELECT ALL 86 - - col2 * + ( - 85 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1869
-3314
-4844

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4468
SELECT ALL * FROM tab1 WHERE NOT ( 78 + CAST( - 91 AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4468
SELECT ALL * FROM tab1 WHERE NOT ( 78 + CAST ( - 91 AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT DISTINCT MIN( ALL col1 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4469
SELECT DISTINCT MIN ( ALL col1 ) col2 FROM tab1
----
5

query I rowsort
SELECT col1 FROM tab2 WHERE col2 IN ( 4 + - col0 )
----

query I rowsort
SELECT col2 * col2 - - 26 AS col2 FROM tab0
----
126
2235
9827

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 < ( col2 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - SUM( ALL - col2 ) * + 83 FROM tab1
----
18509

skipif mysql # not compatible
query I rowsort label-4473
SELECT - SUM ( ALL - col2 ) * + 83 FROM tab1
----
18509

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT + 62 * 96 + + COUNT( - col2 + + 37 ) * - 47 AS col0 FROM tab2
----
5811

skipif mysql # not compatible
query I rowsort label-4474
SELECT + 62 * 96 + + COUNT ( - col2 + + 37 ) * - 47 AS col0 FROM tab2
----
5811

query I rowsort
SELECT col2 + + 23 AS col0 FROM tab1 WHERE NOT - ( col2 ) IS NOT NULL
----

query I rowsort
SELECT + 41 * col1 FROM tab2
----
2091
2747
3157

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND col1 * + 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT SUM( ALL col0 ) * 44 FROM tab0
----
8756

skipif mysql # not compatible
query I rowsort label-4478
SELECT SUM ( ALL col0 ) * 44 FROM tab0
----
8756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 AS col2 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT - CAST( NULL AS SIGNED ) * + 40 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT - CAST ( NULL AS INTEGER ) * + 40 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + 37 / + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + ( - 63 ) )
----

query I rowsort
SELECT 86 * - 95 AS col0 FROM tab0
----
-8170
-8170
-8170

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT DISTINCT COUNT( DISTINCT col1 ) - COUNT( * ) * + 54 FROM tab0 WHERE NOT col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT COUNT ( DISTINCT col1 ) - COUNT ( * ) * + 54 FROM tab0 WHERE NOT col0 <> NULL
----
0

query I rowsort
SELECT + col1 - + 33 * 74 FROM tab1
----
-2395
-2428
-2437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 56 ) col0 FROM tab0 WHERE NOT + col1 NOT IN ( - col0 / - col0 )
----
-56

query I rowsort
SELECT col0 - + col2 * + ( 25 ) FROM tab0 cor0
----
-1160
-163
-2378

query I rowsort
SELECT - 28 - 98 FROM tab2 AS cor0
----
-126
-126
-126

query I rowsort
SELECT + col0 * 8 FROM tab2 AS cor0 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4490
SELECT COUNT( * ) DIV MAX( 19 ) - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4490
SELECT COUNT ( * ) / MAX ( 19 ) - COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * ( col0 ) + - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
144
7548
9408

query I rowsort
SELECT ALL 14 * 43 + col2 AS col2 FROM tab1 AS cor0
----
661
670
698

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT - COUNT( * ) * 7 AS col1 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT - COUNT ( * ) * 7 AS col1 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL col0 * ( 95 * col0 ) FROM tab2 AS cor0
----
201020
389120
534375

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT DISTINCT COUNT( * ) * + SUM( + col1 ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT COUNT ( * ) * + SUM ( + col1 ) FROM tab2 AS cor0
----
585

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4496
SELECT - CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT - CAST ( NULL AS REAL ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND ( col1 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4498
SELECT ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL - ( SUM( ALL - col0 ) ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL - ( SUM ( ALL - col0 ) ) AS col0 FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE ( + col1 ) <> ( - col0 )
----
23
40
58

query I rowsort
SELECT DISTINCT + col0 * 75 AS col2 FROM tab2 cor0
----
3450
4800
5625

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 NOT BETWEEN NULL AND ( col1 ) / 98
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4503
SELECT DISTINCT - 66 AS col0 FROM tab1 AS cor0 WHERE - col1 + - 4 * - CAST( - 69 AS DECIMAL ) IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - 66 AS col0 FROM tab1 AS cor0 WHERE - col1 + - 4 * - CAST ( - 69 AS REAL ) IS NOT NULL
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) + - col2 * + 31 )
----

skipif mysql # not compatible
query I rowsort label-4504
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) + - col2 * + 31 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 3 ) BETWEEN NULL AND ( col1 - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 47 BETWEEN 83 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4507
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 / ( 20 ) NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 / ( 20 ) NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT DISTINCT 45 + col1 DIV col2 FROM tab0 WHERE ( - 66 + - 48 DIV + 66 ) <> + 28
----
45
46
47

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT 45 + col1 / col2 FROM tab0 WHERE ( - 66 + - 48 / + 66 ) <> + 28
----
45
46
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 col1 FROM tab1 AS cor0 WHERE NOT + col2 <= - 69
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT - - SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - - SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 cor0 WHERE 17 = - 92 * col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 85 <= 97 AND NOT - 10 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + col2 * - col0 * col1 + col2 FROM tab2 AS cor0
----
-197080
-291392
-53935

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL - + MIN( ALL + 31 ) * - 93 FROM tab2 AS cor0
----
2883

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - + MIN ( ALL + 31 ) * - 93 FROM tab2 AS cor0
----
2883

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - 34 + COUNT( * ) + + + 58 AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-4515
SELECT - 34 + COUNT ( * ) + + + 58 AS col2 FROM tab1
----
27

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT DISTINCT + MIN( - - 72 ) + + COUNT( * ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + MIN ( - - 72 ) + + COUNT ( * ) AS col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT COUNT( * ) + 13 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
22

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT COUNT ( * ) + 13 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
22

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE + - ( - ( + col2 ) ) > - 56
----
14
47
5

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE + 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL + 59 * MAX( col0 ) * MAX( - col0 ) + 6 * + 52 FROM tab0 AS cor0
----
-85533

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL + 59 * MAX ( col0 ) * MAX ( - col0 ) + 6 * + 52 FROM tab0 AS cor0
----
-85533

query II rowsort
SELECT ALL + col1, col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + 15 * - 89 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( 73 ) AND - 31 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - SUM( col0 ) col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4524
SELECT - SUM ( col0 ) col2 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT DISTINCT + SUM( DISTINCT - + col0 ) - 21 FROM tab1 AS cor0
----
-248

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT + SUM ( DISTINCT - + col0 ) - 21 FROM tab1 AS cor0
----
-248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE 14 * ( 63 ) IN ( CAST( NULL AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query I rowsort label-4526
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE 14 * ( 63 ) IN ( CAST ( NULL AS INTEGER ) * + col0 )
----

query I rowsort
SELECT - col2 * - - 22 + - col2 - col0 AS col1 FROM tab2 cor0
----
-1409
-575
-984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT DISTINCT CAST( - - AVG ( + 22 ) AS SIGNED ) FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT CAST ( - - AVG ( + 22 ) AS INTEGER ) FROM tab0 cor0
----
22

query I rowsort
SELECT - ( + - col1 ) - 39 FROM tab1 AS cor0
----
-25
-34
8

query I rowsort
SELECT + 90 * - 67 + + col0 - col2 FROM tab2 AS cor0
----
-6006
-6007
-6013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT ALL col1 + + CAST( NULL AS SIGNED ) * col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4531
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) * col2 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT - 30 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4532
SELECT - 30 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col2 + - - 85 AS col2 FROM tab0
----
132
184
95

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4535
SELECT ALL CAST( + - col0 AS SIGNED ) AS col0, - 56 FROM tab0 AS cor0
----
-15
-56
-87
-56
-97
-56

skipif mysql # not compatible
query II rowsort label-4535
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col0, - 56 FROM tab0 AS cor0
----
-15
-56
-87
-56
-97
-56

query I rowsort
SELECT DISTINCT + - 72 AS col0 FROM tab2 AS cor0 WHERE + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT - MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4537
SELECT - MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT MAX( 6 ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4538
SELECT MAX ( 6 ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL + 21 * 53 FROM tab2 WHERE NOT ( + ( 72 ) ) NOT BETWEEN ( NULL ) AND ( - 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL - SUM( - col0 ) FROM tab2 AS cor0 WHERE NOT ( - - col0 ) <> + + col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - SUM ( - col0 ) FROM tab2 AS cor0 WHERE NOT ( - - col0 ) <> + + col0 * col2
----
NULL

query II rowsort
SELECT - - 59, + 86 AS col2 FROM tab1 AS cor0
----
59
86
59
86
59
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT - COUNT( * ) * 20 FROM tab1 AS cor0 WHERE NOT NULL < - 24 * col0 * + + col1
----
0

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT - COUNT ( * ) * 20 FROM tab1 AS cor0 WHERE NOT NULL < - 24 * col0 * + + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT ALL - ( CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4543
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 12 * 58 FROM tab0 AS cor0
----
696
696
696

query I rowsort
SELECT + 21 * - 35 + col0 FROM tab2 cor0
----
-660
-671
-689

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 * + col2 * + col0 - + col0 * + - col1 * - col1 col0 FROM tab0 AS cor0
----
-128730
-413026
-75777

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4548
SELECT DISTINCT col1 / + - CAST( NULL AS DECIMAL ) * - 77, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4548
SELECT DISTINCT col1 / + - CAST ( NULL AS REAL ) * - 77, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4549
SELECT ALL 45 DIV + + 57 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL 45 / + + 57 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - + col2 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT + col1 * + 63 FROM tab2 AS cor0
----
3213
4221
4851

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 cor0 WHERE NOT + 69 + + col1 <= - - 32
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4554
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + + ( - ( - COUNT( * ) ) ) - - + 22 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + + ( - ( - COUNT ( * ) ) ) - - + 22 FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL + col0 * col1 * + col1 + + + 99 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4556
SELECT DISTINCT + - CAST( + - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT + - CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + ( - 88 ) AS col0 FROM tab2
----
-88

query I rowsort
SELECT - 16 + + - col2 AS col0 FROM tab2
----
-39
-56
-74

query I rowsort
SELECT col2 + 97 AS col1 FROM tab1
----
156
165
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4560
SELECT COUNT( * ) / - + 11 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT COUNT ( * ) / - + 11 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + 21 + - - 36 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4562
SELECT * FROM tab0 AS cor0 WHERE col0 * ( 15 ) / - - 50 * + col2 + + - 17 IN ( CAST( 51 AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query III rowsort label-4562
SELECT * FROM tab0 AS cor0 WHERE col0 * ( 15 ) / - - 50 * + col2 + + - 17 IN ( CAST ( 51 AS INTEGER ) + + col1 )
----

query I rowsort
SELECT - 0 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL 7 - - 98 AS col0 FROM tab1 AS cor0
----
105
105
105

query I rowsort
SELECT ALL + 39 AS col2 FROM tab0 cor0
----
39
39
39

query III rowsort
SELECT * FROM tab1 WHERE + + col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL - SUM( ALL - col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL - SUM ( ALL - col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4568
SELECT DISTINCT - MIN( DISTINCT - + ( - col2 ) ), - 24 AS col0 FROM tab1
----
-59
-24

skipif mysql # not compatible
query II rowsort label-4568
SELECT DISTINCT - MIN ( DISTINCT - + ( - col2 ) ), - 24 AS col0 FROM tab1
----
-59
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT CAST( NULL AS SIGNED ) * + - 47 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT CAST ( NULL AS INTEGER ) * + - 47 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT MAX( DISTINCT 90 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-4570
SELECT MAX ( DISTINCT 90 ) FROM tab2
----
90

query II rowsort
SELECT - 76, col2 FROM tab0 AS cor0
----
-76
10
-76
47
-76
99

query I rowsort
SELECT DISTINCT - + 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - col1 ) >= ( - ( + + 22 ) + + 5 )
----
2

skipif mysql # not compatible
query I rowsort label-4573
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - col1 ) >= ( - ( + + 22 ) + + 5 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL + COUNT( * ) + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL + COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 87 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
87

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT - + SUM( + + 57 ) * - + COUNT( * ) FROM tab0 AS cor0
----
513

skipif mysql # not compatible
query I rowsort label-4578
SELECT - + SUM ( + + 57 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
513

query I rowsort
SELECT ALL - + col2 * + + col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT ALL 55 DIV - 75 FROM tab0 AS cor0 WHERE NOT 32 IS NULL OR NOT + col0 = - col2 * - + col2 * - col1 + - 22
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL 55 / - 75 FROM tab0 AS cor0 WHERE NOT 32 IS NULL OR NOT + col0 = - col2 * - + col2 * - col1 + - 22
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - + MIN( ALL + ( col2 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4581
SELECT - + MIN ( ALL + ( col2 ) ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4582
SELECT CAST( ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4582
SELECT CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT col1, + 3 AS col1 FROM tab2
----
51
3
67
3
77
3

query II rowsort
SELECT col0 AS col2, col2 AS col0 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT col0 * + + col2 + + col1 AS col0 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL - COUNT( * ) + - - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) + + 42 FROM tab2
----
-1131
-3038
-3844

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT DISTINCT + col0 DIV - 14 col0 FROM tab1
----
-3
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4588
SELECT DISTINCT + col0 / - 14 col0 FROM tab1
----
-3
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL - + COUNT( * ) + - - 81 AS col1 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - + COUNT ( * ) + - - 81 AS col1 FROM tab0 AS cor0
----
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( ( - - col0 ) )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( - 55 IS NOT NULL )
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL 85 * - MAX( col1 ) + CAST( + + 40 AS SIGNED ) FROM tab0
----
-6845

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL 85 * - MAX ( col1 ) + CAST ( + + 40 AS INTEGER ) FROM tab0
----
-6845

query I rowsort
SELECT DISTINCT - - 28 - - col0 AS col2 FROM tab0 AS cor0
----
115
125
43

query I rowsort
SELECT + 70 * + col1 FROM tab1 AS cor0
----
3290
350
980

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT 91 * + col0 DIV - + col0 FROM tab1
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-4596
SELECT 91 * + col0 / - + col0 FROM tab1
----
-91
-91
-91

query I rowsort
SELECT ALL col2 * - + col0 AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL - 29 * + SUM( - - col0 ) AS col1 FROM tab1 WHERE NOT ( NULL > NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL - 29 * + SUM ( - - col0 ) AS col1 FROM tab1 WHERE NOT ( NULL > NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT DISTINCT SUM( + - 72 ) AS col2 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT SUM ( + - 72 ) AS col2 FROM tab1
----
-216

query I rowsort
SELECT ALL col2 + - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT + col0 * + CAST( NULL AS SIGNED ) + col1 - + col0 / + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT + col0 * + CAST ( NULL AS INTEGER ) + col1 - + col0 / + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT ALL + + CAST( - CAST( CAST( + 64 AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 59 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + + CAST ( - CAST ( CAST ( + 64 AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT DISTINCT MAX( ALL - 13 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 96 - + - col1 BETWEEN NULL AND + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT MAX ( ALL - 13 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 96 - + - col1 BETWEEN NULL AND + 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4604
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 WHERE + col2 BETWEEN NULL AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col2 BETWEEN NULL AND + col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4605
SELECT DISTINCT COUNT( * ) + + COUNT( * ) DIV + + 56 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) / + + 56 FROM tab2
----
3

query I rowsort
SELECT ALL - col2 + col0 * + 6 AS col1 FROM tab2
----
253
344
392

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + - 79 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT - col1 + 64 - - col1 - + + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 WHERE - + col0 IS NOT NULL
----
145
65
85

skipif mysql # not compatible
query I rowsort label-4608
SELECT - col1 + 64 - - col1 - + + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 WHERE - + col0 IS NOT NULL
----
145
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT SUM( + ( - col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4609
SELECT SUM ( + ( - col2 ) ) FROM tab0
----
-156

query II rowsort
SELECT ( 28 ) AS col1, col1 * - col1 - col0 AS col1 FROM tab1
----
28
-110
28
-2300
28
-247

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 64 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL + - 60 * COUNT( * ) FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + - 60 * COUNT ( * ) FROM tab1 AS cor0
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT - 11 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT - 11 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT - col0 DIV + col1 AS col0 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT - col0 / + col1 AS col0 FROM tab0 cor0
----
-4
-97
0

query II rowsort
SELECT + + 13 AS col2, - 22 * + 90 AS col2 FROM tab1 AS cor0
----
13
-1980
13
-1980
13
-1980

query I rowsort
SELECT ALL + ( - - col0 ) AS col2 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( + 98 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col2 * + 49
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - 67 * - col0 + - col0 + + + ( + + col0 ) NOT BETWEEN - col0 * col1 + 71 AND 93 + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - col0 ) * col1 + col1 NOT BETWEEN - 90 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT ALL 29 * + col0 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL 29 * + col0 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL AVG ( DISTINCT 67 ) - - 51 AS col1 FROM tab1 WHERE NOT NULL >= ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4624
SELECT ALL - col1 DIV - 69 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL - col1 / - 69 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 * 47 FROM tab2
----
1081
1880
2726

query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 AS col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT - 9 * col1 * col0 AS col0 FROM tab0
----
-10935
-16443
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL MIN( DISTINCT - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL MIN ( DISTINCT - col0 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT + 75 * - + col2 AS col1 FROM tab1
----
-4425
-5100
-7200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4630
SELECT 71 / CAST( NULL AS SIGNED ), + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4630
SELECT 71 / CAST ( NULL AS INTEGER ), + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT ALL 12, col2 FROM tab1 AS cor0
----
12
59
12
68
12
96

query II rowsort
SELECT - 54, - col1 * - col2 AS col1 FROM tab1 AS cor0
----
-54
1344
-54
295
-54
3196

query I rowsort
SELECT DISTINCT col2 + - col0 + col1 FROM tab0
----
-56
113
3

query II rowsort
SELECT 77 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
77
15
77
87
77
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - + 21 + - - 55 col0, + col2 col0 FROM tab2 AS cor0
----
-1289
40
-1520
58
-911
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL MAX( - + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL MAX ( - + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - 77 * + - COUNT( * ) + + 23 FROM tab1 AS cor0
----
254

skipif mysql # not compatible
query I rowsort label-4637
SELECT - 77 * + - COUNT ( * ) + + 23 FROM tab1 AS cor0
----
254

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 90 AND NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL <= + 94
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4640
SELECT - COUNT( * ) * 78 col2, COUNT( - 88 ) FROM tab0 AS cor0
----
-234
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4640
SELECT - COUNT ( * ) * 78 col2, COUNT ( - 88 ) FROM tab0 AS cor0
----
-234
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT - MIN( ( + 3 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4641
SELECT - MIN ( ( + 3 ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4642
SELECT * FROM tab1 WHERE + - 27 / + col2 / - + CAST( NULL AS SIGNED ) <> + + 56 * col0 + - col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-4642
SELECT * FROM tab1 WHERE + - 27 / + col2 / - + CAST ( NULL AS INTEGER ) <> + + 56 * col0 + - col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT DISTINCT COUNT( + 63 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT COUNT ( + 63 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT col1, - 55 * - + col0 AS col2 FROM tab1
----
14
2805
47
5005
5
4675

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4645
SELECT ALL 47 * - - CAST( + CAST( + col0 AS DECIMAL ) AS SIGNED ) FROM tab0
----
4089
4559
705

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL 47 * - - CAST ( + CAST ( + col0 AS REAL ) AS INTEGER ) FROM tab0
----
4089
4559
705

query II rowsort
SELECT DISTINCT - 44, col1 FROM tab0
----
-44
1
-44
21
-44
81

query I rowsort
SELECT ALL - 47 + - + ( + 66 ) FROM tab2
----
-113
-113
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT col2 * - 2 + - CAST( - - col1 AS SIGNED ) AS col0 FROM tab1
----
-123
-183
-206

skipif mysql # not compatible
query I rowsort label-4648
SELECT col2 * - 2 + - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1
----
-123
-183
-206

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col0 - - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 IN ( + 78 + 75 + + col1 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT - MAX( 3 ) + 45 AS col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4651
SELECT - MAX ( 3 ) + 45 AS col1 FROM tab0 AS cor0
----
42

query I rowsort
SELECT + col0 * + - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT ALL - + col2, + col1 AS col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT col0 * + col0 * + ( + - 25 ) AS col0 FROM tab2
----
-102400
-140625
-52900

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL 20 * + MIN( ALL - col1 ) FROM tab1
----
-940

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL 20 * + MIN ( ALL - col1 ) FROM tab1
----
-940

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + col1 + - col0 + 24 / 71 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4657
SELECT DISTINCT - SUM( ALL - 87 ) AS col0, + ( - 60 ) FROM tab0 AS cor0
----
261
-60

skipif mysql # not compatible
query II rowsort label-4657
SELECT DISTINCT - SUM ( ALL - 87 ) AS col0, + ( - 60 ) FROM tab0 AS cor0
----
261
-60

query I rowsort
SELECT ALL + 88 * - 53 FROM tab2 cor0 WHERE - col1 < NULL
----

query II rowsort
SELECT DISTINCT col1 * col2 AS col1, col2 AS col2 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

query I rowsort
SELECT ALL - 3 * - col0 * - + 80 AS col1 FROM tab1 AS cor0
----
-12240
-20400
-21840

query I rowsort
SELECT DISTINCT 92 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT DISTINCT - ( - col2 ) DIV - + col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - ( - col2 ) / - + col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4663
SELECT - 64 AS col1, - col1 * CAST( NULL AS SIGNED ) * - + col0 FROM tab1
----
-64
NULL
-64
NULL
-64
NULL

skipif mysql # not compatible
query II rowsort label-4663
SELECT - 64 AS col1, - col1 * CAST ( NULL AS INTEGER ) * - + col0 FROM tab1
----
-64
NULL
-64
NULL
-64
NULL

query II rowsort
SELECT col2, - col0 * + + 70 FROM tab2 WHERE NOT + ( + col2 ) IS NULL
----
23
-3220
40
-4480
58
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT - - MIN( + col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT - - MIN ( + col1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT + - 42 DIV col2 * + col1 - - col0 - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4666
SELECT + - 42 / col2 * + col1 - - col0 - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 / - col2 * - - 68 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL col0 * + + 8 FROM tab2 AS cor0
----
368
512
600

query I rowsort
SELECT ALL - + col2 * - ( - 21 ) FROM tab0 AS cor0
----
-2079
-210
-987

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT MAX( DISTINCT - + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-4671
SELECT MAX ( DISTINCT - + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT DISTINCT + COUNT( ALL 59 ) DIV - - 46 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + COUNT ( ALL 59 ) / - - 46 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + - + 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 + + - col1 * + col2 * 1 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL + COUNT( * ) + + 30 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + COUNT ( * ) + + 30 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - - 18 + + COUNT( * ) col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4676
SELECT - - 18 + + COUNT ( * ) col1 FROM tab2 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col1 FROM tab2 AS cor0
----
-93

query II rowsort
SELECT DISTINCT + col2, 17 AS col1 FROM tab1 AS cor0
----
59
17
68
17
96
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + + - 1 col1 FROM tab2 AS cor0
----
61
61
61

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 88 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 84 + - 96 * - + 34 + - col1 + - + col0 NOT BETWEEN ( 34 + col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT 45 + - col1 AS col0 FROM tab0
----
-36
24
44

query I rowsort
SELECT ALL 38 FROM tab0 WHERE ( NULL ) IS NULL
----
38
38
38

onlyif mysql # DIV for integer division: 
query II rowsort label-4685
SELECT 95 DIV + 65 AS col2, + 92 * - - col0 + + col2 FROM tab0
----
1
1427
1
8014
1
9023

skipif mysql # not compatible
query II rowsort label-4685
SELECT 95 / + 65 AS col2, + 92 * - - col0 + + col2 FROM tab0
----
1
1427
1
8014
1
9023

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL 92 + + COUNT( * ) * + - 51 + - 61 FROM tab1 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL 92 + + COUNT ( * ) * + - 51 + - 61 FROM tab1 AS cor0
----
-122

query I rowsort
SELECT + col1 - ( - + col2 ) * - col1 FROM tab0 AS cor0
----
-189
-3726
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 + col1 AND 21
----

query I rowsort
SELECT col1 + + 36 / + - 76 + - 85 FROM tab0 WHERE NOT ( - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT - 8 / + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT - 8 / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 AS col1, 6 - - 68 FROM tab2 AS cor0
----
46
74
64
74
75
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + + col2 = + 55 * + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL + MIN( col1 ) * - + 46 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + MIN ( col1 ) * - + 46 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 35 * + 55 * + + col0 + - ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-167562
-186822
-28890

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT DISTINCT - 46 DIV - + col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT - 46 / - + col1 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT + MIN( - - 68 ) AS col0 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4696
SELECT + MIN ( - - 68 ) AS col0 FROM tab2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT ALL + col1 DIV + col0 + - col1 FROM tab2
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL + col1 / + col0 + - col1 FROM tab2
----
-50
-67
-76

query I rowsort
SELECT 94 * - 27 AS col2 FROM tab1
----
-2538
-2538
-2538

query I rowsort
SELECT DISTINCT - - 84 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
84

query I rowsort
SELECT 96 AS col0 FROM tab2 WHERE - + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE 32 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE 32 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT ALL + col2 * - 38 + + col2 + - 44 DIV - 1 + - - col2 FROM tab2 AS cor0
----
-1396
-2044
-784

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + col2 * - 38 + + col2 + - 44 / - 1 + - - col2 FROM tab2 AS cor0
----
-1396
-2044
-784

query I rowsort
SELECT + col2 * 62 * + 30 AS col1 FROM tab2 AS cor0
----
107880
42780
74400

query I rowsort
SELECT DISTINCT - + 25 / + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL - - COUNT( * ) + 80 col2 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4705
SELECT ALL - - COUNT ( * ) + 80 col2 FROM tab0 AS cor0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4706
SELECT ALL - CAST( NULL AS SIGNED ) - - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL - CAST ( NULL AS INTEGER ) - - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 67 + + col1 + col2 * + col0 FROM tab0
----
853
958
9671

query I rowsort
SELECT ALL ( + ( + 12 ) ) FROM tab2
----
12
12
12

query I rowsort
SELECT - 6 + - col1 + + - col0 FROM tab2
----
-103
-147
-148

query III rowsort
SELECT * FROM tab0 WHERE + 17 + + + ( 79 ) <> + ( + 96 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / + col1 NOT IN ( + + col0 + - - 79 * + col0, col1 / - + col1 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4712
SELECT ALL - 83, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 = - 48 - + - 54 * - 92
----
-83
0

skipif mysql # not compatible
query II rowsort label-4712
SELECT ALL - 83, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 = - 48 - + - 54 * - 92
----
-83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT ALL - SUM( - - col1 ) - - + COUNT( * ) - - 80 + 99 col2 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4713
SELECT ALL - SUM ( - - col1 ) - - + COUNT ( * ) - - 80 + 99 col2 FROM tab0 AS cor0
----
79

query II rowsort
SELECT ALL col2 AS col2, - col1 * - ( - col0 ) FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL - MAX( - - col2 ) AS col2 FROM tab1 WHERE NOT NULL <= - 58 * - 89 * - col2 / + col2 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL - MAX ( - - col2 ) AS col2 FROM tab1 WHERE NOT NULL <= - 58 * - 89 * - col2 / + col2 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT 89 * + - SUM( + col1 ) FROM tab1
----
-5874

skipif mysql # not compatible
query I rowsort label-4716
SELECT 89 * + - SUM ( + col1 ) FROM tab1
----
-5874

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND - + 11
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT ( col0 ) DIV + + col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4718
SELECT ( col0 ) / + + col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 + col2, + 41 - + col0, + - 49 / col0, col1 * + 65 - + 55 * + 21, 99 )
----
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 + col2, + 41 - + col0, + - 49 / col0, col1 * + 65 - + 55 * + 21, 99 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4720
SELECT ALL + col1 * - - col1 DIV - col1, - col2 AS col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL + col1 * - - col1 / - col1, - col2 AS col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + - col2 col0 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT + 21 * + col1 * - 35 AS col0 FROM tab2 AS cor0
----
-37485
-49245
-56595

onlyif mysql # aggregate syntax: 
query II rowsort label-4723
SELECT ALL + MIN( DISTINCT - col0 ), - ( - 2 ) AS col0 FROM tab1 AS cor0
----
-91
2

skipif mysql # not compatible
query II rowsort label-4723
SELECT ALL + MIN ( DISTINCT - col0 ), - ( - 2 ) AS col0 FROM tab1 AS cor0
----
-91
2

query I rowsort
SELECT - - ( - - 71 ) AS col0 FROM tab2 AS cor0
----
71
71
71

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL + + MIN( + col1 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4726
SELECT ALL + + MIN ( + col1 ) col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT ALL + COUNT( * ), COUNT( DISTINCT - + col1 ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4727
SELECT ALL + COUNT ( * ), COUNT ( DISTINCT - + col1 ) AS col2 FROM tab2
----
3
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 96 - - 18 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + 31 AS col2 FROM tab0
----
112
32
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 73 col2 FROM tab1
----
-12
-18
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4731
SELECT ALL - col0, - CAST( col2 AS SIGNED ) + col2 AS col2 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-4731
SELECT ALL - col0, - CAST ( col2 AS INTEGER ) + col2 AS col2 FROM tab1
----
-51
0
-85
0
-91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + - 76 col2 FROM tab2
----
-1
-12
-30

query I rowsort
SELECT ALL + - col0 * 21 AS col2 FROM tab0 AS cor0
----
-1827
-2037
-315

query I rowsort
SELECT DISTINCT + 14 * ( + col1 ) FROM tab0 AS cor0
----
1134
14
294

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-83

query I rowsort
SELECT ALL col0 * + + col2 + - - col2 FROM tab2 AS cor0
----
1081
2600
4408

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + col2 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4738
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( - col0 ) - + col1, 42 * 76 col2 FROM tab1 AS cor0
----
NULL
3192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4738
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( - col0 ) - + col1, 42 * 76 col2 FROM tab1 AS cor0
----
NULL
3192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + - 76 ) * - - col1 - + col0 col2 FROM tab0 AS cor0
----
-1683
-173
-6171

onlyif mysql # aggregate syntax: 
query II rowsort label-4740
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col0, - 22 FROM tab2 AS cor0
----
9
-22

skipif mysql # not compatible
query II rowsort label-4740
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col0, - 22 FROM tab2 AS cor0
----
9
-22

query I rowsort
SELECT col0 - col2 * - col0 FROM tab0
----
720
957
9700

query I rowsort
SELECT ALL col1 + + 81 AS col0 FROM tab2
----
132
148
158

query I rowsort
SELECT 54 - col1 AS col0 FROM tab2
----
-13
-23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT SUM( ALL - 5 ) - 78 AS col2 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-4744
SELECT SUM ( ALL - 5 ) - 78 AS col2 FROM tab0
----
-93

query I rowsort
SELECT - col0 - + 49 FROM tab0
----
-136
-146
-64

query I rowsort
SELECT ALL col0 * + - 76 FROM tab2
----
-3496
-4864
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4747
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - CAST( + - col0 AS SIGNED ) BETWEEN + - 35 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4747
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - CAST ( + - col0 AS INTEGER ) BETWEEN + - 35 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT ALL - 10 DIV - col2 - - - col1 * - col1 * + - 8 FROM tab0 AS cor0
----
-3527
-52488
-8

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL - 10 / - col2 - - - col1 * - col1 * + - 8 FROM tab0 AS cor0
----
-3527
-52488
-8

query II rowsort
SELECT DISTINCT - - 93 AS col2, 20 * - col0 AS col2 FROM tab0 AS cor0
----
93
-1740
93
-1940
93
-300

query I rowsort
SELECT + 89 * - + ( col1 ) FROM tab2
----
-4539
-5963
-6853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT - CAST( + - col0 AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4751
SELECT - CAST ( + - col0 AS INTEGER ) FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4752
SELECT - col2 AS col2, col0, - col1 + + ( - 47 ) * + CAST( 10 AS SIGNED ) FROM tab2 AS cor0
----
9 values hashing to e58fc3fcb0b5c0dab46a605b8e4261a0

skipif mysql # not compatible
query III rowsort label-4752
SELECT - col2 AS col2, col0, - col1 + + ( - 47 ) * + CAST ( 10 AS INTEGER ) FROM tab2 AS cor0
----
9 values hashing to e58fc3fcb0b5c0dab46a605b8e4261a0

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT + COUNT( * ) - - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-4753
SELECT + COUNT ( * ) - - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 21 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT + CAST( - - SUM( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4755
SELECT + CAST ( - - SUM ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT DISTINCT 22 + 93 + - + CAST( NULL AS SIGNED ) + + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT 22 + 93 + - + CAST ( NULL AS INTEGER ) + + - col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL SUM( ALL - 81 ) AS col0 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL SUM ( ALL - 81 ) AS col0 FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT SUM( DISTINCT - ( - - col0 ) ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4758
SELECT SUM ( DISTINCT - ( - - col0 ) ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT - ( - 23 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT - 95 * + col1 * + col2 + 40 FROM tab1 AS cor0
----
-127640
-27985
-303580

query I rowsort
SELECT DISTINCT 22 FROM tab2 WHERE + col0 * col2 > 73
----
22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4763
SELECT DISTINCT CAST( + ( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT CAST ( + ( + CAST ( NULL AS REAL ) ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT DISTINCT 84 - + 79 FROM tab2 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT ALL + CAST( NULL AS SIGNED ) - ( + 85 ) 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-4765
SELECT ALL + CAST ( NULL AS INTEGER ) - ( + 85 ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4766
SELECT + + col2 DIV + - col2 - col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-4766
SELECT + + col2 / + - col2 - col0 FROM tab1 AS cor0
----
-52
-86
-92

query I rowsort
SELECT ALL + 33 - 98 AS col1 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT 10 - - col0 * 39 * - col1 FROM tab1 AS cor0
----
-16565
-166793
-27836

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT - COUNT( * ) + MIN( + + 76 ) AS col0 FROM tab0 cor0
----
73

skipif mysql # not compatible
query I rowsort label-4769
SELECT - COUNT ( * ) + MIN ( + + 76 ) AS col0 FROM tab0 cor0
----
73

query I rowsort
SELECT ALL 61 * - col0 FROM tab2
----
-2806
-3904
-4575

query I rowsort
SELECT col2 + - + 52 AS col0 FROM tab1
----
16
44
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 55 >= + col1
----

query I rowsort
SELECT ALL - col1 * + col0 * - - col2 AS col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT + - MAX( + col2 ) col0 FROM tab1 WHERE NOT + col2 + + 44 IS NULL
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4774
SELECT + - MAX ( + col2 ) col0 FROM tab1 WHERE NOT + col2 + + 44 IS NULL
----
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT DISTINCT - col1 DIV - + ( col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - col1 / - + ( col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT DISTINCT + col2 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT + col2 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 26 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 37 ) col1 FROM tab2 AS cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT - col2 DIV + 3 AS col1 FROM tab0 AS cor0
----
-15
-3
-33

skipif mysql # not compatible
query I rowsort label-4780
SELECT - col2 / + 3 AS col1 FROM tab0 AS cor0
----
-15
-3
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT + - col2 DIV - - col1 + + col0 AS col1 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-4781
SELECT + - col2 / - - col1 + + col0 AS col1 FROM tab1 AS cor0
----
45
74
90

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT - 94 <= + - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT + + COUNT( ALL + + col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT + + COUNT ( ALL + + col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - - 95 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
95
95
95

query I rowsort
SELECT - 65 + + - ( - col1 ) - + - 36 AS col2 FROM tab1 cor0
----
-15
-24
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col0
----

query II rowsort
SELECT ALL col1 AS col2, col2 + - col2 * + 43 AS col1 FROM tab0 AS cor0
----
1
-4158
21
-420
81
-1974

query I rowsort
SELECT col2 + + - 32 AS col2 FROM tab2
----
-9
26
8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL - ( + 17 ) + + COUNT( * ) * - 87 + + - 97 FROM tab2
----
-375

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - ( + 17 ) + + COUNT ( * ) * - 87 + + - 97 FROM tab2
----
-375

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT ALL 53 + 56 DIV - col2 AS col2 FROM tab1
----
53
53
53

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL 53 + 56 / - col2 AS col2 FROM tab1
----
53
53
53

query I rowsort
SELECT - 6 * + 52 - 95 AS col2 FROM tab2 WHERE NULL IS NULL
----
-407
-407
-407

onlyif mysql # DIV for integer division: 
query II rowsort label-4794
SELECT col2, + col2 DIV - 98 - - - 27 AS col2 FROM tab0 AS cor0
----
10
-27
47
-27
99
-28

skipif mysql # not compatible
query II rowsort label-4794
SELECT col2, + col2 / - 98 - - - 27 AS col2 FROM tab0 AS cor0
----
10
-27
47
-27
99
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 75 col0 FROM tab0 cor0
----
75
75
75

query II rowsort
SELECT + + 77, + col0 AS col1 FROM tab0 AS cor0
----
77
15
77
87
77
97

query II rowsort
SELECT ALL - + col1, 81 AS col2 FROM tab2 AS cor0
----
-51
81
-67
81
-77
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4798
SELECT + col1 + - 43 + + - 47 DIV 38 * - + 20, col2 col1 FROM tab0
----
-2
10
-22
99
58
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4798
SELECT + col1 + - 43 + + - 47 / 38 * - + 20, col2 col1 FROM tab0
----
-2
10
-22
99
58
47

query I rowsort
SELECT DISTINCT + 33 + col2 * + + col1 FROM tab0
----
132
243
3840

query I rowsort
SELECT col0 * - 82 + - col0 AS col2 FROM tab1
----
-4233
-7055
-7553

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE - 53 IS NOT NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT DISTINCT + col0 * + + 15 - col2 DIV + - col1 FROM tab1 AS cor0
----
1286
1366
771

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT + col0 * + + 15 - col2 / + - col1 FROM tab1 AS cor0
----
1286
1366
771

query II rowsort
SELECT DISTINCT - col1 * + col0 AS col1, col1 FROM tab2 cor0
----
-2346
51
-4928
77
-5025
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4804
SELECT CAST( - - col0 AS DECIMAL ) FROM tab2 WHERE NOT + col0 + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4804
SELECT CAST ( - - col0 AS REAL ) FROM tab2 WHERE NOT + col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT - ( + - 21 ) AS col0 FROM tab0
----
21
21
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT - - COUNT( * ) FROM tab1 WHERE NOT - - CAST( + + col1 AS SIGNED ) * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT - - COUNT ( * ) FROM tab1 WHERE NOT - - CAST ( + + col1 AS INTEGER ) * col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col0 * + 49 AS col2 FROM tab2 AS cor0
----
2254
3136
3675

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4808
SELECT DISTINCT + col1 * - col0 + col2 DIV - CAST( 65 AS SIGNED ) FROM tab1 cor0
----
-425
-4278
-715

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT + col1 * - col0 + col2 / - CAST ( 65 AS INTEGER ) FROM tab1 cor0
----
-425
-4278
-715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 78 col1 FROM tab1 cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - - 81 AS col0 FROM tab0 AS cor0 WHERE + col0 - + col1 <> col1
----
81

query II rowsort
SELECT ALL + col0 AS col1, - 60 FROM tab2 AS cor0
----
46
-60
64
-60
75
-60

query I rowsort
SELECT ALL - ( + 39 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL + 0 * + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + 0 * + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col0 * + - 72 FROM tab0 AS cor0
----
1080
6264
6984

query I rowsort
SELECT DISTINCT - col2 + + 60 * + 18 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - SUM( ALL - col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT - SUM ( ALL - col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > - 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT + - CAST( - - 24 AS SIGNED ) FROM tab2 cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4817
SELECT + - CAST ( - - 24 AS INTEGER ) FROM tab2 cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + MAX( - 65 ) AS col0 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-4818
SELECT + MAX ( - 65 ) AS col0 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT + ( 81 ) AS col0 FROM tab1 cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT + col1 DIV + 91 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT + col1 / + 91 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 4 * + - col2 AS col1 FROM tab0
----
-188
-396
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col0 FROM tab0
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT ALL 63 DIV + - 37 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL 63 / + - 37 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col0 * - 9 AS col1 FROM tab2
----
-414
-576
-675

query I rowsort
SELECT ALL + ( + + col0 ) + 28 * + - col2 FROM tab1
----
-1567
-1813
-2637

query I rowsort
SELECT 43 * + - col0 AS col0 FROM tab2 WHERE + col0 BETWEEN + ( - col0 ) + - col1 * col0 * + 54 AND - col2 + + 84 AND NOT + ( 27 ) IS NULL
----
-1978

query I rowsort
SELECT ALL - 27 + + + ( 43 ) - 1 * - col0 * + col2 AS col1 FROM tab1
----
4912
5031
6204

query I rowsort
SELECT ALL + 89 - - col2 AS col2 FROM tab2
----
112
129
147

query I rowsort
SELECT + col2 * + 79 AS col2 FROM tab0 AS cor0 WHERE ( NOT ( NOT col2 > - - col0 * - + col1 ) )
----
3713
7821
790

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT ALL + col2 DIV - 84 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + col2 / - 84 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - col0 - 9 FROM tab0 AS cor0
----
-106
-24
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT + - COUNT( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT + - COUNT ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + 84 * col1 FROM tab0 AS cor0
----
1764
6804
84

query I rowsort
SELECT DISTINCT col0 + + 27 AS col2 FROM tab2
----
102
73
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4835
SELECT COUNT( * ) AS col2, 40 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
120

skipif mysql # not compatible
query II rowsort label-4835
SELECT COUNT ( * ) AS col2, 40 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
120

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> col0
----

query II rowsort
SELECT col2 AS col0, - 94 FROM tab2 AS cor0
----
23
-94
40
-94
58
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4838
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4838
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 79 * - + col0 + - col2 + ( - col1 ) + - col0 + col1 FROM tab0 AS cor0
----
1123
6776
7467

onlyif mysql # DIV for integer division: 
query II rowsort label-4840
SELECT col2 col0, + col1 DIV + col2 * col1 + + 73 AS col2 FROM tab1 cor0
----
59
73
68
73
96
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4840
SELECT col2 col0, + col1 / + col2 * col1 + + 73 AS col2 FROM tab1 cor0
----
59
73
68
73
96
73

query II rowsort
SELECT - col0 AS col0, - col0 * + col0 * + 68 FROM tab2 AS cor0
----
-46
-143888
-64
-278528
-75
-382500

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + col2 / + - col1 * + + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 + - + col1 ) BETWEEN 72 AND + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT + MIN( 57 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT + MIN ( 57 ) FROM tab1
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab2 WHERE NOT - col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + - 62 * + col1 FROM tab1
----
-26350
-265174
-44268

query II rowsort
SELECT - ( - - col2 ) AS col0, col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT - + ( - 2 ) FROM tab1 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NOT - ( - 17 ) IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 65 + + 6 AS col1 FROM tab1
----
71
71
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4852
SELECT DISTINCT - CAST( AVG ( DISTINCT CAST( col2 AS DECIMAL ) ) AS SIGNED ) * - + COUNT( * ) * 98 col1 FROM tab2
----
11760

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4852
SELECT DISTINCT - CAST ( AVG ( DISTINCT CAST ( col2 AS REAL ) ) AS INTEGER ) * - + COUNT ( * ) * 98 col1 FROM tab2
----
11760

query I rowsort
SELECT ( + + 21 ) + ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-30
-64
-70

query II rowsort
SELECT ALL - - ( + ( + 71 ) ) AS col2, - col2 * - 15 AS col1 FROM tab0 AS cor0
----
71
1485
71
150
71
705

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4855
SELECT col0 + col1 - col2 / - CAST( NULL AS SIGNED ) + - col0 AS col1, - col1 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query II rowsort label-4855
SELECT col0 + col1 - col2 / - CAST ( NULL AS INTEGER ) + - col0 AS col1, - col1 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4856
SELECT col0 + - col2 * col1 AS col0, + col2 DIV - - 70 col2 FROM tab2 AS cor0
----
-1127
0
-3016
0
-3811
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4856
SELECT col0 + - col2 * col1 AS col0, + col2 / - - 70 col2 FROM tab2 AS cor0
----
-1127
0
-3016
0
-3811
0

query I rowsort
SELECT + col0 * + + col0 + col2 FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT - MIN( ALL - ( col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT - MIN ( ALL - ( col0 ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4859
SELECT DISTINCT + + COUNT( * ) DIV - ( + 31 ) + - + 90 FROM tab2 WHERE NOT + 98 IS NULL OR ( NOT + 51 IS NOT NULL )
----
-90

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT + + COUNT ( * ) / - ( + 31 ) + - + 90 FROM tab2 WHERE NOT + 98 IS NULL OR ( NOT + 51 IS NOT NULL )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ( MAX( - col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4860
SELECT ( MAX ( - col2 ) ) FROM tab0
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-4861
SELECT ALL 78 DIV col2 + - - col1 + col0 AS col0, - col1 + - col0 * col0 AS col0 FROM tab1
----
139
-8328
65
-2615
91
-7230

skipif mysql # not compatible
query II rowsort label-4861
SELECT ALL 78 / col2 + - - col1 + col0 AS col0, - col1 + - col0 * col0 AS col0 FROM tab1
----
139
-8328
65
-2615
91
-7230

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE col1 + - 93 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 21 < col1
----
91
47
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4864
SELECT ALL col2 * + col0 - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL col2 * + col0 - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 < + col2
----

query II rowsort
SELECT 42, + 34 AS col2 FROM tab0
----
42
34
42
34
42
34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN - - col0 * col2 AND + + 40
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4868
SELECT ALL * FROM tab1 WHERE - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4868
SELECT ALL * FROM tab1 WHERE - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4869
SELECT DISTINCT COUNT( * ) col2, COUNT( * ) * 47 AS col2 FROM tab0 AS cor0
----
3
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4869
SELECT DISTINCT COUNT ( * ) col2, COUNT ( * ) * 47 AS col2 FROM tab0 AS cor0
----
3
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT DISTINCT SUM( ALL 45 ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT SUM ( ALL 45 ) FROM tab2 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL - - MIN( col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL - - MIN ( col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = - 46 + - + 89 + col2
----

query I rowsort
SELECT DISTINCT ( + 13 ) FROM tab0 cor0
----
13

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE - 0 / - col2 NOT IN ( + - 25 )
----
1
21
81

query II rowsort
SELECT DISTINCT + col2, 42 FROM tab0
----
10
42
47
42
99
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT COUNT( * ) AS col1, - 50 AS col1 FROM tab2
----
3
-50

skipif mysql # not compatible
query II rowsort label-4876
SELECT COUNT ( * ) AS col1, - 50 AS col1 FROM tab2
----
3
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 73 ) col2 FROM tab1
----
73
73
73

query I rowsort
SELECT - 69 + col0 AS col2 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-54
18
28

query I rowsort
SELECT 78 + 70 + col2 FROM tab2 AS cor0
----
171
188
206

query II rowsort
SELECT ALL + + col0, col0 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + + MIN( ALL + 85 ) AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + + MIN ( ALL + 85 ) AS col2 FROM tab1 AS cor0
----
85

query I rowsort
SELECT DISTINCT 31 * col1 + + + 90 AS col2 FROM tab0
----
121
2601
741

query I rowsort
SELECT 74 + + - col0 FROM tab0
----
-13
-23
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 + + - col0 * - - col1 - col0 col1 FROM tab2
----
-2387
-4979
-5108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + ( 89 ) + + col2 col0 FROM tab2
----
65
66
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 * + col0 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 65 col1 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT DISTINCT - SUM( ALL - 33 ) AS col1, MIN( ALL + - col2 ) FROM tab1 AS cor0
----
99
-96

skipif mysql # not compatible
query II rowsort label-4889
SELECT DISTINCT - SUM ( ALL - 33 ) AS col1, MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
99
-96

query I rowsort
SELECT ALL + ( - - 42 ) * + col1 FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - + 27 AS col0 FROM tab1 AS cor0
----
32
41
69

query I rowsort
SELECT - 24 - + + col1 FROM tab2
----
-101
-75
-91

query I rowsort
SELECT + 42 + - 97 + - - col1 - - col2 AS col1 FROM tab2
----
19
62
70

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4895
SELECT * FROM tab2 WHERE CAST( col1 AS SIGNED ) NOT BETWEEN - + 14 AND + - 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4895
SELECT * FROM tab2 WHERE CAST ( col1 AS INTEGER ) NOT BETWEEN - + 14 AND + - 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT - 26 + + COUNT( * ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT - 26 + + COUNT ( * ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT col0 + - 8 AS col1 FROM tab1 cor0
----
43
77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT + col0 * + ( - col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
-144
-7548
-9408

query I rowsort
SELECT 68 FROM tab1 WHERE NOT ( - col2 ) NOT IN ( 86 - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 + + col1 col0 FROM tab0
----
104
24
44

query I rowsort
SELECT DISTINCT - 54 - - col1 FROM tab2
----
-3
13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL + SUM( DISTINCT 23 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + SUM ( DISTINCT 23 ) FROM tab1
----
23

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * - 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * - 9 AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * - 9 AS col0 FROM tab1
----
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN col0 AND + col0 + + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + col0 * col2
----

query I rowsort
SELECT col0 * + col1 + - col1 AS col2 FROM tab2 WHERE + col2 + col2 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) NOT IN ( col0 )
----

query I rowsort
SELECT 52 FROM tab0 WHERE - 57 BETWEEN 46 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4912
SELECT ALL - col1 DIV + col2 + - ( + col1 ) AS col0 FROM tab2
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - col1 / + col2 + - ( + col1 ) AS col0 FROM tab2
----
-53
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT - COUNT( * ) * + COUNT( - col1 * - col0 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT - COUNT ( * ) * + COUNT ( - col1 * - col0 ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4914
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - col0 * + 82 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4916
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - 16 * + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4916
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - 16 * + CAST ( col0 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 AS cor0 WHERE NOT + col1 IN ( col2 + col0 )
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4918
SELECT 5 DIV + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4918
SELECT 5 / + COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT col2 DIV 50 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4920
SELECT col2 / 50 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT MIN( ALL 82 ) * COUNT( * ) FROM tab1 AS cor0 WHERE + 14 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT MIN ( ALL 82 ) * COUNT ( * ) FROM tab1 AS cor0 WHERE + 14 = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col0 FROM tab2 cor0
----
94
94
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT MAX( DISTINCT + 74 ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4924
SELECT MAX ( DISTINCT + 74 ) AS col2 FROM tab1 AS cor0
----
74

query I rowsort
SELECT ALL 0 + + col0 * + col2 AS col0 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 32 / col2 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - 78 - + col2 * 34 ) IN ( + 95 + - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT 3 * + COUNT( * ) + 77 DIV COUNT( * ) AS col0 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-4928
SELECT 3 * + COUNT ( * ) + 77 / COUNT ( * ) AS col0 FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL - 90 * - COUNT( * ) + 72 AS col2 FROM tab2
----
342

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - 90 * - COUNT ( * ) + 72 AS col2 FROM tab2
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - MIN( ALL col1 ) + - COUNT( * ) * 90 AS col0 FROM tab0
----
-271

skipif mysql # not compatible
query I rowsort label-4930
SELECT - MIN ( ALL col1 ) + - COUNT ( * ) * 90 AS col0 FROM tab0
----
-271

query I rowsort
SELECT ALL ( 20 ) * - col0 FROM tab2 WHERE col2 IS NOT NULL
----
-1280
-1500
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT + 53 + col1 DIV col2 FROM tab0
----
53
54
55

skipif mysql # not compatible
query I rowsort label-4932
SELECT + 53 + col1 / col2 FROM tab0
----
53
54
55

query I rowsort
SELECT + ( + 90 ) + - col2 FROM tab0 cor0
----
-9
43
80

query I rowsort
SELECT + col0 * col1 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
3519
8008
8911

query I rowsort
SELECT ALL + ( - 47 ) FROM tab0 AS cor0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT DISTINCT - 15 DIV col1 + 76 AS col1 FROM tab1 AS cor0
----
73
75
76

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT - 15 / col1 + 76 AS col1 FROM tab1 AS cor0
----
73
75
76

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NULL <= col2 / - 2
----

query I rowsort
SELECT ALL - 65 + - ( col1 ) FROM tab0 AS cor0
----
-146
-66
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT + ( col2 ) DIV 58 + col0 FROM tab0 AS cor0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-4939
SELECT + ( col2 ) / 58 + col0 FROM tab0 AS cor0
----
15
87
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4940
SELECT DISTINCT col0 + 56 DIV col0 FROM tab2 AS cor0 WHERE NOT ( 5 ) IS NULL
----
47
64
75

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT col0 + 56 / col0 FROM tab2 AS cor0 WHERE NOT ( 5 ) IS NULL
----
47
64
75

query I rowsort
SELECT DISTINCT 48 * - 13 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col1 ) AND - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + 31 NOT BETWEEN - col2 AND - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL 37 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL 37 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 50 ) col2 FROM tab2 AS cor0 WHERE ( - col0 ) >= col2 - + col0
----

query I rowsort
SELECT ALL col2 - - 23 AS col0 FROM tab2 cor0
----
46
63
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT SUM( + col0 ) FROM tab0 AS cor0 WHERE NOT ( + 82 ) NOT BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT SUM ( + col0 ) FROM tab0 AS cor0 WHERE NOT ( + 82 ) NOT BETWEEN col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT DISTINCT col0 FROM tab0 WHERE NOT - CAST( - col0 AS SIGNED ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT col0 FROM tab0 WHERE NOT - CAST ( - col0 AS INTEGER ) + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT CAST( NULL AS SIGNED ) / - + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT CAST ( NULL AS INTEGER ) / - + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4950
SELECT * FROM tab2 WHERE ( + 95 ) NOT IN ( col0 * CAST( + col0 * + ( + col1 ) AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4950
SELECT * FROM tab2 WHERE ( + 95 ) NOT IN ( col0 * CAST ( + col0 * + ( + col1 ) AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4951
SELECT MIN( + col0 ) DIV 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4951
SELECT MIN ( + col0 ) / 99 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT col0 * + col0 * - ( col1 DIV 39 ) FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-4952
SELECT col0 * + col0 * - ( col1 / 39 ) FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT 6 * - col1 + col2 FROM tab1
----
-214
12
29

query I rowsort
SELECT DISTINCT col2 * - 21 + col0 AS col0 FROM tab0
----
-123
-1982
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + MAX( + + col1 ) * 11 - - ( - COUNT( ( - 17 ) ) + 55 ) AS col0 FROM tab2
----
899

skipif mysql # not compatible
query I rowsort label-4955
SELECT + MAX ( + + col1 ) * 11 - - ( - COUNT ( ( - 17 ) ) + 55 ) AS col0 FROM tab2
----
899

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) IN ( - 19 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT col1 - + col0 + + col1 DIV col1 FROM tab1
----
-36
-43
-79

skipif mysql # not compatible
query I rowsort label-4957
SELECT col1 - + col0 + + col1 / col1 FROM tab1
----
-36
-43
-79

query I rowsort
SELECT + 60 * col1 * - ( - col0 ) - 71 AS col0 FROM tab2
----
140689
295609
301429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT - CAST( NULL AS SIGNED ) * 49 - 25 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT - CAST ( NULL AS INTEGER ) * 49 - 25 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 25 - + 77 FROM tab2 AS cor0
----
-102
-102
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT DISTINCT 6 FROM tab2 AS cor0 WHERE NOT 74 * - 19 < ( + 57 ) AND NOT CAST( col1 AS SIGNED ) IN ( - 66 / col2 )
----

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT 6 FROM tab2 AS cor0 WHERE NOT 74 * - 19 < ( + 57 ) AND NOT CAST ( col1 AS INTEGER ) IN ( - 66 / col2 )
----

query I rowsort
SELECT DISTINCT col0 * + - 13 * + 35 FROM tab2 AS cor0
----
-20930
-29120
-34125

query I rowsort
SELECT ALL + col1 * + ( 16 ) * 79 + col1 * 8 FROM tab1 cor0
----
17808
59784
6360

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( - 89 * - 60 ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT 64 * - col0 AS col1 FROM tab2
----
-2944
-4096
-4800

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) IN ( - col1 - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 40 col0 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4968
SELECT + + col0 DIV - 95 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4968
SELECT + + col0 / - 95 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL <= + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT - COUNT( * ) * - + 62 FROM tab2 cor0
----
186

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT - COUNT ( * ) * - + 62 FROM tab2 cor0
----
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 * - col0 col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + ( - col1 ) ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 - 91 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 77 AS col1, - 76 col0 FROM tab0 cor0
----
77
-76
77
-76
77
-76

query II rowsort
SELECT - col0, + col0 AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT - col0 * + - 59 FROM tab2
----
2714
3776
4425

query I rowsort
SELECT + 45 + - col2 FROM tab1 WHERE NOT - - col1 IN ( + + col2 + ( - col0 - 8 ) )
----
-14
-23
-51

query I rowsort
SELECT ALL + col0 * col2 + + + 77 FROM tab1
----
4973
5092
6265

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * col0 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( - ( - 73 ) ) NOT IN ( - col0 )
----

query I rowsort
SELECT + ( + - 86 ) FROM tab2
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT - COUNT( col1 ) AS col0 FROM tab2 WHERE NOT - col1 <= col1 * - col2 + - 80
----
-3

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT - COUNT ( col1 ) AS col0 FROM tab2 WHERE NOT - col1 <= col1 * - col2 + - 80
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT ALL 25 + + - CAST( + - col0 AS SIGNED ) AS col2 FROM tab2
----
100
71
89

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL 25 + + - CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2
----
100
71
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - 55 ) col1 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL - col0 / col2 + + col1 FROM tab0 AS cor0 WHERE NOT ( ( + col1 ) BETWEEN - col0 AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4986
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - col0 + - 48 * + col2 AS col1 FROM tab2
----
-1150
-1984
-2859

query I rowsort
SELECT DISTINCT col1 + + col0 + - 93 * + - col1 AS col1 FROM tab2
----
4840
6373
7302

query I rowsort
SELECT DISTINCT + 21 + + - 78 AS col2 FROM tab0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 82 col2 FROM tab0
----
-1
-61
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT + COUNT( + 18 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + COUNT ( + 18 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 * - col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT ALL + ( ( - CAST( SUM( 41 ) AS SIGNED ) ) ) + + ( - CAST( COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + ( ( - CAST ( SUM ( 41 ) AS INTEGER ) ) ) + + ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL - COUNT( * ) * - ( 77 ) FROM tab0 cor0
----
231

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL - COUNT ( * ) * - ( 77 ) FROM tab0 cor0
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT 29 - + 82 * - 29 * + + ( 39 ) * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT 29 - + 82 * - 29 * + + ( 39 ) * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - + col2 + + + col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + col1 - + 84 FROM tab1 AS cor0
----
-37
-70
-79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND + 32 < NULL
----

query I rowsort
SELECT DISTINCT - 85 - 85 FROM tab2 AS cor0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + col0 - - - col0 col0 FROM tab2
----
50
50
50

query I rowsort
SELECT ALL - 90 FROM tab0 WHERE NOT + col2 IS NULL
----
-90
-90
-90

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col1 + - - 91 > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT DISTINCT - col2 FROM tab1 WHERE 90 * + + col0 < ( CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT - col2 FROM tab1 WHERE 90 * + + col0 < ( CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL 75 / 17 * 16 AS col2 FROM tab0 AS cor0 WHERE col2 * + col0 * + col1 > ( NULL )
----

query II rowsort
SELECT DISTINCT - - 71 AS col1, col1 AS col0 FROM tab2 AS cor0
----
71
51
71
67
71
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT DISTINCT - - col0 DIV - 82 - - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT - - col0 / - 82 - - col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - 81 ) NOT IN ( + ( - 9 ), col1 + - - 78 - col2 * col1 )
----

query I rowsort
SELECT col1 + + - col0 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT + - 98 * - col2 * + ( - col1 ) + + col1 + + col1 FROM tab0 AS cor0
----
-20538
-372924
-9700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT - 33 + - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT - 33 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT - MIN( DISTINCT - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT - MIN ( DISTINCT - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT 5 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5014
SELECT DISTINCT + COUNT( * ) + ( - + COUNT( DISTINCT - + col0 ) ) / CAST( 5 AS DECIMAL ) - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT + COUNT ( * ) + ( - + COUNT ( DISTINCT - + col0 ) ) / CAST ( 5 AS REAL ) - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - + 71 FROM tab1
----
3621
6035
6461

query III rowsort
SELECT * FROM tab2 WHERE ( col2 * 64 + - - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - + col2 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 55 + 58 AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5019
SELECT + 61 * SUM( + + col0 ) AS col2, + 16 FROM tab1 AS cor0
----
13847
16

skipif mysql # not compatible
query II rowsort label-5019
SELECT + 61 * SUM ( + + col0 ) AS col2, + 16 FROM tab1 AS cor0
----
13847
16

query II rowsort
SELECT ALL - col1 + - - col0 * - col0 AS col0, col2 FROM tab2 AS cor0
----
-2167
23
-4173
40
-5692
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT - + COUNT( DISTINCT + + 8 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5021
SELECT - + COUNT ( DISTINCT + + 8 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5023
SELECT - + col0 * - + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5023
SELECT - + col0 * - + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col1 - + 54 FROM tab0 AS cor0
----
-23
46
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT - col1 FROM tab0 AS cor0 WHERE NULL IN ( - col2, CAST( - col0 AS SIGNED ) + + - 62 - - col0 * - col1 * col0 )
----

skipif mysql # not compatible
query I rowsort label-5025
SELECT - col1 FROM tab0 AS cor0 WHERE NULL IN ( - col2, CAST ( - col0 AS INTEGER ) + + - 62 - - col0 * - col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 74 - - + col2 col0, + col0 * col2 * col1 AS col2 FROM tab2 AS cor0
----
114
197120
132
291450
97
53958

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + 35 * - 6 NOT IN ( + col0 * + 21 * - + col0 + 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * + col2 * - col2 + + ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - - ( ( + col1 ) ) + col0 * - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT ALL CAST( NULL AS SIGNED ) - + ( - 3 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL CAST ( NULL AS INTEGER ) - + ( - 3 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 79 * + + col2 FROM tab1
----
4661
5372
7584

onlyif mysql # DIV for integer division: 
query II rowsort label-5032
SELECT DISTINCT col1, + 57 DIV - + col0 + - col0 FROM tab1 WHERE NOT col2 * + col1 IS NULL
----
14
-52
47
-91
5
-85

skipif mysql # not compatible
query II rowsort label-5032
SELECT DISTINCT col1, + 57 / - + col0 + - col0 FROM tab1 WHERE NOT col2 * + col1 IS NULL
----
14
-52
47
-91
5
-85

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 = ( + 50 / + 63 + - + col2 - + col1 + - 42 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT - COUNT( * ) * + COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5034
SELECT - COUNT ( * ) * + COUNT ( * ) col1 FROM tab0
----
-9

query I rowsort
SELECT + 58 * + col2 AS col0 FROM tab2 AS cor0
----
1334
2320
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL COUNT( - - 25 ) AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN - col2 AND + col0 * - 6 - + col2
----
0

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL COUNT ( - - 25 ) AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN - col2 AND + col0 * - 6 - + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 * - col1 / - col1 + - + col0 + + 0 ) BETWEEN ( + col0 * - col1 ) AND ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( 26 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + MIN( DISTINCT + 81 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5039
SELECT + MIN ( DISTINCT + 81 ) FROM tab0
----
81

query II rowsort
SELECT col0, + col2 * - col2 AS col1 FROM tab2
----
46
-529
64
-1600
75
-3364

query II rowsort
SELECT DISTINCT + - col0 AS col1, col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 69 + + - col2 = NULL
----

query I rowsort
SELECT DISTINCT 13 * col2 FROM tab2 AS cor0
----
299
520
754

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT DISTINCT col2 DIV - - col0 AS col1 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT col2 / - - col0 AS col1 FROM tab1 cor0
----
0
1

query I rowsort
SELECT ALL ( 96 ) AS col0 FROM tab0 AS cor0
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT DISTINCT + + 34 DIV 59 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT + + 34 / 59 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT + col2 * - ( + + col0 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 * col0 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - + 93 * - col0 FROM tab0 AS cor0
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT - COUNT( * ) * + - MAX( ALL - 62 ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - COUNT ( * ) * + - MAX ( ALL - 62 ) FROM tab0 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT + MAX( + col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT + MAX ( + col2 ) FROM tab2 cor0
----
58

query I rowsort
SELECT ALL - - ( - col2 ) * col2 * col0 AS col1 FROM tab0 cor0
----
-33135
-8700
-950697

query I rowsort
SELECT - ( - 39 ) FROM tab2
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT 51 + + COUNT( * ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-5055
SELECT 51 + + COUNT ( * ) AS col1 FROM tab1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5056
SELECT - col1 + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT - col1 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 62 * + - 89 NOT BETWEEN ( + 71 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - col0 + + col0 AS col2 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT ALL col2 + - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 / - 85 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT + - ( ( + - COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + - ( ( + - COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 11 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query II rowsort
SELECT col0 AS col0, + col1 * ( + col0 ) AS col0 FROM tab1
----
51
714
85
425
91
4277

query I rowsort
SELECT col2 + - - 75 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5064
SELECT + + MIN( DISTINCT - 70 ) - + 80 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT + + MIN ( DISTINCT - 70 ) - + 80 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT - - COUNT( * ) - + + 70 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - - COUNT ( * ) - + + 70 FROM tab0 AS cor0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5066
SELECT + 58 - - + 65 * - + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT + 58 - - + 65 * - + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + col1 AS col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + ( + - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + 26 + col2 IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col0 * - - col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query II rowsort
SELECT + col0 AS col0, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT - 36 * - col1 AS col2 FROM tab0
----
2916
36
756

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5072
SELECT ALL * FROM tab0 WHERE NOT + col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5072
SELECT ALL * FROM tab0 WHERE NOT + col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 * - + 66 AS col1 FROM tab0 AS cor0
----
-3102
-6534
-660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT + 89 BETWEEN 43 AND + col0
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col0 + 41 FROM tab1
----
126
132
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL + 49 * COUNT( * ) FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + 49 * COUNT ( * ) FROM tab1 AS cor0
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49, + col2 col1 FROM tab0 AS cor0
----
49
10
49
47
49
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5081
SELECT DISTINCT 6 AS col0, MIN( ALL 94 ) AS col2 FROM tab2 AS cor0
----
6
94

skipif mysql # not compatible
query II rowsort label-5081
SELECT DISTINCT 6 AS col0, MIN ( ALL 94 ) AS col2 FROM tab2 AS cor0
----
6
94

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE - col1 * - col2 + + col1 / + + col0 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT col2 * + 72 + - + col2 AS col2 FROM tab2 AS cor0
----
1633
2840
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT + COUNT( * ) + + COUNT( * ) col0 FROM tab1 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5084
SELECT + COUNT ( * ) + + COUNT ( * ) col0 FROM tab1 cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5085
SELECT - + ( - CAST( ( COUNT( * ) ) AS SIGNED ) ) + SUM( - col1 ), + COUNT( * ) AS col2 FROM tab2 cor0
----
-192
3

skipif mysql # not compatible
query II rowsort label-5085
SELECT - + ( - CAST ( ( COUNT ( * ) ) AS INTEGER ) ) + SUM ( - col1 ), + COUNT ( * ) AS col2 FROM tab2 cor0
----
-192
3

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE 61 IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT col2 AS col1, - 0 AS col1 FROM tab0
----
10
0
47
0
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5088
SELECT * FROM tab1 WHERE - col0 IN ( col1, - col0 * + col1 / col2 * - 79 + col2 + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5088
SELECT * FROM tab1 WHERE - col0 IN ( col1, - col0 * + col1 / col2 * - 79 + col2 + CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL + col1 * + + col0 - - col1 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT + col1 * - 28 FROM tab0 AS cor0
----
-2268
-28
-588

query I rowsort
SELECT DISTINCT + col0 - + + 2 + col1 + + col2 FROM tab1 AS cor0
----
147
159
204

query I rowsort
SELECT - col0 * + col2 + col2 - - + 3 * + ( + - 16 ) FROM tab1 AS cor0
----
-4848
-5004
-6168

query I rowsort
SELECT ALL col0 - - col0 AS col2 FROM tab2 cor0
----
128
150
92

query III rowsort
SELECT * FROM tab1 WHERE 65 * 24 BETWEEN NULL AND + col0 + ( 89 ) + - 59 + + col0 / + - 37 * - 93
----

query I rowsort
SELECT DISTINCT ( - 42 ) AS col1 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT - col2 * - col0 + - ( - col1 ) FROM tab1
----
4910
5020
6235

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab1 WHERE NOT - 24 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + 67 + 61 + - col1 + + col0 FROM tab2
----
115
123
136

query I rowsort
SELECT DISTINCT - col1 * - - col1 * + 37 * - col0 FROM tab0 AS cor0
----
1419579
3589
3641355

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col2 FROM tab1 cor0
----
-76
-76
-76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT COUNT( * ), - COUNT( * ) col0 FROM tab2
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5104
SELECT COUNT ( * ), - COUNT ( * ) col0 FROM tab2
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * 61 AS col1 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * 61 AS col1 FROM tab0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT COUNT( * ) * + 40 col2 FROM tab1
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5106
SELECT COUNT ( * ) * + 40 col2 FROM tab1
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * col0 col2 FROM tab1
----
4743
7905
8463

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5108
SELECT ALL - COUNT( * ) DIV + MAX( - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - COUNT ( * ) / + MAX ( - col2 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5109
SELECT - col0 DIV + 83 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5109
SELECT - col0 / + 83 FROM tab0
----
-1
-1
0

query II rowsort
SELECT ALL col0, 8 AS col1 FROM tab2
----
46
8
64
8
75
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT DISTINCT COUNT( * ) * + ( 46 ) * COUNT( * ) AS col1, - 58 FROM tab1 cor0
----
414
-58

skipif mysql # not compatible
query II rowsort label-5111
SELECT DISTINCT COUNT ( * ) * + ( 46 ) * COUNT ( * ) AS col1, - 58 FROM tab1 cor0
----
414
-58

query I rowsort
SELECT DISTINCT 89 * - + col1 * - 8 AS col0 FROM tab1 AS cor0
----
33464
3560
9968

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5113
SELECT ALL + + col0 AS col2, + 5 * + col0 + - col0 FROM tab1 AS cor0 WHERE NOT + 9 * + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5113
SELECT ALL + + col0 AS col2, + 5 * + col0 + - col0 FROM tab1 AS cor0 WHERE NOT + 9 * + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5114
SELECT DISTINCT COUNT( * ), 16 AS col2 FROM tab1 AS cor0 WHERE NOT 67 = + - col1
----
3
16

skipif mysql # not compatible
query II rowsort label-5114
SELECT DISTINCT COUNT ( * ), 16 AS col2 FROM tab1 AS cor0 WHERE NOT 67 = + - col1
----
3
16

query I rowsort
SELECT DISTINCT - 8 + + col2 FROM tab1 AS cor0
----
51
60
88

query I rowsort
SELECT + + col0 * 16 FROM tab2 AS cor0
----
1024
1200
736

query I rowsort
SELECT 61 - - 27 AS col2 FROM tab2
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT col0 + - col0 - - - 66 AS col1 FROM tab1
----
-66
-66
-66

query II rowsort
SELECT ALL + 28, + col0 FROM tab0
----
28
15
28
87
28
97

query I rowsort
SELECT DISTINCT col1 + 43 * - - col1 - + 31 AS col1 FROM tab2
----
2213
2917
3357

query I rowsort
SELECT 10 + - 75 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT col0 - - ( - 74 ) FROM tab0
----
-59
13
23

query II rowsort
SELECT + 5 * col0 + - col0 AS col1, - col0 AS col0 FROM tab1
----
204
-51
340
-85
364
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5125
SELECT - - COUNT( ALL + 3 ) col0, 66 FROM tab2 AS cor0 WHERE col0 > col1
----
1
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5125
SELECT - - COUNT ( ALL + 3 ) col0, 66 FROM tab2 AS cor0 WHERE col0 > col1
----
1
66

query I rowsort
SELECT ALL col0 * - 57 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT - 81 * + col1 * + + col1 * - 11 * - col2 FROM tab2 AS cor0
----
-211309560
-231982542
-53302293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5129
SELECT + COUNT( * ) * COUNT( * ) * + + CAST( NULL AS SIGNED ) * + + 93 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT + COUNT ( * ) * COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + + 93 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = - col1
----

query I rowsort
SELECT DISTINCT 46 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT 18 * COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
162

skipif mysql # not compatible
query I rowsort label-5132
SELECT 18 * COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
162

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 * + 12, + col0, + + col2 )
----

query I rowsort
SELECT + + 30 FROM tab0 AS cor0 WHERE NOT - 71 + + 31 - - + col1 IS NULL
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - 57 col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + + col0 * - 80 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 > NULL
----

query I rowsort
SELECT ALL - col2 * + + col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT SUM( 5 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5139
SELECT SUM ( 5 ) FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT DISTINCT - 35 * + COUNT( col2 ) FROM tab2 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT - 35 * + COUNT ( col2 ) FROM tab2 cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL + COUNT( * ) * + COUNT( DISTINCT + - 22 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL + COUNT ( * ) * + COUNT ( DISTINCT + - 22 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - + COUNT( - 67 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5142
SELECT - + COUNT ( - 67 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT ALL - 76 DIV ( + 25 ) AS col0 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL - 76 / ( + 25 ) AS col0 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT ALL + COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT + COUNT( * ) FROM tab2 WHERE NOT + col2 * 91 + + + 6 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + col2 * 91 + + + 6 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5147
SELECT DISTINCT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5148
SELECT - col1 DIV + 20 - + col0 * + - col1 FROM tab1 AS cor0
----
425
4275
714

skipif mysql # not compatible
query I rowsort label-5148
SELECT - col1 / + 20 - + col0 * + - col1 FROM tab1 AS cor0
----
425
4275
714

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT ALL ( + col2 ) DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL ( + col2 ) / col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 65 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5151
SELECT DISTINCT - col1 / - - col0 + col1 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - col1 / - - col0 + col1 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 89 AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
-89
-89
-89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * - + 77 * col2 ) IS NULL OR NULL > - 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 40 + - 89 FROM tab0 AS cor0
----
-129
-129
-129

query I rowsort
SELECT 91 + - - col1 + - + col1 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5157
SELECT + 14 + - 20 * - 28 / + CAST( NULL AS DECIMAL ) + + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT + 14 + - 20 * - 28 / + CAST ( NULL AS REAL ) + + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT + CAST( - - col2 AS SIGNED ) + col0 * 52 - + CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
2364
3291
3891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5158
SELECT + CAST ( - - col2 AS INTEGER ) + col0 * 52 - + CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
2364
3291
3891

query I rowsort
SELECT - 18 + col2 FROM tab1 AS cor0
----
41
50
78

query I rowsort
SELECT 26 * col0 + - + 4 FROM tab2 AS cor0
----
1192
1660
1946

query I rowsort
SELECT - + col1 + - 23 AS col2 FROM tab0 cor0
----
-104
-24
-44

query I rowsort
SELECT DISTINCT 31 - col2 FROM tab1 AS cor0
----
-28
-37
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + MAX( DISTINCT + + 74 ) AS col1 FROM tab0 AS cor0 WHERE col0 > - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT + MAX ( DISTINCT + + 74 ) AS col1 FROM tab0 AS cor0 WHERE col0 > - - col0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 82 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE + col1 * - 26 BETWEEN ( NULL ) AND - col0 * + col1 * + col1 + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5165
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE + col1 * - 26 BETWEEN ( NULL ) AND - col0 * + col1 * + col1 + col2
----

query I rowsort
SELECT ALL + col0 + + 64 FROM tab0 WHERE NOT + 85 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5167
SELECT * FROM tab0 WHERE - - ( col0 ) + CAST( + - col1 AS SIGNED ) <> - ( 53 ) * + 69
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5167
SELECT * FROM tab0 WHERE - - ( col0 ) + CAST ( + - col1 AS INTEGER ) <> - ( 53 ) * + 69
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 51 + - - col0 AS col0 FROM tab1
----
102
136
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col1 - 48 col0 FROM tab2
----
-2394
-4976
-5073

query I rowsort
SELECT + col0 - - - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT DISTINCT + - COUNT( * ) - + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT + - COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT - 43 - MIN( ALL col1 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5172
SELECT - 43 - MIN ( ALL col1 ) FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5173
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL - 29 * + - COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL - 29 * + - COUNT ( * ) FROM tab0
----
87

query I rowsort
SELECT DISTINCT - 67 * 3 * col2 AS col1 FROM tab1 AS cor0
----
-11859
-13668
-19296

query I rowsort
SELECT DISTINCT 89 * - ( - + 91 ) + + + ( col1 ) * - col1 FROM tab1 AS cor0
----
5890
7903
8074

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 48 - + col2 + - col1 - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 32 + + 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) BETWEEN - + col0 * - + 40 / + - col2 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT MAX( ALL - + 1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT MAX ( ALL - + 1 ) FROM tab0
----
-1

query I rowsort
SELECT ALL 40 * + - col0 AS col0 FROM tab1
----
-2040
-3400
-3640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 10 col2, - col1 AS col2 FROM tab0
----
10
-1
10
-21
10
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL COUNT( ALL - - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL COUNT ( ALL - - col0 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 94 + - col2 + 57 AS col2 FROM tab2
----
111
128
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT + CAST( - 35 AS SIGNED ) col0 FROM tab2
----
-35
-35
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5185
SELECT + CAST ( - 35 AS INTEGER ) col0 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + col0 + - 34 AS col1 FROM tab2
----
12
30
41

query I rowsort
SELECT ALL col1 * col2 * + - 32 FROM tab0
----
-121824
-3168
-6720

query I rowsort
SELECT - 41 * - - 53 FROM tab2
----
-2173
-2173
-2173

onlyif mysql # aggregate syntax: 
query II rowsort label-5189
SELECT DISTINCT - - COUNT( * ) col0, 41 AS col2 FROM tab0 AS cor0
----
3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5189
SELECT DISTINCT - - COUNT ( * ) col0, 41 AS col2 FROM tab0 AS cor0
----
3
41

query I rowsort
SELECT ALL - col1 * - col1 * + 41 + - - col1 + - - 87 FROM tab2 AS cor0
----
106779
184203
243253

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5191
SELECT DISTINCT + - col2 * 17, + col1 / + + 34 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
-1003
NULL
-1156
NULL
-1632
NULL

skipif mysql # not compatible
query II rowsort label-5191
SELECT DISTINCT + - col2 * 17, + col1 / + + 34 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
-1003
NULL
-1156
NULL
-1632
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL + ( + 95 ) * + - COUNT( * ) FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL + ( + 95 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-285

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5193
SELECT - 10 / CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT - 10 / CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT + ( + 37 ) * + + COUNT( * ) * 57 + - 44 FROM tab1
----
6283

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT + ( + 37 ) * + + COUNT ( * ) * 57 + - 44 FROM tab1
----
6283

query I rowsort
SELECT ALL col0 + + + 90 FROM tab2
----
136
154
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - - 62 ) + - + ( - col0 ) + + + 14 col0, + ( - col1 ) FROM tab2
----
122
-51
140
-77
151
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT 94 AS col1, COUNT( * ) * - 61 FROM tab0 cor0 WHERE + 54 + + col2 * - + col1 <= NULL
----
94
0

skipif mysql # not compatible
query II rowsort label-5198
SELECT 94 AS col1, COUNT ( * ) * - 61 FROM tab0 cor0 WHERE + 54 + + col2 * - + col1 <= NULL
----
94
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT + ( + COUNT( * ) ) - - 26 AS col1 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5199
SELECT + ( + COUNT ( * ) ) - - 26 AS col1 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT ALL - SUM( ALL - col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5200
SELECT ALL - SUM ( ALL - col0 ) col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT + ( - 42 ) + - 4 - + + ( COUNT( * ) ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + ( - 42 ) + - 4 - + + ( COUNT ( * ) ) FROM tab0 AS cor0
----
-49

query II rowsort
SELECT ALL - col2, + 16 * - col0 AS col1 FROM tab0
----
-10
-1392
-47
-240
-99
-1552

query I rowsort
SELECT col0 + + - 54 AS col2 FROM tab1
----
-3
31
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT + 37 DIV - col2 + - - col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5204
SELECT + 37 / - col2 + - - col0 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT + 2 * - 70 * - + 3 + - col1 * col0 FROM tab1
----
-294
-3857
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT ALL + col0 / + 46 * col2 + ( - - col2 ) + + CAST( NULL AS SIGNED ) + + col0 * + 87 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5206
SELECT ALL + col0 / + 46 * col2 + ( - - col2 ) + + CAST ( NULL AS INTEGER ) + + col0 * + 87 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - 13 - - col1 * + col1 > + + col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 32 * + col0 FROM tab0
----
2784
3104
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT DISTINCT col1 / + - col2 + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT col1 / + - col2 + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5210
SELECT DISTINCT + 38 * - 30 DIV + - MAX( + 6 ) + 52 FROM tab2 cor0
----
242

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT + 38 * - 30 / + - MAX ( + 6 ) + 52 FROM tab2 cor0
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT SUM( - 95 ) col1 FROM tab0 AS cor0 WHERE NOT ( + ( - col0 ) ) IS NULL
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5211
SELECT SUM ( - 95 ) col1 FROM tab0 AS cor0 WHERE NOT ( + ( - col0 ) ) IS NULL
----
-285

query I rowsort
SELECT DISTINCT - 21 * - col2 FROM tab2 AS cor0
----
1218
483
840

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + 68 + + - MIN( - 59 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
127

skipif mysql # not compatible
query I rowsort label-5213
SELECT + 68 + + - MIN ( - 59 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL - COUNT( ALL 1 ) * + 2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL - COUNT ( ALL 1 ) * + 2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT + col0 * - col0 <> - + CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5215
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT + col0 * - col0 <> - + CAST ( + + col2 AS INTEGER )
----

query I rowsort
SELECT 8 + + 8 + - + col1 * - - col1 + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2534
-4406
-5836

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT + 91 DIV + col0 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5217
SELECT + 91 / + col0 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - COUNT( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5218
SELECT - COUNT ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - ( - + col2 ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT MIN( DISTINCT + - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT MIN ( DISTINCT + - col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL + MAX( col2 ) AS col2 FROM tab0 cor0 WHERE NOT - ( - + col1 ) * - + col2 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL + MAX ( col2 ) AS col2 FROM tab0 cor0 WHERE NOT - ( - + col1 ) * - + col2 IS NULL
----
99

query II rowsort
SELECT - + col0, col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT - COUNT( + 7 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT - COUNT ( + 7 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - + 26 + COUNT( + col1 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5225
SELECT - + 26 + COUNT ( + col1 ) FROM tab1 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT DISTINCT + - ( col0 ) - - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + - ( col0 ) - - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5227
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT + col1 + + - col2 + + 68 AS col2 FROM tab1 AS cor0
----
-14
14
47

query II rowsort
SELECT DISTINCT col2, col0 + - - 16 FROM tab0 AS cor0
----
10
103
47
31
99
113

query I rowsort
SELECT - - col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT + col1 + + 40 FROM tab0 AS cor0 WHERE ( NOT + + col1 BETWEEN col1 AND NULL )
----

query I rowsort
SELECT ALL + col0 * - - col2 * + col1 + - + col0 + 54 FROM tab1 AS cor0
----
25044
290799
68547

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT - 95 - - COUNT( * ) + - COUNT( * ) - + 17 FROM tab0
----
-112

skipif mysql # not compatible
query I rowsort label-5233
SELECT - 95 - - COUNT ( * ) + - COUNT ( * ) - + 17 FROM tab0
----
-112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5234
SELECT 58 * - col2 * - 65 + col1 AS col2 FROM tab1 WHERE NULL <> CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5234
SELECT 58 * - col2 * - 65 + col1 AS col2 FROM tab1 WHERE NULL <> CAST ( + col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL 64 * - - MIN( ALL - col0 ) + 98 FROM tab2
----
-4702

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL 64 * - - MIN ( ALL - col0 ) + 98 FROM tab2
----
-4702

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT DISTINCT + 11 + + COUNT( + col0 ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col2
----
11

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT + 11 + + COUNT ( + col0 ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL 14 * + COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL 14 * + COUNT ( * ) FROM tab1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT DISTINCT + 56 DIV - ( + - col2 ) * - - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT + 56 / - ( + - col2 ) * - - col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT - 23 * - 71 * + COUNT( * ) * - 71 FROM tab0 AS cor0
----
-347829

skipif mysql # not compatible
query I rowsort label-5239
SELECT - 23 * - 71 * + COUNT ( * ) * - 71 FROM tab0 AS cor0
----
-347829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5240
SELECT ALL + COUNT( DISTINCT - - 7 ) FROM tab1 AS cor0 WHERE col2 * - + CAST( - col1 AS SIGNED ) * - ( + - col0 ) + + + ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + COUNT ( DISTINCT - - 7 ) FROM tab1 AS cor0 WHERE col2 * - + CAST ( - col1 AS INTEGER ) * - ( + - col0 ) + + + ( - col2 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 95 * 4 col2 FROM tab0 AS cor0
----
-33060
-36860
-5700

query I rowsort
SELECT - 44 + ( 40 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT + + col0 AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT DISTINCT CAST( + 75 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5245
SELECT DISTINCT CAST ( + 75 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL MIN( + 68 ) FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL MIN ( + 68 ) FROM tab2 cor0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5247
SELECT + - 28 AS col0, COUNT( * ) FROM tab0 AS cor0
----
-28
3

skipif mysql # not compatible
query II rowsort label-5247
SELECT + - 28 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-28
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1, col0 + - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 + + col2 + col1 AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5250
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 87 + - col2 FROM tab1
----
-9
19
28

query I rowsort
SELECT + col0 * - + col0 + + + 49 * - col2 FROM tab1
----
-10116
-11613
-7305

query I rowsort
SELECT + col2 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL - COUNT( * ) col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5254
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT col2 + - - col2 * col2 FROM tab1 AS cor0
----
3540
4692
9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5256
SELECT MIN( DISTINCT - col2 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT MIN ( DISTINCT - col2 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT 66 * - MIN( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5257
SELECT 66 * - MIN ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5258
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NULL AND ( ( CAST( + 54 AS SIGNED ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5258
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NULL AND ( ( CAST ( + 54 AS INTEGER ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT 95 DIV - + col2 - + - 84 FROM tab2 cor0
----
80
82
83

skipif mysql # not compatible
query I rowsort label-5259
SELECT 95 / - + col2 - + - 84 FROM tab2 cor0
----
80
82
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT + + 56 + - - col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT + + 56 + - - col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT ALL 7 * + 29 * + + COUNT( * ) FROM tab0 AS cor0
----
609

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL 7 * + 29 * + + COUNT ( * ) FROM tab0 AS cor0
----
609

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - col0 ) * - col0 FROM tab1
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 * - - 20 col2 FROM tab1
----
-1460
-1460
-1460

query I rowsort
SELECT DISTINCT - 29 * - + col1 * 38 AS col2 FROM tab1
----
15428
51794
5510

query I rowsort
SELECT DISTINCT 87 * - col1 + - 30 * col0 AS col1 FROM tab1 AS cor0
----
-2748
-2985
-6819

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT - + COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5268
SELECT - + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT - + CAST( col2 AS SIGNED ) + - col2 FROM tab1 cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-5270
SELECT - + CAST ( col2 AS INTEGER ) + - col2 FROM tab1 cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5271
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST( - col1 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5271
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( - col1 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5272
SELECT - - CAST( NULL AS SIGNED ) + - - COUNT( * ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5272
SELECT - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
-3

query I rowsort
SELECT 82 * - 27 + col2 AS col0 FROM tab1 AS cor0
----
-2118
-2146
-2155

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL + + COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL + + COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT COUNT( * ) col1 FROM tab0 WHERE NULL > + col0 + ( + 39 ) + col2 / 75
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT COUNT ( * ) col1 FROM tab0 WHERE NULL > + col0 + ( + 39 ) + col2 / 75
----
0

query II rowsort
SELECT DISTINCT - 58 * col0 + - col1 AS col0, ( - + ( - + ( col0 ) ) ) FROM tab0
----
-5067
87
-5627
97
-951
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT COUNT( * ) FROM tab1 WHERE ( col2 ) NOT BETWEEN col0 AND NULL
----
2

skipif mysql # not compatible
query I rowsort label-5277
SELECT COUNT ( * ) FROM tab1 WHERE ( col2 ) NOT BETWEEN col0 AND NULL
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) > + + 57
----
64
77
40
75
67
58

query I rowsort
SELECT ALL 80 * - col1 + + + 26 AS col0 FROM tab2
----
-4054
-5334
-6134

query II rowsort
SELECT + col1, + ( 31 ) FROM tab1
----
14
31
47
31
5
31

query I rowsort
SELECT col2 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - + 46 * col0 OR + col0 * - + 53 IS NULL
----

query I rowsort
SELECT ALL 87 * + ( + ( + 18 ) ) + - - col0 - - - col1 AS col2 FROM tab1
----
1603
1610
1646

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + + SUM( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5283
SELECT + + SUM ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 76 >= - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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-5286
SELECT COUNT( * ) + ( 28 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
37

skipif mysql # not compatible
query I rowsort label-5286
SELECT COUNT ( * ) + ( 28 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
37

query I rowsort
SELECT - col2 * + 14 + + col2 AS col2 FROM tab0
----
-1287
-130
-611

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 38 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 > col1 - col1
----

query II rowsort
SELECT ALL + col0 - col1, col2 * + + 12 AS col1 FROM tab2 AS cor0
----
-13
480
-5
276
8
696

query I rowsort
SELECT ALL + 58 * col0 FROM tab2 AS cor0
----
2668
3712
4350

query I rowsort
SELECT ALL + col2 - + col1 + + col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 5
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + 88 AS col1 FROM tab2
----
2024
3520
5104

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5295
SELECT 76 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT 76 * - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * ( + - 23 ) AS col1, + col1 col0 FROM tab1
----
1173
14
1955
5
2093
47

query I rowsort
SELECT DISTINCT - ( - 73 ) AS col1 FROM tab0 WHERE NOT col1 - 25 <= - 57
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT col2 DIV - + 54 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5298
SELECT col2 / - + 54 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----

query II rowsort
SELECT 24, + col1 AS col1 FROM tab2 cor0
----
24
51
24
67
24
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5301
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col2 * + ( - ( + CAST( - - col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-5301
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col2 * + ( - ( + CAST ( - - col1 AS INTEGER ) ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + - ( - ( 93 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT - COUNT( DISTINCT - ( + - col1 ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT - COUNT ( DISTINCT - ( + - col1 ) ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5304
SELECT + ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT + ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 FROM tab0 cor0 WHERE col2 + - ( + + 85 ) BETWEEN ( - - col1 ) AND 51
----
-1

query I rowsort
SELECT DISTINCT + 31 * ( + 40 ) AS col2 FROM tab0 AS cor0
----
1240

onlyif mysql # aggregate syntax: 
query II rowsort label-5307
SELECT DISTINCT - ( 59 ) AS col1, COUNT( * ) AS col0 FROM tab2
----
-59
3

skipif mysql # not compatible
query II rowsort label-5307
SELECT DISTINCT - ( 59 ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
-59
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT + 60 + - SUM( col0 ) AS col2 FROM tab0
----
-139

skipif mysql # not compatible
query I rowsort label-5308
SELECT + 60 + - SUM ( col0 ) AS col2 FROM tab0
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT COUNT( * ) DIV - COUNT( * ) + - + ( - MAX( DISTINCT - 56 ) ) FROM tab1, tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5309
SELECT COUNT ( * ) / - COUNT ( * ) + - + ( - MAX ( DISTINCT - 56 ) ) FROM tab1, tab1 AS cor0
----
-57

query I rowsort
SELECT 82 + - 3 FROM tab1
----
79
79
79

query I rowsort
SELECT ALL + col1 * - - col0 + + ( col0 ) AS col0 FROM tab0
----
1230
1914
194

onlyif mysql # DIV for integer division: 
query II rowsort label-5312
SELECT DISTINCT col0 * - + 60 + + + col0 AS col0, - 49 - + col1 DIV + + 57 AS col2 FROM tab2
----
-2714
-49
-3776
-50
-4425
-50

skipif mysql # not compatible
query II rowsort label-5312
SELECT DISTINCT col0 * - + 60 + + + col0 AS col0, - 49 - + col1 / + + 57 AS col2 FROM tab2
----
-2714
-49
-3776
-50
-4425
-50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 <> + 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT + - COUNT( * ) + + - 58 + 2 * - - COUNT( * ) + + - MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT + - COUNT ( * ) + + - 58 + 2 * - - COUNT ( * ) + + - MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT + - ( + 4 ) FROM tab2 cor0
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-5316
SELECT + col2, - col1 DIV + col0 FROM tab2
----
23
-1
40
-1
58
0

skipif mysql # not compatible
query II rowsort label-5316
SELECT + col2, - col1 / + col0 FROM tab2
----
23
-1
40
-1
58
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN col1 AND col0 / + col2 AND + col1 + - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5318
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL < - col0
----

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 63 col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5319
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 63 col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 87 * - col0 AS col0 FROM tab1 AS cor0
----
-4437
-7395
-7917

query I rowsort
SELECT ( - 2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5322
SELECT ALL + COUNT( * ) col0, - ( + + SUM( DISTINCT + col0 ) ) * - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5322
SELECT ALL + COUNT ( * ) col0, - ( + + SUM ( DISTINCT + col0 ) ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5323
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( 91 AS SIGNED ) BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-5323
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( 91 AS INTEGER ) BETWEEN NULL AND - col1
----

query II rowsort
SELECT 37, col1 FROM tab0 AS cor0
----
37
1
37
21
37
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5325
SELECT ALL COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5326
SELECT ALL COUNT( ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL COUNT ( ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 + - + col0 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( - ( 92 ) ) / - col0 * - - col2 ) BETWEEN 77 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + + 96 * - - COUNT( * ) FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-5329
SELECT + + 96 * - - COUNT ( * ) FROM tab0 AS cor0
----
288

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + + col1 IS NOT NULL AND NOT col2 = NULL
----

query I rowsort
SELECT - 3 + - col2 FROM tab2 AS cor0 WHERE NOT 95 IS NULL
----
-26
-43
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT DISTINCT - - COUNT( + 84 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT - - COUNT ( + 84 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE - col0 / - + col1 / - col1 <= NULL
----

query I rowsort
SELECT - col0 + + + 76 FROM tab0 AS cor0
----
-11
-21
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5335
SELECT ALL - + CAST( NULL AS DECIMAL ) * + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - + CAST ( NULL AS REAL ) * + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col0 + + - 37 AS col1 FROM tab1 AS cor0
----
14
48
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT MAX( + col1 ) * 62 + 22 + - - MIN( DISTINCT + - 67 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT MAX ( + col1 ) * 62 + 22 + - - MIN ( DISTINCT + - 67 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT col1 + + + col2 * col2 AS col2 FROM tab0 cor0
----
121
2290
9802

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 - + 78 + + - col2 + col1 FROM tab0
----
-29
-79
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT - 4 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT - 4 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - 72 - - - 17 AS col2 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT + ( + 4 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL - COUNT( DISTINCT - - col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - COUNT ( DISTINCT - - col2 ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5345
SELECT ALL * FROM tab1 WHERE NOT col0 * + - CAST( NULL AS SIGNED ) + - + col2 - col1 = NULL
----

skipif mysql # not compatible
query III rowsort label-5345
SELECT ALL * FROM tab1 WHERE NOT col0 * + - CAST ( NULL AS INTEGER ) + - + col2 - col1 = NULL
----

query I rowsort
SELECT - - 4 FROM tab0 WHERE - col1 * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5347
SELECT 81 DIV + ( + col2 ) AS col0 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5347
SELECT 81 / + ( + col2 ) AS col0 FROM tab0
----
0
1
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 58 + - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col1 FROM tab2 cor0 WHERE NULL > 65
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + + 93 ) + col2 IS NOT NULL
----

query II rowsort
SELECT - col1, - col2 AS col1 FROM tab0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT DISTINCT + ( + ( + + col0 ) ) * - 57 * + + col2 AS col0 FROM tab0
----
-40185
-49590
-547371

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 6 BETWEEN col1 AND - - 87
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT + col0, col2 + + col0 * - ( - 56 ) AS col1 FROM tab1
----
51
2952
85
4819
91
5164

query II rowsort
SELECT + 0, - col0 AS col0 FROM tab1
----
0
-51
0
-85
0
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT SUM( 32 ) AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-5358
SELECT SUM ( 32 ) AS col0 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT DISTINCT - MIN( DISTINCT - + col2 ) col2 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5359
SELECT DISTINCT - MIN ( DISTINCT - + col2 ) col2 FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 2 * - col0 col1 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5361
SELECT + - 14 DIV - col1 FROM tab0 AS cor0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-5361
SELECT + - 14 / - col1 FROM tab0 AS cor0
----
0
0
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 93 * col0 > col1 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 16 + + 66 AS col1 FROM tab0 AS cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 97 col0 FROM tab0
----
0
10
82

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) NOT IN ( + 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab2 WHERE 67 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab2 WHERE 67 IS NOT NULL
----
3

query I rowsort
SELECT ALL 12 * 20 FROM tab1
----
240
240
240

query I rowsort
SELECT ( - 19 ) FROM tab2 WHERE col2 IS NOT NULL
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL + 55 * COUNT( * ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + 55 * COUNT ( * ) FROM tab1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 + - col1 AND col1 + 43 * 50
----
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 + - col1 AND col1 + 43 * 50
----
0

query I rowsort
SELECT ALL - 88 * - 81 AS col0 FROM tab1
----
7128
7128
7128

query I rowsort
SELECT - 3 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - 26 )
----

query I rowsort
SELECT DISTINCT - col2 * 1 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - 9 * - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5376
SELECT - COUNT( * ) DIV + 64 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT - COUNT ( * ) / + 64 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 + - col2 col0 FROM tab0
----
-39
13
50

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5378
SELECT * FROM tab1 WHERE - col0 - - CAST( - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5378
SELECT * FROM tab1 WHERE - col0 - - CAST ( - col2 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5379
SELECT DISTINCT COUNT( * ) - MAX( 93 ) DIV 62 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT COUNT ( * ) - MAX ( 93 ) / 62 FROM tab2
----
2

query I rowsort
SELECT - col0 * ( col0 * 66 ) FROM tab0
----
-14850
-499554
-620994

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - 87 * 30 - COUNT( * ) AS col0 FROM tab2
----
-2613

skipif mysql # not compatible
query I rowsort label-5381
SELECT - 87 * 30 - COUNT ( * ) AS col0 FROM tab2
----
-2613

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 47 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + MIN( 1 ) FROM tab0 WHERE NOT NULL <= ( - col0 - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT + MIN ( 1 ) FROM tab0 WHERE NOT NULL <= ( - col0 - + col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 53 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + 92 * col1 AS col2 FROM tab2
----
4692
6164
7084

query I rowsort
SELECT DISTINCT col0 + + ( col1 ) * ( - 92 - + 89 ) FROM tab0
----
-14646
-3714
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT DISTINCT COUNT( * ) * 30 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT COUNT ( * ) * 30 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT SUM( 6 ) * + 92 col0 FROM tab0
----
1656

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5389
SELECT SUM ( 6 ) * + 92 col0 FROM tab0
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT COUNT( * ) * + 84 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-5390
SELECT COUNT ( * ) * + 84 FROM tab0
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT + 87 AS col2 FROM tab1 WHERE ( col1 * - 25 ) BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5391
SELECT + 87 AS col2 FROM tab1 WHERE ( col1 * - 25 ) BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5392
SELECT ALL + col0 / CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT col0 IN ( - col2 * col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL + col0 / CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT col0 IN ( - col2 * col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 80 + 31 * col0 FROM tab0 AS cor0
----
2617
2927
385

query I rowsort
SELECT DISTINCT ( col0 ) + - 6 FROM tab2 AS cor0
----
40
58
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT - 86 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5395
SELECT - 86 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-258

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 84 <> ( + ( + col2 ) / + 84 )
----

query I rowsort
SELECT ALL - col2 * - 42 FROM tab0 AS cor0
----
1974
4158
420

query I rowsort
SELECT + 53 * + col0 AS col0 FROM tab2 cor0
----
2438
3392
3975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT DISTINCT + 5 / col2 AS col1 FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT + 5 / col2 AS col1 FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + col2 * 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-9

query I rowsort
SELECT ALL + 65 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT 53 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5403
SELECT 53 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( + ( 69 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( + ( 69 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT DISTINCT + - col0 DIV + ( - col2 + + col1 * + col1 ) AS col1 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + - col0 / + ( - col2 + + col1 * + col1 ) AS col1 FROM tab1 AS cor0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + + ( + 85 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-5406
SELECT + + ( + 85 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT 4 * + COUNT( - 34 ) FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-5407
SELECT 4 * + COUNT ( - 34 ) FROM tab0 cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= 87 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ( - MIN( col1 ) ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5409
SELECT ( - MIN ( col1 ) ) FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT - MIN( + + 13 ) AS col0 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-5410
SELECT - MIN ( + + 13 ) AS col0 FROM tab0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT + CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5411
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT ALL + 50 * col1 * col1 FROM tab0
----
22050
328050
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5413
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 55 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 55 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT DISTINCT COUNT( - 89 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT COUNT ( - 89 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 / 37 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT - CAST( - 51 AS SIGNED ) AS col2 FROM tab0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-5417
SELECT - CAST ( - 51 AS INTEGER ) AS col2 FROM tab0
----
51
51
51

query I rowsort
SELECT ALL 22 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 52 * 52 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT DISTINCT - ( - CAST( col0 AS SIGNED ) ) + + col2 AS col1 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT - ( - CAST ( col0 AS INTEGER ) ) + + col2 AS col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT MAX( DISTINCT + + 80 ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5421
SELECT MAX ( DISTINCT + + 80 ) FROM tab0 AS cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT - COUNT( + - CAST( 21 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5422
SELECT - COUNT ( + - CAST ( 21 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 63 * + + col2 FROM tab0 cor0
----
2961
6237
630

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT MIN( ALL col1 ) * + 58 AS col2 FROM tab2 WHERE NOT ( NOT col1 < ( 88 ) )
----
2958

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT MIN ( ALL col1 ) * + 58 AS col2 FROM tab2 WHERE NOT ( NOT col1 < ( 88 ) )
----
2958

query I rowsort
SELECT ( 76 ) * 39 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 271fc59d8d634d6e7bdc62aca0b5d038

query I rowsort
SELECT + col2 + 37 AS col1 FROM tab1
----
105
133
96

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) < + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5428
SELECT + - 78 + + col2 DIV - col0 FROM tab1 AS cor0
----
-78
-78
-79

skipif mysql # not compatible
query I rowsort label-5428
SELECT + - 78 + + col2 / - col0 FROM tab1 AS cor0
----
-78
-78
-79

query I rowsort
SELECT ALL - - col2 * + col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 88 + + 2 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT + 98 FROM tab1 cor0 WHERE col0 / + 12 + - col0 NOT BETWEEN 70 AND - col0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5432
SELECT * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5432
SELECT * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE - - col2 + - col0 IN ( - col1 / + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT - COUNT( + 34 ) FROM tab2 WHERE + - 42 * - col2 IN ( - CAST( NULL AS SIGNED ) + - ( - 75 + - 55 * col2 ) * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5434
SELECT - COUNT ( + 34 ) FROM tab2 WHERE + - 42 * - col2 IN ( - CAST ( NULL AS INTEGER ) + - ( - 75 + - 55 * col2 ) * - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT - 29 - - - col2 - - col1 DIV + col2 AS col0 FROM tab1
----
-125
-88
-97

skipif mysql # not compatible
query I rowsort label-5435
SELECT - 29 - - - col2 - - col1 / + col2 AS col0 FROM tab1
----
-125
-88
-97

query I rowsort
SELECT - col0 * 3 - + col1 FROM tab1
----
-167
-260
-320

query I rowsort
SELECT + col1 - 81 - + + 21 + 37 FROM tab0
----
-44
-64
16

query I rowsort
SELECT ALL 43 + + 43 + + - col1 * + col2 AS col2 FROM tab0
----
-124
-13
-3721

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT COUNT( * ) - - 81 FROM tab0 cor0
----
84

skipif mysql # not compatible
query I rowsort label-5439
SELECT COUNT ( * ) - - 81 FROM tab0 cor0
----
84

query II rowsort
SELECT ALL - 47, 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 0c07399cf9ecc41a64011ef2a9decd2e

query II rowsort
SELECT + 60, col0 AS col0 FROM tab2
----
60
46
60
64
60
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT COUNT( * ) * - 36 AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT COUNT ( * ) * - 36 AS col2 FROM tab2
----
-108

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL + COUNT( * ) * + 11 AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + COUNT ( * ) * + 11 AS col2 FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT DISTINCT - 63 / + col2 / 28 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT - 63 / + col2 / 28 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5448
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( + 46 * + + CAST( - ( - + ( - col1 ) ) AS SIGNED ) - ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-5448
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( + 46 * + + CAST ( - ( - + ( - col1 ) ) AS INTEGER ) - ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 * - 56 col0 FROM tab0 AS cor0
----
-1176

query II rowsort
SELECT ALL 48 + + 13 AS col0, + col0 + + + col1 * 60 AS col2 FROM tab1
----
61
2911
61
385
61
891

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT COUNT( + - 53 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5451
SELECT COUNT ( + - 53 ) col2 FROM tab0
----
3

query I rowsort
SELECT 0 AS col0 FROM tab2 WHERE NOT - col2 < col2 / - col0 + col2 * 62
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( 49 ) ) + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + 8 * - col0 FROM tab0
----
-105
-609
-679

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * + - col1 NOT IN ( - 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - MIN( ALL - 83 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-5456
SELECT - MIN ( ALL - 83 ) FROM tab0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL col0 + - 4 FROM tab2
----
42
60
71

query I rowsort
SELECT DISTINCT 70 * + col0 + 79 * - col1 FROM tab2
----
-1603
-43
-809

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 < + + 53 + - + 81
----

query I rowsort
SELECT ALL 65 + + - col2 - - - col2 FROM tab0 AS cor0
----
-133
-29
45

query I rowsort
SELECT 11 * 25 * - col0 * 44 FROM tab2
----
-556600
-774400
-907500

query I rowsort
SELECT ALL - + 71 * + ( ( - + 50 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7100b2bac6d01f28c66aa1cef69f2ec0

query I rowsort
SELECT ALL + - col0 + col0 + + 80 AS col1 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT + col2 - col1 AS col2 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT DISTINCT + col2 - - 37 AS col1 FROM tab0 AS cor0
----
136
47
84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 - - 82 - - + 98 * + - 44 FROM tab1 AS cor0
----
-4289
-4298
-4326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT ALL - CAST( - - col2 AS SIGNED ) * + col2 - + 53 FROM tab2 AS cor0
----
-1653
-3417
-582

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - CAST ( - - col2 AS INTEGER ) * + col2 - + 53 FROM tab2 AS cor0
----
-1653
-3417
-582

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT - col0 * 7 + ( 17 ) DIV ( - 24 ) AS col2 FROM tab1
----
-357
-595
-637

skipif mysql # not compatible
query I rowsort label-5470
SELECT - col0 * 7 + ( 17 ) / ( - 24 ) AS col2 FROM tab1
----
-357
-595
-637

query I rowsort
SELECT DISTINCT col1 - + ( col2 ) - - col1 * - col2 FROM tab1
----
-1426
-3217
-349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col0 FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT + COUNT( * ) * - + ( - 65 ) * - - COUNT( * ) + + 45 + + COUNT( * ) FROM tab1
----
633

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT + COUNT ( * ) * - + ( - 65 ) * - - COUNT ( * ) + + 45 + + COUNT ( * ) FROM tab1
----
633

query I rowsort
SELECT DISTINCT + ( + 57 ) AS col1 FROM tab0 cor0 WHERE NOT col1 * col1 IS NOT NULL
----

query II rowsort
SELECT ALL - + 72 * - - 31 * + - col0 AS col1, col0 + - + col0 FROM tab1 AS cor0
----
113832
0
189720
0
203112
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT - MIN( - + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5476
SELECT - MIN ( - + col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT - MAX( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5477
SELECT - MAX ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5478
SELECT 43 * - - 24 - 8 + + 46 DIV - 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 106fd24c97679b11d7945605f6e9c241

skipif mysql # not compatible
query I rowsort label-5478
SELECT 43 * - - 24 - 8 + + 46 / - 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 106fd24c97679b11d7945605f6e9c241

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL - + MIN( + 5 ) FROM tab2 WHERE NOT col0 * + + col2 IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL - + MIN ( + 5 ) FROM tab2 WHERE NOT col0 * + + col2 IS NULL
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <> - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5481
SELECT DISTINCT - col2 * + col2 / + col0 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT - col2 * + col2 / + col0 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT - + SUM( - - 95 ) * COUNT( * ) FROM tab2 cor0
----
-855

skipif mysql # not compatible
query I rowsort label-5482
SELECT - + SUM ( - - 95 ) * COUNT ( * ) FROM tab2 cor0
----
-855

query I rowsort
SELECT - 88 * - col2 * col1 + ( - - 40 ) + + 67 * - + col0 FROM tab0 AS cor0
----
12691
2253
334051

query I rowsort
SELECT DISTINCT - - col0 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
295885
420784
470016

query II rowsort
SELECT + + col1 * + 83 + col2 - - 87 AS col0, ( + 79 ) AS col0 FROM tab0 AS cor0
----
1840
79
269
79
6857
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) * 75 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) * 75 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL SUM( - 61 ) * + + 20 AS col0 FROM tab2 AS cor0
----
-3660

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL SUM ( - 61 ) * + + 20 AS col0 FROM tab2 AS cor0
----
-3660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT DISTINCT + 93 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT + 93 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 98 + col0 AS col1 FROM tab2 AS cor0
----
144
162
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5490
SELECT ALL 44 / MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL 44 / MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 + + 21 FROM tab1
----
117
80
89

query II rowsort
SELECT - col0 AS col2, col0 * + col0 * col0 AS col0 FROM tab2
----
-46
97336
-64
262144
-75
421875

query I rowsort
SELECT DISTINCT + 79 + 54 - col1 + + col2 AS col2 FROM tab0
----
122
231
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5494
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) * - ( + 69 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - ( + 69 ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 26 + - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + 44 FROM tab0 cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL + - MIN( + ( + col0 ) ) AS col1 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + - MIN ( + ( + col0 ) ) AS col1 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL + SUM( - col1 ) + - + 84 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL + SUM ( - col1 ) + - + 84 FROM tab1
----
-150

query I rowsort
SELECT ALL - 93 AS col0 FROM tab0 cor0 WHERE col1 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5500
SELECT CAST( + 86 AS SIGNED ) col2, - col1 + 91 + + - col1 FROM tab2 AS cor0
----
86
-11
86
-43
86
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5500
SELECT CAST ( + 86 AS INTEGER ) col2, - col1 + 91 + + - col1 FROM tab2 AS cor0
----
86
-11
86
-43
86
-63

query I rowsort
SELECT + col0 AS col1 FROM tab1 cor0 WHERE col0 NOT IN ( col2 + - col0 + - 84 / - 83, + col2 )
----
51
85
91

query I rowsort
SELECT ALL + ( - col2 ) - + col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL - MIN( ALL - + 84 ) FROM tab2 cor0
----
84

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL - MIN ( ALL - + 84 ) FROM tab2 cor0
----
84

query I rowsort
SELECT col0 * col1 * - - ( + col0 ) FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query II rowsort label-5505
SELECT DISTINCT 80, COUNT( * ) AS col1 FROM tab0, tab2 cor0
----
80
9

skipif mysql # not compatible
query II rowsort label-5505
SELECT DISTINCT 80, COUNT ( * ) AS col1 FROM tab0, tab2 cor0
----
80
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL COUNT( DISTINCT - ( - col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL COUNT ( DISTINCT - ( - col0 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5507
SELECT 18 DIV 68 DIV COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT 18 / 68 / COUNT ( * ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 34 NOT BETWEEN col0 AND col1
----

query II rowsort
SELECT 36 * + - 59 AS col0, col0 * + col2 * + - 36 * - 91 AS col2 FROM tab1
----
-2124
16039296
-2124
16429140
-2124
20271888

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 83 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5511
SELECT - ( - - CAST( - col2 AS SIGNED ) ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5511
SELECT - ( - - CAST ( - col2 AS INTEGER ) ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT SUM( ( - 25 ) ) DIV + COUNT( * ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-5512
SELECT SUM ( ( - 25 ) ) / + COUNT ( * ) FROM tab0
----
-25

query I rowsort
SELECT DISTINCT + col2 * + + ( + - 83 ) FROM tab0 AS cor0
----
-3901
-8217
-830

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL COUNT( DISTINCT + 33 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL COUNT ( DISTINCT + 33 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT MAX( - 17 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-17

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT MAX ( - 17 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5516
SELECT COUNT( * ) * + COUNT( - col0 ) AS col2, ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5516
SELECT COUNT ( * ) * + COUNT ( - col0 ) AS col2, ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT ALL + col1 DIV - - col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + col1 / - - col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ( - 32 ) + - 61 FROM tab1
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT ALL - col0 DIV 33 AS col0 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - col0 / 33 AS col0 FROM tab0
----
-2
-2
0

query I rowsort
SELECT - col0 * - + 68 FROM tab2
----
3128
4352
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL + COUNT( * ) + - 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL + COUNT ( * ) + - 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT + + MAX( ALL ( + 61 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT + + MAX ( ALL ( + 61 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT ALL 81 - col1 + CAST( col0 AS SIGNED ) FROM tab1
----
118
125
161

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL 81 - col1 + CAST ( col0 AS INTEGER ) FROM tab1
----
118
125
161

query I rowsort
SELECT + 73 - - - col0 FROM tab0 cor0
----
-14
-24
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + MIN( - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT + MIN ( - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT 15 AS col2, - 6 FROM tab0 AS cor0
----
15
-6
15
-6
15
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 9 col2, - col0 AS col1 FROM tab2 AS cor0
----
-9
-46
-9
-64
-9
-75

query I rowsort
SELECT - + 7 * - 91 FROM tab1 cor0
----
637
637
637

onlyif mysql # aggregate syntax: 
query II rowsort label-5530
SELECT - COUNT( * ) AS col0, - 30 * - 25 AS col1 FROM tab2 AS cor0
----
-3
750

skipif mysql # not compatible
query II rowsort label-5530
SELECT - COUNT ( * ) AS col0, - 30 * - 25 AS col1 FROM tab2 AS cor0
----
-3
750

query I rowsort
SELECT + ( - - 69 ) * col2 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT col1 * - col1 * + 46 FROM tab1
----
-101614
-1150
-9016

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT + MAX( ALL + 55 ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-5533
SELECT + MAX ( ALL + 55 ) AS col0 FROM tab2
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5534
SELECT DISTINCT - col2 / + CAST( NULL AS DECIMAL ) * + col2 + + col2 + + 54 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT - col2 / + CAST ( NULL AS REAL ) * + col2 + + col2 + + 54 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + + 38 AS col0, 63 AS col2 FROM tab2 AS cor0
----
38
63
38
63
38
63

onlyif mysql # DIV for integer division: 
query II rowsort label-5536
SELECT ALL col0, 83 DIV - - col1 AS col2 FROM tab2 AS cor0
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-5536
SELECT ALL col0, 83 / - - col1 AS col2 FROM tab2 AS cor0
----
46
1
64
1
75
1

query I rowsort
SELECT + 99 * - + col2 FROM tab2 AS cor0
----
-2277
-3960
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT - ( + 95 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-5538
SELECT - ( + 95 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-285

query I rowsort
SELECT + - col1 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT 80 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = 50 * - col2
----

query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query I rowsort
SELECT ALL - 9 * 88 AS col2 FROM tab2
----
-792
-792
-792

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 90 NOT IN ( - ( + col1 ) / + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col1 + - col1 * + - col1 * ( - col0 ) col1 FROM tab2 cor0
----
-119618
-336666
-379419

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT 44 + + MAX( + 78 ) * - COUNT( * ) FROM tab0 AS cor0
----
-190

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT 44 + + MAX ( + 78 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-190

query I rowsort
SELECT ALL + 58 * + - 99 + + col0 FROM tab0 AS cor0
----
-5645
-5655
-5727

onlyif mysql # DIV for integer division: 
query I rowsort label-5547
SELECT - col0 DIV + col0 + - - col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-5547
SELECT - col0 / + col0 + - - col0 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT col2 * + col0 + - col0 * col0 FROM tab1 AS cor0
----
-2093
-2210
2295

query I rowsort
SELECT - col2 + - col1 * 27 FROM tab2 cor0
----
-1400
-1867
-2119

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * col1 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + 21 ) AS col0 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT col2 + - col1 - col0 FROM tab0 cor0
----
-49
-98
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 > NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND 79 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT - COUNT( * ) * - - 42 + 78 AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5555
SELECT - COUNT ( * ) * - - 42 + 78 AS col2 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT COUNT( * ) + + + 56 AS col1 FROM tab1 WHERE NULL >= col2
----
56

skipif mysql # not compatible
query I rowsort label-5556
SELECT COUNT ( * ) + + + 56 AS col1 FROM tab1 WHERE NULL >= col2
----
56

query I rowsort
SELECT DISTINCT - ( - col0 ) * - col2 + - col0 + - col1 + + col1 - + 89 FROM tab0
----
-1046
-809
-9789

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT + MIN( ALL 33 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT + MIN ( ALL 33 ) AS col0 FROM tab1
----
33

query I rowsort
SELECT ALL col1 + - - col1 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT 86 * + + col1 AS col1 FROM tab1
----
1204
4042
430

query I rowsort
SELECT DISTINCT - ( + - col1 ) + + - col2 AS col1 FROM tab2
----
28
37
9

query I rowsort
SELECT + 98 - + + 29 FROM tab2 cor0
----
69
69
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5563
SELECT + ( - + CAST( NULL AS DECIMAL ) ) / - 54 - + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT + ( - + CAST ( NULL AS REAL ) ) / - 54 - + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 70 + - 99 - + + col0 + - 51 FROM tab0 AS cor0
----
-1707
-317
-5835

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5565
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( + 3 AS SIGNED ) + - ( - - col2 ) <> + col2 - + col0
----

skipif mysql # not compatible
query III rowsort label-5565
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + 3 AS INTEGER ) + - ( - - col2 ) <> + col2 - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 AS cor0 WHERE NOT + col0 * 86 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT ALL - ( - + 58 ), COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
58
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5567
SELECT ALL - ( - + 58 ), COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
58
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL - SUM( - ( + 39 ) ) AS col0 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - SUM ( - ( + 39 ) ) AS col0 FROM tab1
----
117

query I rowsort
SELECT 65 + ( col2 ) * + - col1 * + - 44 FROM tab0
----
167573
4421
9305

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + + COUNT( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5571
SELECT + + COUNT ( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT - COUNT( * ) + SUM( ALL - - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT - COUNT ( * ) + SUM ( ALL - - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 82 + + - 19 * col2 FROM tab1 AS cor0 WHERE + 86 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5574
SELECT - col2 DIV col1 AS col1, 40 FROM tab0 AS cor0
----
-99
40
0
40
0
40

skipif mysql # not compatible
query II rowsort label-5574
SELECT - col2 / col1 AS col1, 40 FROM tab0 AS cor0
----
-99
40
0
40
0
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT DISTINCT + - 39 DIV 33 - + col0 + + col1 FROM tab1 AS cor0
----
-38
-45
-81

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT + - 39 / 33 - + col0 + + col1 FROM tab1 AS cor0
----
-38
-45
-81

query I rowsort
SELECT DISTINCT - 65 * ( + 30 ) + col2 FROM tab0 AS cor0
----
-1851
-1903
-1940

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 58 < 27
----

query I rowsort
SELECT DISTINCT col1 + - + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT DISTINCT CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - + ( - 58 ) AS col0 FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT + + COUNT( * ) * - + ( + 71 ) AS col1 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT + + COUNT ( * ) * - + ( + 71 ) AS col1 FROM tab1 AS cor0
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT ALL - col1 DIV - + 14 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL - col1 / - + 14 AS col2 FROM tab0
----
0
1
5

query I rowsort
SELECT ALL 55 * - col2 AS col1 FROM tab0
----
-2585
-5445
-550

query I rowsort
SELECT - 11 * + ( - - col0 ) FROM tab0
----
-1067
-165
-957

query III rowsort
SELECT * FROM tab2 WHERE + - col1 BETWEEN + - 61 AND NULL
----

query I rowsort
SELECT DISTINCT - 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5588
SELECT + col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT + col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + + - 56 FROM tab1 AS cor0
----
-115
-124
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL AVG ( ALL + 69 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 56 AS col0 FROM tab1 AS cor0
----
-2632
-280
-784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, ( ( + + col1 ) ) FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL - 97 + + COUNT( * ) col1 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5594
SELECT ALL - 97 + + COUNT ( * ) col1 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT + col1 + - 96 FROM tab2
----
-19
-29
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT + 63 + ( + COUNT( * ) ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-5596
SELECT + 63 + ( + COUNT ( * ) ) FROM tab0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5597
SELECT DISTINCT col1 DIV + 47 + 1 AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT col1 / + 47 + 1 AS col1 FROM tab2
----
2

query I rowsort
SELECT - col0 + + + 43 FROM tab2
----
-21
-3
-32

query I rowsort
SELECT - 30 + + 14 AS col2 FROM tab1
----
-16
-16
-16

query III rowsort
SELECT ALL * FROM tab1 WHERE + 72 * + col2 * + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5601
SELECT ALL - col1 + + 0 DIV + col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL - col1 + + 0 / + col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT ( + 95 ) + + - COUNT( * ) AS col1 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT ( + 95 ) + + - COUNT ( * ) AS col1 FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT - - MIN( col2 ) - + SUM( col2 ) AS col1 FROM tab0 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - - MIN ( col2 ) - + SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
-146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + - - 50 col1 FROM tab2 AS cor0
----
-1123
-3030
-3836

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5605
SELECT DISTINCT col0, + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5605
SELECT DISTINCT col0, + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5606
SELECT + 61, COUNT( * ) * + + ( + 59 ) AS col1 FROM tab0 AS cor0
----
61
177

skipif mysql # not compatible
query II rowsort label-5606
SELECT + 61, COUNT ( * ) * + + ( + 59 ) AS col1 FROM tab0 AS cor0
----
61
177

onlyif mysql # DIV for integer division: 
query I rowsort label-5607
SELECT + col1 DIV + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5607
SELECT + col1 / + + col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + + col1 AS col2, + col1 - - col0 FROM tab0 AS cor0
----
1
98
21
108
81
96

query I rowsort
SELECT DISTINCT 2 * - - 79 FROM tab0 AS cor0
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5610
SELECT - MIN( DISTINCT - CAST( + col0 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5610
SELECT - MIN ( DISTINCT - CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - col1 + - col0 FROM tab0 WHERE NOT - 77 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT ALL - ( 13 ) DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - ( 13 ) / - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - - col0 * - col2 * col1 * - col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT ALL + SUM( DISTINCT + + col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL + SUM ( DISTINCT + + col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT - - ( 21 ) FROM tab0 cor0
----
21
21
21

query I rowsort
SELECT - + 63 * col0 FROM tab1 AS cor0
----
-3213
-5355
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT + + 8 * - COUNT( * ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5617
SELECT + + 8 * - COUNT ( * ) FROM tab2 AS cor0
----
-24

query I rowsort
SELECT - col1 + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5619
SELECT MAX( - col1 ) AS col2, 75 FROM tab1 AS cor0
----
-5
75

skipif mysql # not compatible
query II rowsort label-5619
SELECT MAX ( - col1 ) AS col2, 75 FROM tab1 AS cor0
----
-5
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - + 78 <= NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 60 ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-5622
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 60 ) IS NULL
----
9

query I rowsort
SELECT - col0 + + 31 AS col2 FROM tab0 AS cor0
----
-56
-66
16

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT COUNT( col1 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5625
SELECT COUNT ( col1 ) AS col1 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL + ( MAX( 46 ) ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL + ( MAX ( 46 ) ) FROM tab1
----
46

query I rowsort
SELECT + + 50 FROM tab2 WHERE + - col0 IS NULL
----

query I rowsort
SELECT ALL col2 + + col0 * + + 34 + + 17 - col1 * - - col1 AS col0 FROM tab0
----
-5987
2544
3413

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT MAX( DISTINCT - + 83 ) AS col1 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-5630
SELECT MAX ( DISTINCT - + 83 ) AS col1 FROM tab0
----
-83

query I rowsort
SELECT DISTINCT col0 + - + col1 AS col2 FROM tab2
----
-13
-5
8

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL - 15 * - + COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL - 15 * - + COUNT ( * ) FROM tab0
----
45

query I rowsort
SELECT ALL - 9 + - 71 * col1 AS col2 FROM tab2
----
-3630
-4766
-5476

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT - COUNT( * ) + - - 53 AS col2 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - COUNT ( * ) + - - 53 AS col2 FROM tab2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5636
SELECT col1 * col2, col1 AS col1 FROM tab0 WHERE ( + + 84 * - - CAST( NULL AS SIGNED ) + col0 * - + 73 / col0 ) IS NULL
----
210
21
3807
81
99
1

skipif mysql # not compatible
query II rowsort label-5636
SELECT col1 * col2, col1 AS col1 FROM tab0 WHERE ( + + 84 * - - CAST ( NULL AS INTEGER ) + col0 * - + 73 / col0 ) IS NULL
----
210
21
3807
81
99
1

query I rowsort
SELECT ALL 11 + + col0 * col2 FROM tab1
----
4907
5026
6199

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT DISTINCT COUNT( * ) + + + 64 col2 FROM tab0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5638
SELECT DISTINCT COUNT ( * ) + + + 64 col2 FROM tab0
----
67

query I rowsort
SELECT + - col0 - + col2 + + col2 + col0 * col1 FROM tab2 cor0
----
2300
4864
4950

query I rowsort
SELECT DISTINCT 64 + col0 + + col0 + - col0 AS col0 FROM tab0 AS cor0
----
151
161
79

query I rowsort
SELECT DISTINCT + col0 + col2 + + + 23 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL AND + 48 IS NOT NULL
----
127
156
92

query I rowsort
SELECT - - 5 * + - 22 + + - col2 FROM tab1 AS cor0
----
-169
-178
-206

query I rowsort
SELECT DISTINCT + - 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + + col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT + + 10 DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5646
SELECT + + 10 / + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * + 88 * + + col0 + + + col1 FROM tab1 AS cor0
----
430862
441325
544591

query II rowsort
SELECT DISTINCT col1, 14 AS col0 FROM tab0
----
1
14
21
14
81
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5649
SELECT ALL 16 DIV MAX( DISTINCT + col0 ) * - 99 DIV - COUNT( * ) + - MAX( ALL 94 ) + + - COUNT( * ) + - COUNT( * ) - + 75 AS col0 FROM tab0
----
-175

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL 16 / MAX ( DISTINCT + col0 ) * - 99 / - COUNT ( * ) + - MAX ( ALL 94 ) + + - COUNT ( * ) + - COUNT ( * ) - + 75 AS col0 FROM tab0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT + MAX( DISTINCT + + ( col1 ) ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT + MAX ( DISTINCT + + ( col1 ) ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND 77
----

query I rowsort
SELECT 7 * 50 FROM tab1
----
350
350
350

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - - col0
----

query I rowsort
SELECT col2 * col1 * 20 * - col0 FROM tab0
----
-1142100
-192060
-365400

query I rowsort
SELECT ALL col0 * 97 + - col2 FROM tab0 WHERE NOT + col0 / - 85 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * - - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT + 13 + - + COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + 13 + - + COUNT ( * ) FROM tab1
----
10

query II rowsort
SELECT ALL + col1 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT 30 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
30

query III rowsort
SELECT * FROM tab2 WHERE - col2 > - + col2 + - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - 0 col0 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 90 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + - COUNT( * ) * - COUNT( * ) col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5664
SELECT + - COUNT ( * ) * - COUNT ( * ) col0 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5665
SELECT DISTINCT - 17 + col0 + + col1 AS col1 FROM tab0 WHERE NOT ( ( NOT ( - col0 ) IN ( + col0, + col2, + 1 * - + CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT - 17 + col0 + + col1 AS col1 FROM tab0 WHERE NOT ( ( NOT ( - col0 ) IN ( + col0, + col2, + 1 * - + CAST ( NULL AS INTEGER ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT MIN( + 67 ) * + + 79 + - MIN( - col1 ) FROM tab2
----
5370

skipif mysql # not compatible
query I rowsort label-5666
SELECT MIN ( + 67 ) * + + 79 + - MIN ( - col1 ) FROM tab2
----
5370

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT COUNT( ALL - ( 49 ) ) + + + COUNT( DISTINCT + + col0 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5667
SELECT COUNT ( ALL - ( 49 ) ) + + + COUNT ( DISTINCT + + col0 ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( + 16 ) * - col2 * col1 * - 52 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5669
SELECT ALL - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col1 AS col2, - 32 AS col0 FROM tab0
----
1
-32
21
-32
81
-32

query I rowsort
SELECT - col1 * - ( - - 80 ) FROM tab1
----
1120
3760
400

onlyif mysql # DIV for integer division: 
query I rowsort label-5672
SELECT - + col1 DIV col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5672
SELECT - + col1 / col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

query II rowsort
SELECT DISTINCT col1 AS col1, + 5 FROM tab1
----
14
5
47
5
5
5

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + ( - - 27 ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL + 43 * col0 AS col2 FROM tab0
----
3741
4171
645

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5676
SELECT CAST( NULL AS SIGNED ) AS col0, + col1 + + ( - col0 ) AS col1, 37 + col0 + col2 * - 25 AS col1 FROM tab2 AS cor0
----
9 values hashing to 336913e610f019d6627171eb040a1c29

skipif mysql # not compatible
query III rowsort label-5676
SELECT CAST ( NULL AS INTEGER ) AS col0, + col1 + + ( - col0 ) AS col1, 37 + col0 + col2 * - 25 AS col1 FROM tab2 AS cor0
----
9 values hashing to 336913e610f019d6627171eb040a1c29

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT 48 DIV - col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5677
SELECT 48 / - col2 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5678
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 < - CAST( - - col0 AS DECIMAL ) / col1 )
----

skipif mysql # not compatible
query I rowsort label-5678
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 < - CAST ( - - col0 AS REAL ) / col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5679
SELECT - 54, + 61 DIV - 27 AS col0 FROM tab0 cor0
----
-54
-2
-54
-2
-54
-2

skipif mysql # not compatible
query II rowsort label-5679
SELECT - 54, + 61 / - 27 AS col0 FROM tab0 cor0
----
-54
-2
-54
-2
-54
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT + MAX( DISTINCT - col0 ) col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5680
SELECT DISTINCT + MAX ( DISTINCT - col0 ) col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5681
SELECT - COUNT( * ) + COUNT( DISTINCT - col1 ) DIV - 76 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5681
SELECT - COUNT ( * ) + COUNT ( DISTINCT - col1 ) / - 76 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 68 / col0 / - + col1 / + col1 > + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) < - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL - ( COUNT( ALL + col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL - ( COUNT ( ALL + col2 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 47 + + 40 * - - col2 AS col0 FROM tab2
----
1647
2367
967

query I rowsort
SELECT + col2 * - 11 * - ( + - col0 ) AS col2 FROM tab1
----
-53856
-55165
-68068

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5687
SELECT DISTINCT * FROM tab1 WHERE + CAST( + - col1 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5687
SELECT DISTINCT * FROM tab1 WHERE + CAST ( + - col1 AS REAL ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT DISTINCT - 98 * + + COUNT( * ) * + 60 + + ( + CAST( NULL AS SIGNED ) ) - 33 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT - 98 * + + COUNT ( * ) * + 60 + + ( + CAST ( NULL AS INTEGER ) ) - 33 AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5689
SELECT col2 * + col1 * + 68 AS col0, col1 DIV + col0 * + 83 * + 36 AS col2 FROM tab1 AS cor0
----
20060
0
217328
0
91392
0

skipif mysql # not compatible
query II rowsort label-5689
SELECT col2 * + col1 * + 68 AS col0, col1 / + col0 * + 83 * + 36 AS col2 FROM tab1 AS cor0
----
20060
0
217328
0
91392
0

query I rowsort
SELECT DISTINCT 99 * 51 FROM tab0 AS cor0
----
5049

onlyif mysql # DIV for integer division: 
query I rowsort label-5691
SELECT ALL - col0 DIV - + col0 + + 46 * col0 AS col1 FROM tab2 AS cor0
----
2117
2945
3451

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL - col0 / - + col0 + + 46 * col0 AS col1 FROM tab2 AS cor0
----
2117
2945
3451

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT DISTINCT - 35 + + SUM( 25 ) AS col2 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT - 35 + + SUM ( 25 ) AS col2 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT + COUNT( * ) * 5 + + 19 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
64

skipif mysql # not compatible
query I rowsort label-5693
SELECT + COUNT ( * ) * 5 + + 19 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
64

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0 WHERE 56 IS NOT NULL
----
40

query I rowsort
SELECT DISTINCT + col2 * - - col0 - - col1 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - - col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col1, 73 FROM tab0 cor0
----
1
73
21
73
81
73

query II rowsort
SELECT - col2, 7 AS col0 FROM tab2 AS cor0
----
-23
7
-40
7
-58
7

query I rowsort
SELECT DISTINCT - col0 * - col1 + - 9 FROM tab0 AS cor0
----
1206
1818
88

query I rowsort
SELECT + 63 * - col2 AS col2 FROM tab2 AS cor0
----
-1449
-2520
-3654

query I rowsort
SELECT DISTINCT + - col0 - col2 * + 65 AS col0 FROM tab0 AS cor0
----
-3070
-6532
-737

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 78 < - - ( + 90 )
----

query I rowsort
SELECT ALL - 86 - - 75 AS col1 FROM tab2 AS cor0
----
-11
-11
-11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 23 / 89 * 88
----

query III rowsort
SELECT * FROM tab0 WHERE - - 83 * + col2 = - - 51
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL AND NOT ( - 17 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT + COUNT( DISTINCT - col2 ) + - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN col0 - col0 + 71 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5707
SELECT + COUNT ( DISTINCT - col2 ) + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN col0 - col0 + 71 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL + - SUM( ALL + + col2 ) AS col0 FROM tab2 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + - SUM ( ALL + + col2 ) AS col0 FROM tab2 WHERE col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5709
SELECT DISTINCT AVG ( DISTINCT + + col2 ) * + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT AVG ( DISTINCT + + col2 ) * + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 AS cor0 WHERE 9 IS NULL
----

query II rowsort
SELECT DISTINCT + ( - col1 ), 61 * - 92 * + col0 AS col2 FROM tab0 cor0
----
-1
-544364
-21
-488244
-81
-84180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 50 col2 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL MAX( + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL MAX ( + - col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5714
SELECT + COUNT( * ) * + MIN( ALL + 33 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5714
SELECT + COUNT ( * ) * + MIN ( ALL + 33 ) / + COUNT ( * ) FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT DISTINCT + COUNT( col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + COUNT ( col1 ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 18 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT + MAX( + - 87 ) AS col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5717
SELECT + MAX ( + - 87 ) AS col1 FROM tab0 AS cor0
----
-87

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + - 89 * ( col2 )
----

query I rowsort
SELECT ( + col0 ) FROM tab0 WHERE NULL BETWEEN NULL AND ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT DISTINCT - col2 + + 88 + + ( + ( + - 10 ) ) + col0 * col0 DIV - ( col2 ) FROM tab0
----
-116
-688
27

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT - col2 + + 88 + + ( + ( + - 10 ) ) + col0 * col0 / - ( col2 ) FROM tab0
----
-116
-688
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5721
SELECT + ( + + CAST( NULL AS SIGNED ) ) + + 90 / + - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT + ( + + CAST ( NULL AS INTEGER ) ) + + 90 / + - COUNT ( * ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 89 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + - col0 ) * - col1 - - 51 * 78 IS NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE 49 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5725
SELECT CAST( NULL AS SIGNED ) * - - 36 * + + MIN( DISTINCT - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT CAST ( NULL AS INTEGER ) * - - 36 * + + MIN ( DISTINCT - col1 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE 71 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) BETWEEN 68 AND 28 + 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + COUNT( * ) + 2 * - + 62 AS col2 FROM tab1
----
-112

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) + 2 * - + 62 AS col2 FROM tab1
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT + COUNT( * ) FROM tab1 WHERE - - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT + COUNT ( * ) FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5731
SELECT DISTINCT + MIN( + - col2 ) + 87 DIV 25 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT + MIN ( + - col2 ) + 87 / 25 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL col1 - - 54 FROM tab2 AS cor0
----
105
121
131

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 55 / + + col0 * - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL + - SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL + - SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT ALL + CAST( + CAST( + + col2 AS SIGNED ) AS SIGNED ) * + col2 AS col2 FROM tab2 cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + CAST ( + CAST ( + + col2 AS INTEGER ) AS INTEGER ) * + col2 AS col2 FROM tab2 cor0
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5736
SELECT - CAST( NULL AS SIGNED ) + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT - CAST ( NULL AS INTEGER ) + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - + 59 * + + 57 + + 51 - - col2 AS col1 FROM tab1 AS cor0
----
-157942
-16705
-46935

onlyif mysql # DIV for integer division: 
query I rowsort label-5738
SELECT ALL - col2 DIV - - col1 AS col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL - col2 / - - col1 AS col1 FROM tab0
----
-99
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5739
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( col0, CAST( + col2 AS SIGNED ), col0 * + col2 + + - 6 / ( col1 ) * + - CAST( - col2 AS SIGNED ) + - col0 + - ( - + 24 ), - 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5739
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( col0, CAST ( + col2 AS INTEGER ), col0 * + col2 + + - 6 / ( col1 ) * + - CAST ( - col2 AS INTEGER ) + - col0 + - ( - + 24 ), - 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5740
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5740
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 + - + col2 + + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT ALL + CAST( 90 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL + CAST ( 90 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT + ( - - 12 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT ALL - ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL - + 13 * - 17 + + ( COUNT( * ) ) FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - + 13 * - 17 + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
224

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + 88 * - ( 88 ) / col1 * - col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + ( ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + + ( + 30 ) * col2 + + col1 + + 23 + col1 + - + col1 AS col2 FROM tab2 AS cor0
----
1300
1830
764

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5749
SELECT ALL * FROM tab2 cor0 WHERE CAST( NULL AS DECIMAL ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5749
SELECT ALL * FROM tab2 cor0 WHERE CAST ( NULL AS REAL ) + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5750
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + 38 / - col0 + - col2 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5750
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + 38 / - col0 + - col2 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 75 col2 FROM tab0 AS cor0
----
-60
12
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > col1 * - ( - - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE 25 * + col1 + 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT ALL + col2 * - col2 + - + CAST( - col1 AS SIGNED ) + - CAST( - col2 AS SIGNED ) FROM tab0
----
-2081
-69
-9701

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL + col2 * - col2 + - + CAST ( - col1 AS INTEGER ) + - CAST ( - col2 AS INTEGER ) FROM tab0
----
-2081
-69
-9701

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT COUNT( * ) + - + 54 AS col0 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT COUNT ( * ) + - + 54 AS col0 FROM tab0 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5756
SELECT ALL CAST( NULL AS SIGNED ) col2, - col1 - 37 FROM tab1 AS cor0 WHERE 86 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5756
SELECT ALL CAST ( NULL AS INTEGER ) col2, - col1 - 37 FROM tab1 AS cor0 WHERE 86 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT + 78 DIV - + 91 * + + 91 * + col2 + - col2 + - + col1 AS col1 FROM tab0 cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-5757
SELECT + 78 / - + 91 * + + 91 * + col2 + - col2 + - + col1 AS col1 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5758
SELECT - 82, + 81 + + + COUNT( * ) col2 FROM tab2
----
-82
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5758
SELECT - 82, + 81 + + + COUNT ( * ) col2 FROM tab2
----
-82
84

query I rowsort
SELECT - ( + + col2 ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT - + ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT - + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5761
SELECT DISTINCT + col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5761
SELECT DISTINCT + col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5762
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * col0 / - - CAST( NULL AS SIGNED ) + + + 31 * - col0 * - 62 * + col1 NOT BETWEEN - + col0 AND + 97 / - - col0 * 45
----

skipif mysql # not compatible
query III rowsort label-5762
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * col0 / - - CAST ( NULL AS INTEGER ) + + + 31 * - col0 * - 62 * + col1 NOT BETWEEN - + col0 AND + 97 / - - col0 * 45
----

query II rowsort
SELECT ALL 95, col2 - col0 + - + ( col1 ) AS col1 FROM tab2 cor0
----
95
-101
95
-74
95
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 13 * - col0, col0 col2 FROM tab2
----
598
46
832
64
975
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5765
SELECT ALL COUNT( * ) DIV 58 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL COUNT ( * ) / 58 AS col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5766
SELECT ALL - 43 DIV - 35 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL - 43 / - 35 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5767
SELECT CAST( 45 AS SIGNED ) AS col0, + col0 * 22 col2 FROM tab2 WHERE NOT ( NULL >= NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5767
SELECT CAST ( 45 AS INTEGER ) AS col0, + col0 * 22 col2 FROM tab2 WHERE NOT ( NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT - + COUNT( * ) * MAX( 90 ) AS col2 FROM tab2 WHERE NOT ( NOT ( 98 BETWEEN NULL AND ( + + col0 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT - + COUNT ( * ) * MAX ( 90 ) AS col2 FROM tab2 WHERE NOT ( NOT ( 98 BETWEEN NULL AND ( + + col0 ) ) )
----
NULL

query I rowsort
SELECT + - ( + + col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5770
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + + col1 / - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5770
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + + col1 / - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - col2 + - col2 = + col2 * + + 12 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT DISTINCT - ( - 77 ) * - COUNT( * ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT - ( - 77 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-231

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) * col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-5774
SELECT + 68 DIV col1 - + + col0, + col0 AS col1 FROM tab2 AS cor0
----
-45
46
-64
64
-74
75

skipif mysql # not compatible
query II rowsort label-5774
SELECT + 68 / col1 - + + col0, + col0 AS col1 FROM tab2 AS cor0
----
-45
46
-64
64
-74
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL - MIN( - - 89 ) col2 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5776
SELECT ALL - MIN ( - - 89 ) col2 FROM tab2 AS cor0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5777
SELECT + CAST( + - 12 AS SIGNED ) + + ( + MAX( DISTINCT col2 ) ) + - 95 * + 62 * + 71 AS col0 FROM tab0
----
-418103

skipif mysql # not compatible
query I rowsort label-5777
SELECT + CAST ( + - 12 AS INTEGER ) + + ( + MAX ( DISTINCT col2 ) ) + - 95 * + 62 * + 71 AS col0 FROM tab0
----
-418103

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NULL OR col2 * col2 = - col2 + 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT - COUNT( * ) + + + 4 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5779
SELECT - COUNT ( * ) + + + 4 FROM tab1
----
1

query I rowsort
SELECT col2 + - + 58 * col0 AS col2 FROM tab2
----
-2645
-3672
-4292

query I rowsort
SELECT DISTINCT 16 + - col2 * col0 FROM tab2
----
-1042
-2544
-4334

query I rowsort
SELECT DISTINCT + col0 * + - 1 * + ( - - 96 ) + - + 3 FROM tab2
----
-4419
-6147
-7203

query I rowsort
SELECT DISTINCT - 3 - + ( + - col0 ) * - 30 * - 0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT + SUM( DISTINCT + 56 ) AS col1 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT + SUM ( DISTINCT + 56 ) AS col1 FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT - MIN( ALL + + col2 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5785
SELECT - MIN ( ALL + + col2 ) col2 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / + col2 * - 11 < NULL
----

query I rowsort
SELECT + 8 * + col1 AS col1 FROM tab1 AS cor0
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IN ( + 32 * - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IN ( + 32 * - + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT 93 DIV - col2 FROM tab2 AS cor0 WHERE NOT - 72 >= - ( - 2 ) + ( - col0 )
----
-2
-4

skipif mysql # not compatible
query I rowsort label-5789
SELECT 93 / - col2 FROM tab2 AS cor0 WHERE NOT - 72 >= - ( - 2 ) + ( - col0 )
----
-2
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT - CAST( + - col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5790
SELECT - CAST ( + - col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL col0 * + ( + col2 ) * 84 FROM tab2 AS cor0
----
215040
365400
88872

query I rowsort
SELECT - col2 + col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT + 70 * SUM( + col2 ) FROM tab1
----
15610

skipif mysql # not compatible
query I rowsort label-5793
SELECT + 70 * SUM ( + col2 ) FROM tab1
----
15610

query III rowsort
SELECT * FROM tab2 WHERE NOT 55 = NULL AND NOT - ( + 72 ) IS NOT NULL
----

query II rowsort
SELECT - col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5796
SELECT ALL - - ( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - - ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 + col0 AS col1, - col2 AS col1 FROM tab1
----
138
-68
65
-96
90
-59

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 51 BETWEEN + - 44 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT - COUNT( * ) + 55 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT - COUNT ( * ) + 55 FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT - COUNT( * ) + MIN( + col1 ) + - 82 AS col1 FROM tab1 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-5800
SELECT - COUNT ( * ) + MIN ( + col1 ) + - 82 AS col1 FROM tab1 cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5801
SELECT CAST( 38 AS SIGNED ) FROM tab1 AS cor0 WHERE 15 NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-5801
SELECT CAST ( 38 AS INTEGER ) FROM tab1 AS cor0 WHERE 15 NOT BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT ALL + - col1 DIV col1 + + col0 col1 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5802
SELECT ALL + - col1 / col1 + + col0 col1 FROM tab2 AS cor0
----
45
63
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT + - col1 + - + CAST( + ( - 18 ) AS SIGNED ) FROM tab2 AS cor0
----
-33
-49
-59

skipif mysql # not compatible
query I rowsort label-5803
SELECT + - col1 + - + CAST ( + ( - 18 ) AS INTEGER ) FROM tab2 AS cor0
----
-33
-49
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5804
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5804
SELECT DISTINCT - AVG ( + CAST ( NULL AS INTEGER ) ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT 81 + + COUNT( * ) AS col0 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT 81 + + COUNT ( * ) AS col0 FROM tab1
----
84

query I rowsort
SELECT ALL + ( + + 53 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # DIV for integer division: 
query II rowsort label-5807
SELECT + col2 AS col1, 88 * 97 * - col2 DIV - col2 FROM tab2
----
23
8536
40
8536
58
8536

skipif mysql # not compatible
query II rowsort label-5807
SELECT + col2 AS col1, 88 * 97 * - col2 / - col2 FROM tab2
----
23
8536
40
8536
58
8536

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 BETWEEN NULL AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT ALL 13 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL 13 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 93 - + + 60 AS col0 FROM tab2
----
-153

query I rowsort
SELECT + col1 - - + col2 + - 65 AS col0 FROM tab2 AS cor0
----
52
60
9

query I rowsort
SELECT + col0 - + 33 FROM tab1 AS cor0
----
18
52
58

query I rowsort
SELECT ALL - + ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT DISTINCT col0, 41 FROM tab2 AS cor0
----
46
41
64
41
75
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5815
SELECT + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
47
5

query II rowsort
SELECT DISTINCT - - col2, + col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL 0 - + MAX( col1 ) FROM tab1 WHERE NOT - col2 <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL 0 - + MAX ( col1 ) FROM tab1 WHERE NOT - col2 <> ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT 63 + COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT 63 + COUNT ( * ) FROM tab1
----
66

query III rowsort
SELECT * FROM tab1 WHERE col0 IN ( 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT + col1 DIV - 86 - + col1 AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5820
SELECT + col1 / - 86 - + col1 AS col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 92 * - 11 + col2 )
----

query I rowsort
SELECT DISTINCT ( - 66 ) FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5823
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL <> NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col0 BETWEEN NULL AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5825
SELECT 3 DIV col2 - - 0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT 3 / col2 - - 0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT + SUM( ALL col0 ) - - 82 FROM tab1 WHERE 37 + + 96 * 93 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT + SUM ( ALL col0 ) - - 82 FROM tab1 WHERE 37 + + 96 * 93 > ( NULL )
----
NULL

query I rowsort
SELECT ALL + 1 + - 8 * 86 AS col2 FROM tab0
----
-687
-687
-687

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL MIN( 28 ) * COUNT( * ) FROM tab2 WHERE + ( + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL MIN ( 28 ) * COUNT ( * ) FROM tab2 WHERE + ( + col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL - COUNT( DISTINCT col0 ) + + 11 FROM tab1 WHERE NULL IS NOT NULL
----
11

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - COUNT ( DISTINCT col0 ) + + 11 FROM tab1 WHERE NULL IS NOT NULL
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT DISTINCT - col2 / - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT 89 NOT BETWEEN 66 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT - col2 / - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 89 NOT BETWEEN 66 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * 31 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( - col2 - - col0 )
----

query I rowsort
SELECT + 39 * col0 + 99 AS col1 FROM tab1
----
2088
3414
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT + SUM( DISTINCT col1 ) + - COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-5834
SELECT + SUM ( DISTINCT col1 ) + - COUNT ( * ) FROM tab0
----
100

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN - 85 AND - col0
----

query I rowsort
SELECT col2 * - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * + 12 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 49 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT ALL - 1 * - CAST( + col0 AS SIGNED ) + col1 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - 1 * - CAST ( + col0 AS INTEGER ) + col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT col0 + - 90 FROM tab2 AS cor0
----
-15
-26
-44

query I rowsort
SELECT ALL - 52 * - ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE 50 BETWEEN ( NULL ) AND - 23
----

query I rowsort
SELECT ALL ( + col1 ) FROM tab0 AS cor0 WHERE NOT ( + col1 * col2 ) >= 16
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5842
SELECT + 95 + COUNT( * ) * 19 FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
95

skipif mysql # not compatible
query I rowsort label-5842
SELECT + 95 + COUNT ( * ) * 19 FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5843
SELECT DISTINCT + 18 DIV COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT + 18 / COUNT ( * ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 9 + - col2 BETWEEN NULL AND + 84
----

query I rowsort
SELECT ALL - ( + 36 ) FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT + + 70 * 46 - + col1 FROM tab2 AS cor0
----
3143
3153
3169

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 12 ) <> + col1 * 72
----

query I rowsort
SELECT ALL + - 36 AS col0 FROM tab2 AS cor0
----
-36
-36
-36

query I rowsort
SELECT col2 * 37 + col2 * col0 AS col2 FROM tab0 AS cor0
----
1240
13266
2444

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) > ( - 2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5851
SELECT - - col0 DIV col1 + col2 FROM tab1 AS cor0
----
69
76
99

skipif mysql # not compatible
query I rowsort label-5851
SELECT - - col0 / col1 + col2 FROM tab1 AS cor0
----
69
76
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT DISTINCT - COUNT( ALL col2 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5852
SELECT DISTINCT - COUNT ( ALL col2 ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 61 * - 73 + + 53 AS col1 FROM tab0
----
-4400
-4400
-4400

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + 67
----

query I rowsort
SELECT 25 + + col2 AS col0 FROM tab0
----
124
35
72

query III rowsort
SELECT * FROM tab1 WHERE col0 * 9 NOT BETWEEN NULL AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT ALL - 36 * + 66 + ( + COUNT( * ) ) DIV MIN( + 54 ) AS col2 FROM tab0
----
-2376

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL - 36 * + 66 + ( + COUNT ( * ) ) / MIN ( + 54 ) AS col2 FROM tab0
----
-2376

query I rowsort
SELECT DISTINCT col0 + - - 7 FROM tab2
----
53
71
82

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab1 WHERE 6 IS NOT NULL
----
118
136
192

query I rowsort
SELECT col0 + 12 + + col1 AS col1 FROM tab1
----
102
150
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5861
SELECT CAST( NULL AS DECIMAL ) + - 17 + 78 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT CAST ( NULL AS REAL ) + - 17 + 78 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 48 * col0 AS col1 FROM tab1 WHERE col2 NOT BETWEEN ( 24 ) AND - 70
----
2448
4080
4368

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) BETWEEN ( + col1 ) AND ( - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( - 98 * - 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT - - MAX( DISTINCT + col0 ) col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5866
SELECT - - MAX ( DISTINCT + col0 ) col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE - 16 * col0 + + ( col0 ) > ( + col1 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE - 16 * col0 + + ( col0 ) > ( + col1 * + col1 )
----
0

query I rowsort
SELECT DISTINCT col2 / 21 AS col0 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5869
SELECT + ( - 12 ) * + 61 + 97 DIV + COUNT( * ) FROM tab1
----
-700

skipif mysql # not compatible
query I rowsort label-5869
SELECT + ( - 12 ) * + 61 + 97 / + COUNT ( * ) FROM tab1
----
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL - - col2, + col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( - 87 * + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT + - COUNT( * ), ( 74 ) AS col0 FROM tab2 AS cor0
----
-3
74

skipif mysql # not compatible
query II rowsort label-5873
SELECT + - COUNT ( * ), ( 74 ) AS col0 FROM tab2 AS cor0
----
-3
74

query I rowsort
SELECT - ( + col0 ) * - 56 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
2856
4760
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL + - SUM( DISTINCT - + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + - SUM ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 24, col1 col1 FROM tab0 AS cor0
----
-24
1
-24
21
-24
81

query I rowsort
SELECT DISTINCT - ( - + ( + - col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + 4 * - col2 AS col1 FROM tab2 AS cor0
----
-160
-232
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT + + SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT + + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT 85 DIV - col0 + + 16 col2 FROM tab1 AS cor0
----
15
15
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5880
SELECT 85 / - col0 + + 16 col2 FROM tab1 AS cor0
----
15
15
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5881
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 - - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 - - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - col0 + - 11 AS col1 FROM tab2
----
-57
-75
-86

query I rowsort
SELECT col0 * + 51 + col0 AS col2 FROM tab0 WHERE NOT ( - col2 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT DISTINCT 44 + col0 + + + col2 / + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT 44 + col0 + + + col2 / + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT ALL COUNT( * ) * + - COUNT( DISTINCT + col0 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL COUNT ( * ) * + - COUNT ( DISTINCT + col0 ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 + - ( + col1 ) / - 37 NOT BETWEEN NULL AND - 23 * col1
----
0

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 + - ( + col1 ) / - 37 NOT BETWEEN NULL AND - 23 * col1
----
0

query I rowsort
SELECT - col2 + + - col2 / - 60 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 WHERE 73 * col0 + + + 59 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) > NULL
----

query I rowsort
SELECT - ( + - col0 ) * - 19 FROM tab0 AS cor0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT - MAX( DISTINCT col0 ) FROM tab0 WHERE + 26 + col0 + + ( - 10 ) * ( - col1 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT - MAX ( DISTINCT col0 ) FROM tab0 WHERE + 26 + col0 + + ( - 10 ) * ( - col1 ) < NULL
----
NULL

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + col0 * - 72 FROM tab1
----
-3672
-6120
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) * 88 + - COUNT( * ) FROM tab1
----
-795

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * 88 + - COUNT ( * ) FROM tab1
----
-795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col0 + - col1 col1 FROM tab1
----
-430
-4324
-728

query I rowsort
SELECT - + col1 * + col2 + - - 54 - 53 + col2 * col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 + + 26 FROM tab1 AS cor0
----
122
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL - COUNT( * ) - 45 * 15 FROM tab2 AS cor0
----
-678

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL - COUNT ( * ) - 45 * 15 FROM tab2 AS cor0
----
-678

query I rowsort
SELECT + 15 + col0 + - + ( - col0 ) * - col2 * 18 + col0 AS col1 FROM tab2 AS cor0
----
-18937
-45937
-78135

query I rowsort
SELECT ALL - 2 * + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 16 + + 11 + - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + 3 BETWEEN col2 AND ( col2 / - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + 3 BETWEEN col2 AND ( col2 / - col2 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - - 47 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT DISTINCT - CAST( - 23 AS SIGNED ) - + - col2 * col2 FROM tab1 AS cor0
----
3504
4647
9239

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT - CAST ( - 23 AS INTEGER ) - + - col2 * col2 FROM tab1 AS cor0
----
3504
4647
9239

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * + + col0 >= ( col0 * - col0 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5906
SELECT col1 DIV - 87 + + + 80, + col2 col0 FROM tab1 AS cor0
----
80
59
80
68
80
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5906
SELECT col1 / - 87 + + + 80, + col2 col0 FROM tab1 AS cor0
----
80
59
80
68
80
96

query I rowsort
SELECT DISTINCT - - 9 AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5908
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5908
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - MAX( ALL - 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5909
SELECT - MAX ( ALL - 97 ) FROM tab1 AS cor0
----
97

query I rowsort
SELECT col2 / col0 - col0 AS col0 FROM tab1 WHERE + + 0 * - 77 BETWEEN NULL AND ( + col0 + - 49 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 6 > NULL
----

query I rowsort
SELECT ALL - - col1 * 26 + + + col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + col0 ) <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT ALL 35 DIV - col1 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL 35 / - col1 FROM tab0
----
-1
-35
0

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 + + - 31 ) IS NULL
----

query I rowsort
SELECT - col1 * - + 15 - - col1 FROM tab1
----
224
752
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 >= ( + + col2 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5918
SELECT ALL * FROM tab2 WHERE + ( - 98 ) + + ( col0 ) + + 62 NOT BETWEEN ( NULL ) AND - col0 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5918
SELECT ALL * FROM tab2 WHERE + ( - 98 ) + + ( col0 ) + + 62 NOT BETWEEN ( NULL ) AND - col0 - + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col2 * - col0 AS col0, - col2 AS col0 FROM tab0
----
-705
-47
-870
-10
-9603
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5920
SELECT ALL - CAST( - COUNT( DISTINCT - 27 ) AS SIGNED ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL - CAST ( - COUNT ( DISTINCT - 27 ) AS INTEGER ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - 89 FROM tab1 cor0 WHERE 54 IS NOT NULL
----
-89

query I rowsort
SELECT - col0 * + - 33 FROM tab1 AS cor0
----
1683
2805
3003

query I rowsort
SELECT DISTINCT - col2 + 84 FROM tab0
----
-15
37
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, - 29 * col1 - - col2 col0 FROM tab1
----
51
-310
85
-86
91
-1295

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT MAX( DISTINCT + - col0 ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5925
SELECT MAX ( DISTINCT + - col0 ) col1 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT 34 * + COUNT( * ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-5926
SELECT 34 * + COUNT ( * ) FROM tab1
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 41 col0 FROM tab1
----
-18
-27
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5928
SELECT 50 * ( - col0 ) + + - col1 DIV + col2 AS col0 FROM tab1
----
-2550
-4250
-4550

skipif mysql # not compatible
query I rowsort label-5928
SELECT 50 * ( - col0 ) + + - col1 / + col2 AS col0 FROM tab1
----
-2550
-4250
-4550

query II rowsort
SELECT ALL - col0 AS col2, col2 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT + col1 + + + col0 AS col0 FROM tab2 cor0
----
141
142
97

query II rowsort
SELECT ALL - + col1, col2 + - col0 AS col0 FROM tab2 AS cor0
----
-51
-23
-67
-17
-77
-24

query I rowsort
SELECT - + col2 + ( + 23 ) FROM tab2 cor0
----
-17
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL MAX( ALL + - 20 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL MAX ( ALL + - 20 ) FROM tab2
----
-20

query I rowsort
SELECT ALL 58 + col0 FROM tab0
----
145
155
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - col2 col0 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5936
SELECT ALL CAST( NULL AS SIGNED ) + + - col2 / - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL CAST ( NULL AS INTEGER ) + + - col2 / - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT + AVG ( DISTINCT + 75 ) - + CAST( NULL AS SIGNED ) * CAST( + 66 AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT + AVG ( DISTINCT + 75 ) - + CAST ( NULL AS INTEGER ) * CAST ( + 66 AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5938
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5938
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) < NULL
----
0

query I rowsort
SELECT col0 + 57 * col0 + + 24 * + col1 * + - col1 FROM tab1 AS cor0
----
-1746
-47738
4330

query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab2 AS cor0 WHERE + 29 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5941
SELECT ALL + + 2 DIV - + 59 - COUNT( * ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL + + 2 / - + 59 - COUNT ( * ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - - col0 + - col0 * - col2 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT + col1 + - 22 DIV 58 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5943
SELECT + col1 + - 22 / 58 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT COUNT( * ) + - 38 AS col2 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5944
SELECT COUNT ( * ) + - 38 AS col2 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT - col2 FROM tab0 WHERE + + col1 * col1 - + col2 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col1 + ( col1 ) * col2 * col1 FROM tab2
----
237083
260295
59772

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5947
SELECT - col0 + - col2 + + 81 AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-63
NULL
-66
NULL
-78
NULL

skipif mysql # not compatible
query II rowsort label-5947
SELECT - col0 + - col2 + + 81 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-63
NULL
-66
NULL
-78
NULL

query III rowsort
SELECT * FROM tab1 WHERE 35 / col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( - 70 ) col2 FROM tab2
----
-7
19
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 WHERE NOT + 91 > ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5950
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 WHERE NOT + 91 > ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col2 col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - COUNT( * ) col2 FROM tab0 cor0 WHERE NOT ( NULL ) < col2 * + + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5952
SELECT - COUNT ( * ) col2 FROM tab0 cor0 WHERE NOT ( NULL ) < col2 * + + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT - COUNT( * ) * - - COUNT( - 31 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( - 31 ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT ALL + - 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT DISTINCT - COUNT( ALL 69 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT - COUNT ( ALL 69 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5956
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5956
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT ALL + + MIN( col0 ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5957
SELECT ALL + + MIN ( col0 ) col1 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5958
SELECT + COUNT( * ), + COUNT( * ) * - + SUM( - CAST( NULL AS DECIMAL ) ) + + 38 AS col2 FROM tab2 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5958
SELECT + COUNT ( * ), + COUNT ( * ) * - + SUM ( - CAST ( NULL AS REAL ) ) + + 38 AS col2 FROM tab2 cor0
----
3
NULL

query I rowsort
SELECT - - 74 * + col1 AS col2 FROM tab1 AS cor0
----
1036
3478
370

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT + + 5 + - - col0 * - - CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT + + 5 + - - col0 * - - CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col2 * + + 15 AS col1 FROM tab0 AS cor0
----
-1584
-160
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT 42 + + COUNT( * ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5963
SELECT 42 + + COUNT ( * ) FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT DISTINCT - - ( - + 69 ) * COUNT( + col1 ) DIV - 60 col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5964
SELECT DISTINCT - - ( - + 69 ) * COUNT ( + col1 ) / - 60 col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col1 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT ALL + 96 DIV - col2 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL + 96 / - col2 FROM tab0 AS cor0
----
-2
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col1 col0, col2 FROM tab1 AS cor0
----
37
96
44
68
80
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5968
SELECT DISTINCT col2 DIV col1 * + col2 AS col0 FROM tab0 AS cor0
----
0
9801

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT col2 / col1 * + col2 AS col0 FROM tab0 AS cor0
----
0
9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5969
SELECT * FROM tab1 WHERE - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5969
SELECT * FROM tab1 WHERE - CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( - 33, 60, 50, col0, - ( + 76 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( - 33, 60, 50, col0, - ( + 76 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL - COUNT( * ) + - SUM( DISTINCT + ( + + 23 ) ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL - COUNT ( * ) + - SUM ( DISTINCT + ( + + 23 ) ) FROM tab0
----
-26

query III rowsort
SELECT * FROM tab2 WHERE col0 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * + col0 * - 65 FROM tab1
----
27625
278005
46410

query I rowsort
SELECT - 38 * - col1 AS col0 FROM tab1 AS cor0
----
1786
190
532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 - + 63 col1 FROM tab2 AS cor0
----
-63
-63
-63

query II rowsort
SELECT + - col2, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + 44 IN ( 23, + col2, col2 - - 60 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, - col1 col0 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT DISTINCT - 13 * - col1 + + 74 * + CAST( - + 6 AS SIGNED ) - col1 FROM tab1 AS cor0
----
-276
-384
120

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - 13 * - col1 + + 74 * + CAST ( - + 6 AS INTEGER ) - col1 FROM tab1 AS cor0
----
-276
-384
120

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5980
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = 8 / - CAST( + ( 56 ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5980
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = 8 / - CAST ( + ( 56 ) AS REAL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( - + 23 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT + COUNT( * ) * + 5 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5983
SELECT + COUNT ( * ) * + 5 FROM tab2
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 30 ), col0 + - + col1 col1 FROM tab2
----
30
-13
30
-5
30
8

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + col0 - - col0 <= - 16 + - + col0 + - + col0 * 15
----
-14
-47
-5

query I rowsort
SELECT - 94 * - - col2 FROM tab2
----
-2162
-3760
-5452

onlyif mysql # aggregate syntax: 
query II rowsort label-5987
SELECT + 25 * + + 78 AS col2, COUNT( * ) + + - COUNT( * ) FROM tab0 cor0
----
1950
0

skipif mysql # not compatible
query II rowsort label-5987
SELECT + 25 * + + 78 AS col2, COUNT ( * ) + + - COUNT ( * ) FROM tab0 cor0
----
1950
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * - col2 / - - col0 * + col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5988
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * - col2 / - - col0 * + col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 41 ) AS col0 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT ALL + + 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT MIN( DISTINCT - ( col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT MIN ( DISTINCT - ( col1 ) ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT + SUM( + + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5992
SELECT + SUM ( + + col0 ) AS col1 FROM tab2
----
185

query I rowsort
SELECT + 94 * 63 FROM tab2
----
5922
5922
5922

query I rowsort
SELECT - 60 * col2 * + col2 FROM tab2
----
-201840
-31740
-96000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * 41 - + col0 + col2 col1 FROM tab2 AS cor0
----
-1909
-2648
-3092

query I rowsort
SELECT ALL + col1 * - col0 * + col2 + - col2 + + - 95 * + 77 * - - 60 * + + col2 FROM tab1 AS cor0
----
-25920234
-30136104
-42203040

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT DISTINCT - COUNT( * ) * + 59 FROM tab0 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT - COUNT ( * ) * + 59 FROM tab0 cor0
----
-177

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 37 IN ( col2 * - 79 - - col1 + - 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5999
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN CAST( NULL AS SIGNED ) * + - col2 * - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5999
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN CAST ( NULL AS INTEGER ) * + - col2 * - CAST ( NULL AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT - - 74 * + - col2 * - col0 + + col1 AS col2 FROM tab0 AS cor0
----
52251
64401
710623

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT + col2 DIV - + col1 * - col0 * - - 7 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6001
SELECT + col2 / - + col1 * - col0 * - - 7 AS col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col1 * col1 col0 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6003
SELECT ALL col2 * + + col0 + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL col2 * + + col0 + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT + col1 DIV + 99 + + 88 * + col2 FROM tab0
----
4136
8712
880

skipif mysql # not compatible
query I rowsort label-6004
SELECT + col1 / + 99 + + 88 * + col2 FROM tab0
----
4136
8712
880

query I rowsort
SELECT 57 + - 3 FROM tab0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - ( - + col1 ) ) + - + col0, + ( + 6 ) col0 FROM tab1
----
-138
6
-65
6
-90
6

query I rowsort
SELECT + col1 + - + 44 AS col2 FROM tab2
----
23
33
7

query I rowsort
SELECT DISTINCT 19 + col0 FROM tab1
----
104
110
70

query I rowsort
SELECT DISTINCT + - ( - 4 ) - + + col0 AS col2 FROM tab1 AS cor0
----
-47
-81
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 - + col0 IS NULL
----

query I rowsort
SELECT + 37 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL + MIN( - col2 ) - 51 - + COUNT( * ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL + MIN ( - col2 ) - 51 - + COUNT ( * ) FROM tab0
----
-153

query I rowsort
SELECT - 75 FROM tab0 AS cor0 WHERE NOT - col2 <> ( - ( - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT ALL SUM( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL SUM ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 47 * + 9 FROM tab2 AS cor0
----
423
423
423

query II rowsort
SELECT - 61 AS col1, 50 FROM tab0
----
-61
50
-61
50
-61
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col2 col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL + MIN( DISTINCT col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + MIN ( DISTINCT col2 ) AS col1 FROM tab2
----
23

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 > - + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 99 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 99 * + col0 FROM tab1 AS cor0
----
5049
8415
9009

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 IS NULL ) OR - 0 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + 86 FROM tab0
----
-1
-11
71

query I rowsort
SELECT DISTINCT + col1 * col1 * - + col0 FROM tab2 AS cor0
----
-119646
-336675
-379456

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT - 34 + col2 + + col0 * - - col0 + col1 DIV 31 * - + col2 * - 33 AS col0 FROM tab1 AS cor0
----
10559
2663
7250

skipif mysql # not compatible
query I rowsort label-6026
SELECT - 34 + col2 + + col0 * - - col0 + col1 / 31 * - + col2 * - 33 AS col0 FROM tab1 AS cor0
----
10559
2663
7250

onlyif mysql # DIV for integer division: 
query II rowsort label-6027
SELECT - col0 * col2 * - col0 + - 27 AS col0, col2 DIV - col1 * col2 col1 FROM tab2 AS cor0
----
163813
0
326223
0
48641
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6027
SELECT - col0 * col2 * - col0 + - 27 AS col0, col2 / - col1 * col2 col1 FROM tab2 AS cor0
----
163813
0
326223
0
48641
0

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + col2 ) / - 65 / + + 25 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6029
SELECT - MAX( - 34 ) AS col0, + 87 FROM tab1 AS cor0
----
34
87

skipif mysql # not compatible
query II rowsort label-6029
SELECT - MAX ( - 34 ) AS col0, + 87 FROM tab1 AS cor0
----
34
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6030
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NULL > + - col0
----

query I rowsort
SELECT DISTINCT + col2 + + - col1 AS col2 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT DISTINCT - 61 - - - COUNT( * ) AS col0 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT - 61 - - - COUNT ( * ) AS col0 FROM tab1
----
-64

query I rowsort
SELECT DISTINCT col0 + + 33 + col2 FROM tab1
----
177
180
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT + + 91 - + + COUNT( * ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6035
SELECT + + 91 - + + COUNT ( * ) FROM tab0 AS cor0
----
88

query I rowsort
SELECT ALL - col0 * - 27 - + col1 AS col1 FROM tab2 AS cor0
----
1191
1651
1958

query I rowsort
SELECT DISTINCT 63 + 26 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
89

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab2 WHERE NOT NULL > NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IN ( + 78, - 6 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL + + MAX( ALL + + col2 ) FROM tab2 AS cor0 WHERE NOT NULL > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL + + MAX ( ALL + + col2 ) FROM tab2 AS cor0 WHERE NOT NULL > + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT - - SUM( - + col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT - - SUM ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT + SUM( DISTINCT + 85 ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6042
SELECT + SUM ( DISTINCT + 85 ) FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT ( - col2 ) * ( + - ( + 22 ) ) FROM tab1 AS cor0
----
1298
1496
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ALL MAX( + - 89 ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL MAX ( + - 89 ) FROM tab0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT ( - SUM( ALL + col2 ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6045
SELECT ( - SUM ( ALL + col2 ) ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT 25 * - col0 AS col2 FROM tab2
----
-1150
-1600
-1875

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6047
SELECT - CAST( - 46 AS SIGNED ) AS col2, - 9 / 45 AS col0 FROM tab2 WHERE NOT - ( + + 60 ) * - ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-6047
SELECT - CAST ( - 46 AS INTEGER ) AS col2, - 9 / 45 AS col0 FROM tab2 WHERE NOT - ( + + 60 ) * - ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT COUNT( * ) * + - ( + + COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6048
SELECT COUNT ( * ) * + - ( + + COUNT ( * ) ) FROM tab2
----
-9

query I rowsort
SELECT ( + - 69 ) FROM tab1
----
-69
-69
-69

query I rowsort
SELECT col1 * - 19 AS col1 FROM tab1
----
-266
-893
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT DISTINCT 48 / + 37 * + - 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-6051
SELECT DISTINCT 48 / + 37 * + - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 + + + col2 * - + 57 AS col1 FROM tab1 cor0
----
-3304
-3808
-5376

onlyif mysql # DIV for integer division: 
query II rowsort label-6053
SELECT + + ( col1 ) + + col0 AS col1, 9 DIV 96 FROM tab1 AS cor0
----
138
0
65
0
90
0

skipif mysql # not compatible
query II rowsort label-6053
SELECT + + ( col1 ) + + col0 AS col1, 9 / 96 FROM tab1 AS cor0
----
138
0
65
0
90
0

query I rowsort
SELECT col0 + + 17 + + - col2 FROM tab0 cor0
----
-15
15
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT DISTINCT COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6056
SELECT - CAST( NULL AS SIGNED ) + + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6056
SELECT - CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT ALL - 27 + + SUM( col1 ) AS col2 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL - 27 + + SUM ( col1 ) AS col2 FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT - 26 + + MAX( DISTINCT 92 ) AS col0 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-6058
SELECT - 26 + + MAX ( DISTINCT 92 ) AS col0 FROM tab0
----
66

query I rowsort
SELECT col0 + + 56 FROM tab1
----
107
141
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT + 19 + - - MIN( + 49 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-6060
SELECT + 19 + - - MIN ( + 49 ) FROM tab1
----
68

query II rowsort
SELECT ALL + 1 + col0 AS col2, - col0 AS col2 FROM tab0
----
16
-15
88
-87
98
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT DISTINCT 7 * - - MIN( ALL - col0 ) FROM tab1
----
-637

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT 7 * - - MIN ( ALL - col0 ) FROM tab1
----
-637

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + + - col2 - + col1 * - 81 * ( + 99 ) + + - 86 * 81 - + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6064
SELECT ALL - COUNT( - 31 ) DIV ( + COUNT( * ) ) - - 41 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - COUNT ( - 31 ) / ( + COUNT ( * ) ) - - 41 FROM tab1
----
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 = - + 77 * + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6066
SELECT - COUNT( * ) * + SUM( DISTINCT - 52 ), 52 AS col1 FROM tab2
----
156
52

skipif mysql # not compatible
query II rowsort label-6066
SELECT - COUNT ( * ) * + SUM ( DISTINCT - 52 ), 52 AS col1 FROM tab2
----
156
52

query I rowsort
SELECT DISTINCT - 69 + + 48 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-21

query I rowsort
SELECT ALL + - 90 AS col0 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT COUNT( ALL + 78 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6069
SELECT COUNT ( ALL + 78 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6070
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL + - MIN( + col1 ) * 70 - - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-353

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL + - MIN ( + col1 ) * 70 - - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-353

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 39 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - - col0 * - col1 AS col1 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT + + SUM( 22 ) AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6074
SELECT + + SUM ( 22 ) AS col1 FROM tab0 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 47 AND 56
----

query I rowsort
SELECT ALL col0 * + - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6077
SELECT ALL - CAST( NULL AS SIGNED ) * + + col1 * + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - CAST ( NULL AS INTEGER ) * + + col1 * + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT ALL - 94 DIV col1 AS col1 FROM tab1
----
-18
-2
-6

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL - 94 / col1 AS col1 FROM tab1
----
-18
-2
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-6079
SELECT 93 col0, - 14 DIV + col0 FROM tab2
----
93
0
93
0
93
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6079
SELECT 93 col0, - 14 / + col0 FROM tab2
----
93
0
93
0
93
0

query I rowsort
SELECT + - ( - 15 ) FROM tab0 AS cor0
----
15
15
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col1 + - + col1 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT MIN( + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6083
SELECT MIN ( + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL ( - - 85 ) FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT - ( 68 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-68

query I rowsort
SELECT DISTINCT + 65 + col1 * - col2 FROM tab2 AS cor0
----
-1108
-3015
-3821

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL - 26 * - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL - 26 * - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL - - col2 * - - col0 + - 81 FROM tab1 AS cor0
----
4815
4934
6107

query I rowsort
SELECT + col1 * - col0 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * col2 * - + col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT ALL 35 * col1 * + ( col0 ) AS col0 FROM tab1
----
14875
149695
24990

query I rowsort
SELECT DISTINCT col0 + + 23 AS col1 FROM tab0
----
110
120
38

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 3 * + col2 col0 FROM tab2
----
115
184
249

query I rowsort
SELECT DISTINCT 3 + + col1 AS col0 FROM tab1
----
17
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT - 34 * + COUNT( * ) - - COUNT( * ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6096
SELECT - 34 * + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT ALL 27 + + 85 AS col2 FROM tab0 AS cor0
----
112
112
112

query I rowsort
SELECT + + 34 * - col2 + - - col1 * 27 AS col0 FROM tab0 AS cor0
----
-3339
227
589

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT ALL - COUNT( ALL + + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - COUNT ( ALL + + col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 44 * col2 AS col0 FROM tab2
----
1012
1760
2552

query I rowsort
SELECT ALL - col0 + + col2 FROM tab2 AS cor0 WHERE 40 + - + col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 63 * col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 83 BETWEEN + 31 AND 56
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6104
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-6104
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT DISTINCT 42 + - - 90 - - col0 DIV 8 * col2 AS col1 FROM tab1
----
708
722
880

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT 42 + - - 90 - - col0 / 8 * col2 AS col1 FROM tab1
----
708
722
880

query I rowsort
SELECT - 9 + - - col0 FROM tab1
----
42
76
82

query I rowsort
SELECT DISTINCT + ( - 41 ) + + 81 + - - col1 * - col0 AS col1 FROM tab0
----
-1175
-1787
-57

query I rowsort
SELECT - col1 + - - col0 * - - col1 * 62 FROM tab2
----
145401
305459
311483

query I rowsort
SELECT ALL + - col0 + - - col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1664
-3439
-575

onlyif mysql # DIV for integer division: 
query I rowsort label-6110
SELECT col1 DIV 93 DIV - ( 33 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6110
SELECT col1 / 93 / - ( 33 ) FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 * + + ( col1 ) - - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 68 - - col2 col0 FROM tab2 AS cor0
----
-10
-28
-45

query I rowsort
SELECT - col2 + - ( - col0 ) * ( + col0 ) AS col1 FROM tab1 AS cor0
----
2505
7166
8213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 83 + - 40 + + col2 col2 FROM tab1 AS cor0
----
4289
7074
7581

query I rowsort
SELECT + - col2 + + + col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 55 + 60 + ( + + 89 ) - + col1 * - - 18 <= NULL
----

query I rowsort
SELECT DISTINCT - ( - - col2 ) + 72 FROM tab0
----
-27
25
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col1 + + + 41
----

query II rowsort
SELECT ALL ( + 68 ) AS col0, col0 AS col2 FROM tab1
----
68
51
68
85
68
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 * - - ( - 31 ) + + col0 * 15 NOT IN ( + col0 * - 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - - 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT ALL + CAST( + - AVG ( 68 ) AS SIGNED ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL + CAST ( + - AVG ( 68 ) AS INTEGER ) FROM tab2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT DISTINCT + MIN( + col2 ) col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6124
SELECT DISTINCT + MIN ( + col2 ) col0 FROM tab2 cor0
----
23

query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab0, tab0 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( + - col1 ) < ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( + - col1 ) < ( col2 )
----
3

query II rowsort
SELECT ALL + col2 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6129
SELECT ALL - - 28 * - CAST( NULL AS DECIMAL ) * + COUNT( DISTINCT 82 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL - - 28 * - CAST ( NULL AS REAL ) * + COUNT ( DISTINCT 82 ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 * col2 * + col1, col2 AS col2 FROM tab1 AS cor0
----
129024
96
17405
59
217328
68

query I rowsort
SELECT + - 11 + + col1 FROM tab1 AS cor0
----
-6
3
36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * + - 6 AND NULL
----

query I rowsort
SELECT - col2 + - - col2 * - col2 FROM tab0 AS cor0
----
-110
-2256
-9900

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( + ( + col1 ) ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1, - col2 AS col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT + 16 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-30
-48
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 + - col2 col0 FROM tab2
----
-28
-45
-63

query III rowsort
SELECT * FROM tab0 WHERE + ( - - 31 ) <= - 30
----

query III rowsort
SELECT * FROM tab1 WHERE + + col0 = - 29
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6140
SELECT ALL + CAST( + 54 AS SIGNED ) DIV col1 AS col2 FROM tab0
----
0
2
54

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL + CAST ( + 54 AS INTEGER ) / col1 AS col2 FROM tab0
----
0
2
54

query I rowsort
SELECT DISTINCT + + ( - col0 ) * - - 53 FROM tab2 AS cor0
----
-2438
-3392
-3975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6142
SELECT DISTINCT col0 * - 75 * - ( - ( + - 73 ) ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT col0 * - 75 * - ( - ( + - 73 ) ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6143
SELECT ALL + + 96 DIV + + 2, col1 AS col2 FROM tab1 AS cor0
----
48
14
48
47
48
5

skipif mysql # not compatible
query II rowsort label-6143
SELECT ALL + + 96 / + + 2, col1 AS col2 FROM tab1 AS cor0
----
48
14
48
47
48
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - - COUNT( * ) + ( + 76 ) + + - 42 * - + ( + COUNT( * ) ) FROM tab1 AS cor0
----
205

skipif mysql # not compatible
query I rowsort label-6144
SELECT - - COUNT ( * ) + ( + 76 ) + + - 42 * - + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
205

query I rowsort
SELECT col0 * - col1 + - + 88 AS col2 FROM tab1
----
-4365
-513
-802

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT - COUNT( * ) * - 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
108

skipif mysql # not compatible
query I rowsort label-6146
SELECT - COUNT ( * ) * - 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
108

query I rowsort
SELECT ( + + 75 ) + - 45 * + + col2 FROM tab0
----
-2040
-375
-4380

query I rowsort
SELECT + col1 + + col1 + 97 - - col1 FROM tab2
----
250
298
328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT + - CAST( NULL AS SIGNED ) * - 90 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6149
SELECT + - CAST ( NULL AS INTEGER ) * - 90 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 9 AS col0, - col1 col1 FROM tab1 AS cor0
----
9
-14
9
-47
9
-5

query I rowsort
SELECT - 48 AS col2 FROM tab1 cor0
----
-48
-48
-48

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( + col0 + + - 74 ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6153
SELECT DISTINCT - COUNT( DISTINCT col2 ) - + 31 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT - COUNT ( DISTINCT col2 ) - + 31 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 98 BETWEEN - - 92 AND NULL
----

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + col1 col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query II rowsort
SELECT DISTINCT col0, + col2 + + 43 FROM tab0
----
15
90
87
53
97
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL + SUM( - - col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL + SUM ( - - col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT DISTINCT 42 - - + 37 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6160
SELECT DISTINCT col2, - CAST( NULL AS SIGNED ) * + col0 / 47 / + - col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6160
SELECT DISTINCT col2, - CAST ( NULL AS INTEGER ) * + col0 / 47 / + - col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT ( - + col0 ) AS col2, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT ALL col1 * + 31 + + - 14 FROM tab0 AS cor0 WHERE NULL IS NULL
----
17
2497
637

query II rowsort
SELECT + - 81 AS col2, 21 FROM tab1 AS cor0
----
-81
21
-81
21
-81
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 93 / + 65 IS NOT NULL
----

query I rowsort
SELECT ALL + 66 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - 36 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * + 28 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col0 * + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN ( + - col1 + - + 25 ) AND + 43 + col2
----

query II rowsort
SELECT ALL + col0, 26 + - col1 FROM tab2
----
46
-25
64
-51
75
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6170
SELECT ALL + CAST( - col2 AS SIGNED ) + - ( col2 ) + + + 58 - + col0 * 25 AS col0 FROM tab1
----
-1409
-2185
-2353

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL + CAST ( - col2 AS INTEGER ) + - ( col2 ) + + + 58 - + col0 * 25 AS col0 FROM tab1
----
-1409
-2185
-2353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 90, col0 * - ( - + 30 ) col0 FROM tab0 WHERE NULL IS NULL
----
90
2610
90
2910
90
450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6172
SELECT col2 * + - CAST( - - col1 AS SIGNED ) + - + 40 DIV - + 44 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-6172
SELECT col2 * + - CAST ( - - col1 AS INTEGER ) + - + 40 / - + 44 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT DISTINCT + 62 + col2 - - col2 DIV col1 col1 FROM tab0
----
109
260
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6173
SELECT DISTINCT + 62 + col2 - - col2 / col1 col1 FROM tab0
----
109
260
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT + MIN( col0 ) + 65 AS col0 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-6174
SELECT + MIN ( col0 ) + 65 AS col0 FROM tab2
----
111

query I rowsort
SELECT col1 + + - ( - col0 ) AS col1 FROM tab2
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - AVG ( + - col0 ) ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6177
SELECT ALL 11 * - CAST( NULL AS DECIMAL ) + - - CAST( 20 AS SIGNED ) * 89 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL 11 * - CAST ( NULL AS REAL ) + - - CAST ( 20 AS INTEGER ) * 89 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT 55 + - - SUM( DISTINCT + col1 ) + - 49 AS col0 FROM tab0 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-6178
SELECT 55 + - - SUM ( DISTINCT + col1 ) + - 49 AS col0 FROM tab0 AS cor0
----
109

query I rowsort
SELECT DISTINCT col0 * + - 55 / - + 25 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6180
SELECT - 33 * COUNT( * ), - COUNT( * ) AS col1 FROM tab2
----
-99
-3

skipif mysql # not compatible
query II rowsort label-6180
SELECT - 33 * COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2
----
-99
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6181
SELECT ALL col1, 79 FROM tab2 WHERE NOT + col1 IN ( col2, 85 * - CAST( ( - - col0 ) AS SIGNED ) )
----
51
79
67
79
77
79

skipif mysql # not compatible
query II rowsort label-6181
SELECT ALL col1, 79 FROM tab2 WHERE NOT + col1 IN ( col2, 85 * - CAST ( ( - - col0 ) AS INTEGER ) )
----
51
79
67
79
77
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT col0 * + 71 - CAST( NULL AS SIGNED ) + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT col0 * + 71 - CAST ( NULL AS INTEGER ) + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 84 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT + + col1 * - CAST( + ( + + ( - col2 ) ) AS SIGNED ) * + col2 + + 28 * col2 AS col1 FROM tab1 AS cor0
----
131712
19057
219232

skipif mysql # not compatible
query I rowsort label-6184
SELECT + + col1 * - CAST ( + ( + + ( - col2 ) ) AS INTEGER ) * + col2 + + 28 * col2 AS col1 FROM tab1 AS cor0
----
131712
19057
219232

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 23 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT + 40 * - COUNT( * ) * + ( + COUNT( * ) ) * - MAX( DISTINCT + 57 ) FROM tab2
----
20520

skipif mysql # not compatible
query I rowsort label-6186
SELECT + 40 * - COUNT ( * ) * + ( + COUNT ( * ) ) * - MAX ( DISTINCT + 57 ) FROM tab2
----
20520

query III rowsort
SELECT * FROM tab1 WHERE NOT + 67 * - col0 / + col2 + - - col2 + - col0 + col2 * + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT + - MAX( - - col1 ) col0 FROM tab2 cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6190
SELECT + - MAX ( - - col1 ) col0 FROM tab2 cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6191
SELECT ALL + 33 DIV - 2 AS col1 FROM tab1
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL + 33 / - 2 AS col1 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - col1 + + + col0 AS col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT DISTINCT - SUM( DISTINCT + 12 ) AS col0 FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT - SUM ( DISTINCT + 12 ) AS col0 FROM tab1 cor0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-6194
SELECT ALL + 87, COUNT( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
87
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6194
SELECT ALL + 87, COUNT ( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
87
3

query II rowsort
SELECT DISTINCT + col0 AS col1, - 88 AS col1 FROM tab0 cor0
----
15
-88
87
-88
97
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT + col1 DIV + col2 + - + ( - + col2 ) + - col0 * col0 + col1 FROM tab2 AS cor0
----
-2040
-3978
-5499

skipif mysql # not compatible
query I rowsort label-6196
SELECT + col1 / + col2 + - + ( - + col2 ) + - col0 * col0 + col1 FROM tab2 AS cor0
----
-2040
-3978
-5499

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL BETWEEN col1 AND + + col0
----

query I rowsort
SELECT 85 FROM tab0 WHERE col1 + - col0 IS NOT NULL
----
85
85
85

query I rowsort
SELECT DISTINCT 97 * + col1 + col0 FROM tab0
----
194
2124
7872

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL NOT BETWEEN col2 * - col0 AND + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT - + CAST( NULL AS SIGNED ) - + 26 * - - col2 * + + col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6201
SELECT - + CAST ( NULL AS INTEGER ) - + 26 * - - col2 * + + col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - + + 81 AS col1 FROM tab0 AS cor0
----
-60
-80
0

query I rowsort
SELECT DISTINCT 46 + - col1 FROM tab1 AS cor0
----
-1
32
41

query I rowsort
SELECT ALL - 56 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * + col1 = - 99 * + + 72 * col2 * - 16 / - + col1
----
2632
280
784

query I rowsort
SELECT ALL 83 * - 12 AS col0 FROM tab1
----
-996
-996
-996

query II rowsort
SELECT DISTINCT ( - col2 ) + col0, col0 * col2 + - col2 AS col1 FROM tab1
----
-45
4800
23
6120
26
4956

query II rowsort
SELECT - - col2, - col0 AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT + - CAST( + 45 AS SIGNED ) FROM tab0 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-6208
SELECT + - CAST ( + 45 AS INTEGER ) FROM tab0 AS cor0
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + - col1 + + col2 - + col0 + + + ( + + col0 ) / col1 + - + ( - col2 ) * - ( col2 ) col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 85 col2 FROM tab2 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT + MIN( DISTINCT - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6211
SELECT + MIN ( DISTINCT - col1 ) FROM tab2 cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, 89 col2 FROM tab2 AS cor0
----
23
89
40
89
58
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL - COUNT( * ) * - + MIN( 16 ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL - COUNT ( * ) * - + MIN ( 16 ) AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT + SUM( - - ( 81 ) ) AS col1 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-6214
SELECT + SUM ( - - ( 81 ) ) AS col1 FROM tab1 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-6215
SELECT ALL - COUNT( * ) * SUM( + 0 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-6215
SELECT ALL - COUNT ( * ) * SUM ( + 0 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT - COUNT( ALL + 19 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6216
SELECT - COUNT ( ALL + 19 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT + col1 * 62 * + + col0 FROM tab1
----
26350
265174
44268

onlyif mysql # DIV for integer division: 
query I rowsort label-6218
SELECT - 31 DIV + + 77 * col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6218
SELECT - 31 / + + 77 * col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 AS col1 FROM tab0 cor0 WHERE NOT + col0 / col0 + 51 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6221
SELECT DISTINCT - col0 * + col2 + + - col0 AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-720
NULL
-957
NULL
-9700
NULL

skipif mysql # not compatible
query II rowsort label-6221
SELECT DISTINCT - col0 * + col2 + + - col0 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-720
NULL
-957
NULL
-9700
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6222
SELECT CAST( - COUNT( DISTINCT - col2 ) AS SIGNED ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6222
SELECT CAST ( - COUNT ( DISTINCT - col2 ) AS INTEGER ) col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 col0, - col1 FROM tab0
----
76
-1
76
-21
76
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL ( - 20 ) FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ALL + MIN( DISTINCT col2 ) AS col1 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL + MIN ( DISTINCT col2 ) AS col1 FROM tab0 cor0
----
10

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 <= + col0 * 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - + 64 AS col2 FROM tab1 AS cor0
----
-123
-132
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT CAST( col0 AS SIGNED ) + + 84 + col1 * + + col2 + - + col2 + - + col0 FROM tab1 AS cor0
----
1332
320
3212

skipif mysql # not compatible
query I rowsort label-6230
SELECT CAST ( col0 AS INTEGER ) + + 84 + col1 * + + col2 + - + col2 + - + col0 FROM tab1 AS cor0
----
1332
320
3212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT + col2 + - - CAST( + col1 AS SIGNED ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-6231
SELECT + col2 + - - CAST ( + col1 AS INTEGER ) FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT + COUNT( * ) + - 97 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-6232
SELECT + COUNT ( * ) + - 97 FROM tab1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6233
SELECT ALL + 67 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-10
0
16

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL + 67 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-10
0
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT DISTINCT MAX( DISTINCT col1 ) + + + ( + 38 ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT MAX ( DISTINCT col1 ) + + + ( + 38 ) FROM tab1
----
85

query I rowsort
SELECT ALL col0 + + 3 AS col2 FROM tab1
----
54
88
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT ALL + 75 * + - CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL + 75 * + - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6237
SELECT ALL + col1 DIV + 65 - + col1 FROM tab2 AS cor0
----
-51
-66
-76

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL + col1 / + 65 - + col1 FROM tab2 AS cor0
----
-51
-66
-76

query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col0 <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6240
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, + 69, col1, - 10 * + ( col0 ), col1, + ( col1 ) + + 86, - col2 + col2 + + 73 * - col1, CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6240
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, + 69, col1, - 10 * + ( col0 ), col1, + ( col1 ) + + 86, - col2 + col2 + + 73 * - col1, CAST ( - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL + MAX( + col1 ) * - 92 AS col1 FROM tab1 AS cor0
----
-4324

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL + MAX ( + col1 ) * - 92 AS col1 FROM tab1 AS cor0
----
-4324

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT ALL - + col1 DIV - 50 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - + col1 / - 50 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 + col1 * + ( - - 81 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 86 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT ALL col0 * col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL col0 * col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6246
SELECT DISTINCT 9 * + - 29, COUNT( * ) AS col2 FROM tab2, tab0 cor0
----
-261
9

skipif mysql # not compatible
query II rowsort label-6246
SELECT DISTINCT 9 * + - 29, COUNT ( * ) AS col2 FROM tab2, tab0 cor0
----
-261
9

query I rowsort
SELECT DISTINCT 53 / col0 * - 82 + + col1 + 1 AS col0 FROM tab2 WHERE + - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6248
SELECT ALL SUM( ALL CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL SUM ( ALL CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT - - 81 DIV - 33 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6249
SELECT - - 81 / - 33 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT + 10 + - col0 / + 99 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT IN ( + 16 * + 22 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( + col1 ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT DISTINCT + ( - COUNT( DISTINCT - 96 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT + ( - COUNT ( DISTINCT - 96 ) ) FROM tab1
----
-1

query I rowsort
SELECT - col0 + col0 AS col0 FROM tab2 WHERE NOT ( col0 - + col0 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT + 40 - - CAST( 74 AS SIGNED ) * - COUNT( * ) FROM tab0
----
-182

skipif mysql # not compatible
query I rowsort label-6255
SELECT + 40 - - CAST ( 74 AS INTEGER ) * - COUNT ( * ) FROM tab0
----
-182

query I rowsort
SELECT - 74 - - col2 AS col0 FROM tab1
----
-15
-6
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT COUNT( + col2 ) * + 6 AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-6257
SELECT COUNT ( + col2 ) * + 6 AS col0 FROM tab2
----
18

query I rowsort
SELECT - 30 * 68 FROM tab2
----
-2040
-2040
-2040

query I rowsort
SELECT DISTINCT col2 + + 62 AS col2 FROM tab1
----
121
130
158

query I rowsort
SELECT - 20 * - 44 FROM tab2
----
880
880
880

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE 22 + 26 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 23 * ( + col2 ) ) IN ( + col0 + 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT COUNT( * ) * + MIN( 60 ) AS col0 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-6263
SELECT COUNT ( * ) * + MIN ( 60 ) AS col0 FROM tab1
----
180

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( - col2 ) = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * - 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col1 FROM tab0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL + COUNT( * ) * 6 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL + COUNT ( * ) * 6 FROM tab2
----
18

query I rowsort
SELECT ALL - 60 * + ( + col2 ) AS col1 FROM tab2
----
-1380
-2400
-3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT CAST( - ( + col0 ) AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6269
SELECT CAST ( - ( + col0 ) AS INTEGER ) FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL + MAX( ALL - 33 ) * - 4 col1 FROM tab1
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6270
SELECT ALL + MAX ( ALL - 33 ) * - 4 col1 FROM tab1
----
132

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * col1 NOT IN ( + 26 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 10 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - 88 / col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6275
SELECT 4 DIV 21 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6275
SELECT 4 / 21 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - AVG ( - 90 ) AS col1 FROM tab0 AS cor0 WHERE col1 <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT + ( + MIN( DISTINCT + col2 ) ) + - MIN( col2 ) * - COUNT( * ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6277
SELECT + ( + MIN ( DISTINCT + col2 ) ) + - MIN ( col2 ) * - COUNT ( * ) FROM tab0 AS cor0
----
40

query I rowsort
SELECT - col2 * + 18 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6279
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + 50 AS SIGNED ) * CAST( - col1 + col0 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6279
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + 50 AS INTEGER ) * CAST ( - col1 + col0 AS INTEGER ) < NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT col2 * ( + col1 DIV + col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6281
SELECT col2 * ( + col1 / + col2 ) FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6282
SELECT 23 DIV ( - 2 ) FROM tab1 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-6282
SELECT 23 / ( - 2 ) FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6283
SELECT - 46 * - CAST( 50 AS SIGNED ) col1 FROM tab0 AS cor0
----
2300
2300
2300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6283
SELECT - 46 * - CAST ( 50 AS INTEGER ) col1 FROM tab0 AS cor0
----
2300
2300
2300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT + SUM( - col2 ) * CAST( MIN( ALL col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-6171

skipif mysql # not compatible
query I rowsort label-6284
SELECT + SUM ( - col2 ) * CAST ( MIN ( ALL col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-6171

query I rowsort
SELECT ALL + col1 * 10 AS col1 FROM tab1 cor0
----
140
470
50

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE NOT + 85 NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL - SUM( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL - SUM ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ( 18 ) * + 3 FROM tab0
----
54
54
54

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) + col0 * 71 > 89 + 92 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6290
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col0 AND ( + col1 / - CAST( + col2 * + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6290
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col0 AND ( + col1 / - CAST ( + col2 * + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT DISTINCT + COUNT( * ) + - COUNT( col2 + col1 ) AS col1 FROM tab0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT + COUNT ( * ) + - COUNT ( col2 + col1 ) AS col1 FROM tab0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT ( + col1 ) FROM tab0 WHERE NOT ( + 43 ) >= - col0
----

query I rowsort
SELECT DISTINCT + col0 + - + col0 * 0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT + CAST( NULL AS SIGNED ) * + - 88 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT + CAST ( NULL AS INTEGER ) * + - 88 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL 23 * - COUNT( * ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL 23 * - COUNT ( * ) FROM tab2
----
-69

query I rowsort
SELECT - col0 * + 28 FROM tab1
----
-1428
-2380
-2548

query I rowsort
SELECT ALL col1 * col0 FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - col1 * - 95 ) AND - col0
----

onlyif mysql # DIV for integer division: 
query III rowsort label-6299
SELECT DISTINCT * FROM tab0 WHERE - col2 DIV col1 <= - 48 DIV col1
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-6299
SELECT DISTINCT * FROM tab0 WHERE - col2 / col1 <= - 48 / col1
----
15
81
47
97
1
99

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - col2 ) * + ( 67 ) NOT IN ( 97 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + + + 68 * 8 * col0 AS col2 FROM tab2 AS cor0
----
25047
34856
40858

query I rowsort
SELECT DISTINCT - + 0 - + + col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE 2 BETWEEN NULL AND - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col2 col1 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL - 26 - + - col1 FROM tab0 AS cor0
----
-25
-5
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - 15 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6307
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - 15 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT - MAX( ALL + col1 ) + + + 82 AS col1 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6308
SELECT - MAX ( ALL + col1 ) + + + 82 AS col1 FROM tab1 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 65 ) col2 FROM tab0
----
-65

query I rowsort
SELECT + col1 + + + 74 + col1 FROM tab2
----
176
208
228

query III rowsort
SELECT * FROM tab0 WHERE - col2 > - 58
----
15
81
47
87
21
10

query I rowsort
SELECT col1 * + 67 + - 40 FROM tab1 WHERE + col1 * - col1 BETWEEN NULL AND col2 * 82
----

query I rowsort
SELECT ALL 61 FROM tab2 WHERE NOT ( - ( - - 6 ) ) >= col2
----
61
61
61

query I rowsort
SELECT col0 FROM tab0 WHERE NULL BETWEEN NULL AND - ( + - 75 ) * col0
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE ( - col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT - 60 * SUM( + 99 ) FROM tab1 AS cor0
----
-17820

skipif mysql # not compatible
query I rowsort label-6317
SELECT - 60 * SUM ( + 99 ) FROM tab1 AS cor0
----
-17820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT + col2 - + 87 * 75 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - + CAST( col0 AS SIGNED ) / + 84 IS NULL
----
-6467
-6485
-6502

skipif mysql # not compatible
query I rowsort label-6319
SELECT + col2 - + 87 * 75 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - + CAST ( col0 AS INTEGER ) / + 84 IS NULL
----
-6467
-6485
-6502

query II rowsort
SELECT ALL - col0 AS col2, - col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT - 20 * + + COUNT( * ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6321
SELECT - 20 * + + COUNT ( * ) FROM tab0 AS cor0
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6322
SELECT ALL + + col1 + col2 / + CAST( col1 AS DECIMAL ) FROM tab1 AS cor0 WHERE ( NULL ) < - CAST( NULL AS DECIMAL ) + col2
----

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL + + col1 + col2 / + CAST ( col1 AS REAL ) FROM tab1 AS cor0 WHERE ( NULL ) < - CAST ( NULL AS REAL ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT COUNT( ALL col2 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6323
SELECT COUNT ( ALL col2 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT - + COUNT( 23 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6324
SELECT - + COUNT ( 23 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6325
SELECT + COUNT( * ) FROM tab0 WHERE NOT NULL < ( col0 * + CAST( NULL AS SIGNED ) * 41 )
----
0

skipif mysql # not compatible
query I rowsort label-6325
SELECT + COUNT ( * ) FROM tab0 WHERE NOT NULL < ( col0 * + CAST ( NULL AS INTEGER ) * 41 )
----
0

query II rowsort
SELECT ALL + col0 AS col2, + 94 FROM tab2
----
46
94
64
94
75
94

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( + col1 ) >= col0 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL SUM( ALL 58 ) col0 FROM tab1 WHERE ( NULL ) <> - 45
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6328
SELECT ALL SUM ( ALL 58 ) col0 FROM tab1 WHERE ( NULL ) <> - 45
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN + 28 * ( - col2 ) * - 15 AND col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL - COUNT( * ) + - + 40 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - COUNT ( * ) + - + 40 FROM tab0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT COUNT( * ) * MIN( DISTINCT + 56 ) AS col1 FROM tab0 WHERE NOT ( + - 43 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT COUNT ( * ) * MIN ( DISTINCT + 56 ) AS col1 FROM tab0 WHERE NOT ( + - 43 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6332
SELECT + col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - CAST( NULL AS SIGNED ) + - col2 * ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-6332
SELECT + col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + - col2 * ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL + COUNT( * ) + + 13 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL + COUNT ( * ) + + 13 FROM tab2 AS cor0
----
16

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - ( - - 91 ) - - col1 + col2 + col2 * + col2 NOT BETWEEN 25 + - col0 * + col2 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 30 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT - COUNT( col2 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6336
SELECT - COUNT ( col2 ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6338
SELECT col2 + + col1 / col2 AS col1 FROM tab2 AS cor0 WHERE ( - CAST( col2 AS SIGNED ) - - + col2 * + - 54 * col2 > - col0 )
----

skipif mysql # not compatible
query I rowsort label-6338
SELECT col2 + + col1 / col2 AS col1 FROM tab2 AS cor0 WHERE ( - CAST ( col2 AS INTEGER ) - - + col2 * + - 54 * col2 > - col0 )
----

query I rowsort
SELECT ALL + 29 * - col1 FROM tab1 WHERE NOT - ( - col0 ) IN ( col1, - col1 * + col0 )
----
-1363
-145
-406

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + ( + 53 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT + CAST( NULL AS SIGNED ) * - - col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6341
SELECT + CAST ( NULL AS INTEGER ) * - - col1 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT DISTINCT col1 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT col1 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 99 + + ( - col0 ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6344
SELECT - MAX( DISTINCT col2 ) AS col0 FROM tab1 cor0 WHERE NOT + col2 DIV + col1 + - ( - - col2 ) + + 70 IN ( - + 20 )
----
-68

skipif mysql # not compatible
query I rowsort label-6344
SELECT - MAX ( DISTINCT col2 ) AS col0 FROM tab1 cor0 WHERE NOT + col2 / + col1 + - ( - - col2 ) + + 70 IN ( - + 20 )
----
-68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 41 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 33 * - - col2 AS col0 FROM tab0
----
-1551
-3267
-330

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6347
SELECT + 64 DIV col2 * ( CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2
----
40
46
58

skipif mysql # not compatible
query I rowsort label-6347
SELECT + 64 / col2 * ( CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2
----
40
46
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6348
SELECT CAST( NULL AS SIGNED ) + + MIN( - 63 ) * + 72 + + - 54 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT CAST ( NULL AS INTEGER ) + + MIN ( - 63 ) * + 72 + + - 54 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT col2 * 70 AS col1, + col0 FROM tab2
----
1610
46
2800
64
4060
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6350
SELECT CAST( col0 AS SIGNED ) DIV ( - + 84 ) * + col0 AS col0 FROM tab0 AS cor0
----
-87
-97
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT CAST ( col0 AS INTEGER ) / ( - + 84 ) * + col0 AS col0 FROM tab0 AS cor0
----
-87
-97
0

query I rowsort
SELECT - col2 * - + ( - + 67 ) AS col0 FROM tab1 AS cor0
----
-3953
-4556
-6432

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6352
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST( + col0 AS SIGNED ) * + col2 + 86 / + - col2 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6352
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST ( + col0 AS INTEGER ) * + col2 + 86 / + - col2 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6353
SELECT ALL CAST( NULL AS SIGNED ) - - SUM( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL CAST ( NULL AS INTEGER ) - - SUM ( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( - col0 )
----

query I rowsort
SELECT ALL - 60 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col1 FROM tab1 AS cor0 WHERE + 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT + - ( - COUNT( * ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6357
SELECT DISTINCT + - ( - COUNT ( * ) ) col0 FROM tab2 cor0
----
3

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT + - 75 NOT IN ( - - col0, ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6359
SELECT 1 AS col2, + COUNT( * ) FROM tab2
----
1
3

skipif mysql # not compatible
query II rowsort label-6359
SELECT 1 AS col2, + COUNT ( * ) FROM tab2
----
1
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT ALL - COUNT( * ) DIV - - 32 + + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL - COUNT ( * ) / - - 32 + + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6361
SELECT ALL 31 + + col0 DIV + col1 + col2 AS col0 FROM tab2
----
54
71
90

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL 31 + + col0 / + col1 + col2 AS col0 FROM tab2
----
54
71
90

query I rowsort
SELECT ( + - 12 ) FROM tab0
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 98 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT - MAX( ALL + + col1 ) + + - COUNT( * ) AS col2 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - MAX ( ALL + + col1 ) + + - COUNT ( * ) AS col2 FROM tab1
----
-50

query I rowsort
SELECT + 34 * + col1 * - col0 + + col1 AS col0 FROM tab2
----
-167475
-170783
-79713

query II rowsort
SELECT - 17, col1 + + col0 + - - col0 * - col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6367
SELECT ALL 88 DIV COUNT( ALL + + 77 ) + - 73 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL 88 / COUNT ( ALL + + 77 ) + - 73 FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT COUNT( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + 1 - + col0 < + + ( + 14 ) AND + col2 IS NULL
----

query I rowsort
SELECT col1 + 65 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - + 9 - + 44 + + 60 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT DISTINCT 68 - + 87 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT col0 + - 56 * col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT + + ( - ( - + ( col0 ) ) ) - + 67 FROM tab1 AS cor0
----
-16
18
24

query I rowsort
SELECT ALL + 63 * col1 AS col2 FROM tab0 AS cor0
----
1323
5103
63

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 50 + + - 56
----

query II rowsort
SELECT col2 AS col0, - col1 FROM tab2 WHERE NOT ( NOT col1 IS NOT NULL )
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6378
SELECT - COUNT( * ) DIV - MAX( ALL - + 41 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6378
SELECT - COUNT ( * ) / - MAX ( ALL - + 41 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 95 * - + 74 * col2 AS col1 FROM tab1
----
-414770
-478040
-674880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6381
SELECT DISTINCT + COUNT( * ) DIV - + 13 * - 27 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT + COUNT ( * ) / - + 13 * - 27 FROM tab0
----
0

query I rowsort
SELECT ALL - 27 / - col2 FROM tab1 AS cor0 WHERE NULL > 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT + + SUM( - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6383
SELECT + + SUM ( - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT - COUNT( ALL + col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT - COUNT ( ALL + col2 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT - - col2 * - + col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - 44 + col0 ) )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL <= - - col0 + - ( col0 ) + - col0 * + 49 * + col0 )
----

query II rowsort
SELECT 1 AS col1, + 8 AS col2 FROM tab2 AS cor0
----
1
8
1
8
1
8

query I rowsort
SELECT DISTINCT 14 + - - 15 + - 40 FROM tab0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col0 FROM tab0 WHERE + col2 IS NOT NULL
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - ( + col2 ) col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - - col2 + - ( col1 ) FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT - 95 + + - 69 + + col1 FROM tab1 AS cor0
----
-117
-150
-159

query I rowsort
SELECT ALL col1 + + + ( col2 ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT - MAX( ALL - col2 ) + + 90 AS col2 FROM tab2 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT - MAX ( ALL - col2 ) + + 90 AS col2 FROM tab2 AS cor0
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT DISTINCT - col1 DIV 84 - - col0 + 27 + - 48 FROM tab1 AS cor0
----
30
64
70

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT - col1 / 84 - - col0 + 27 + - 48 FROM tab1 AS cor0
----
30
64
70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col0 * + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 >= + col2
----

query I rowsort
SELECT DISTINCT + + col2 * + col0 + + col1 + + + col0 * + + ( + 74 ) FROM tab1 AS cor0
----
11310
12969
8684

query I rowsort
SELECT DISTINCT - 55 FROM tab0 AS cor0 WHERE ( NULL ) = + + 49
----

query I rowsort
SELECT DISTINCT 42 * + col2 AS col2 FROM tab2 AS cor0
----
1680
2436
966

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL - ( + + COUNT( ALL + 1 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL - ( + + COUNT ( ALL + 1 ) ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6404
SELECT col1 DIV - + CAST( + + col2 AS SIGNED ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6404
SELECT col1 / - + CAST ( + + col2 AS INTEGER ) FROM tab2
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 83 ) * + - col0 col1 FROM tab1
----
-4233
-7055
-7553

query I rowsort
SELECT 49 * - col2 AS col0 FROM tab0
----
-2303
-4851
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6407
SELECT COUNT( * ) * + - ( + MIN( ALL - CAST( - col1 AS SIGNED ) ) ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6407
SELECT COUNT ( * ) * + - ( + MIN ( ALL - CAST ( - col1 AS INTEGER ) ) ) FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT ALL - SUM( + col2 ) AS col1 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - SUM ( + col2 ) AS col1 FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT + COUNT( * ) DIV - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6409
SELECT + COUNT ( * ) / - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 + ( - + 44 ) + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 23 IS NULL
----

query I rowsort
SELECT + col2 * - col0 + + col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

query I rowsort
SELECT ALL - - 85 * col2 FROM tab1 AS cor0
----
5015
5780
8160

query I rowsort
SELECT ALL + - col2 * - + col0 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT 14 * col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1195
1321
728

onlyif mysql # DIV for integer division: 
query I rowsort label-6416
SELECT DISTINCT col2 DIV 10 AS col0 FROM tab0 AS cor0 WHERE - 14 NOT IN ( + 6 + 21 )
----
1
4
9

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT col2 / 10 AS col0 FROM tab0 AS cor0 WHERE - 14 NOT IN ( + 6 + 21 )
----
1
4
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IN ( 50, 9 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 20 / + col0 + - - col2 * col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * col0 + + col0 * + col1 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT + MIN( + col1 ) + - + 9 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-6420
SELECT + MIN ( + col1 ) + - + 9 FROM tab1
----
-4

query I rowsort
SELECT DISTINCT + 85 + 95 AS col1 FROM tab0
----
180

query I rowsort
SELECT DISTINCT col1 * + col0 + + + col1 AS col2 FROM tab0
----
1296
1848
98

query I rowsort
SELECT ALL col2 - col1 * - col2 * - + col0 FROM tab0 cor0
----
-18260
-57058
-9504

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - col2 * + col0
----

query II rowsort
SELECT - + 67 AS col0, + 17 FROM tab0 AS cor0
----
-67
17
-67
17
-67
17

query II rowsort
SELECT - 10 - - col0 AS col1, + 32 AS col0 FROM tab0
----
5
32
77
32
87
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6427
SELECT DISTINCT - + CAST( - 80 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT - + CAST ( - 80 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT - - COUNT( - + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6428
SELECT - - COUNT ( - + col0 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT - MIN( + 64 ) AS col2 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-6429
SELECT - MIN ( + 64 ) AS col2 FROM tab1 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT DISTINCT - + MAX( + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT - + MAX ( + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT - - MIN( + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6431
SELECT - - MIN ( + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT - SUM( col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - SUM ( col0 ) AS col0 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT ( - 72 ) FROM tab1
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - ( + - col0 ) ) col1 FROM tab0 AS cor0 WHERE NOT + col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT IN ( + + 55 * col1 / + col1 + - + 72, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2, - col0 * - - col2 AS col0 FROM tab2
----
23
-1058
40
-2560
58
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT DISTINCT SUM( + + 5 ) FROM tab2 AS cor0 WHERE NOT + 91 * + 16 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT SUM ( + + 5 ) FROM tab2 AS cor0 WHERE NOT + 91 * + 16 IS NULL
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6438
SELECT - CAST( NULL AS SIGNED ) + + 75 * + + 34 * + CAST( col0 AS SIGNED ) * - col0 - - + 55 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT - CAST ( NULL AS INTEGER ) + + 75 * + + 34 * + CAST ( col0 AS INTEGER ) * - col0 - - + 55 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 12 + 67 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT ALL + 63 DIV 24 AS col1 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + 63 / 24 AS col1 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT + COUNT( + + col2 ) + + 54 AS col1 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6441
SELECT + COUNT ( + + col2 ) + + 54 AS col1 FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT + 92 + - MAX( col1 ) AS col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6442
SELECT + 92 + - MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT SUM( DISTINCT - col0 ) + + - COUNT( * ) FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-6443
SELECT SUM ( DISTINCT - col0 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-202

query I rowsort
SELECT - + col1 * - + col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6445
SELECT ALL col2 * + + col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL col2 * + + col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 41 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2, 75 AS col1 FROM tab2 AS cor0
----
23
75
40
75
58
75

query I rowsort
SELECT col2 * col1 * + col0 AS col0 FROM tab0 AS cor0
----
18270
57105
9603

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + 58 / - 42, + col0 + - col0, + col2, 9 * - - 32 )
----

query I rowsort
SELECT DISTINCT + col2 * + ( - ( 23 ) ) + - 18 AS col2 FROM tab0
----
-1099
-2295
-248

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 / - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6452
SELECT + col1 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT + col1 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 39 - ( 98 ) + + col0 AS col0 FROM tab2
----
-13
16
5

query III rowsort
SELECT * FROM tab0 WHERE - 93 + 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6455
SELECT - 6 - - COUNT( * ), + COUNT( * ) * + CAST( NULL AS SIGNED ) col2 FROM tab0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6455
SELECT - 6 - - COUNT ( * ), + COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
-3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT + col2 + 94 DIV - + col1 FROM tab2 cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-6456
SELECT + col2 + 94 / - + col1 FROM tab2 cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT + MAX( ALL - col0 ) * COUNT( * ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT + MAX ( ALL - col0 ) * COUNT ( * ) FROM tab0
----
-45

query II rowsort
SELECT col0 AS col1, + col0 AS col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6459
SELECT ALL 93 DIV COUNT( * ) AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL 93 / COUNT ( * ) AS col2 FROM tab2
----
31

query I rowsort
SELECT col0 * - - col2 * - - 11 * col2 FROM tab0
----
10457667
364485
95700

query I rowsort
SELECT ALL - ( + - col0 ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ( + 58 ) AS col2 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6463
SELECT DISTINCT + 8 * + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + 8 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col0 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + - col2 * - col2 * col2 + + 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT CAST( - col2 AS SIGNED ) + + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
17
23
24

skipif mysql # not compatible
query I rowsort label-6466
SELECT CAST ( - col2 AS INTEGER ) + + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT DISTINCT ( - - COUNT( - 81 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT ( - - COUNT ( - 81 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT DISTINCT - - col0 + + - CAST( NULL AS SIGNED ) + - col2 * ( col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT - - col0 + + - CAST ( NULL AS INTEGER ) + - col2 * ( col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT 64, COUNT( * ) AS col2 FROM tab1
----
64
3

skipif mysql # not compatible
query II rowsort label-6469
SELECT 64, COUNT ( * ) AS col2 FROM tab1
----
64
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT 46 * + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
414

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6470
SELECT 46 * + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6471
SELECT DISTINCT - 46 * ( - + col2 ) + - CAST( NULL AS SIGNED ) + + + col2 * col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT - 46 * ( - + col2 ) + - CAST ( NULL AS INTEGER ) + + + col2 * col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 + - 7 FROM tab1
----
-2
40
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT + + 76 * + 91 * MIN( ALL 33 ) AS col1 FROM tab1 AS cor0
----
228228

skipif mysql # not compatible
query I rowsort label-6473
SELECT + + 76 * + 91 * MIN ( ALL 33 ) AS col1 FROM tab1 AS cor0
----
228228

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT + ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( NOT col2 * + col2 + - + 55 + - 29 + col2 / + col1 * 76 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-6474
SELECT + ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( NOT col2 * + col2 + - + 55 + - 29 + col2 / + col1 * 76 IS NULL )
----
-3

query II rowsort
SELECT ALL - - col1 + + col0, col1 FROM tab1 AS cor0 WHERE NOT - col1 / + 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT - 75 + COUNT( * ) col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6476
SELECT - 75 + COUNT ( * ) col0 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT - + col1 + - 44 FROM tab1 cor0
----
-49
-58
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL - - SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL - - SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6479
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6480
SELECT DISTINCT + col0 * + - col2 + - 35 - - 33 AS col0, + CAST( NULL AS SIGNED ) FROM tab0
----
-707
NULL
-872
NULL
-9605
NULL

skipif mysql # not compatible
query II rowsort label-6480
SELECT DISTINCT + col0 * + - col2 + - 35 - - 33 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0
----
-707
NULL
-872
NULL
-9605
NULL

query I rowsort
SELECT DISTINCT 30 + + ( - 79 ) AS col1 FROM tab0
----
-49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 7 + - - col0 IS NULL
----

query I rowsort
SELECT ALL col0 + + col2 + col2 AS col2 FROM tab2
----
144
191
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) * - - col2 + col0 + + col2 FROM tab1 AS cor0
----
3625
4783
9363

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) * - - col2 + col0 + + col2 FROM tab1 AS cor0
----
3625
4783
9363

onlyif mysql # DIV for integer division: 
query I rowsort label-6485
SELECT DISTINCT + - col0 DIV - col0 - + col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT + - col0 / - col0 - + col1 FROM tab2 AS cor0
----
-50
-66
-76

query II rowsort
SELECT DISTINCT - 26, - 70 * - col2 AS col0 FROM tab1 AS cor0
----
-26
4130
-26
4760
-26
6720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6487
SELECT CAST( - COUNT( * ) AS SIGNED ) * - 6 AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6487
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - 6 AS col0 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL col0 * + + 3 AS col1 FROM tab0
----
261
291
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT + col1 + 10 - - 71 DIV - 34 AS col0 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
59
75
85

skipif mysql # not compatible
query I rowsort label-6489
SELECT + col1 + 10 - - 71 / - 34 AS col0 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
59
75
85

query I rowsort
SELECT ALL - ( + 74 ) * + - 0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6492
SELECT DISTINCT COUNT( * ) DIV + - 58 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6492
SELECT DISTINCT COUNT ( * ) / + - 58 col1 FROM tab1
----
0

query I rowsort
SELECT + 63 + + - col1 * + + 11 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT SUM( + col1 ) col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6494
SELECT SUM ( + col1 ) col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6495
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + col0 BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6495
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + col0 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL + - 55 * col1 FROM tab0 cor0
----
-1155
-4455
-55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 4 IS NOT NULL
----

query II rowsort
SELECT + - ( - col0 ) AS col2, col2 + 9 + - + col2 AS col2 FROM tab1 AS cor0
----
51
9
85
9
91
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT ALL - col1 * + + col0 * + ( - CAST( - - ( - - col1 ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
38367
97
98415

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL - col1 * + + col0 * + ( - CAST ( - - ( - - col1 ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT DISTINCT col1 DIV + 75 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT col1 / + 75 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT + ( - col0 ) * + col0 AS col2 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT MIN( DISTINCT - 81 ) AS col1 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-6502
SELECT MIN ( DISTINCT - 81 ) AS col1 FROM tab1
----
-81

query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab2 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6504
SELECT * FROM tab1 WHERE NOT + col1 + + - CAST( NULL AS SIGNED ) - - + col0 - + col0 - + - 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6504
SELECT * FROM tab1 WHERE NOT + col1 + + - CAST ( NULL AS INTEGER ) - - + col0 - + col0 - + - 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - col1 * + + 43 - - col2 * + - col1 - - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL + + COUNT( * ) * 89 AS col1 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL + + COUNT ( * ) * 89 AS col1 FROM tab1 AS cor0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT - 97 + 22 - 15 DIV + - col0 FROM tab0 cor0 WHERE ( NOT - col0 IS NULL )
----
-74
-75
-75

skipif mysql # not compatible
query I rowsort label-6507
SELECT - 97 + 22 - 15 / + - col0 FROM tab0 cor0 WHERE ( NOT - col0 IS NULL )
----
-74
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT - SUM( DISTINCT col0 ) col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6508
SELECT - SUM ( DISTINCT col0 ) col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT 0 + - - col0 AS col1 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col0 + - col2 <= NULL
----

query II rowsort
SELECT DISTINCT + col0 - + 61 AS col0, col1 FROM tab1 AS cor0
----
-10
14
24
5
30
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT + ( + + col0 ) DIV + - 93 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6512
SELECT + ( + + col0 ) / + - 93 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + + col0 + + + col1 - col0 col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
10
28
94

query I rowsort
SELECT - - col1 * 18 AS col1 FROM tab0 cor0
----
1458
18
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col2 ) * col2 col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT - 46 * - - CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
-2714
-3128
-4416

skipif mysql # not compatible
query I rowsort label-6516
SELECT - 46 * - - CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
-2714
-3128
-4416

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - ( + col2 ) * - 43 * - ( - + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT DISTINCT - - COUNT( * ) + - + 62 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT - - COUNT ( * ) + - + 62 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL COUNT( ALL - + 41 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL COUNT ( ALL - + 41 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT - 93 * + COUNT( * ) FROM tab2, tab0 AS cor0
----
-837

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT - 93 * + COUNT ( * ) FROM tab2, tab0 AS cor0
----
-837

query I rowsort
SELECT - col1 + + - 72 FROM tab1 AS cor0
----
-119
-77
-86

query I rowsort
SELECT - - ( + 31 ) FROM tab2 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6524
SELECT + - CAST( - - 47 AS SIGNED ) * 95 AS col0, col0 AS col2 FROM tab0 AS cor0
----
-4465
15
-4465
87
-4465
97

skipif mysql # not compatible
query II rowsort label-6524
SELECT + - CAST ( - - 47 AS INTEGER ) * 95 AS col0, col0 AS col2 FROM tab0 AS cor0
----
-4465
15
-4465
87
-4465
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT COUNT( ALL - + 19 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6525
SELECT COUNT ( ALL - + 19 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT DISTINCT ( - MAX( ALL - col2 ) ) * + 45 - + MAX( ALL - col2 ) col2 FROM tab2
----
1058

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6526
SELECT DISTINCT ( - MAX ( ALL - col2 ) ) * + 45 - + MAX ( ALL - col2 ) col2 FROM tab2
----
1058

query I rowsort
SELECT ALL 27 * + + col0 * + col2 * + - col0 FROM tab1
----
-11509425
-15203916
-6741792

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT - COUNT( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-6528
SELECT - COUNT ( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT DISTINCT + + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 43 > + 12 / + 37
----

query II rowsort
SELECT 76, col0 AS col1 FROM tab1 AS cor0
----
76
51
76
85
76
91

query I rowsort
SELECT ALL col0 * + + 28 - + col2 AS col2 FROM tab2 cor0
----
1265
1752
2042

query I rowsort
SELECT DISTINCT - - 81 * - col1 AS col0 FROM tab1 AS cor0
----
-1134
-3807
-405

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 9 + + col1 * + + col1 * - - 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT - 48 * - COUNT( * ) AS col0 FROM tab1 cor0
----
144

skipif mysql # not compatible
query I rowsort label-6535
SELECT - 48 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-6536
SELECT DISTINCT - 23 * + 95 AS col2, - COUNT( ALL col0 ) + + COUNT( * ) FROM tab2
----
-2185
0

skipif mysql # not compatible
query II rowsort label-6536
SELECT DISTINCT - 23 * + 95 AS col2, - COUNT ( ALL col0 ) + + COUNT ( * ) FROM tab2
----
-2185
0

query I rowsort
SELECT ALL + ( + col1 ) + + col2 AS col0 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6538
SELECT ALL CAST( NULL AS SIGNED ) / - + 59 * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL CAST ( NULL AS INTEGER ) / - + 59 * + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6539
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( - col1 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-6539
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( - col1 AS INTEGER ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6540
SELECT col2 * + - 34 * - 98 + col0 DIV col2 AS col2 FROM tab2
----
133281
193257
76638

skipif mysql # not compatible
query I rowsort label-6540
SELECT col2 * + - 34 * - 98 + col0 / col2 AS col2 FROM tab2
----
133281
193257
76638

query III rowsort
SELECT col1 + 60 AS col2, col2, + col2 FROM tab1
----
9 values hashing to 0bbfce540d8c92bfae62dda86df77bf5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT + CAST( col0 AS SIGNED ) + - 18 * - col2 FROM tab2
----
1119
460
784

skipif mysql # not compatible
query I rowsort label-6542
SELECT + CAST ( col0 AS INTEGER ) + - 18 * - col2 FROM tab2
----
1119
460
784

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE - col0 = - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 30 / + - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 63 AS col1 FROM tab1, tab1 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 64 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ALL ( - - COUNT( * ) ) * 2 + - 0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL ( - - COUNT ( * ) ) * 2 + - 0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT - - MAX( - 32 ) FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN - + col2 AND NULL
----
-32

skipif mysql # not compatible
query I rowsort label-6549
SELECT - - MAX ( - 32 ) FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN - + col2 AND NULL
----
-32

query I rowsort
SELECT DISTINCT col2 - - col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL - + MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL - + MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + col2 - - - 67 FROM tab1 AS cor0
----
-8
1
29

query I rowsort
SELECT ALL + col1 - - 95 AS col0 FROM tab0 AS cor0
----
116
176
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + col1 + + - col2
----

query I rowsort
SELECT DISTINCT col2 * 80 + + col2 FROM tab0
----
3807
8019
810

query I rowsort
SELECT ALL 2 + + 24 AS col0 FROM tab1 WHERE NOT + + 36 IS NULL
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 11 * + 32 + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT 75 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col2, + 83 * + col0 + 0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT - MAX( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6561
SELECT - MAX ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + 37
----

query I rowsort
SELECT + col1 * + 88 AS col2 FROM tab1
----
1232
4136
440

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 < - 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE + 59 <= - col1 * - - col2 * col1 - 68 * - + col2
----
-1

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE + 59 <= - col1 * - - col2 * col1 - 68 * - + col2
----
-1

query I rowsort
SELECT - 21 + 22 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + ( col0 ) + - - col0 FROM tab0 cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6568
SELECT ALL + CAST( NULL AS SIGNED ) / col1 - + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + CAST ( NULL AS INTEGER ) / col1 - + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 7 AS col2 FROM tab1 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6570
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( + ( + col2 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6570
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( + ( + col2 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6571
SELECT DISTINCT - ( - + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT - ( - + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 <> col1 + + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + - col0 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT ALL + col2 * - 38 FROM tab2 AS cor0
----
-1520
-2204
-874

onlyif mysql # aggregate syntax: 
query II rowsort label-6576
SELECT COUNT( * ) AS col0, 98 * MIN( + col1 ) AS col1 FROM tab2 AS cor0
----
3
4998

skipif mysql # not compatible
query II rowsort label-6576
SELECT COUNT ( * ) AS col0, 98 * MIN ( + col1 ) AS col1 FROM tab2 AS cor0
----
3
4998

query I rowsort
SELECT DISTINCT - + 53 * - 42 + + - col0 AS col1 FROM tab1 AS cor0
----
2135
2141
2175

query II rowsort
SELECT - 32 AS col0, col0 FROM tab2 AS cor0
----
-32
46
-32
64
-32
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6579
SELECT MIN( + - CAST( NULL AS SIGNED ) ) + + 53 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6579
SELECT MIN ( + - CAST ( NULL AS INTEGER ) ) + + 53 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT MIN( - + 55 ) AS col1 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-6581
SELECT MIN ( - + 55 ) AS col1 FROM tab2
----
-55

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT - SUM( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-6583
SELECT - SUM ( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
227

query I rowsort
SELECT ALL col1 + + - 75 AS col0 FROM tab1 AS cor0
----
-28
-61
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6585
SELECT DISTINCT 98 - + - CAST( + col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
149
165
175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6585
SELECT DISTINCT 98 - + - CAST ( + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
149
165
175

query I rowsort
SELECT ALL - col1 * ( col1 ) - - col2 FROM tab1 AS cor0
----
-100
-2141
34

query I rowsort
SELECT DISTINCT col0 * + 90 - 99 FROM tab1 cor0
----
4491
7551
8091

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 NOT IN ( + col0, - col0, + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6590
SELECT - col1 DIV - + 83 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6590
SELECT - col1 / - + 83 col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT - 2 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6591
SELECT - 2 / col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT DISTINCT - ( - + 79 ) * - 72 * COUNT( + 90 ) col0 FROM tab0
----
-17064

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6592
SELECT DISTINCT - ( - + 79 ) * - 72 * COUNT ( + 90 ) col0 FROM tab0
----
-17064

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT ALL - MIN( DISTINCT ( 38 ) ) FROM tab0 WHERE NOT - col1 - - col0 IS NULL
----
-38

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL - MIN ( DISTINCT ( 38 ) ) FROM tab0 WHERE NOT - col1 - - col0 IS NULL
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-6594
SELECT DISTINCT + COUNT( * ) AS col1, 50 FROM tab1
----
3
50

skipif mysql # not compatible
query II rowsort label-6594
SELECT DISTINCT + COUNT ( * ) AS col1, 50 FROM tab1
----
3
50

query I rowsort
SELECT + ( - 17 ) * - - 86 FROM tab1 AS cor0
----
-1462
-1462
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT MIN( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT MIN ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6597
SELECT ALL 37, COUNT( ALL + col1 ) + + ( - 33 ) col0 FROM tab0 AS cor0
----
37
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6597
SELECT ALL 37, COUNT ( ALL + col1 ) + + ( - 33 ) col0 FROM tab0 AS cor0
----
37
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6598
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT 50 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - ( - + col0 ) col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - - 59 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 87 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 12 * - col2 FROM tab2 AS cor0
----
-276
-480
-696

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + ( - col1 ), col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col0, col0 * + 66 col0, - 43 AS col2 FROM tab2
----
9 values hashing to 249601a32629eb16424e5195d77daec7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT col0 + - col1 * + 99 + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT col0 + - col1 * + 99 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT ALL CAST( NULL AS SIGNED ) * 63 + + - 13 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL CAST ( NULL AS INTEGER ) * 63 + + - 13 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 + - col2 col0 FROM tab0
----
-46
-9
-98

query I rowsort
SELECT DISTINCT col0 + col0 * ( - - col0 ) FROM tab2
----
2162
4160
5700

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 16 / - - 25 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6611
SELECT ALL - CAST( 2 AS SIGNED ) * - 5 + - - col1 AS col1 FROM tab0 AS cor0
----
11
31
91

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - CAST ( 2 AS INTEGER ) * - 5 + - - col1 AS col1 FROM tab0 AS cor0
----
11
31
91

query I rowsort
SELECT ALL + ( + col2 ) * + 3 + + - col2 FROM tab0 AS cor0 WHERE 38 IS NOT NULL
----
198
20
94

query II rowsort
SELECT - col1 AS col1, 1 AS col2 FROM tab0
----
-1
1
-21
1
-81
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - 4 + + col0 FROM tab0
----
1
93
21
83
81
11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 62 IN ( - 38, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 61 - + + 87 + - col0 FROM tab1
----
-111
-117
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6617
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + + + col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL - col1 + - col2 AS col0 FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT ( - 99 ) * + col0 FROM tab0 AS cor0
----
-1485
-8613
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT ALL - - MIN( - - col1 ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - - MIN ( - - col1 ) AS col1 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL col1 * - - 14 AS col0 FROM tab2 cor0
----
1078
714
938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6623
SELECT col1 * - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT col1 * - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE - col1 NOT BETWEEN col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE - col1 NOT BETWEEN col0 AND NULL
----
-3

query II rowsort
SELECT col0 * - - col0 AS col1, col0 FROM tab1
----
2601
51
7225
85
8281
91

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( NULL = 6 / col2 )
----

query I rowsort
SELECT DISTINCT + - ( col2 ) + 39 - col1 AS col2 FROM tab1 WHERE NOT ( col0 + + col2 + - ( + col1 ) * - col2 * col1 <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT DISTINCT - col2 DIV - 92 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT - col2 / - 92 AS col2 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col0 + - col0 col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT COUNT( * ) + 69 + + CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT COUNT ( * ) + 69 + + CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT - - CAST( NULL AS SIGNED ) * 38 + col1 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT - - CAST ( NULL AS INTEGER ) * 38 + col1 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + + ( + 0 ) + - 51 + + + 39 + col0 * + - col1 * + col0 * - + 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2 AS col1, - ( col1 ) AS col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT + col2 * - col0 * + + CAST( 66 AS SIGNED ) AS col1 FROM tab0 cor0
----
-46530
-57420
-633798

skipif mysql # not compatible
query I rowsort label-6635
SELECT + col2 * - col0 * + + CAST ( 66 AS INTEGER ) AS col1 FROM tab0 cor0
----
-46530
-57420
-633798

onlyif mysql # DIV for integer division: 
query I rowsort label-6636
SELECT + + col0 DIV - - 28 - ( + 58 ) * + - col0 + + col0 AS col2 FROM tab2 AS cor0
----
2715
3778
4427

skipif mysql # not compatible
query I rowsort label-6636
SELECT + + col0 / - - 28 - ( + 58 ) * + - col0 + + col0 AS col2 FROM tab2 AS cor0
----
2715
3778
4427

query II rowsort
SELECT col2, 21 AS col0 FROM tab2 AS cor0
----
23
21
40
21
58
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL - MIN( ALL 61 ) AS col0 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL - MIN ( ALL 61 ) AS col0 FROM tab0 AS cor0
----
-61

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT DISTINCT + MIN( DISTINCT col2 ) + 26 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT + MIN ( DISTINCT col2 ) + 26 FROM tab0
----
36

query I rowsort
SELECT ALL 2 + - - col2 FROM tab1
----
61
70
98

query III rowsort
SELECT * FROM tab0 WHERE + 73 + 69 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6643
SELECT - CAST( + 94 AS SIGNED ) AS col1 FROM tab1
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-6643
SELECT - CAST ( + 94 AS INTEGER ) AS col1 FROM tab1
----
-94
-94
-94

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + + - col1 IS NOT NULL
----

query I rowsort
SELECT 26 - + - col2 AS col0 FROM tab2
----
49
66
84

query I rowsort
SELECT ALL col0 * - col1 * + 36 - - + 65 FROM tab1 AS cor0
----
-15235
-153907
-25639

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - - col0 AS col0, - 96 + col2 AS col2 FROM tab2 AS cor0
----
46
-73
64
-56
75
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT - MAX( ALL + 58 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6649
SELECT - MAX ( ALL + 58 ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - ( + col2 ) AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT 9 * col0 AS col1 FROM tab1
----
459
765
819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6653
SELECT DISTINCT + 58 * - + CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
-5046
-5626
-870

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT + 58 * - + CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
-5046
-5626
-870

onlyif mysql # DIV for integer division: 
query II rowsort label-6654
SELECT ALL 93 DIV 37, 14 col0 FROM tab0
----
2
14
2
14
2
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6654
SELECT ALL 93 / 37, 14 col0 FROM tab0
----
2
14
2
14
2
14

query I rowsort
SELECT 25 * + 82 AS col2 FROM tab0
----
2050
2050
2050

query III rowsort
SELECT * FROM tab0 WHERE NOT + 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT 78 * + + SUM( - col1 ) FROM tab1 cor0
----
-5148

skipif mysql # not compatible
query I rowsort label-6657
SELECT 78 * + + SUM ( - col1 ) FROM tab1 cor0
----
-5148

query I rowsort
SELECT - col1 * - - col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL + SUM( ALL col1 ) + ( - SUM( + 73 ) ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + SUM ( ALL col1 ) + ( - SUM ( + 73 ) ) FROM tab1
----
-153

query I rowsort
SELECT ALL - ( - ( - 54 ) ) AS col2 FROM tab1 AS cor0
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( + 77 ) AS col0, col1 col0 FROM tab2 AS cor0
----
-77
51
-77
67
-77
77

query II rowsort
SELECT + 40 + col0 AS col1, - col0 FROM tab2 AS cor0
----
104
-64
115
-75
86
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT + - COUNT( * ) + MAX( - - col2 ) AS col0 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6663
SELECT + - COUNT ( * ) + MAX ( - - col2 ) AS col0 FROM tab2 AS cor0
----
55

query I rowsort
SELECT ( - + ( + col0 ) ) AS col2 FROM tab2 WHERE + - ( col0 ) IS NULL
----

query I rowsort
SELECT ( + - col1 ) + - col0 AS col1 FROM tab0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + - - col0 col0 FROM tab2
----
144
162
173

query I rowsort
SELECT - col0 + - + 8 FROM tab1
----
-59
-93
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT + COUNT( * ) + - 82 FROM tab0 WHERE NULL IS NOT NULL
----
-82

skipif mysql # not compatible
query I rowsort label-6668
SELECT + COUNT ( * ) + - 82 FROM tab0 WHERE NULL IS NOT NULL
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 + + col0 col2 FROM tab1
----
51
85
91

query I rowsort
SELECT + col2 + 4 AS col1 FROM tab2
----
27
44
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT DISTINCT - COUNT( * ) + - 92 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT - COUNT ( * ) + - 92 FROM tab2
----
-95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 27 > + col2
----

query I rowsort
SELECT ALL col2 * + + col1 - + col1 + col2 AS col1 FROM tab2 AS cor0
----
1145
3043
3877

query I rowsort
SELECT DISTINCT + 13 - col0 FROM tab1 AS cor0
----
-38
-72
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6675
SELECT ALL - CAST( + col1 AS DECIMAL ) + col0 + - - col2 * col2 + + - CAST( NULL AS DECIMAL ) + 10 + + col1 * - 36 + + col1 * + col0 * 86 + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL - CAST ( + col1 AS REAL ) + col0 + - - col2 * col2 + + - CAST ( NULL AS REAL ) + 10 + + col1 * - 36 + + col1 * + col0 * 86 + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 94 * + - 28 AS col0 FROM tab0 AS cor0
----
-2632
-2632
-2632

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT - MAX( DISTINCT col2 ) - COUNT( * ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6677
SELECT - MAX ( DISTINCT col2 ) - COUNT ( * ) FROM tab2 AS cor0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6678
SELECT DISTINCT - - CAST( + MIN( - 99 ) AS SIGNED ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT - - CAST ( + MIN ( - 99 ) AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL + MIN( 52 ) FROM tab2 WHERE ( NULL ) IS NULL
----
52

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL + MIN ( 52 ) FROM tab2 WHERE ( NULL ) IS NULL
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT - COUNT( * ) + 27 AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6680
SELECT - COUNT ( * ) + 27 AS col2 FROM tab0
----
24

query I rowsort
SELECT + 41 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ( COUNT( ALL + col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6682
SELECT ( COUNT ( ALL + col1 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT col1 NOT IN ( 4 )
----

query III rowsort
SELECT * FROM tab1 WHERE 44 NOT BETWEEN col1 / ( - col0 * 83 ) + - 53 AND NULL
----

query I rowsort
SELECT - 40 - col2 AS col2 FROM tab1
----
-108
-136
-99

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN - 72 AND 21
----
91
47
68

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL + 18 + - 55 AS col1 FROM tab0 WHERE NOT + col2 + CAST( NULL AS SIGNED ) IS NOT NULL
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL + 18 + - 55 AS col1 FROM tab0 WHERE NOT + col2 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-37
-37
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6689
SELECT ALL + COUNT( CAST( + col0 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + COUNT ( CAST ( + col0 AS INTEGER ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 9 < 28 / 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT DISTINCT + MIN( DISTINCT + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT + MIN ( DISTINCT + col2 ) FROM tab2
----
23

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN ( - ( col0 ) - 7 ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT + COUNT( * ) + 84 AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-6694
SELECT + COUNT ( * ) + 84 AS col1 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT + SUM( DISTINCT - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-6695
SELECT + SUM ( DISTINCT - col0 ) AS col2 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT COUNT( * ) + 52 col0 FROM tab0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6696
SELECT COUNT ( * ) + 52 col0 FROM tab0
----
55

query I rowsort
SELECT DISTINCT ( 77 ) + col2 FROM tab1
----
136
145
173

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT DISTINCT - col2 * col1 + col2 DIV col0 FROM tab0
----
-210
-3804
-98

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT - col2 * col1 + col2 / col0 FROM tab0
----
-210
-3804
-98

query I rowsort
SELECT DISTINCT - ( 88 ) FROM tab2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT + MIN( + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6700
SELECT + MIN ( + col1 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT DISTINCT col0 * ( + col1 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL 37 * - 5 AS col0 FROM tab0 cor0
----
-185
-185
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) BETWEEN - col1 AND 84
----
97
1
99

query I rowsort
SELECT 42 * - 1 FROM tab2 cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6705
SELECT DISTINCT COUNT( * ) DIV + SUM( ALL ( col1 ) * - 47 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT COUNT ( * ) / + SUM ( ALL ( col1 ) * - 47 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + - col2 NOT BETWEEN ( - col2 + 11 ) AND ( - col2 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 91 * - 52 AS col0 FROM tab0
----
-4732
-4732
-4732

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN col2 AND ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - col1 * - 22 - + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col0 * - col0 + col0 * + 32 ) <= 35 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT + - 94 + + MIN( ALL col0 + + col0 ) * 1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6712
SELECT + - 94 + + MIN ( ALL col0 + + col0 ) * 1 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + 51 + MAX( 71 ) * - 32 AS col2 FROM tab1 AS cor0
----
-2221

skipif mysql # not compatible
query I rowsort label-6713
SELECT + 51 + MAX ( 71 ) * - 32 AS col2 FROM tab1 AS cor0
----
-2221

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6714
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 * - col0 + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6714
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 * - col0 + CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT 60 * col1 AS col2 FROM tab2 cor0
----
3060
4020
4620

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT DISTINCT 37 DIV col0 AS col1 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT 37 / col0 AS col1 FROM tab0 AS cor0
----
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6717
SELECT ALL + + ( - 61 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL + + ( - 61 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-20

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT - 12 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6719
SELECT - 12 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6720
SELECT DISTINCT col2 DIV - 60 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT col2 / - 60 FROM tab0 cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6721
SELECT CAST( - ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6721
SELECT CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT col2 * 72 AS col0 FROM tab2 cor0
----
1656
2880
4176

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT COUNT( * ) + + MIN( col2 ) FROM tab2 WHERE NOT - 17 IN ( - 29 * - col1 )
----
26

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT COUNT ( * ) + + MIN ( col2 ) FROM tab2 WHERE NOT - 17 IN ( - 29 * - col1 )
----
26

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( - 43 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 col1 FROM tab2
----
-26

query I rowsort
SELECT ALL + col2 * + col0 + + ( - col0 ) AS col0 FROM tab0
----
690
783
9506

query I rowsort
SELECT DISTINCT col1 * col1 + col2 AS col0 FROM tab1 WHERE NOT col2 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT COUNT( * ) - SUM( DISTINCT + 84 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-6729
SELECT COUNT ( * ) - SUM ( DISTINCT + 84 ) FROM tab2
----
-81

query I rowsort
SELECT col0 * - + 9 - - ( 73 ) FROM tab0
----
-62
-710
-800

query III rowsort
SELECT ALL * FROM tab2 WHERE 79 * + 54 + col0 IS NULL
----

query I rowsort
SELECT ALL col0 + - + 17 FROM tab2
----
29
47
58

query I rowsort
SELECT + col0 + + 80 * - col0 FROM tab1 cor0
----
-4029
-6715
-7189

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT + MAX( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6734
SELECT + MAX ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 * col2 ) >= ( 62 ) * col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 77 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 66 + + 42 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-6738
SELECT DISTINCT 2, + MIN( DISTINCT col2 ) AS col2 FROM tab2
----
2
23

skipif mysql # not compatible
query II rowsort label-6738
SELECT DISTINCT 2, + MIN ( DISTINCT col2 ) AS col2 FROM tab2
----
2
23

query I rowsort
SELECT DISTINCT + 19 FROM tab2, tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 33 / + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT + col1 DIV - + 63 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT + col1 / - + 63 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 69 + - - col0 * + col1
----

query I rowsort
SELECT + col1 * + ( - col1 ) FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT DISTINCT + - COUNT( * ) * + 41 AS col1 FROM tab2 cor0
----
-123

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT + - COUNT ( * ) * + 41 AS col1 FROM tab2 cor0
----
-123

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col0 + col1
----

query I rowsort
SELECT DISTINCT col2 * - - col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT DISTINCT + - COUNT( * ) * + MAX( ALL - 76 ) AS col0 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT + - COUNT ( * ) * + MAX ( ALL - 76 ) AS col0 FROM tab1 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT + - 66 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-6748
SELECT + - 66 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6749
SELECT CAST( - 53 AS SIGNED ) FROM tab1 cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-6749
SELECT CAST ( - 53 AS INTEGER ) FROM tab1 cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - + ( + 87 ) FROM tab0 AS cor0
----
-87

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 65 AND ( NULL )
----

query II rowsort
SELECT - col0, + col2 * - col1 * 39 AS col1 FROM tab2 AS cor0
----
-46
-45747
-64
-120120
-75
-151554

query I rowsort
SELECT - 91 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-91
-91
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 90 + + 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL <= - col1 + + col1
----

query II rowsort
SELECT ALL ( + col0 ), col0 + + 71 - 26 FROM tab1
----
51
96
85
130
91
136

query I rowsort
SELECT col0 + - + col2 + + col0 AS col0 FROM tab1
----
111
114
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT - 48 + COUNT( * ) + - + COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-6759
SELECT - 48 + COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
-48

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + 22 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6761
SELECT + col2 + 55 + 5 - + + 5 * CAST( NULL AS SIGNED ) 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-6761
SELECT + col2 + 55 + 5 - + + 5 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + 77 ) IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - 44 + + COUNT( * ) + + 39 AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6763
SELECT - 44 + + COUNT ( * ) + + 39 AS col1 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 41 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + + col1 ) BETWEEN NULL AND ( - col1 * col1 + col0 ) )
----

query I rowsort
SELECT ALL 31 + - 86 * 62 * - 79 * - col0 AS col1 FROM tab2 AS cor0
----
-19376457
-26958561
-31592069

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 55 col2, - 52 - - col2 - col0 + - - col0 - + 56 AS col0 FROM tab2
----
-55
-50
-55
-68
-55
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6769
SELECT + CAST( - - 35 AS SIGNED ) AS col1 FROM tab2
----
35
35
35

skipif mysql # not compatible
query I rowsort label-6769
SELECT + CAST ( - - 35 AS INTEGER ) AS col1 FROM tab2
----
35
35
35

query I rowsort
SELECT DISTINCT + col1 + - 12 AS col0 FROM tab2
----
39
55
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT + ( - ( - COUNT( * ) ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6771
SELECT + ( - ( - COUNT ( * ) ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT ALL col0 * + col1 FROM tab1 WHERE NULL <> ( + CAST( NULL AS SIGNED ) ) / - + col0
----

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL col0 * + col1 FROM tab1 WHERE NULL <> ( + CAST ( NULL AS INTEGER ) ) / - + col0
----

query I rowsort
SELECT ALL col2 + - col2 * 17 AS col1 FROM tab1 AS cor0
----
-1088
-1536
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT MAX( + + col1 ) - COUNT( * ) * + COUNT( * ) FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT MAX ( + + col1 ) - COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0
----
72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( 23 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL + 49 - - + COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL + 49 - - + COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
52

query I rowsort
SELECT - col2 + 14 * + col0 AS col2 FROM tab0 AS cor0
----
1208
1259
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6778
SELECT ALL - col1 + + CAST( + - 35 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-116
-36
-56

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL - col1 + + CAST ( + - 35 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-116
-36
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT - 91 / + + 35 * + col1 * - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2 WHERE - - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6779
SELECT - 91 / + + 35 * + col1 * - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2 WHERE - - col1 IS NULL
----

query I rowsort
SELECT - col0 + col0 - - col0 FROM tab2
----
46
64
75

query I rowsort
SELECT 90 + + col0 + + 12 FROM tab2
----
148
166
177

query I rowsort
SELECT ( - ( + + 89 ) ) + - 80 FROM tab1
----
-169
-169
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT 98 * - - COUNT( * ) col1 FROM tab1
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6783
SELECT 98 * - - COUNT ( * ) col1 FROM tab1
----
294

query I rowsort
SELECT DISTINCT col1 * - - col1 + col0 - + + 63 + - col0 FROM tab0
----
-62
378
6498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col0 * col1 * - col0 - + col0 * + col0 col1 FROM tab2
----
-20189184
-28271250
-4966252

onlyif mysql # DIV for integer division: 
query I rowsort label-6786
SELECT DISTINCT - 98 - - 57 + - col1 DIV + + col2 + - col1 FROM tab2 cor0
----
-109
-119
-94

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT - 98 - - 57 + - col1 / + + col2 + - col1 FROM tab2 cor0
----
-109
-119
-94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN col2 * + - 82 + 97 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6788
SELECT + 19, CAST( NULL AS SIGNED ) * + + 99 + + col0 * + 61 FROM tab2 cor0 WHERE NOT - 51 + - 91 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6788
SELECT + 19, CAST ( NULL AS INTEGER ) * + + 99 + + col0 * + 61 FROM tab2 cor0 WHERE NOT - 51 + - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6789
SELECT DISTINCT COUNT( * ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6789
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT DISTINCT ( + + col2 ), - 31 + - 32 AS col1 FROM tab0 AS cor0
----
10
-63
47
-63
99
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-6791
SELECT ALL + 71 AS col0, + COUNT( * ) FROM tab2 cor0
----
71
3

skipif mysql # not compatible
query II rowsort label-6791
SELECT ALL + 71 AS col0, + COUNT ( * ) FROM tab2 cor0
----
71
3

query II rowsort
SELECT - + col1 AS col2, - col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-6793
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col2 * + col0 - + col0 + - ( - 52 ) * + col0
----

query II rowsort
SELECT DISTINCT 24 * - col2 AS col0, - col1 + col2 FROM tab0
----
-1128
-34
-2376
98
-240
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT COUNT( * ) * 24 AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-6796
SELECT COUNT ( * ) * 24 AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
72
3

query I rowsort
SELECT ALL + + 67 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6798
SELECT - - ( - + ( + + CAST( col0 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6798
SELECT - - ( - + ( + + CAST ( col0 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT DISTINCT - SUM( 15 ) AS col2 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT - SUM ( 15 ) AS col2 FROM tab2
----
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 50 NOT IN ( + + 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - 74
----

query I rowsort
SELECT - 56 AS col2 FROM tab2 WHERE NOT ( col0 * - - 58 / + + col2 + col1 + 27 - 77 * 69 ) <> ( col1 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT DISTINCT CAST( 57 AS SIGNED ) + + col1 FROM tab1
----
104
62
71

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT CAST ( 57 AS INTEGER ) + + col1 FROM tab1
----
104
62
71

query I rowsort
SELECT DISTINCT 44 + + col2 FROM tab0
----
143
54
91

query I rowsort
SELECT ALL - 85 * - + col2 + + 71 AS col0 FROM tab1 AS cor0
----
5086
5851
8231

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL - COUNT( * ) * - - 62 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL - COUNT ( * ) * - - 62 FROM tab0 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-6807
SELECT ALL COUNT( * ), 82 AS col2 FROM tab2 AS cor0
----
3
82

skipif mysql # not compatible
query II rowsort label-6807
SELECT ALL COUNT ( * ), 82 AS col2 FROM tab2 AS cor0
----
3
82

query III rowsort
SELECT * FROM tab2 WHERE + - col0 > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6809
SELECT - 48 + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6809
SELECT - 48 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + - ( - 94 ), 32 AS col0 FROM tab2 AS cor0
----
94
32
94
32
94
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6811
SELECT + - ( MAX( ALL - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT + - ( MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 79 AS col0 FROM tab0 cor0 WHERE NOT NULL IN ( - 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL + MIN( DISTINCT col1 ) * - COUNT( * ) - - + 23 AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL + MIN ( DISTINCT col1 ) * - COUNT ( * ) - - + 23 AS col0 FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT + + COUNT( * ) col2 FROM tab2 AS cor0 WHERE col0 >= col1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6814
SELECT + + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE col0 >= col1
----
1

query I rowsort
SELECT ALL + col2 - - col1 * - - col1 FROM tab0 AS cor0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL + 12 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL + 12 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
36

query I rowsort
SELECT DISTINCT - + col1 - 17 FROM tab2 AS cor0
----
-68
-84
-94

query I rowsort
SELECT DISTINCT - 19 * col0 FROM tab0
----
-1653
-1843
-285

query I rowsort
SELECT ALL col0 * + 18 AS col0 FROM tab2
----
1152
1350
828

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 27 = - col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT COUNT( * ) * - 28 col1 FROM tab2
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6821
SELECT DISTINCT COUNT ( * ) * - 28 col1 FROM tab2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6822
SELECT COUNT( * ) DIV - 41 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6822
SELECT COUNT ( * ) / - 41 col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6823
SELECT - + ( - + COUNT( * ) ) AS col2 FROM tab0 WHERE NOT + ( CAST( - - col2 AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6823
SELECT - + ( - + COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT + ( CAST ( - - col2 AS INTEGER ) ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT DISTINCT ( + - COUNT( - col2 ) ) FROM tab1 WHERE NOT + 46 * + col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT ( + - COUNT ( - col2 ) ) FROM tab1 WHERE NOT + 46 * + col2 = NULL
----
0

query I rowsort
SELECT - 33 AS col1 FROM tab0 WHERE NOT + 26 BETWEEN col0 * + 28 AND NULL
----
-33
-33
-33

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( + col1 * - col2, + 85 * + col2 / 79 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6827
SELECT + col1 DIV - ( col0 ) FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT + col1 / - ( col0 ) FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT DISTINCT - ( COUNT( + col0 ) ) * + + 4 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT - ( COUNT ( + col0 ) ) * + + 4 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT * FROM tab2 WHERE NOT + 92 BETWEEN NULL AND - + 28 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + col1 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6831
SELECT col0 DIV + 30 AS col0 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6831
SELECT col0 / + 30 AS col0 FROM tab2 AS cor0
----
1
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6832
SELECT DISTINCT - + col0 DIV + col2 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT - + col0 / + col2 FROM tab2 cor0
----
-1
-2

query II rowsort
SELECT col0 * + col0, + 45 AS col0 FROM tab0 cor0
----
225
45
7569
45
9409
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT + 87 * + MAX( DISTINCT - 64 ) col2 FROM tab1 AS cor0
----
-5568

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6834
SELECT + 87 * + MAX ( DISTINCT - 64 ) col2 FROM tab1 AS cor0
----
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT + CAST( - + 68 AS SIGNED ) * 78 AS col1 FROM tab1 AS cor0
----
-5304
-5304
-5304

skipif mysql # not compatible
query I rowsort label-6835
SELECT + CAST ( - + 68 AS INTEGER ) * 78 AS col1 FROM tab1 AS cor0
----
-5304
-5304
-5304

query I rowsort
SELECT ALL - - 76 + - col0 FROM tab0 AS cor0 WHERE NOT 38 - + - 9 IS NULL
----
-11
-21
61

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) < ( NULL )
----

query II rowsort
SELECT DISTINCT col2, 52 AS col2 FROM tab0 AS cor0
----
10
52
47
52
99
52

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 28 IN ( - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - 91 + + 7 * + + col0 AS col2 FROM tab1
----
280
509
593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6841
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * ) + COUNT( * ) + 28 + - AVG ( ALL - ( + - 99 ) ), COUNT( * ) + COUNT( DISTINCT + 8 ) AS col0 FROM tab2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6841
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) + COUNT ( * ) + 28 + - AVG ( ALL - ( + - 99 ) ), COUNT ( * ) + COUNT ( DISTINCT + 8 ) AS col0 FROM tab2
----
NULL
4

query I rowsort
SELECT col0 + col1 + - + col2 FROM tab2
----
101
74
84

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT NULL > ( + col1 )
----

query II rowsort
SELECT - 41 + - 57, col0 FROM tab1
----
-98
51
-98
85
-98
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 92 + - 62 col2 FROM tab0 AS cor0
----
4262
858
9046

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL - MIN( - 57 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - MIN ( - 57 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT - - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
81

skipif mysql # not compatible
query I rowsort label-6847
SELECT - - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
81

query I rowsort
SELECT DISTINCT col1 + + + 85 AS col0 FROM tab1
----
132
90
99

query I rowsort
SELECT DISTINCT 43 * - 95 + - 78 AS col2 FROM tab2
----
-4163

query I rowsort
SELECT - 91 FROM tab1 WHERE - + 46 IS NULL
----

query I rowsort
SELECT + 17 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT + 56 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6852
SELECT + 56 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT - + ( 99 ) * ( + - 50 ) + + + COUNT( * ) AS col1 FROM tab1 cor0
----
4953

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT - + ( 99 ) * ( + - 50 ) + + + COUNT ( * ) AS col1 FROM tab1 cor0
----
4953

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 15 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 79 AS col2, - col0 col0 FROM tab1 AS cor0
----
79
-51
79
-85
79
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT COUNT( * ) * + 4 AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-6856
SELECT COUNT ( * ) * + 4 AS col1 FROM tab2
----
12

query II rowsort
SELECT DISTINCT col2 * 21, - col1 - - col1 AS col0 FROM tab1
----
1239
0
1428
0
2016
0

query II rowsort
SELECT DISTINCT - col2 AS col2, 29 FROM tab1 WHERE col1 IS NULL OR NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 4 * - col0 AS col0 FROM tab1
----
204
340
364

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6861
SELECT DISTINCT - col1 * + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT - col1 * + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6862
SELECT CAST( - COUNT( + 74 ) AS SIGNED ) * - 33 AS col1 FROM tab2 AS cor0 WHERE NOT 78 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6862
SELECT CAST ( - COUNT ( + 74 ) AS INTEGER ) * - 33 AS col1 FROM tab2 AS cor0 WHERE NOT 78 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT DISTINCT + COUNT( * ) + + SUM( ALL + ( col0 ) ) FROM tab0 cor0
----
202

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT + COUNT ( * ) + + SUM ( ALL + ( col0 ) ) FROM tab0 cor0
----
202

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE NOT 4 + col1 NOT BETWEEN col1 * + 56 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT DISTINCT 46 * - + 71 * + + COUNT( * ) * COUNT( * ) + - SUM( ALL + col0 ) FROM tab2 AS cor0
----
-29579

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT 46 * - + 71 * + + COUNT ( * ) * COUNT ( * ) + - SUM ( ALL + col0 ) FROM tab2 AS cor0
----
-29579

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 2 NOT BETWEEN + col2 AND + - ( + col2 ) + col0 + - ( + 88 ) * - - col2 - + 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6868
SELECT ALL + COUNT( * ) DIV - 28 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL + COUNT ( * ) / - 28 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 48 FROM tab1 AS cor0 WHERE - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 WHERE + 48 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE col2 * 4 / 86 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE col2 * 4 / 86 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT - CAST( - - 25 AS SIGNED ) AS col0 FROM tab2
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-6872
SELECT - CAST ( - - 25 AS INTEGER ) AS col0 FROM tab2
----
-25
-25
-25

query I rowsort
SELECT - - col0 FROM tab0 WHERE - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 80 AS col2 FROM tab0
----
-167
-177
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT ALL - AVG ( - col0 ) * - CAST( NULL AS SIGNED ) + MIN( + - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL - AVG ( - col0 ) * - CAST ( NULL AS INTEGER ) + MIN ( + - col0 ) FROM tab1
----
NULL

query I rowsort
SELECT ( + 54 ) AS col2 FROM tab1
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT - COUNT( + - 93 ) col2 FROM tab1 AS cor0 WHERE ( - 27 ) BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6877
SELECT - COUNT ( + - 93 ) col2 FROM tab1 AS cor0 WHERE ( - 27 ) BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT + - col0 + - + col0 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + COUNT( * ) + 94 AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6879
SELECT + COUNT ( * ) + 94 AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6880
SELECT ALL - col2 - + - col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL - col2 - + - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN + + 53 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT DISTINCT + 20 * COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT + 20 * COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
180

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 36 < 3 * - 32 + - + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL - COUNT( ALL + ( - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL - COUNT ( ALL + ( - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6885
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <> - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6885
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <> - CAST ( - col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / 26 + 94 BETWEEN - - ( col2 ) AND - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 63 col2 FROM tab2
----
1449
2520
3654

query I rowsort
SELECT - 96 * + + col1 AS col2 FROM tab1
----
-1344
-4512
-480

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( + - 70 + col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT DISTINCT CAST( - ( col1 ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT CAST ( - ( col1 ) AS INTEGER ) FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT + col2 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT + col2 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 + + + col1 + + col2 <= NULL
----

query I rowsort
SELECT 32 * col0 * + 59 FROM tab0 AS cor0
----
164256
183136
28320

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > col0 * - 96
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = col1 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT ALL SUM( DISTINCT - 9 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL SUM ( DISTINCT - 9 ) FROM tab2 AS cor0
----
-9

query II rowsort
SELECT + ( - 96 ), col0 FROM tab1
----
-96
51
-96
85
-96
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6900
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + - 88 + - + 19 + + CAST( - col0 AS SIGNED ) + - + 6 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6900
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + - 88 + - + 19 + + CAST ( - col0 AS INTEGER ) + - + 6 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( - + 82 ) BETWEEN ( + 1 ) AND col2 + - col1 )
----

query I rowsort
SELECT DISTINCT + - ( - + col2 ) * col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT 18 AS col1 FROM tab1 AS cor0 WHERE ( - CAST( 42 AS SIGNED ) IS NOT NULL )
----
18
18
18

skipif mysql # not compatible
query I rowsort label-6903
SELECT 18 AS col1 FROM tab1 AS cor0 WHERE ( - CAST ( 42 AS INTEGER ) IS NOT NULL )
----
18
18
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT ALL - col0 DIV col0 * + 77 AS col0 FROM tab0 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - col0 / col0 * + 77 AS col0 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + 30 + - 5 + - - ( + col0 ) * - - col1 FROM tab2 AS cor0
----
2371
4953
5050

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT 1 + - COUNT( * ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6906
SELECT 1 + - COUNT ( * ) FROM tab2
----
-2

query I rowsort
SELECT + col1 * - ( 73 ) + + 91 + col1 AS col1 FROM tab1
----
-269
-3293
-917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6908
SELECT ALL CAST( NULL AS SIGNED ) + + col0 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6908
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6909
SELECT ALL + CAST( NULL AS DECIMAL ) + - 68 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL + CAST ( NULL AS REAL ) + - 68 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 10 + + col2 AS col1 FROM tab0
----
0
37
89

onlyif mysql # DIV for integer division: 
query II rowsort label-6911
SELECT ALL + 28 * col2 DIV col2 DIV col0 - - col0 AS col2, + col1 FROM tab2
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-6911
SELECT ALL + 28 * col2 / col2 / col0 - - col0 AS col2, + col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL COUNT( * ) + COUNT( * ) - ( + - 75 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL COUNT ( * ) + COUNT ( * ) - ( + - 75 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT DISTINCT - col1 * - - col0 + + ( 36 ) * - 94 * - 13 AS col0 FROM tab2 cor0
----
38967
39064
41646

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 63 + + + col0 + - col1 IS NULL
----

query I rowsort
SELECT + 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) = NULL
----

query II rowsort
SELECT ALL col1 AS col0, - 31 AS col1 FROM tab0 cor0
----
1
-31
21
-31
81
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6917
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND CAST( NULL AS SIGNED ) * - + col1 * - - 18 / - col1
----

skipif mysql # not compatible
query III rowsort label-6917
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER ) * - + col1 * - - 18 / - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6918
SELECT ALL - - 25 col1, col2 DIV 89 * - 72 AS col2 FROM tab1 AS cor0
----
25
-72
25
0
25
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6918
SELECT ALL - - 25 col1, col2 / 89 * - 72 AS col2 FROM tab1 AS cor0
----
25
-72
25
0
25
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col2 BETWEEN NULL AND - - 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 96 * - - 25 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + ( + - 98 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL + + COUNT( ALL 25 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + + COUNT ( ALL 25 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6923
SELECT DISTINCT + col2 col2, 38 + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
10
48
47
85
99
137

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6923
SELECT DISTINCT + col2 col2, 38 + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
10
48
47
85
99
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL - COUNT( - + col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL - COUNT ( - + col1 ) AS col2 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6925
SELECT col0 DIV col1 * - ( col0 ) AS col2 FROM tab2
----
-75
0
0

skipif mysql # not compatible
query I rowsort label-6925
SELECT col0 / col1 * - ( col0 ) AS col2 FROM tab2
----
-75
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 + + 98 BETWEEN 95 AND + col2 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col0 col1, 28 + + 86 AS col0 FROM tab1
----
2601
114
7225
114
8281
114

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT ALL CAST( 81 AS SIGNED ) FROM tab1 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL CAST ( 81 AS INTEGER ) FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT 30 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 96 * - - col2 + + + col1 AS col1 FROM tab2 AS cor0
----
2259
3917
5635

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL 51 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL 51 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
153

query I rowsort
SELECT DISTINCT 91 + + col1 AS col2 FROM tab2
----
142
158
168

query I rowsort
SELECT ALL + ( col1 ) + + col1 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT ( - col2 ) + col1 + + 40 * col0 * + 35 AS col2 FROM tab0 WHERE ( NULL ) >= col1 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT + col0 + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6936
SELECT + col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - 89 AS col2 FROM tab1 AS cor0
----
1246
4183
445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 58 + col1 + + + 80 col2 FROM tab1 AS cor0
----
3052
5015
5405

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - col1 ) - col0 NOT IN ( - ( - - 84 ), - col2 / col2 * + col2, - col2, - - col1 * col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 99 * - 40 IN ( + col0 )
----

query I rowsort
SELECT ALL + 81 + 18 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT - col0 * + 17 FROM tab1 AS cor0
----
-1445
-1547
-867

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( - - col2 ) = ( + - 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT col1 + - 62 * col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT ALL + ( - COUNT( * ) ) + - + COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + ( - COUNT ( * ) ) + - + COUNT ( * ) AS col0 FROM tab2
----
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + col0 ) * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6947
SELECT ALL * FROM tab2 WHERE NOT - col2 NOT BETWEEN + ( + CAST( + col0 AS DECIMAL ) ) + - - col0 AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-6947
SELECT ALL * FROM tab2 WHERE NOT - col2 NOT BETWEEN + ( + CAST ( + col0 AS REAL ) ) + - - col0 AND ( col0 )
----

query I rowsort
SELECT + col2 * col1 FROM tab2 WHERE NULL >= + col0 + - - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col1, - COUNT( * ) - + 91 + - 71 * - 45 FROM tab0
----
0
3101

skipif mysql # not compatible
query II rowsort label-6949
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col1, - COUNT ( * ) - + 91 + - 71 * - 45 FROM tab0
----
0
3101

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT 19 - + - COUNT( * ) AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6950
SELECT 19 - + - COUNT ( * ) AS col2 FROM tab1
----
22

query II rowsort
SELECT ALL + col2 + + col2 AS col0, - 26 FROM tab2 AS cor0
----
116
-26
46
-26
80
-26

query I rowsort
SELECT + col1 * 78 * + + col1 + - 10 AS col1 FROM tab0 AS cor0
----
34388
511748
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT MAX( + 37 ) - + 39 AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT MAX ( + 37 ) - + 39 AS col0 FROM tab2 AS cor0
----
-2

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( - col2 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT DISTINCT - - col0 / col0 + + 49 * 92 FROM tab1 WHERE + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - - col0 / col0 + + 49 * 92 FROM tab1 WHERE + CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT DISTINCT - MIN( DISTINCT - + ( + 94 ) ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT - MIN ( DISTINCT - + ( + 94 ) ) FROM tab0 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-6958
SELECT DISTINCT + ( col1 ) DIV + - col0, col0 AS col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-6958
SELECT DISTINCT + ( col1 ) / + - col0, col0 AS col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query II rowsort
SELECT ALL - - col2, 21 AS col1 FROM tab0 AS cor0
----
10
21
47
21
99
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6960
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 73 * + col2 - - + CAST( 87 AS SIGNED ) = col1 * col0 / - + col0 + - - col2 + - col2 - col0 * + + col0
----

skipif mysql # not compatible
query III rowsort label-6960
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 73 * + col2 - - + CAST ( 87 AS INTEGER ) = col1 * col0 / - + col0 + - - col2 + - col2 - col0 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT SUM( DISTINCT 14 ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6961
SELECT SUM ( DISTINCT 14 ) FROM tab2 AS cor0
----
14

query I rowsort
SELECT col0 * + + 91 * - col2 AS col2 FROM tab0
----
-64155
-79170
-873873

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * 59 NOT BETWEEN NULL AND 92
----

query II rowsort
SELECT DISTINCT - 82 * 71, - 57 + col2 AS col2 FROM tab2 cor0 WHERE NOT + ( col1 ) IN ( + - 56 * - 62 * ( - + 89 ) )
----
-5822
-17
-5822
-34
-5822
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6965
SELECT ALL + col2, 61 * + col0 + - col1 * + - 72 + - ( + ( + CAST( NULL AS SIGNED ) ) ) + + col0 + col0 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6965
SELECT ALL + col2, 61 * + col0 + - col1 * + - 72 + - ( + ( + CAST ( NULL AS INTEGER ) ) ) + + col0 + col0 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + - 88 <= - col1
----

query I rowsort
SELECT + + col0 + + - col0 - + 27 FROM tab1 AS cor0
----
-27
-27
-27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 25 - 2 IN ( + - col1, - 30, col0 )
----

query I rowsort
SELECT - - 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 80 ) + - 46 col2, 43 col1 FROM tab0
----
-126
43

query I rowsort
SELECT DISTINCT - ( - col2 ) - ( - 85 ) FROM tab1 AS cor0
----
144
153
181

query I rowsort
SELECT ALL + + 65 FROM tab0 cor0
----
65
65
65

query I rowsort
SELECT DISTINCT 2 - - col1 FROM tab1 WHERE NOT + - col0 NOT IN ( - col2, + col2 + 26, col1 )
----

query I rowsort
SELECT ALL - ( - col2 ) + + + col1 - + 19 + + col1 * - col1 * + col2 AS col1 FROM tab0
----
-18
-308258
-4398

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6976
SELECT COUNT( * ) + 60 / + - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT COUNT ( * ) + 60 / + - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6977
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) + MAX( - + 11 ), - MIN( col0 ) AS col2 FROM tab0
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-6977
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) + MAX ( - + 11 ), - MIN ( col0 ) AS col2 FROM tab0
----
NULL
-15

query I rowsort
SELECT + - ( 66 ) + + col1 FROM tab2 WHERE - 98 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 + + col2 col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL - 10 * + col2 + + 43 AS col2 FROM tab1 AS cor0
----
-547
-637
-917

query I rowsort
SELECT - 25 * 80 AS col1 FROM tab2 cor0
----
-2000
-2000
-2000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 50 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT MIN( DISTINCT 3 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT MIN ( DISTINCT 3 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT col0 * + 57, 10 AS col1 FROM tab0 AS cor0
----
4959
10
5529
10
855
10

query I rowsort
SELECT - 65 * + col2 FROM tab1 AS cor0 WHERE NOT NULL < 44 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6987
SELECT DISTINCT - + CAST( 10 AS SIGNED ) AS col0, col2 FROM tab2 AS cor0
----
-10
23
-10
40
-10
58

skipif mysql # not compatible
query II rowsort label-6987
SELECT DISTINCT - + CAST ( 10 AS INTEGER ) AS col0, col2 FROM tab2 AS cor0
----
-10
23
-10
40
-10
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT DISTINCT + ( + 59 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT + ( + 59 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-177

onlyif mysql # DIV for integer division: 
query III rowsort label-6989
SELECT * FROM tab1 AS cor0 WHERE NOT col0 DIV - col2 < - - col1 DIV - col0
----
51
14
96

skipif mysql # not compatible
query III rowsort label-6989
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / - col2 < - - col1 / - col0
----
51
14
96

query I rowsort
SELECT ALL + - col2 * - + col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-6991
SELECT DISTINCT - ( COUNT( * ) ) * 80 AS col1, 46 FROM tab1
----
-240
46

skipif mysql # not compatible
query II rowsort label-6991
SELECT DISTINCT - ( COUNT ( * ) ) * 80 AS col1, 46 FROM tab1
----
-240
46

query I rowsort
SELECT DISTINCT - - 97 + - + col0 AS col0 FROM tab0 WHERE + col1 >= + + 88
----

query I rowsort
SELECT DISTINCT col0 + ( - - 82 ) * col0 FROM tab2
----
3818
5312
6225

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 <> NULL
----

query II rowsort
SELECT 48 AS col2, 18 FROM tab0
----
48
18
48
18
48
18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 1 < + col1 + + col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT - 60 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6997
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 60 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT ALL CAST( NULL AS SIGNED ) + - + 40 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL CAST ( NULL AS INTEGER ) + - + 40 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 + + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 11 AS col2 FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT 51 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT + COUNT( * ) * + 21 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
189

skipif mysql # not compatible
query I rowsort label-7002
SELECT + COUNT ( * ) * + 21 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT COUNT( * ) + - 14 * - COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-7003
SELECT COUNT ( * ) + - 14 * - COUNT ( * ) FROM tab1
----
45

query I rowsort
SELECT DISTINCT + 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7005
SELECT DISTINCT - CAST( - + MIN( + - col1 ) AS SIGNED ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT - CAST ( - + MIN ( + - col1 ) AS INTEGER ) AS col2 FROM tab1
----
-47

query II rowsort
SELECT + col1 AS col2, + 59 FROM tab2 AS cor0
----
51
59
67
59
77
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col2, - 43 FROM tab0 AS cor0
----
10
-43
47
-43
99
-43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 62 * + 38 + + - col0 FROM tab1 AS cor0
----
2265
2271
2305

query II rowsort
SELECT - 57 AS col2, + ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-57
-46
-57
-64
-57
-75

query I rowsort
SELECT DISTINCT + col1 - - + 81 AS col1 FROM tab2 AS cor0
----
132
148
158

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - - col2 * - - col0 * - col2 + - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7013
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE NULL < - 3 * - ( + 83 )
----

query I rowsort
SELECT + + 73 * - - col0 + + 85 FROM tab2 WHERE col2 IS NOT NULL
----
3443
4757
5560

query I rowsort
SELECT DISTINCT + col0 * - col1 + col0 AS col0 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT DISTINCT col1 - col0 + - 92 + col2 FROM tab2
----
-39
-42
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - - col2
----

query I rowsort
SELECT ( + 12 ) * col0 FROM tab1
----
1020
1092
612

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7021
SELECT + + col0, - col1 * + - 86 + col2 + + - col2 + - col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
15
6971
87
1806
97
86

skipif mysql # not compatible
query II rowsort label-7021
SELECT + + col0, - col1 * + - 86 + col2 + + - col2 + - col1 / - col0 AS col2 FROM tab0 AS cor0
----
15
6971
87
1806
97
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7022
SELECT + 52 DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7022
SELECT + 52 / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
17

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 >= + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 83 + 4 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT ALL - + 13 DIV + - col0 * - ( 9 ) AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL - + 13 / + - col0 * - ( 9 ) AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - 89 AS col0 FROM tab1
----
-21
-30
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT 23 + - COUNT( * ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-7027
SELECT 23 + - COUNT ( * ) FROM tab2
----
20

query I rowsort
SELECT - col1 * + col1 + - 8 AS col2 FROM tab0
----
-449
-6569
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT ALL - ( COUNT( + - col0 ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL - ( COUNT ( + - col0 ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 37 + + 74 * - - 24 FROM tab0
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT DISTINCT SUM( - 62 ) FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT SUM ( - 62 ) FROM tab2
----
-186

query I rowsort
SELECT ALL 55 + col2 FROM tab2
----
113
78
95

query I rowsort
SELECT - col0 * - col2 + + + col1 + col1 - col2 AS col1 FROM tab2
----
1137
2674
4426

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7034
SELECT 71 + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT 71 + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 + ( + + 17 ) AS col0 FROM tab1 AS cor0
----
-34
-68
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7036
SELECT ALL 75 DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL 75 / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7037
SELECT * FROM tab1 AS cor0 WHERE NULL = - CAST( - ( + - col2 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7037
SELECT * FROM tab1 AS cor0 WHERE NULL = - CAST ( - ( + - col2 ) AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE - 56 NOT BETWEEN NULL AND - + col0 * + + col0
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7040
SELECT * FROM tab0 AS cor0 WHERE col2 * - - col2 * + 57 BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7040
SELECT * FROM tab0 AS cor0 WHERE col2 * - - col2 * + 57 BETWEEN NULL AND CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7041
SELECT + col0 FROM tab2 AS cor0 WHERE col1 * - - CAST( NULL AS DECIMAL ) BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query I rowsort label-7041
SELECT + col0 FROM tab2 AS cor0 WHERE col1 * - - CAST ( NULL AS REAL ) BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 AS cor0 WHERE NOT 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT SUM( - 97 ) AS col1 FROM tab0 AS cor0 WHERE col2 * + 12 IS NOT NULL
----
-291

skipif mysql # not compatible
query I rowsort label-7043
SELECT SUM ( - 97 ) AS col1 FROM tab0 AS cor0 WHERE col2 * + 12 IS NOT NULL
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT ALL CAST( + + col2 AS SIGNED ) * - + col2 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL CAST ( + + col2 AS INTEGER ) * - + col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT CAST( CAST( col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7045
SELECT CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL - col0, col1 * ( - + col2 ) AS col1 FROM tab1
----
-51
-1344
-85
-295
-91
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7047
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NULL ) = CAST( + + col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-7047
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NULL ) = CAST ( + + col0 AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7048
SELECT - - ( CAST( NULL AS SIGNED ) ) * - col0 * + 97 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT - - ( CAST ( NULL AS INTEGER ) ) * - col0 * + 97 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + ( - 53 ), - col2 AS col0 FROM tab2 AS cor0
----
-53
-23
-53
-40
-53
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7050
SELECT ALL - 94 DIV + col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL - 94 / + col2 AS col1 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7051
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) - - - 23 + + col2 <= + + 22 - - 41 + - + ( col1 )
----

skipif mysql # not compatible
query III rowsort label-7051
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) - - - 23 + + col2 <= + + 22 - - 41 + - + ( col1 )
----

query I rowsort
SELECT - 24 + - + col1 AS col0 FROM tab2 AS cor0
----
-101
-75
-91

query II rowsort
SELECT DISTINCT + col0 * - 46 * + col0 AS col2, - col1 * - - ( + + 92 ) AS col0 FROM tab2 AS cor0
----
-188416
-7084
-258750
-6164
-97336
-4692

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT ALL - + col1 DIV ( + + 10 ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL - + col1 / ( + + 10 ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT - 92 * + + COUNT( * ) AS col2 FROM tab0 cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
-828

skipif mysql # not compatible
query I rowsort label-7055
SELECT - 92 * + + COUNT ( * ) AS col2 FROM tab0 cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
-828

query I rowsort
SELECT + col0 FROM tab0 WHERE col1 + - 96 = NULL
----

query I rowsort
SELECT DISTINCT + + 79 - + col2 AS col2 FROM tab2 AS cor0
----
21
39
56

query I rowsort
SELECT ALL 82 * - col1 + + 87 FROM tab0 AS cor0
----
-1635
-6555
5

query I rowsort
SELECT ALL ( + 51 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 6 )
----

query I rowsort
SELECT + col2 * + col2 + + col2 AS col0 FROM tab0 AS cor0
----
110
2256
9900

query I rowsort
SELECT + - col1 - - - col0 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT + + 68 - ( - COUNT( * ) ) * - 32 * + 37 FROM tab0 AS cor0
----
-3484

skipif mysql # not compatible
query I rowsort label-7062
SELECT + + 68 - ( - COUNT ( * ) ) * - 32 * + 37 FROM tab0 AS cor0
----
-3484

query I rowsort
SELECT ALL - col2 - + col1 + + col0 FROM tab1 AS cor0
----
-24
-59
21

query I rowsort
SELECT - ( + col0 ) - + + col0 FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - col0 * col1 <= 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * - - col1 * - col2 ) > - col2 - - - 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7067
SELECT ALL + COUNT( - + col1 ) * - + COUNT( * ) AS col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL + COUNT ( - + col1 ) * - + COUNT ( * ) AS col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT + col2, - 2 * - 86 * - 41 * + - 28 AS col0 FROM tab0
----
10
197456
47
197456
99
197456

query I rowsort
SELECT 49 * + 69 AS col1 FROM tab2
----
3381
3381
3381

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - - col1 col0, - ( + col0 ) col0, + col1 AS col2 FROM tab2 AS cor0
----
9 values hashing to be983e1dd9af8af86b10d7a05ab67a84

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL 44 * + MAX( - 6 ) - - - 43 AS col1 FROM tab0 AS cor0
----
-307

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL 44 * + MAX ( - 6 ) - - - 43 AS col1 FROM tab0 AS cor0
----
-307

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab0 cor0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7073
SELECT COUNT( * ) * - - 79 DIV - 76 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7073
SELECT COUNT ( * ) * - - 79 / - 76 FROM tab0
----
-3

query I rowsort
SELECT ALL - 55 + + 99 FROM tab1
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT - MAX( - 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-7075
SELECT - MAX ( - 95 ) FROM tab1
----
95

query II rowsort
SELECT DISTINCT 72, col2 FROM tab2 AS cor0
----
72
23
72
40
72
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7077
SELECT CAST( NULL AS SIGNED ) AS col0, ( 80 ) FROM tab1 AS cor0
----
NULL
80
NULL
80
NULL
80

skipif mysql # not compatible
query II rowsort label-7077
SELECT CAST ( NULL AS INTEGER ) AS col0, ( 80 ) FROM tab1 AS cor0
----
NULL
80
NULL
80
NULL
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * 5 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7079
SELECT DISTINCT - + col1 + + ( - CAST( + col0 AS SIGNED ) ) - - col2 FROM tab2 AS cor0
----
-101
-74
-84

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT - + col1 + + ( - CAST ( + col0 AS INTEGER ) ) - - col2 FROM tab2 AS cor0
----
-101
-74
-84

query II rowsort
SELECT ALL + col0 AS col0, 69 FROM tab2 AS cor0
----
46
69
64
69
75
69

query I rowsort
SELECT + col1 + + col1 + - 1 FROM tab1
----
27
9
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7082
SELECT 60 * 96 * + CAST( - COUNT( * ) AS SIGNED ) FROM tab0, tab0 AS cor0
----
-51840

skipif mysql # not compatible
query I rowsort label-7082
SELECT 60 * 96 * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0, tab0 AS cor0
----
-51840

query I rowsort
SELECT DISTINCT - ( - col0 ) + + + ( - col2 ) FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL - col1 * - 98 + - col0 AS col1 FROM tab0
----
1
1971
7923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT - CAST( - col2 AS SIGNED ) + + col0 * col1 FROM tab2
----
2369
4968
5083

skipif mysql # not compatible
query I rowsort label-7085
SELECT - CAST ( - col2 AS INTEGER ) + + col0 * col1 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT + ( + + col2 ) + - + 5 * 7 FROM tab0
----
-25
12
64

query I rowsort
SELECT + col1 + - 60 FROM tab0
----
-39
-59
21

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7089
SELECT DISTINCT + COUNT( + + CAST( 93 AS SIGNED ) ) AS col2, + CAST( - SUM( 79 ) AS SIGNED ) * + 42 FROM tab1 WHERE + 48 * 55 + col0 + - + col0 NOT BETWEEN + - 26 AND NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7089
SELECT DISTINCT + COUNT ( + + CAST ( 93 AS INTEGER ) ) AS col2, + CAST ( - SUM ( 79 ) AS INTEGER ) * + 42 FROM tab1 WHERE + 48 * 55 + col0 + - + col0 NOT BETWEEN + - 26 AND NULL
----
0
NULL

query I rowsort
SELECT + - 97 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 / - 47 IS NULL
----

query I rowsort
SELECT 93 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 82 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT + ( COUNT( * ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7094
SELECT + ( COUNT ( * ) ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7095
SELECT DISTINCT + 0 AS col2, - COUNT( * ) * + + COUNT( * ) + 5 AS col1 FROM tab1 AS cor0
----
0
-4

skipif mysql # not compatible
query II rowsort label-7095
SELECT DISTINCT + 0 AS col2, - COUNT ( * ) * + + COUNT ( * ) + 5 AS col1 FROM tab1 AS cor0
----
0
-4

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 / - - col1 - + 28 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT ( 33 ) DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7097
SELECT ( 33 ) / + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT + - COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7098
SELECT + - COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7099
SELECT col2 DIV 26 col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7099
SELECT col2 / 26 col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT + + ( - 5 ) * COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7100
SELECT + + ( - 5 ) * COUNT ( * ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT 25 * + + 53 FROM tab1 AS cor0
----
1325
1325
1325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7102
SELECT CAST( col2 AS SIGNED ) * - + col2 AS col2 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-7102
SELECT CAST ( col2 AS INTEGER ) * - + col2 AS col2 FROM tab1
----
-3481
-4624
-9216

query II rowsort
SELECT ALL - 35 AS col0, + col1 * - 75 AS col2 FROM tab2
----
-35
-3825
-35
-5025
-35
-5775

query I rowsort
SELECT DISTINCT - 10 + + + ( + - 44 ) AS col2 FROM tab0
----
-54

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> - - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7106
SELECT * FROM tab2 WHERE - col0 * + - CAST( + - col0 AS DECIMAL ) * + - 72 + ( - col2 ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7106
SELECT * FROM tab2 WHERE - col0 * + - CAST ( + - col0 AS REAL ) * + - 72 + ( - col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT + COUNT( * ) + - + 78 AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + COUNT ( * ) + - + 78 AS col0 FROM tab2
----
-75

query I rowsort
SELECT col1 * + 79 + + col1 FROM tab1
----
1120
3760
400

query I rowsort
SELECT DISTINCT - - col2 * + + col2 - col2 FROM tab1 AS cor0
----
3422
4556
9120

query I rowsort
SELECT ( + + 45 ) + + col1 AS col0 FROM tab2 AS cor0
----
112
122
96

query I rowsort
SELECT 32 + - col0 AS col1 FROM tab0 AS cor0
----
-55
-65
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7112
SELECT ALL + col0 - - CAST( col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL + col0 - - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
104
133
69

query II rowsort
SELECT DISTINCT + - col0 AS col1, col1 * - col2 FROM tab1 AS cor0
----
-51
-1344
-85
-295
-91
-3196

query I rowsort
SELECT - + col0 AS col2 FROM tab0 AS cor0 WHERE ( NOT col1 IS NULL )
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT - COUNT( * ) DIV 67 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7115
SELECT - COUNT ( * ) / 67 FROM tab0
----
0

query I rowsort
SELECT ALL col0 * - - 28 * + + col1 FROM tab2
----
137984
140700
65688

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7119
SELECT ALL + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
1

query I rowsort
SELECT - + col2 / + 52 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 3 + 58 <> - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 WHERE + - col0 * + + col1 NOT IN ( - - col0, + col1 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT MIN( 26 ) AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-7122
SELECT MIN ( 26 ) AS col1 FROM tab2
----
26

query II rowsort
SELECT col1, - 1 AS col1 FROM tab2
----
51
-1
67
-1
77
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 75 col0, 34 AS col2 FROM tab2
----
75
34

query I rowsort
SELECT + + 8 * - 27 FROM tab2 cor0
----
-216
-216
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT - + col2 DIV + 81 + - ( col2 ) col1 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7126
SELECT - + col2 / + 81 + - ( col2 ) col1 FROM tab1 AS cor0
----
-59
-68
-97

query I rowsort
SELECT ALL - + 76 AS col2 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT col0 * ( col2 ) AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-7129
SELECT ALL 92 DIV col2 + col2 * - col0 FROM tab1
----
-4896
-5014
-6187

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL 92 / col2 + col2 * - col0 FROM tab1
----
-4896
-5014
-6187

query I rowsort
SELECT ALL + 3 * col0 AS col0 FROM tab0
----
261
291
45

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN ( NULL ) AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7133
SELECT + CAST( - 53 AS SIGNED ) FROM tab0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-7133
SELECT + CAST ( - 53 AS INTEGER ) FROM tab0
----
-53
-53
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT ALL + CAST( 48 AS SIGNED ) * 83 FROM tab2
----
3984
3984
3984

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL + CAST ( 48 AS INTEGER ) * 83 FROM tab2
----
3984
3984
3984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 * - col2 - col0 col0 FROM tab2
----
136
215
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( 37 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 90 NOT IN ( col2 / 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 92 * col0 AS col2 FROM tab2
----
4232
5888
6900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7140
SELECT 98 * + MIN( ALL + 88 DIV + 38 ) FROM tab1
----
196

skipif mysql # not compatible
query I rowsort label-7140
SELECT 98 * + MIN ( ALL + 88 / + 38 ) FROM tab1
----
196

query III rowsort
SELECT ALL * FROM tab2 WHERE + 52 <= - col2 * + col0
----

query I rowsort
SELECT col1 * ( + col1 ) FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL + col0 + - col0 AS col1 FROM tab2 WHERE ( - col1 * - col1 ) IS NOT NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 13 * col1 + - 27 ) >= col0 * + col0
----

query I rowsort
SELECT 35 * col2 AS col1 FROM tab2
----
1400
2030
805

query I rowsort
SELECT col0 * 29 FROM tab2
----
1334
1856
2175

query I rowsort
SELECT DISTINCT 10 FROM tab2 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 * 49 col0 FROM tab0
----
1470

query I rowsort
SELECT + col2 * - 6 FROM tab0
----
-282
-594
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT 97 * COUNT( * ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-7150
SELECT 97 * COUNT ( * ) FROM tab1
----
291

query I rowsort
SELECT 65 * col2 AS col0 FROM tab1
----
3835
4420
6240

query I rowsort
SELECT DISTINCT - col0 + + col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT 22 - 22 AS col2 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN ( + 98 - 61 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7154
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN ( + 98 - 61 ) AND ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + col1 <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT - ( col0 ) + - 71 DIV col1 FROM tab1
----
-56
-92
-99

skipif mysql # not compatible
query I rowsort label-7156
SELECT - ( col0 ) + - 71 / col1 FROM tab1
----
-56
-92
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT + SUM( - col1 ) - 8 col2 FROM tab2 cor0
----
-203

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7157
SELECT + SUM ( - col1 ) - 8 col2 FROM tab2 cor0
----
-203

query I rowsort
SELECT ALL col1 * 50 AS col2 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) IS NULL
----
1050
4050
50

query I rowsort
SELECT ALL col0 * ( - ( col0 ) ) - + col2 FROM tab0 cor0
----
-272
-7579
-9508

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL + COUNT( * ) * COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL + COUNT ( * ) * COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7161
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

query I rowsort
SELECT DISTINCT + 46 * + 30 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + col0 + col2 * 69 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL 23 * 45 FROM tab2 AS cor0
----
1035
1035
1035

query I rowsort
SELECT 53 FROM tab1 AS cor0 WHERE NOT ( col1 ) <> + col2 / col0
----

query I rowsort
SELECT ALL + - 15 * 76 AS col2 FROM tab1 AS cor0
----
-1140
-1140
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT DISTINCT - 52 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT - 52 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT MIN( 8 ) FROM tab1 cor0
----
8

skipif mysql # not compatible
query I rowsort label-7168
SELECT MIN ( 8 ) FROM tab1 cor0
----
8

query I rowsort
SELECT DISTINCT - - ( 54 ) * col0 AS col2 FROM tab0 AS cor0
----
4698
5238
810

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 62 + + 62 IS NOT NULL
----

query I rowsort
SELECT ( - col1 ) * - 85 FROM tab2
----
4335
5695
6545

query I rowsort
SELECT ALL col1 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7173
SELECT * FROM tab2 WHERE NOT ( + 97 ) NOT BETWEEN ( col1 * - CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7173
SELECT * FROM tab2 WHERE NOT ( + 97 ) NOT BETWEEN ( col1 * - CAST ( NULL AS INTEGER ) ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) < col2 / 14
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 / - 41 = - col2 * + col0 + col1
----

query I rowsort
SELECT 14 * col0 * ( - col2 * - 93 ) FROM tab2
----
1377516
3333120
5663700

onlyif mysql # DIV for integer division: 
query I rowsort label-7177
SELECT ALL 16 DIV - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL 16 / - col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT DISTINCT COUNT( ALL + + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT COUNT ( ALL + + col2 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col2 + - 99
----

query I rowsort
SELECT ALL + col1 * col1 * + 51 FROM tab1
----
112659
1275
9996

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT DISTINCT col0 * - + 44 * - ( - 72 DIV col2 ) FROM tab0 AS cor0
----
-26796
-660
0

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT col0 * - + 44 * - ( - 72 / col2 ) FROM tab0 AS cor0
----
-26796
-660
0

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7183
SELECT ALL - col1 DIV col0 * - ( col0 ) + + col1 FROM tab2 AS cor0
----
141
67
97

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL - col1 / col0 * - ( col0 ) + + col1 FROM tab2 AS cor0
----
141
67
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT DISTINCT - COUNT( * ) * - 86 col0 FROM tab1
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7184
SELECT DISTINCT - COUNT ( * ) * - 86 col0 FROM tab1
----
258

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IN ( 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT COUNT( * ) + - 40 AS col2 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-7186
SELECT COUNT ( * ) + - 40 AS col2 FROM tab0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7187
SELECT - 19 AS col0, - COUNT( * ) col2 FROM tab1 AS cor0
----
-19
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7187
SELECT - 19 AS col0, - COUNT ( * ) col2 FROM tab1 AS cor0
----
-19
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7188
SELECT DISTINCT - col1 DIV + col0 col2 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7188
SELECT DISTINCT - col1 / + col0 col2 FROM tab0 AS cor0
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT - MAX( + - 71 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-7189
SELECT - MAX ( + - 71 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
213

query II rowsort
SELECT DISTINCT col2 AS col2, + col2 * + col1 AS col0 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

query I rowsort
SELECT ALL + 85 * 87 AS col2 FROM tab0 AS cor0 WHERE NOT + ( + 69 ) NOT IN ( + col1 )
----

query I rowsort
SELECT - 14 * + 81 FROM tab1
----
-1134
-1134
-1134

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7193
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NULL AND NOT ( NULL ) NOT BETWEEN 42 AND ( + CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-7193
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NULL AND NOT ( NULL ) NOT BETWEEN 42 AND ( + CAST ( NULL AS INTEGER ) * + col2 )
----

query I rowsort
SELECT - col0 - 97 - + col0 * + + 86 FROM tab1
----
-4534
-7492
-8014

query II rowsort
SELECT 76 + + 32, col1 FROM tab2
----
108
51
108
67
108
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7196
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + - SUM( ( col1 ) ) DIV 63 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + - SUM ( ( col1 ) ) / 63 FROM tab2
----
-3

query I rowsort
SELECT - ( + - 17 ) + + col2 * col1 AS col1 FROM tab1
----
1361
312
3213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7198
SELECT + - SUM( - CAST( - col1 AS SIGNED ) ) + - + MAX( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-253

skipif mysql # not compatible
query I rowsort label-7198
SELECT + - SUM ( - CAST ( - col1 AS INTEGER ) ) + - + MAX ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7199
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 31 / - ( + + ( col2 ) ) ) >= 50 * - col1
----

query I rowsort
SELECT - 43 + - col0 * - - col2 AS col1 FROM tab2 AS cor0
----
-1101
-2603
-4393

query I rowsort
SELECT ALL + + col2 - ( + col0 ) FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ALL + - 55 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL + - 55 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-46

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - col0 * + col0 ) IS NULL ) OR ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + 53 - + col1 + - - col0 FROM tab1 AS cor0
----
-2666
-4425
-4779

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL + - MAX( 26 ) AS col2 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL + - MAX ( 26 ) AS col2 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT 67 FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2, + col1 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col1 FROM tab0 cor0
----
-53
-53
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT - col1 * - CAST( NULL AS SIGNED ) + + col1 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT - col1 * - CAST ( NULL AS INTEGER ) + + col1 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 85 * - 34 * - col0 FROM tab0 cor0
----
-251430
-280330
-43350

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - ( col0 ) + col1 + + col2 * col2 )
----

query I rowsort
SELECT - 60 / + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE col1 + - 59 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7215
SELECT + 22 * CAST( 99 AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b0c19760586e823ca2657f28e68dfd47

skipif mysql # not compatible
query I rowsort label-7215
SELECT + 22 * CAST ( 99 AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b0c19760586e823ca2657f28e68dfd47

query II rowsort
SELECT + 36, + col0 FROM tab0
----
36
15
36
87
36
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT SUM( ALL + ( - col1 ) ) + - MAX( - 44 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-7217
SELECT SUM ( ALL + ( - col1 ) ) + - MAX ( - 44 ) FROM tab1
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - 89 - 1 col0 FROM tab1
----
-43
-76
-85

query I rowsort
SELECT ALL 96 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= - 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT ALL - + col0 * - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL - + col0 * - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7221
SELECT ALL - col0 DIV - 70 AS col2, + 87 - - col0 + 89 * col2 AS col2 FROM tab2 AS cor0
----
0
2180
0
3711
1
5324

skipif mysql # not compatible
query II rowsort label-7221
SELECT ALL - col0 / - 70 AS col2, + 87 - - col0 + 89 * col2 AS col2 FROM tab2 AS cor0
----
0
2180
0
3711
1
5324

query I rowsort
SELECT ALL - 12 AS col1 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT - + 72 + + + 31 AS col2 FROM tab0 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT + + 2 + COUNT( * ) + + 97 AS col1 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-7224
SELECT + + 2 + COUNT ( * ) + + 97 AS col1 FROM tab0 AS cor0
----
102

query I rowsort
SELECT col1 * + - 75 FROM tab1
----
-1050
-3525
-375

query III rowsort
SELECT * FROM tab1 WHERE + - ( col1 ) + - col1 >= + col0
----

query II rowsort
SELECT 56 AS col0, - col1 FROM tab2
----
56
-51
56
-67
56
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 * - 31 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT ALL - - CAST( 48 AS SIGNED ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7229
SELECT ALL - - CAST ( 48 AS INTEGER ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 90 * col1 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7231
SELECT + CAST( ( + col1 ) AS SIGNED ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7231
SELECT + CAST ( ( + col1 ) AS INTEGER ) FROM tab0 cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7232
SELECT - - CAST( - - col0 AS SIGNED ) FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7232
SELECT - - CAST ( - - col0 AS INTEGER ) FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * col2 + - col1 NOT IN ( col1 - 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT - + 98 * + - CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT - + 98 * + - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - 9 + - col2 AS col0 FROM tab0 AS cor0
----
773
774
88

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 * - 86 IS NULL OR NOT NULL IN ( + + col0 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 92 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 57 + 50 + + col2 * 12 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT ALL 35 + ( - - COUNT( ALL + 82 ) ) AS col1 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL 35 + ( - - COUNT ( ALL + 82 ) ) AS col1 FROM tab0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7240
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN - CAST( NULL AS SIGNED ) * - col0 AND - ( - - col0 )
----

skipif mysql # not compatible
query III rowsort label-7240
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) * - col0 AND - ( - - col0 )
----

query I rowsort
SELECT DISTINCT 89 * col2 * 57 FROM tab1
----
299307
344964
487008

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - + MIN( + + col0 ) * ( - 49 ) AS col2 FROM tab0 cor0
----
735

skipif mysql # not compatible
query I rowsort label-7242
SELECT - + MIN ( + + col0 ) * ( - 49 ) AS col2 FROM tab0 cor0
----
735

query II rowsort
SELECT DISTINCT + ( - col1 ) * - 68, col2 FROM tab2 AS cor0
----
3468
23
4556
58
5236
40

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2

query I rowsort
SELECT + col2 + - - ( col2 ) AS col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT DISTINCT col0 + - + col2 AS col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7247
SELECT + - CAST( NULL AS SIGNED ), MAX( - + col0 ) * + ( - MIN( ALL - 14 ) ) AS col1 FROM tab0 AS cor0
----
NULL
-210

skipif mysql # not compatible
query II rowsort label-7247
SELECT + - CAST ( NULL AS INTEGER ), MAX ( - + col0 ) * + ( - MIN ( ALL - 14 ) ) AS col1 FROM tab0 AS cor0
----
NULL
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT ALL - + 15 - COUNT( ALL col0 ) + + - 67 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - + 15 - COUNT ( ALL col0 ) + + - 67 FROM tab1 AS cor0
----
-85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * 48 NOT BETWEEN + ( col2 ) AND + col0 * + col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT + ( + MIN( ALL 19 ) ) AS col0 FROM tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-7250
SELECT + ( + MIN ( ALL 19 ) ) AS col0 FROM tab0 cor0
----
19

query I rowsort
SELECT 61 * - - col1 FROM tab0 AS cor0
----
1281
4941
61

query I rowsort
SELECT + col0 - - + 72 AS col0 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT ALL + + 74 * + 80 - 15 AS col1 FROM tab2 AS cor0
----
5905
5905
5905

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT COUNT( * ) - - + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7254
SELECT COUNT ( * ) - - + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7255
SELECT ALL + col2 + 77 AS col1 FROM tab0 WHERE NOT CAST( + col1 AS SIGNED ) + - - 42 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL + col2 + 77 AS col1 FROM tab0 WHERE NOT CAST ( + col1 AS INTEGER ) + - - 42 IS NOT NULL
----

query I rowsort
SELECT 27 - - - 96 + - col0 AS col2 FROM tab0
----
-156
-166
-84

query I rowsort
SELECT DISTINCT col0 * ( + 6 ) FROM tab0
----
522
582
90

query I rowsort
SELECT 7 * - col1 AS col1 FROM tab0
----
-147
-567
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7259
SELECT DISTINCT + COUNT( * ) DIV + - ( MAX( - col1 ) ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7259
SELECT DISTINCT + COUNT ( * ) / + - ( MAX ( - col1 ) ) col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT - - 74 NOT IN ( + + 90 )
----

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT - - 74 NOT IN ( + + 90 )
----

query I rowsort
SELECT 39 FROM tab2 WHERE NOT NULL IS NOT NULL
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL + - COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + - COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + 96 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 44 * + 49 FROM tab0 AS cor0
----
-187572
-209132
-32340

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT 74 + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
65

skipif mysql # not compatible
query I rowsort label-7265
SELECT 74 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7266
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + + col2 + col1 + + CAST( - - 82 AS SIGNED ) / - col2 BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7266
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + + col2 + col1 + + CAST ( - - 82 AS INTEGER ) / - col2 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 * - - col0 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 80 AND - + col0 * - - col0 + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT ALL ( + - COUNT( * ) ) col0, 2 FROM tab0
----
-3
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7269
SELECT ALL ( + - COUNT ( * ) ) col0, 2 FROM tab0
----
-3
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL 33 + + SUM( 1 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL 33 + + SUM ( 1 ) FROM tab2
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 0 * - 61 IS NULL
----

query I rowsort
SELECT ALL col2 + - - col2 - col0 FROM tab2
----
0
16
41

query I rowsort
SELECT col1 + - - 35 * - - col1 * - col1 + + - col2 * - 69 FROM tab2
----
-153046
-204678
-89397

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT DISTINCT 17 + 48 + + 82 + + 28 DIV col2 col1 FROM tab1
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7274
SELECT DISTINCT 17 + 48 + + 82 + + 28 / col2 col1 FROM tab1
----
147

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT + COUNT( * ) + - 59 + COUNT( * ) AS col2 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + COUNT ( * ) + - 59 + COUNT ( * ) AS col2 FROM tab1
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 61, col0 * col2 + + 45 col1 FROM tab0 WHERE + col0 IS NOT NULL
----
-61
750
-61
915
-61
9648

query I rowsort
SELECT + - 65 + + col2 AS col2 FROM tab1 AS cor0
----
-6
3
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7279
SELECT + - CAST( NULL AS DECIMAL ) * - 45 * + 50 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT + - CAST ( NULL AS REAL ) * - 45 * + 50 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 + - 66 + ( + ( - 48 ) ) * - col2 col1 FROM tab1 cor0
----
2813
3245
4589

query I rowsort
SELECT DISTINCT + 66 FROM tab0 WHERE + col0 <> + + ( - col2 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT DISTINCT COUNT( * ) * + ( 24 ) - + COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT COUNT ( * ) * + ( 24 ) - + COUNT ( * ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT 65 + col0 FROM tab0 AS cor0
----
152
162
80

query I rowsort
SELECT ALL col2 + + - 81 FROM tab0 AS cor0
----
-34
-71
18

query I rowsort
SELECT ALL - 76 - - 9 AS col1 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7286
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 25 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 25 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 - - col0 col1 FROM tab1 AS cor0
----
44
78
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7289
SELECT DISTINCT - col2 * CAST( NULL AS DECIMAL ) + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT - col2 * CAST ( NULL AS REAL ) + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 - - - col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7291
SELECT + 66 col0, col2 + 52 DIV + 65 FROM tab2 AS cor0
----
66
23
66
40
66
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7291
SELECT + 66 col0, col2 + 52 / + 65 FROM tab2 AS cor0
----
66
23
66
40
66
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT DISTINCT 90 * - MIN( - col1 ) AS col2 FROM tab1
----
4230

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT 90 * - MIN ( - col1 ) AS col2 FROM tab1
----
4230

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7294
SELECT 27 DIV col1 * - col0 DIV - col0 AS col1 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-7294
SELECT 27 / col1 * - col0 / - col0 AS col1 FROM tab1
----
0
1
5

query I rowsort
SELECT + col2 * - col2 * + - col1 FROM tab1
----
129024
17405
217328

query II rowsort
SELECT ALL + - col1, + col1 - + col1 AS col1 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

query I rowsort
SELECT DISTINCT col2 * - 11 * + col2 AS col2 FROM tab2 AS cor0
----
-17600
-37004
-5819

query II rowsort
SELECT + col0, + col0 * - col1 + col1 FROM tab0 AS cor0
----
15
-1134
87
-1806
97
-96

query I rowsort
SELECT + col0 * + - col2 + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7300
SELECT DISTINCT + COUNT( - CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7300
SELECT DISTINCT + COUNT ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 29 * + 94 FROM tab2 AS cor0
----
-2726
-2726
-2726

query II rowsort
SELECT ALL - + 61 * - + col0 AS col2, + 83 FROM tab2 AS cor0
----
2806
83
3904
83
4575
83

query II rowsort
SELECT DISTINCT - ( - col0 ), 40 * - + 1 - + + col0 + - 14 * + + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * col2 + - + col1 AS col0 FROM tab0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT MIN( DISTINCT - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7305
SELECT MIN ( DISTINCT - col1 ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT + 93 FROM tab0 WHERE + ( - col2 ) IS NOT NULL
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT col1 DIV + col0 * + 95 + 32 + - col1 FROM tab1
----
-15
18
27

skipif mysql # not compatible
query I rowsort label-7307
SELECT col1 / + col0 * + 95 + 32 + - col1 FROM tab1
----
-15
18
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7308
SELECT - col0 * + - col1 + + CAST( NULL AS DECIMAL ) + - col2 + - 86 * 38 + + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT - col0 * + - col1 + + CAST ( NULL AS REAL ) + - col2 + - 86 * 38 + + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - + 34 + + COUNT( col1 ) FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7309
SELECT - + 34 + + COUNT ( col1 ) FROM tab0 cor0
----
-31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 77 NOT BETWEEN + 4 AND col1
----
87
21
10
97
1
99

query I rowsort
SELECT + col0 * 84 / 87 FROM tab2 WHERE - + 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT + + COUNT( DISTINCT col2 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7312
SELECT + + COUNT ( DISTINCT col2 ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 45 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT DISTINCT - ( MAX( ALL - + 98 ) ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT - ( MAX ( ALL - + 98 ) ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL COUNT( - 65 ) * 55 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL COUNT ( - 65 ) * 55 FROM tab0 AS cor0
----
165

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL 14 * col0 AS col0 FROM tab1 AS cor0
----
1190
1274
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - SUM( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7318
SELECT - SUM ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT DISTINCT + 26 * ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT + 26 * ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 11 * + - 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT SUM( + col2 ) + 64 FROM tab2 WHERE NOT NULL IS NOT NULL
----
185

skipif mysql # not compatible
query I rowsort label-7322
SELECT SUM ( + col2 ) + 64 FROM tab2 WHERE NOT NULL IS NOT NULL
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7323
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col2 * - + col2, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7323
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col2 * - + col2, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT COUNT( * ) * + + 55 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-7324
SELECT COUNT ( * ) * + + 55 FROM tab2
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-7325
SELECT + MIN( ALL - col1 ) * - 8, 10 * + - MAX( DISTINCT - col0 ) col2 FROM tab1
----
376
510

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7325
SELECT + MIN ( ALL - col1 ) * - 8, 10 * + - MAX ( DISTINCT - col0 ) col2 FROM tab1
----
376
510

query I rowsort
SELECT DISTINCT + ( 65 ) AS col0 FROM tab2
----
65

query I rowsort
SELECT ALL + - 23 * + col1 FROM tab1 AS cor0
----
-1081
-115
-322

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7328
SELECT ALL + + 88 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL + + 88 * - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7329
SELECT DISTINCT + col0 * + 43 + + - col0 + + CAST( NULL AS DECIMAL ) + col2 AS col0, - col0 col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7329
SELECT DISTINCT + col0 * + 43 + + - col0 + + CAST ( NULL AS REAL ) + col2 AS col0, - col0 col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7330
SELECT ALL - ( - COUNT( * ) ) DIV + 86 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL - ( - COUNT ( * ) ) / + 86 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT DISTINCT - ( + COUNT( * ) ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT - ( + COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < 41
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT DISTINCT - 62 DIV + - col0 + - + col0 FROM tab0 AS cor0
----
-11
-87
-97

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT - 62 / + - col0 + - + col0 FROM tab0 AS cor0
----
-11
-87
-97

query I rowsort
SELECT ALL - - 90 * - 81 FROM tab1 cor0
----
-7290
-7290
-7290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 + + + col1 * + col2 col0 FROM tab0 AS cor0
----
197
199
3773

query I rowsort
SELECT - col2 * col1 + ( + col1 ) - - col1 AS col2 FROM tab2 AS cor0
----
-1071
-2926
-3752

query I rowsort
SELECT DISTINCT col1 + col2 + - col1 - col2 FROM tab1
----
0

query I rowsort
SELECT col2 * - col2 + col1 AS col0 FROM tab1
----
-3476
-4577
-9202

query II rowsort
SELECT ALL col0 + col0 * + col2 AS col1, + ( col2 ) AS col1 FROM tab0
----
720
47
957
10
9700
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT DISTINCT COUNT( * ) + + - COUNT( ALL + col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT COUNT ( * ) + + - COUNT ( ALL + col2 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 * col1 + col1 AS col0 FROM tab2
----
1224
3157
3953

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 * + - 83 + - col0 * col0 + + 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + + + col0 + - col1 AS col2 FROM tab2
----
41
51
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7344
SELECT + ( - SUM( - + col2 ) ), + 80 AS col0 FROM tab0 AS cor0
----
156
80

skipif mysql # not compatible
query II rowsort label-7344
SELECT + ( - SUM ( - + col2 ) ), + 80 AS col0 FROM tab0 AS cor0
----
156
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7345
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7345
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) = ( NULL )
----

query I rowsort
SELECT col2 * + col2 - - col0 AS col1 FROM tab1
----
3566
4715
9267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7347
SELECT - MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE ( + 56 * col1 * col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE ( + 56 * col1 * col0 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7348
SELECT + 78 + + COUNT( * ) + MAX( ALL - - CAST( NULL AS DECIMAL ) ) AS col0, - 56 FROM tab2
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-7348
SELECT + 78 + + COUNT ( * ) + MAX ( ALL - - CAST ( NULL AS REAL ) ) AS col0, - 56 FROM tab2
----
NULL
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7349
SELECT DISTINCT 21 * - CAST( NULL AS SIGNED ) * + MIN( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT 21 * - CAST ( NULL AS INTEGER ) * + MIN ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7350
SELECT - - 41, 21 + + COUNT( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 68
----
41
21

skipif mysql # not compatible
query II rowsort label-7350
SELECT - - 41, 21 + + COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 68
----
41
21

query II rowsort
SELECT col1 AS col0, + col0 AS col1 FROM tab2 cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - + 20 ) * - 75 col0 FROM tab1 AS cor0
----
1500
1500
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT - CAST( NULL AS SIGNED ) * 44 * - + 56 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT - CAST ( NULL AS INTEGER ) * 44 * - + 56 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7355
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) + - ( + col0 ) + col0 * - 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7355
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) + - ( + col0 ) + col0 * - 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + ( 94 ) FROM tab0 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - + 8 col1 FROM tab2 AS cor0
----
15
32
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7358
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query II rowsort
SELECT + 73, 92 * - col0 AS col1 FROM tab0 AS cor0
----
73
-1380
73
-8004
73
-8924

query I rowsort
SELECT col0 * - 16 FROM tab2 AS cor0
----
-1024
-1200
-736

query I rowsort
SELECT - 64 * - + col1 * + + col2 * + + 12 FROM tab0 AS cor0
----
161280
2923776
76032

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 62 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-7364
SELECT DISTINCT + + col0 + - 55 - col0 DIV col1 + 20 AS col2, - col0 * - - 7 AS col1 FROM tab0 AS cor0
----
-20
-105
-35
-679
48
-609

skipif mysql # not compatible
query II rowsort label-7364
SELECT DISTINCT + + col0 + - 55 - col0 / col1 + 20 AS col2, - col0 * - - 7 AS col1 FROM tab0 AS cor0
----
-20
-105
-35
-679
48
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT MIN( ALL - - col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7365
SELECT MIN ( ALL - - col1 ) col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT ALL COUNT( * ) + + - MAX( DISTINCT - 45 ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL COUNT ( * ) + + - MAX ( DISTINCT - 45 ) AS col1 FROM tab1
----
48

query I rowsort
SELECT - 89 - + col1 FROM tab2
----
-140
-156
-166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 WHERE NULL <= ( - + col2 * - col0 )
----

query I rowsort
SELECT DISTINCT + col1 + - 38 AS col1 FROM tab1
----
-24
-33
9

query I rowsort
SELECT ALL + ( + col2 ) + - 76 - - col2 FROM tab0
----
-56
122
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT - col1 DIV - col2 + - + col1 FROM tab2
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-7371
SELECT - col1 / - col2 + - + col1 FROM tab2
----
-49
-66
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT col1 * - col2 + + col1 + col0 DIV + col2 col2 FROM tab2 AS cor0
----
-1120
-3002
-3818

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7372
SELECT col1 * - col2 + + col1 + col0 / + col2 col2 FROM tab2 AS cor0
----
-1120
-3002
-3818

query I rowsort
SELECT ALL col2 - - + ( + col1 ) FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT - col1 + 43 * col1 AS col1 FROM tab0 AS cor0
----
3402
42
882

query I rowsort
SELECT + ( - col2 ) + + col1 + - 11 FROM tab0 AS cor0
----
-109
0
23

query I rowsort
SELECT ALL - 42 * - 58 - col1 FROM tab2 cor0
----
2359
2369
2385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT CAST( NULL AS SIGNED ) * 56 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT CAST ( NULL AS INTEGER ) * 56 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - 3 * + col1 - col0 * - 27 <= - col0
----
14
47
5

query I rowsort
SELECT ALL - ( - + 39 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 81 NOT BETWEEN + - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL < 16 * + 51 / + - col2 + - - 65 + - 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT ALL + + ( + - COUNT( ALL - col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL + + ( + - COUNT ( ALL - col0 ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 2 col2, 65 * col1 + - + 10 FROM tab2 cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7385
SELECT + ( + - col2 ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-7385
SELECT + ( + - col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT - - col2 - - 80 FROM tab2 AS cor0 WHERE NOT 18 + + + col0 NOT IN ( + ( - ( 20 ) ) * col1, ( + - CAST( NULL AS SIGNED ) ) + - 75 )
----

skipif mysql # not compatible
query I rowsort label-7386
SELECT - - col2 - - 80 FROM tab2 AS cor0 WHERE NOT 18 + + + col0 NOT IN ( + ( - ( 20 ) ) * col1, ( + - CAST ( NULL AS INTEGER ) ) + - 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT - CAST( + + ( col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7387
SELECT - CAST ( + + ( col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 1 FROM tab1 cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7389
SELECT ALL - 88 col1, COUNT( * ) + - 34 FROM tab2 WHERE NOT NULL > NULL
----
-88
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7389
SELECT ALL - 88 col1, COUNT ( * ) + - 34 FROM tab2 WHERE NOT NULL > NULL
----
-88
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7390
SELECT - CAST( NULL AS SIGNED ) AS col0, + col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7390
SELECT - CAST ( NULL AS INTEGER ) AS col0, + col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7391
SELECT 40 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT 40 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 42 + - - col1 AS col0 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT + 94 FROM tab2 WHERE NOT - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT DISTINCT + SUM( DISTINCT + - ( + col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT + SUM ( DISTINCT + - ( + col2 ) ) FROM tab0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT DISTINCT CAST( - SUM( col1 ) AS SIGNED ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT CAST ( - SUM ( col1 ) AS INTEGER ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT ALL - 79 * - 38 AS col1 FROM tab2
----
3002
3002
3002

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT NULL <= - + col1 + 35
----

query I rowsort
SELECT + + ( + + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col2 + - + 30 FROM tab2 AS cor0
----
-7
10
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT DISTINCT - COUNT( ALL - - col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT - COUNT ( ALL - - col0 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7401
SELECT DISTINCT 13 DIV col2 + 47 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT 13 / col2 + 47 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL COUNT( * ) + + - 18 col1 FROM tab2
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7402
SELECT ALL COUNT ( * ) + + - 18 col1 FROM tab2
----
-15

query I rowsort
SELECT ALL - ( - col1 ) * - col0 * - 93 AS col2 FROM tab0
----
112995
169911
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT MIN( - 47 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-7404
SELECT MIN ( - 47 ) FROM tab2
----
-47

query III rowsort
SELECT * FROM tab1 WHERE + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + 39 AS col1 FROM tab2
----
62
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL - COUNT( * ) - + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL - ( + - COUNT( ALL - 41 ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - ( + - COUNT ( ALL - 41 ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT + SUM( ALL + + 79 ) FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT + SUM ( ALL + + 79 ) FROM tab0 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT MAX( DISTINCT + ( - col0 ) ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7410
SELECT MAX ( DISTINCT + ( - col0 ) ) AS col1 FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 + - - col2 col2 FROM tab2
----
113
131
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7412
SELECT col1 DIV - 85 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7412
SELECT col1 / - 85 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( + - col1 ) + + col2 * col1 * + col1 * - col2 FROM tab1
----
-10214463
-1806350
-87030

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT ALL - col1 DIV - + 71 - - + 41 + col0 FROM tab0 AS cor0
----
128
138
57

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL - col1 / - + 71 - - + 41 + col0 FROM tab0 AS cor0
----
128
138
57

query I rowsort
SELECT DISTINCT + - col2 - col0 * + col2 + + col0 FROM tab2 AS cor0
----
-1035
-2536
-4333

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL - MIN( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL - MIN ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT + - CAST( - 81 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-7417
SELECT + - CAST ( - 81 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT 14 * COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7418
SELECT 14 * COUNT ( * ) FROM tab0 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab0
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 33 >= - col2 * col2
----

query II rowsort
SELECT col1, col2 + + col2 AS col1 FROM tab1 AS cor0
----
14
192
47
136
5
118

onlyif mysql # DIV for integer division: 
query II rowsort label-7422
SELECT - - 20 AS col2, + col2 DIV col2 AS col1 FROM tab1 cor0
----
20
1
20
1
20
1

skipif mysql # not compatible
query II rowsort label-7422
SELECT - - 20 AS col2, + col2 / col2 AS col1 FROM tab1 cor0
----
20
1
20
1
20
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col0 * 46 AS col2 FROM tab0 AS cor0
----
15
-690
87
-4002
97
-4462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7424
SELECT DISTINCT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col1 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL - COUNT( + - col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - COUNT ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 60 BETWEEN col2 AND + 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + - - col1 * + 75 + 25 AS col1 FROM tab0 WHERE NOT - col0 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT MIN( ALL - col1 ) * + COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-7430
SELECT MIN ( ALL - col1 ) * + COUNT ( * ) FROM tab2
----
-231

query II rowsort
SELECT col2 + - 70, + col0 FROM tab0 AS cor0
----
-23
15
-60
87
29
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT - COUNT( * ) + 8 AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7432
SELECT - COUNT ( * ) + 8 AS col1 FROM tab0 AS cor0
----
5

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7434
SELECT + COUNT( * ) AS col2, + 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
68

skipif mysql # not compatible
query II rowsort label-7434
SELECT + COUNT ( * ) AS col2, + 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7435
SELECT col1, - col1 * + col2 * - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7435
SELECT col1, - col1 * + col2 * - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * + 88 * 44 * - col1 FROM tab0 WHERE - col2 + + col0 NOT BETWEEN NULL AND - - col2 * - 23
----
14740704
383328
813120

query I rowsort
SELECT col0 * + col1 + 84 FROM tab2 AS cor0
----
2430
5012
5109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7438
SELECT DISTINCT + col2 AS col0, - CAST( - 40 AS SIGNED ) FROM tab2 AS cor0
----
23
40
40
40
58
40

skipif mysql # not compatible
query II rowsort label-7438
SELECT DISTINCT + col2 AS col0, - CAST ( - 40 AS INTEGER ) FROM tab2 AS cor0
----
23
40
40
40
58
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL - ( - COUNT( * ) ) - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL - ( - COUNT ( * ) ) - - COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7440
SELECT ALL + + COUNT( * ) * - + 29 DIV + MIN( + col1 ) FROM tab0 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL + + COUNT ( * ) * - + 29 / + MIN ( + col1 ) FROM tab0 cor0
----
-87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 53
----

query I rowsort
SELECT - 18 - col0 FROM tab1 AS cor0
----
-103
-109
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT ALL - COUNT( * ) * + ( + COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL - COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT DISTINCT + 12 * CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + 12 * CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE + 50 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT DISTINCT col1 DIV 73 * - 71 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT col1 / 73 * - 71 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT col2 + + - col2 / CAST( NULL AS SIGNED ) + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT col2 + + - col2 / CAST ( NULL AS INTEGER ) + - col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + + ( col2 ) ) + + - col0 AS col1 FROM tab0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7450
SELECT 67 DIV - - col2 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-7450
SELECT 67 / - - col2 AS col2 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT + COUNT( * ) col1 FROM tab1 WHERE NOT 2 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7451
SELECT + COUNT ( * ) col1 FROM tab1 WHERE NOT 2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT + MIN( - col2 ) AS col2, + 54 AS col2 FROM tab0
----
-99
54

skipif mysql # not compatible
query II rowsort label-7452
SELECT + MIN ( - col2 ) AS col2, + 54 AS col2 FROM tab0
----
-99
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col0 - - col1 * + col0
----

query I rowsort
SELECT DISTINCT 27 * + col2 AS col0 FROM tab0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT + ( - ( COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7455
SELECT + ( - ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT - COUNT( + col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7456
SELECT - COUNT ( + col0 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT DISTINCT 97 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT 97 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7458
SELECT DISTINCT + 22 * - CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1122
1870
2002

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + 22 * - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1122
1870
2002

query I rowsort
SELECT ALL + col0 * + - 21 FROM tab0 cor0
----
-1827
-2037
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT ALL + CAST( 71 AS SIGNED ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
71
71
71

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL + CAST ( 71 AS INTEGER ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT DISTINCT - CAST( + - 53 AS SIGNED ) AS col2 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - CAST ( + - 53 AS INTEGER ) AS col2 FROM tab2
----
53

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 25 + + col2 NOT IN ( - - col2 + + col0 * ( col2 ) * + col1 * col0 * + col2 + + + col2, + ( + col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 90 + - - ( + col0 ) AS col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + col0 * 88 + - col0 FROM tab0
----
1305
7569
8439

query I rowsort
SELECT DISTINCT - 11 + + col2 FROM tab2
----
12
29
47

query I rowsort
SELECT 47 + + ( - col2 ) FROM tab0
----
-52
0
37

query I rowsort
SELECT ALL + ( + 82 ) + col1 FROM tab2
----
133
149
159

query I rowsort
SELECT - col1 + - 85 + - col1 AS col2 FROM tab1
----
-113
-179
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7469
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 40 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 40 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT 88 + + + 84 DIV - 48 + + - col1 AS col0 FROM tab0
----
6
66
86

skipif mysql # not compatible
query I rowsort label-7470
SELECT 88 + + + 84 / - 48 + + - col1 AS col0 FROM tab0
----
6
66
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT MAX( + 93 ) AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7471
SELECT MAX ( + 93 ) AS col0 FROM tab2 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 74 + - col2 - + 83 AS col2 FROM tab0
----
-108
-19
-56

query I rowsort
SELECT ALL + col0 + - 95 AS col2 FROM tab2 cor0
----
-20
-31
-49

query I rowsort
SELECT ALL - 87 - - - col0 AS col0 FROM tab1 cor0
----
-138
-172
-178

query I rowsort
SELECT ALL - 99 AS col1 FROM tab0 cor0
----
-99
-99
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 90 * - - col0 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 88 >= + col0
----

query II rowsort
SELECT ALL + col2 - - col1 AS col2, + col0 FROM tab0 AS cor0
----
100
97
128
15
31
87

query I rowsort
SELECT DISTINCT col0 - - - col1 + 31 FROM tab2 AS cor0
----
18
26
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT - MIN( ALL - - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7481
SELECT - MIN ( ALL - - col0 ) FROM tab2 cor0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7482
SELECT ALL COUNT( + col1 ) / - - CAST( NULL AS SIGNED ) - - + 64 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL COUNT ( + col1 ) / - - CAST ( NULL AS INTEGER ) - - + 64 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 62 FROM tab0 WHERE NOT + ( + col1 ) * + col1 BETWEEN col0 AND NULL
----
62

query I rowsort
SELECT ( + col0 ) * - 31 FROM tab1
----
-1581
-2635
-2821

query II rowsort
SELECT 76, col0 FROM tab1
----
76
51
76
85
76
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT - 53 DIV + 36 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7486
SELECT - 53 / + 36 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT ALL 38 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL 38 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT MAX( + + col1 ) col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7488
SELECT MAX ( + + col1 ) col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL + ( + MIN( - - 74 ) ) col0 FROM tab1
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7489
SELECT ALL + ( + MIN ( - - 74 ) ) col0 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT DISTINCT - COUNT( * ) * 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-261

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT - COUNT ( * ) * 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-261

query I rowsort
SELECT + 60 * + col1 + - col1 FROM tab0
----
1239
4779
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + ( COUNT( * ) ) + - COUNT( * ) + + 89 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
89

skipif mysql # not compatible
query I rowsort label-7492
SELECT + ( COUNT ( * ) ) + - COUNT ( * ) + + 89 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7493
SELECT ( - col0 ) + - - col1 DIV + col2 FROM tab0 AS cor0
----
-14
-85
-97

skipif mysql # not compatible
query I rowsort label-7493
SELECT ( - col0 ) + - - col1 / + col2 FROM tab0 AS cor0
----
-14
-85
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 44 AND NULL
----

query I rowsort
SELECT col2 - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT ALL + ( - col2 ) * + CAST( - + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL + ( - col2 ) * + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 47 > + col0
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT SUM( ALL + - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7498
SELECT SUM ( ALL + - col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + col2 + 30 + - col1 FROM tab2
----
-7
2
21

query I rowsort
SELECT - 58 * col0 FROM tab1
----
-2958
-4930
-5278

query II rowsort
SELECT DISTINCT + 48, col2 FROM tab2 WHERE NULL IS NULL
----
48
23
48
40
48
58

query I rowsort
SELECT ALL 43 + - col1 FROM tab0
----
-38
22
42

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NOT 22 + + 51 IS NOT NULL
----

query I rowsort
SELECT + 20 + + + col0 AS col0 FROM tab2 AS cor0
----
66
84
95

query I rowsort
SELECT ALL 80 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7507
SELECT + - col0 * col1 + + col2 DIV + col0 + + col2 col2 FROM tab0 AS cor0
----
-1165
-1817
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7507
SELECT + - col0 * col1 + + col2 / + col0 + + col2 col2 FROM tab0 AS cor0
----
-1165
-1817
3

query I rowsort
SELECT - col0 + + 87 * + + col2 + - 25 AS col2 FROM tab2 AS cor0
----
1930
3391
4946

onlyif mysql # DIV for integer division: 
query II rowsort label-7509
SELECT DISTINCT - 76 DIV + + 23 + - ( - col1 ) AS col1, col0 AS col0 FROM tab1
----
11
51
2
85
44
91

skipif mysql # not compatible
query II rowsort label-7509
SELECT DISTINCT - 76 / + + 23 + - ( - col1 ) AS col1, col0 AS col0 FROM tab1
----
11
51
2
85
44
91

query I rowsort
SELECT ALL + 72 + col2 FROM tab0
----
119
171
82

query I rowsort
SELECT ALL col0 + - 42 FROM tab0 AS cor0
----
-27
45
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7512
SELECT ALL 62 - CAST( NULL AS SIGNED ) AS col2, col2 FROM tab0 AS cor0 WHERE ( + 70 ) - 68 - - + col1 IS NOT NULL
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7512
SELECT ALL 62 - CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab0 AS cor0 WHERE ( + 70 ) - 68 - - + col1 IS NOT NULL
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT - ( - - MAX( ALL - + 99 ) ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7513
SELECT - ( - - MAX ( ALL - + 99 ) ) FROM tab1 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < - col1 * - col2 AND NULL > NULL
----

query I rowsort
SELECT ALL - col0 - + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT - + col1 - - 19 AS col0 FROM tab0 AS cor0
----
-2
-62
18

query II rowsort
SELECT - col2 - col0 AS col1, col1 AS col2 FROM tab1 cor0
----
-144
5
-147
14
-159
47

query II rowsort
SELECT DISTINCT 38 AS col1, col0 FROM tab0 AS cor0
----
38
15
38
87
38
97

query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7520
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) IN ( + col0, 33, CAST( NULL AS SIGNED ), - + col2, + - 46 * + col2 * + 71 ) )
----

skipif mysql # not compatible
query III rowsort label-7520
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) IN ( + col0, 33, CAST ( NULL AS INTEGER ), - + col2, + - 46 * + col2 * + 71 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7521
SELECT - COUNT( * ) DIV - + 31 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7521
SELECT - COUNT ( * ) / - + 31 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7522
SELECT COUNT( 92 ) AS col2, SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7522
SELECT COUNT ( 92 ) AS col2, SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT - 2 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - ( col1 ) * - + col1 + + - col0 FROM tab2 AS cor0
----
2555
4414
5865

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * 31 <= - col2 - - col1 + 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 76 * - col2 * - col1 AS col2 FROM tab1 AS cor0
----
102144
22420
242896

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( 40 * ( - col2 ), 74 * + + col2 )
----

query I rowsort
SELECT DISTINCT + - 20 * + col0 + 6 * + 56 AS col2 FROM tab0 AS cor0
----
-1404
-1604
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + 39 > + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT + ( - - ( - - 23 ) ) * - 86 - - col0 * col2 DIV + col0 + + col1 FROM tab0
----
-1850
-1878
-1947

skipif mysql # not compatible
query I rowsort label-7531
SELECT + ( - - ( - - 23 ) ) * - 86 - - col0 * col2 / + col0 + + col1 FROM tab0
----
-1850
-1878
-1947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7532
SELECT CAST( - + COUNT( * ) AS SIGNED ) + + - 91 * + COUNT( * ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-7532
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) + + - 91 * + COUNT ( * ) FROM tab1
----
-276

query I rowsort
SELECT ALL col0 + col0 * + 9 FROM tab1
----
510
850
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * + 60 * - col2 col1 FROM tab0
----
16920
35640
3600

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE 73 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + col2 - 21 AS col1 FROM tab1
----
38
47
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 col0 FROM tab1 AS cor0
----
79

query II rowsort
SELECT DISTINCT col1 AS col2, col1 * + 85 AS col0 FROM tab2 AS cor0
----
51
4335
67
5695
77
6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT CAST( NULL AS SIGNED ) * - ( + 98 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT CAST ( NULL AS INTEGER ) * - ( + 98 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - - col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - col2 * col1 FROM tab0 WHERE NOT - + 33 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 26 AS col1, col0 AS col1 FROM tab2
----
26
46
26
64
26
75

query II rowsort
SELECT ALL col1, + 8 FROM tab1
----
14
8
47
8
5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL - MIN( + 66 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - MIN ( + 66 ) FROM tab0
----
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7546
SELECT col2 DIV + - col2 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7546
SELECT col2 / + - col2 AS col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, col0 AS col1 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT DISTINCT - 68 DIV - 2 + - - col2 + + 16 FROM tab2 cor0
----
108
73
90

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT - 68 / - 2 + - - col2 + + 16 FROM tab2 cor0
----
108
73
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7549
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( - CAST( - - 15 AS DECIMAL ) <> NULL )
----

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( - CAST ( - - 15 AS REAL ) <> NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + col2 BETWEEN - col2 AND + 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7551
SELECT - + col0 AS col2, ( + 72 ) / CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7551
SELECT - + col0 AS col2, ( + 72 ) / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT COUNT( * ) + 37 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-7552
SELECT COUNT ( * ) + 37 FROM tab2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7553
SELECT * FROM tab2 WHERE 51 + + col0 * CAST( NULL AS SIGNED ) NOT IN ( + + col0, 38 )
----

skipif mysql # not compatible
query III rowsort label-7553
SELECT * FROM tab2 WHERE 51 + + col0 * CAST ( NULL AS INTEGER ) NOT IN ( + + col0, 38 )
----

query II rowsort
SELECT ALL col1 * 33, 75 AS col2 FROM tab0 cor0
----
2673
75
33
75
693
75

query I rowsort
SELECT + col2 + + 44 + - - 60 AS col0 FROM tab2 AS cor0 WHERE - 80 IS NULL
----

query II rowsort
SELECT - col2 * - col1, 30 AS col0 FROM tab0 cor0
----
210
30
3807
30
99
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 AS cor0 WHERE - col1 <> - + col0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + + 82, + 61 * + col0 col0 FROM tab2 AS cor0
----
133
2806
149
4575
159
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL MIN( ALL 92 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL MIN ( ALL 92 ) FROM tab2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT ALL + col0 + - CAST( - 64 AS SIGNED ) FROM tab1
----
115
149
155

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + col0 + - CAST ( - 64 AS INTEGER ) FROM tab1
----
115
149
155

query I rowsort
SELECT col2 * + 29 AS col2 FROM tab1
----
1711
1972
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT COUNT( DISTINCT - 18 ) FROM tab0 WHERE ( - + ( + col0 ) ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7563
SELECT COUNT ( DISTINCT - 18 ) FROM tab0 WHERE ( - + ( + col0 ) ) = NULL
----
0

query I rowsort
SELECT ALL - col2 * 86 + ( + - col1 ) + + col0 AS col1 FROM tab2
----
-1983
-3453
-4980

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( - - 62 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col0 + - + col1, col2 col1 FROM tab1
----
4882
96
5010
59
6141
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT - - COUNT( * ) * - SUM( DISTINCT 71 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) < - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT - - COUNT ( * ) * - SUM ( DISTINCT 71 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) < - col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col1 * - 86 IS NULL
----

query I rowsort
SELECT col2 * col2 FROM tab1 WHERE ( col2 + col1 ) IS NOT NULL
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= 49 + + 42 * - col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 + col2 ) >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 - col0 col1 FROM tab2
----
-25
-43
-54

query I rowsort
SELECT DISTINCT - 36 + + col2 FROM tab2
----
-13
22
4

query I rowsort
SELECT + col2 - 97 AS col0 FROM tab0
----
-50
-87
2

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > ( + 78 + 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT - col2 * col2 + col0 AS col2 FROM tab0 WHERE ( col1 ) * col2 BETWEEN + col1 AND CAST( col2 AS SIGNED )
----
-9704

skipif mysql # not compatible
query I rowsort label-7576
SELECT - col2 * col2 + col0 AS col2 FROM tab0 WHERE ( col1 ) * col2 BETWEEN + col1 AND CAST ( col2 AS INTEGER )
----
-9704

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * 77 > 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab1 WHERE + col0 + + col2 * col1 BETWEEN ( + ( - col0 ) * col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT + COUNT( * ) col1 FROM tab2 WHERE NULL BETWEEN ( + col0 * - col0 ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7579
SELECT + COUNT ( * ) col1 FROM tab2 WHERE NULL BETWEEN ( + col0 * - col0 ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7580
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + col1 * 35 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + col1 * 35 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 + - col0 * col0 AS col1 FROM tab2
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT COUNT( + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT COUNT ( + col1 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 68 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + col2 * + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 - - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab2 WHERE NOT 99 IS NULL
----
46
64
75

query I rowsort
SELECT + col0 * + 12 - - col0 AS col1 FROM tab2
----
598
832
975

query I rowsort
SELECT ( + col1 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT 44 * col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 52 * + col2 NOT IN ( + 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT ALL + col1 DIV + 24 - col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-78

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + col1 / + 24 - col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-78

query I rowsort
SELECT + + col2 * - col1 + col2 AS col2 FROM tab2 cor0
----
-1150
-3040
-3828

query I rowsort
SELECT 4 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 86 * col1 + 38 ) > ( 84 / + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 14 AND + 57
----
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - col0 * col0
----

query I rowsort
SELECT 77 FROM tab1 AS cor0 WHERE - col0 <> col2 + 76
----
77
77
77

query III rowsort
SELECT * FROM tab0 WHERE col0 * 10 + + col1 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT ALL + col1 * CAST( + ( + col1 ) AS SIGNED ) AS col1 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL + col1 * CAST ( + ( + col1 ) AS INTEGER ) AS col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT col0 + + col1 + + 80 * col1 FROM tab0
----
178
1788
6576

query III rowsort
SELECT * FROM tab1 WHERE + 23 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab0 WHERE + col1 + col2 NOT IN ( col1 )
----
100
128
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7606
SELECT CAST( NULL AS DECIMAL ) FROM tab2 WHERE ( col1 ) IN ( - 23 - - 72 )
----

skipif mysql # not compatible
query I rowsort label-7606
SELECT CAST ( NULL AS REAL ) FROM tab2 WHERE ( col1 ) IN ( - 23 - - 72 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 + 95 ) <> NULL
----

query I rowsort
SELECT DISTINCT col2 * - - col1 + + col0 FROM tab0
----
196
297
3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * col0 + col1 col1 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT ALL col1 - - + 74 * col1 FROM tab1
----
1050
3525
375

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL - - COUNT( * ) - - 56 AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL - - COUNT ( * ) - - 56 AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT + col2 - 46 FROM tab0 AS cor0
----
-36
1
53

query I rowsort
SELECT DISTINCT + col2 * + col1 - col1 - - 97 FROM tab0 cor0
----
195
286
3823

query I rowsort
SELECT ALL + col0 - - + col1 + 94 AS col2 FROM tab2 AS cor0
----
191
235
236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT + 25 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT + 25 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT - - 98 + ( + 46 + + COUNT( * ) * + 13 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
261

skipif mysql # not compatible
query I rowsort label-7616
SELECT - - 98 + ( + 46 + + COUNT ( * ) * + 13 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
261

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * 75 >= col2
----

query I rowsort
SELECT ALL - - 22 AS col2 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - ( - 26 ) FROM tab2 cor0
----
26

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE + col1 = - col0
----

query I rowsort
SELECT DISTINCT + 15 * + + 77 AS col2 FROM tab1 AS cor0
----
1155

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - - col1 AND col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 26 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT COUNT( * ) * + + MAX( + 39 ) AS col1 FROM tab0 cor0
----
117

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT COUNT ( * ) * + + MAX ( + 39 ) AS col1 FROM tab0 cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL 84 * 89 + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
7485

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL 84 * 89 + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
7485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE + CAST( + - col0 AS SIGNED ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE + CAST ( + - col0 AS INTEGER ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 15 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
15
15

query I rowsort
SELECT + col2 * 16 * - col0 * + - col2 AS col2 FROM tab1
----
4734160
6732544
7520256

query I rowsort
SELECT ALL 5 * + - ( - ( + - col1 ) ) FROM tab1
----
-235
-25
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT DISTINCT col0 DIV + 87 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT col0 / + 87 AS col1 FROM tab0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 + + col0 = ( ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 21 FROM tab1 WHERE NOT - - ( + - 89 ) * col2 IN ( col1 + col0 * col0 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7633
SELECT ALL - ( + CAST( 28 AS SIGNED ) ) FROM tab2
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL - ( + CAST ( 28 AS INTEGER ) ) FROM tab2
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - - col2 * - - 81 + 83 + - 83 FROM tab1 AS cor0
----
4779
5508
7776

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 / + + col0 > + col2
----

query I rowsort
SELECT 15 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + col0 = + + 43 + col1
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + - COUNT( * ) * + 89 * + + SUM( - + col2 ) FROM tab0 cor0
----
41652

skipif mysql # not compatible
query I rowsort label-7637
SELECT + - COUNT ( * ) * + 89 * + + SUM ( - + col2 ) FROM tab0 cor0
----
41652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT - CAST( - 43 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-7638
SELECT - CAST ( - 43 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
43
43
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 42 IN ( col0 / 69 + col2 )
----

query I rowsort
SELECT + col2 + - + col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT 29 + - - 81 + 25 * 66 AS col0 FROM tab0 AS cor0
----
1760

query I rowsort
SELECT + 70 + + + col1 FROM tab1
----
117
75
84

query I rowsort
SELECT DISTINCT - 80 * - 53 AS col1 FROM tab1 AS cor0
----
4240

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT DISTINCT + - 93 / CAST( NULL AS SIGNED ) - + MIN( DISTINCT + col1 ) - - COUNT( col1 ) + 49 * COUNT( * ) / COUNT( 65 / CAST( + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT + - 93 / CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT + col1 ) - - COUNT ( col1 ) + 49 * COUNT ( * ) / COUNT ( 65 / CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7646
SELECT ALL col1 DIV - 16 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL col1 / - 16 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-5
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 * + + col1 ) NOT IN ( col1 * - 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL + CAST( - - 93 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + CAST ( - - 93 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT col2 * + + 18 FROM tab2 AS cor0
----
1044
414
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT 52 - - CAST( NULL AS SIGNED ) * - + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT 52 - - CAST ( NULL AS INTEGER ) * - + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 39 + - col0 FROM tab0
----
-48
-58
24

query I rowsort
SELECT + - AVG ( col0 ) FROM tab2 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT col0 * - col0 - col0 + col1 FROM tab0
----
-159
-7635
-9505

query I rowsort
SELECT DISTINCT - col0 + + + 86 AS col0 FROM tab1
----
-5
1
35

query I rowsort
SELECT DISTINCT - 50 - col0 - + col0 + - col0 * - - 14 - - 44 AS col2 FROM tab2 AS cor0
----
-1030
-1206
-742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7657
SELECT - - COUNT( * ) + + 33 DIV + COUNT( * ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7657
SELECT - - COUNT ( * ) + + 33 / + COUNT ( * ) FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7658
SELECT - SUM( DISTINCT CAST( - - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7658
SELECT - SUM ( DISTINCT CAST ( - - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + col0 * col1 AS col2, + col1 * 83 col2 FROM tab2
----
-107916
4233
-315392
6391
-376875
5561

query I rowsort
SELECT - - col0 * + 75 FROM tab0 AS cor0
----
1125
6525
7275

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT ALL + - 2 * + - ( 8 ) DIV col2 + col2 * - - col2 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + - 2 * + - ( 8 ) / col2 + col2 * - - col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7662
SELECT - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - ( 4 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT - + col0 - - col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7666
SELECT - CAST( - ( + COUNT( * ) ) AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - - ( col1 ) FROM tab2 WHERE col1 IS NULL
----

query II rowsort
SELECT + col0 AS col2, - 95 AS col1 FROM tab0
----
15
-95
87
-95
97
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT DISTINCT + col1 DIV ( - + 84 ) FROM tab2 WHERE - - 87 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT + col1 / ( - + 84 ) FROM tab2 WHERE - - 87 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 15 + + + col0 * + col0 AS col1 FROM tab1
----
2616
7240
8296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 0 * + ( - + col1 ) * + - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 0 * + ( - + col1 ) * + - col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7672
SELECT + - COUNT( * ) + + - 9 + + COUNT( * ) AS col1, COUNT( * ) * - 3 + + 6 AS col0 FROM tab2 AS cor0
----
-9
-3

skipif mysql # not compatible
query II rowsort label-7672
SELECT + - COUNT ( * ) + + - 9 + + COUNT ( * ) AS col1, COUNT ( * ) * - 3 + + 6 AS col0 FROM tab2 AS cor0
----
-9
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT - MAX( + 85 ) FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7673
SELECT - MAX ( + 85 ) FROM tab0 AS cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7674
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col1 AND - col2 * + 19 * - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7674
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col1 AND - col2 * + 19 * - CAST ( - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7675
SELECT + CAST( NULL AS DECIMAL ) * ( 0 ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7675
SELECT + CAST ( NULL AS REAL ) * ( 0 ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7676
SELECT col0 - CAST( - col0 AS SIGNED ) FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-7676
SELECT col0 - CAST ( - col0 AS INTEGER ) FROM tab1
----
102
170
182

query I rowsort
SELECT ALL ( + + col1 ) - col2 + 34 FROM tab0 AS cor0
----
-64
45
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT 4 DIV - - 46 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT 4 / - - 46 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 * + + 37 FROM tab1
----
2183
2516
3552

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 44 * col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT col2 * + - 42 FROM tab1
----
-2478
-2856
-4032

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - 86 * + ( col2 ) - + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 62 NOT BETWEEN col0 * 98 - col1 / + 79 * + 48 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT + 87 * + + COUNT( col2 ) AS col1 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-7686
SELECT + 87 * + + COUNT ( col2 ) AS col1 FROM tab0
----
261

query II rowsort
SELECT DISTINCT - - col0 AS col1, col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT - + MIN( 13 ) FROM tab0 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT - + MIN ( 13 ) FROM tab0 cor0
----
-13

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * 36 * + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - MIN( - - 37 ) AS col1 FROM tab1 cor0 WHERE NOT + 84 / col2 + + - col2 / - col2 * - col1 IN ( - 50 + + col0 )
----
-37

skipif mysql # not compatible
query I rowsort label-7691
SELECT - MIN ( - - 37 ) AS col1 FROM tab1 cor0 WHERE NOT + 84 / col2 + + - col2 / - col2 * - col1 IN ( - 50 + + col0 )
----
-37

query I rowsort
SELECT DISTINCT - - col1 * + col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * 64 col1 FROM tab1 AS cor0
----
2880
2880
2880

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7694
SELECT ALL * FROM tab1 WHERE + + 43 + CAST( NULL AS SIGNED ) - + CAST( col1 AS SIGNED ) IN ( - 53 / ( + - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-7694
SELECT ALL * FROM tab1 WHERE + + 43 + CAST ( NULL AS INTEGER ) - + CAST ( col1 AS INTEGER ) IN ( - 53 / ( + - col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT DISTINCT 76 * SUM( DISTINCT - + 57 ) + CAST( + 10 AS SIGNED ) + - - 81 AS col0 FROM tab1
----
-4241

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT 76 * SUM ( DISTINCT - + 57 ) + CAST ( + 10 AS INTEGER ) + - - 81 AS col0 FROM tab1
----
-4241

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT DISTINCT + COUNT( + 33 ) + + 49 AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT + COUNT ( + 33 ) + + 49 AS col1 FROM tab1
----
52

query I rowsort
SELECT DISTINCT - 16 * + - col0 + - col0 AS col2 FROM tab2 AS cor0
----
1125
690
960

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT ALL COUNT( DISTINCT - + col2 ) * + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL COUNT ( DISTINCT - + col2 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT COUNT( * ) * - COUNT( * ) + - + 61 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-7699
SELECT COUNT ( * ) * - COUNT ( * ) + - + 61 FROM tab1 AS cor0
----
-70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 96 IS NULL
----

query I rowsort
SELECT DISTINCT 18 + - - 78 FROM tab0
----
96

query II rowsort
SELECT col1, - col2 AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT + CAST( - - col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7703
SELECT + CAST ( - - col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 * + col0 + + 99 FROM tab1 AS cor0
----
-326
-4178
-615

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT - col0 * + - col0 + col2 - col1 + + - col2 * col2 + + col2 DIV - col2 col2 FROM tab1 AS cor0
----
-6534
3677
3797

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7705
SELECT - col0 * + - col0 + col2 - col1 + + - col2 * col2 + + col2 / - col2 col2 FROM tab1 AS cor0
----
-6534
3677
3797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) * + AVG ( ALL col0 ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) * + AVG ( ALL col0 ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 30 + - ( col0 ) AS col1 FROM tab2
----
-105
-76
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT + col2 * - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-7708
SELECT + col2 * - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 = - col1 + - + 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col1 - + - ( - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT col0 AS col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-7712
SELECT col0 AS col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT - col0 IN ( + + col1, ( 39 ) )
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-7714
SELECT DISTINCT col0 DIV col0 AS col0, col1 FROM tab0 AS cor0
----
1
1
1
21
1
81

skipif mysql # not compatible
query II rowsort label-7714
SELECT DISTINCT col0 / col0 AS col0, col1 FROM tab0 AS cor0
----
1
1
1
21
1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7715
SELECT DISTINCT + - COUNT( * ) + + + 39 AS col1 FROM tab1 cor0 WHERE - CAST( + + 73 AS SIGNED ) IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT + - COUNT ( * ) + + + 39 AS col1 FROM tab1 cor0 WHERE - CAST ( + + 73 AS INTEGER ) IS NULL
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL - MAX( + + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL - MAX ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 60 col0 FROM tab0 AS cor0
----
60

query II rowsort
SELECT DISTINCT col0, - ( + col2 ) AS col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT - 81 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT IN ( + col1 / col1, col2 )
----

query II rowsort
SELECT - 17 + - col1 / + 58, + col0 AS col2 FROM tab2 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL col2 * - + col1 + + col1 AS col1 FROM tab0 AS cor0
----
-189
-3726
-98

query II rowsort
SELECT DISTINCT + col0 AS col0, col0 * + + 11 + + col0 FROM tab2 AS cor0
----
46
552
64
768
75
900

query I rowsort
SELECT + - 32 * 96 * + 68 + - - 8 AS col1 FROM tab1 AS cor0
----
-208888
-208888
-208888

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT - COUNT( ALL 42 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT - COUNT ( ALL 42 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 19 * + 78 AS col1 FROM tab0 AS cor0
----
1482
1482
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 18 < ( + ( - 60 ) + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 18 < ( + ( - 60 ) + - col0 )
----
0

query II rowsort
SELECT ALL - col1 AS col2, + col1 * 54 AS col0 FROM tab0 cor0
----
-1
54
-21
1134
-81
4374

query I rowsort
SELECT - 10 + 6 FROM tab1
----
-4
-4
-4

query I rowsort
SELECT ALL - + ( - col2 ) FROM tab1 WHERE NULL <= + 47
----

query I rowsort
SELECT ALL + 61 FROM tab0 WHERE - + col1 >= - 84
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7732
SELECT - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT ALL MIN( col1 ) * - - COUNT( * ) + + + 71 AS col0 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL MIN ( col1 ) * - - COUNT ( * ) + + + 71 AS col0 FROM tab1
----
86

query I rowsort
SELECT ALL - 75 * + col0 + + + col1 FROM tab0
----
-1044
-6504
-7274

query I rowsort
SELECT + 42 + + - ( + col1 ) AS col2 FROM tab0
----
-39
21
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7736
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) <> - ( + - col1 )
----

skipif mysql # not compatible
query III rowsort label-7736
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) <> - ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - 63 * + - MAX( DISTINCT + - 43 ) + + 9 FROM tab1
----
-2700

skipif mysql # not compatible
query I rowsort label-7737
SELECT - 63 * + - MAX ( DISTINCT + - 43 ) + + 9 FROM tab1
----
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT COUNT( * ) + - CAST( - COUNT( ALL + 57 ) AS SIGNED ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7738
SELECT COUNT ( * ) + - CAST ( - COUNT ( ALL + 57 ) AS INTEGER ) FROM tab2
----
6

query II rowsort
SELECT ALL + col0 + 75, ( col0 ) FROM tab2
----
121
46
139
64
150
75

query I rowsort
SELECT ALL - + 98 * col2 * - col0 + + col2 FROM tab2 AS cor0
----
103707
250920
426358

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 47 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 71, + col0 * - - col1 + col1 col1 FROM tab1 AS cor0 WHERE + col2 >= ( + col0 )
----
71
728

query II rowsort
SELECT DISTINCT - col0, 77 AS col1 FROM tab0 cor0
----
-15
77
-87
77
-97
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT - 8 - 36 * MIN( - col0 ) FROM tab0
----
3484

skipif mysql # not compatible
query I rowsort label-7744
SELECT - 8 - 36 * MIN ( - col0 ) FROM tab0
----
3484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + COUNT( - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + COUNT ( - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT col2 * - 26 + + col1 AS col2 FROM tab1
----
-1529
-1721
-2482

query I rowsort
SELECT ALL col2 + - 59 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT DISTINCT - 84 - + + COUNT( * ) * 39 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT - 84 - + + COUNT ( * ) * 39 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT ALL + CAST( - ( + - ( - 97 ) ) AS SIGNED ) FROM tab0 cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL + CAST ( - ( + - ( - 97 ) ) AS INTEGER ) FROM tab0 cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT - + COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT - 42 + + col0 <> - 73
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7750
SELECT - + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT - 42 + + col0 <> - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 55 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 55 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 6 + + 22 col0 FROM tab0 AS cor0
----
-104
-464
16

query I rowsort
SELECT ( + - 8 ) * + 83 FROM tab1
----
-664
-664
-664

onlyif mysql # DIV for integer division: 
query II rowsort label-7754
SELECT ALL - col2 DIV + ( + col1 ) AS col1, col0 + - col1 FROM tab0
----
-99
96
0
-66
0
66

skipif mysql # not compatible
query II rowsort label-7754
SELECT ALL - col2 / + ( + col1 ) AS col1, col0 + - col1 FROM tab0
----
-99
96
0
-66
0
66

onlyif mysql # DIV for integer division: 
query II rowsort label-7755
SELECT ALL + 26 DIV + 33 * + col2 * - - 24 * + col1 * + col2 AS col2, 93 + + - 84 col1 FROM tab0
----
0
9
0
9
0
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7755
SELECT ALL + 26 / + 33 * + col2 * - - 24 * + col1 * + col2 AS col2, 93 + + - 84 col1 FROM tab0
----
0
9
0
9
0
9

query I rowsort
SELECT - 29 * 61 AS col1 FROM tab1
----
-1769
-1769
-1769

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - + 60
----

query I rowsort
SELECT + 95 * - - 37 FROM tab1
----
3515
3515
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT + MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7759
SELECT + MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7760
SELECT DISTINCT - MAX( + ( 6 ) ) AS col1, 86 + ( 6 ) + - - 93 * - + 64 FROM tab1 AS cor0
----
-6
-5860

skipif mysql # not compatible
query II rowsort label-7760
SELECT DISTINCT - MAX ( + ( 6 ) ) AS col1, 86 + ( 6 ) + - - 93 * - + 64 FROM tab1 AS cor0
----
-6
-5860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col2 ) col2 FROM tab2 AS cor0 WHERE NOT + 46 <> + 88
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7762
SELECT COUNT( DISTINCT - CAST( + col0 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7762
SELECT COUNT ( DISTINCT - CAST ( + col0 AS INTEGER ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + col1 NOT IN ( + 81 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7764
SELECT ALL + + MIN( DISTINCT 63 ) / + 60 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL + + MIN ( DISTINCT 63 ) / + 60 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-7765
SELECT ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 21 )
----

query I rowsort
SELECT + 95 * + - ( - col2 ) - + + ( - col2 ) * - col0 FROM tab1 AS cor0
----
272
4224
590

onlyif mysql # aggregate syntax: 
query II rowsort label-7768
SELECT MIN( DISTINCT + - col1 ) AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-77
3

skipif mysql # not compatible
query II rowsort label-7768
SELECT MIN ( DISTINCT + - col1 ) AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-77
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + 74 + - col0 * + col2 col0 FROM tab1
----
59
-4941
68
-6114
96
-4822

query I rowsort
SELECT DISTINCT ( + col1 ) + + + col0 + - 50 AS col1 FROM tab0
----
46
48
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
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-7771
SELECT col2 / - col1 col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col0 AND + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 49 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + + col0 + + + col0 col0, - col0 - col2 * - ( - + col0 ) AS col2 FROM tab2
----
115
-1104
168
-2624
208
-4425

query I rowsort
SELECT + 37 * col1 + - 11 FROM tab2
----
1876
2468
2838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT + CAST( + - col2 AS SIGNED ) + + - 11 * col2 * - - col2 - 11 AS col0 FROM tab0 cor0
----
-107921
-1121
-24357

skipif mysql # not compatible
query I rowsort label-7776
SELECT + CAST ( + - col2 AS INTEGER ) + + - 11 * col2 * - - col2 - 11 AS col0 FROM tab0 cor0
----
-107921
-1121
-24357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col0 + + - 58 FROM tab0 AS cor0
----
-43
29
39

query I rowsort
SELECT - - 42 + + 81 AS col1 FROM tab2 AS cor0
----
123
123
123

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < + col1 * - - col2
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NOT col2 * - + col2 IS NULL
----
46
64
75

query I rowsort
SELECT ALL 9 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT - 86 DIV - col2 AS col0 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7783
SELECT - 86 / - col2 AS col0 FROM tab2 AS cor0
----
1
2
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 73
----

query I rowsort
SELECT col0 * - + ( - + 37 ) AS col1 FROM tab1 AS cor0
----
1887
3145
3367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, - col2 + - col2 FROM tab2 AS cor0
----
23
-46
40
-80
58
-116

query I rowsort
SELECT DISTINCT - col2 * + - col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + 24 * - 92 >= NULL
----

query I rowsort
SELECT DISTINCT - - 1 * col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + col2 ) * + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * + 69 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * + 98 AS col2 FROM tab1
----
-1372
-4606
-490

query II rowsort
SELECT 6 * - + col0, + col2 AS col0 FROM tab2
----
-276
23
-384
40
-450
58

query I rowsort
SELECT DISTINCT 10 * + - ( - ( - 32 ) ) AS col0 FROM tab1
----
-320

query I rowsort
SELECT DISTINCT - col1 * - - col2 * - + 90 AS col0 FROM tab1 AS cor0
----
120960
26550
287640

onlyif mysql # DIV for integer division: 
query I rowsort label-7796
SELECT - ( - + col2 ) DIV - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7796
SELECT - ( - + col2 ) / - col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7797
SELECT DISTINCT + col2 * + - ( + CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT + col2 * + - ( + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 83 * col1 FROM tab2 AS cor0
----
-4233
-5561
-6391

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT DISTINCT - 37 + + ( + 77 ) DIV 96 * - + 10 AS col2 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - 37 + + ( + 77 ) / 96 * - + 10 AS col2 FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT - COUNT( ALL - col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7800
SELECT - COUNT ( ALL - col2 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT DISTINCT COUNT( DISTINCT - 26 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT COUNT ( DISTINCT - 26 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
26

query II rowsort
SELECT DISTINCT 92, 86 AS col1 FROM tab0
----
92
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT COUNT( * ) * + 60 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-7804
SELECT COUNT ( * ) * + 60 FROM tab0
----
180

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 93 NOT BETWEEN col0 * - col1 * + col1 AND 25 + - - 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7806
SELECT DISTINCT 46 * + + col2 + col0 + - col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT 46 * + + col2 + col0 + - col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col1 * col2 AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + 16 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 <> + col2 * + col0 * - 56
----

query II rowsort
SELECT ALL + - col2, 95 * - col2 AS col0 FROM tab2 cor0
----
-23
-2185
-40
-3800
-58
-5510

query I rowsort
SELECT - + 75 + + col2 AS col0 FROM tab1 AS cor0
----
-16
-7
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ALL ( - COUNT( ALL - col2 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL ( - COUNT ( ALL - col2 ) ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7812
SELECT DISTINCT - col0 - - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT - col0 - - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE 2 IS NULL
----

query I rowsort
SELECT ALL col0 + - 12 AS col2 FROM tab2
----
34
52
63

query I rowsort
SELECT DISTINCT - + 62 + 20 + col1 FROM tab0 AS cor0 WHERE col1 < col1 + 6 + + col2
----
-21
-41
39

query I rowsort
SELECT - - col1 - + - col2 * + col1 FROM tab0 cor0
----
100
231
3888

query I rowsort
SELECT DISTINCT + 68 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
68

query I rowsort
SELECT DISTINCT + 9 * col0 AS col1 FROM tab2
----
414
576
675

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7819
SELECT * FROM tab2 WHERE NOT - col2 * + 67 * + 68 + 14 + + 49 <> + col0 / - ( + - col1 ) + 20 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7819
SELECT * FROM tab2 WHERE NOT - col2 * + 67 * + 68 + 14 + + 49 <> + col0 / - ( + - col1 ) + 20 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 72 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL > + - 1 )
----

query I rowsort
SELECT ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col2 AS col0 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * + col2 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL COUNT( * ) * 41 AS col2 FROM tab0 cor0
----
123

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL COUNT ( * ) * 41 AS col2 FROM tab0 cor0
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT DISTINCT - MAX( ALL CAST( - 8 AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT - MAX ( ALL CAST ( - 8 AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT DISTINCT - 69 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND ( - 15 )
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( ( + col0 ) ) col0, col0 - - col1 col1 FROM tab1 AS cor0
----
51
65
85
90
91
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT - MIN( + 65 ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-7830
SELECT - MIN ( + 65 ) FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT COUNT( ALL - + ( + col2 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT COUNT ( ALL - + ( + col2 ) ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - 0 * - col2 col2 FROM tab2
----
-51
0
-67
0
-77
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 * + col0 ) IS NULL
----

query II rowsort
SELECT + col0, + col1 * + 82 + 3 FROM tab1
----
51
1151
85
413
91
3857

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + 75 / + col2 + - col0 + - 83 + - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT 3 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT 3 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT - col1 DIV - 35 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7837
SELECT - col1 / - 35 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col2 * + + 10 * 24 - + ( + 69 ) AS col1 FROM tab0 AS cor0
----
-11349
-23829
-2469

query II rowsort
SELECT - - col2 AS col1, + col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT ALL + col0 + + col1 AS col0, - ( 77 ) AS col1 FROM tab1
----
138
-77
65
-77
90
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT DISTINCT + SUM( DISTINCT 39 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
39

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT + SUM ( DISTINCT 39 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7843
SELECT ALL 53 + - 42 * + + SUM( ALL + col1 ) / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL 53 + - 42 * + + SUM ( ALL + col1 ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL CAST( NULL AS SIGNED ) + 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL CAST ( NULL AS INTEGER ) + 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 93 + - + col2 - col0 FROM tab2
----
-11
-40
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL 20 * + + COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL 20 * + + COUNT ( * ) FROM tab1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7847
SELECT + - col1 DIV + + col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7847
SELECT + - col1 / + + col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

query II rowsort
SELECT + 37, - 18 + ( + col2 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT + 41 * col0, - col2 AS col0 FROM tab1 AS cor0
----
2091
-96
3485
-59
3731
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - ( - MAX( 13 ) ) col0 FROM tab1 cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7850
SELECT - ( - MAX ( 13 ) ) col0 FROM tab1 cor0
----
13

query I rowsort
SELECT ALL + 93 + + 53 * - col0 AS col0 FROM tab2 AS cor0
----
-2345
-3299
-3882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT ALL - CAST( + col0 AS SIGNED ) + + - col2 - + col2 AS col0 FROM tab1
----
-203
-227
-243

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - CAST ( + col0 AS INTEGER ) + + - col2 - + col2 AS col0 FROM tab1
----
-203
-227
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 + 64 col1 FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7854
SELECT - + 4, ( COUNT( * ) ) - 15 + - 44 AS col1 FROM tab0 AS cor0
----
-4
-56

skipif mysql # not compatible
query II rowsort label-7854
SELECT - + 4, ( COUNT ( * ) ) - 15 + - 44 AS col1 FROM tab0 AS cor0
----
-4
-56

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 + + + 84 > col0 * - + col0 + - ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT - col2 DIV + ( + + 35 ) AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7856
SELECT - col2 / + ( + + 35 ) AS col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + ( - 68 ) AS col1 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL - 43 * 39 FROM tab2 AS cor0
----
-1677
-1677
-1677

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab0 cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 19 col2 FROM tab2
----
-1102
-437
-760

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - ( - 72 ) * + 49 = col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7865
SELECT - 54, SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-54
185

skipif mysql # not compatible
query II rowsort label-7865
SELECT - 54, SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-54
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7866
SELECT DISTINCT CAST( - MIN( ALL - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT CAST ( - MIN ( ALL - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - - 88 + + ( - col0 ) FROM tab1 AS cor0 WHERE ( NOT 23 > - + col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT - 99 * + + 88 * + - col2 * - CAST( NULL AS SIGNED ) * - col0 + 50 + + - ( col1 ) / - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT - 99 * + + 88 * + - col2 * - CAST ( NULL AS INTEGER ) * - col0 + 50 + + - ( col1 ) / - col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7869
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 - - - col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL ( + 58 ) FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT + - col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL OR col2 * + col2 / + 46 <> + - 25
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT ALL CAST( + 58 AS SIGNED ) + + - col2 FROM tab2
----
0
18
35

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL CAST ( + 58 AS INTEGER ) + + - col2 FROM tab2
----
0
18
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL + COUNT( ALL col0 ) + - 31 + 3 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + COUNT ( ALL col0 ) + - 31 + 3 FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT MAX( DISTINCT + + 86 ) AS col2 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-7875
SELECT MAX ( DISTINCT + + 86 ) AS col2 FROM tab2
----
86

query I rowsort
SELECT ALL + col0 + - + 47 + - + 84 * + col2 * + col2 AS col2 FROM tab1
----
-292366
-388372
-774140

query I rowsort
SELECT + 3 - - col1 FROM tab1
----
17
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + - 22 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7878
SELECT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + - 22 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT - + MIN( ALL + 67 ) AS col2 FROM tab0 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT - + MIN ( ALL + 67 ) AS col2 FROM tab0 cor0
----
-67

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT col1 DIV + - 17 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7881
SELECT col1 / + - 17 FROM tab0 AS cor0
----
-1
-4
0

query II rowsort
SELECT DISTINCT 58, 48 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
58
48

query I rowsort
SELECT ALL - col0 * - ( - - col0 ) FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7884
SELECT - COUNT( * ) DIV + 28 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7884
SELECT - COUNT ( * ) / + 28 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - SUM( DISTINCT 71 ) col2 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7885
SELECT - SUM ( DISTINCT 71 ) col2 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT ALL + ( - - 36 ) FROM tab0 AS cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col1, 69 col0 FROM tab1 AS cor0 WHERE + 48 NOT BETWEEN NULL AND + col2
----

query II rowsort
SELECT DISTINCT col0, col1 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE col1 * - - col1 NOT IN ( + col0, col1, - 35 * + CAST( 82 AS SIGNED ) )
----
10
47

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE col1 * - - col1 NOT IN ( + col0, col1, - 35 * + CAST ( 82 AS INTEGER ) )
----
10
47

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE - + 90 NOT BETWEEN col2 AND - 59
----
10
47
99

query I rowsort
SELECT ALL - 54 + + col2 FROM tab2
----
-14
-31
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT DISTINCT - col0 * - - col2 + + CAST( + col0 AS SIGNED ) + + col0 FROM tab1
----
-4794
-4845
-6006

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT - col0 * - - col2 + + CAST ( + col0 AS INTEGER ) + + col0 FROM tab1
----
-4794
-4845
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT - COUNT( * ) FROM tab0 WHERE NOT 11 NOT IN ( - + col2 + col2, - 38, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7893
SELECT - COUNT ( * ) FROM tab0 WHERE NOT 11 NOT IN ( - + col2 + col2, - 38, col2 )
----
0

query I rowsort
SELECT - col2 + - 23 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-63
-81

query I rowsort
SELECT - col2 + - col2 * - - col1 FROM tab1 cor0
----
-1440
-3264
-354

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT ALL + ( 30 ) DIV + col1 + + 20 AS col2 FROM tab0 AS cor0
----
20
21
50

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + ( 30 ) / + col1 + + 20 AS col2 FROM tab0 AS cor0
----
20
21
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 cor0 WHERE + 75 > NULL
----

query II rowsort
SELECT - - 90 AS col1, col2 FROM tab2 AS cor0
----
90
23
90
40
90
58

query I rowsort
SELECT col2 * + 96 AS col2 FROM tab0 AS cor0
----
4512
9504
960

query I rowsort
SELECT + col0 * - 13 + - + col1 * + col2 FROM tab0 cor0
----
-1341
-1360
-4002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - ( - col2 ) + + col0 + ( + ( + - 85 ) ) * + - col1 * 19 col2 FROM tab2 cor0
----
108396
124499
82457

query I rowsort
SELECT DISTINCT col1 - - + 84 * col0 AS col2 FROM tab1 AS cor0
----
4298
7145
7691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 6 col0 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT DISTINCT MIN( ALL + - col1 ) * + - ( - MIN( - + col2 ) ) FROM tab2
----
4466

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT MIN ( ALL + - col1 ) * + - ( - MIN ( - + col2 ) ) FROM tab2
----
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT DISTINCT 21 * + 91 * COUNT( * ) FROM tab2
----
5733

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT 21 * + 91 * COUNT ( * ) FROM tab2
----
5733

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7907
SELECT DISTINCT ( + 58 ) * + COUNT( * ) AS col1, + 99 FROM tab2 WHERE - CAST( NULL AS SIGNED ) >= NULL
----
0
99

skipif mysql # not compatible
query II rowsort label-7907
SELECT DISTINCT ( + 58 ) * + COUNT ( * ) AS col1, + 99 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) >= NULL
----
0
99

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - col0 IS NOT NULL
----

query I rowsort
SELECT col2 * + + 21 AS col1 FROM tab2
----
1218
483
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7910
SELECT ALL - + CAST( - + MAX( ALL - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL - + CAST ( - + MAX ( ALL - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7911
SELECT - + 81, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-81
3

skipif mysql # not compatible
query II rowsort label-7911
SELECT - + 81, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-81
3

query I rowsort
SELECT DISTINCT - + 49 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-49

query I rowsort
SELECT DISTINCT + col1 / - col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7915
SELECT - 82 DIV - 94 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7915
SELECT - 82 / - 94 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 75 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 * col1 AS col0, + col2 FROM tab0 AS cor0
----
210
10
3807
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT + col0 DIV 56 * col2 FROM tab2 cor0
----
0
40
58

skipif mysql # not compatible
query I rowsort label-7919
SELECT + col0 / 56 * col2 FROM tab2 cor0
----
0
40
58

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( col2 ) - - col0, col1, - + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7921
SELECT - SUM( + 72 ) AS col0, + ( - 51 ) FROM tab0 AS cor0
----
-216
-51

skipif mysql # not compatible
query II rowsort label-7921
SELECT - SUM ( + 72 ) AS col0, + ( - 51 ) FROM tab0 AS cor0
----
-216
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 57 ) col1, col1 * col2 FROM tab2 AS cor0
----
57
1173
57
3080
57
3886

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND + + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + - 30 IS NULL
----

query I rowsort
SELECT + col1 + col0 + - 73 * - 89 * - col1 FROM tab0
----
-136329
-526161
-6399

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL + 69 + + ( COUNT( * ) ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL + 69 + + ( COUNT ( * ) ) FROM tab0
----
72

query I rowsort
SELECT col1 + col2 AS col1 FROM tab2 WHERE NULL BETWEEN - 77 * + - 74 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - COUNT( * ) + + 27 AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-7928
SELECT - COUNT ( * ) + + 27 AS col2 FROM tab0
----
24

query II rowsort
SELECT DISTINCT 36, col0 AS col0 FROM tab1
----
36
51
36
85
36
91

query I rowsort
SELECT + 58 + - col1 FROM tab1
----
11
44
53

query I rowsort
SELECT DISTINCT + 75 + - 98 AS col0 FROM tab2
----
-23

query I rowsort
SELECT col1 * + 8 + - col1 * col2 - - col1 FROM tab1
----
-1218
-250
-2773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7933
SELECT DISTINCT MAX( + 68 ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT MAX ( + 68 ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - 67 IS NULL
----

query I rowsort
SELECT - col0 * + col1 * 76 FROM tab2
----
-178296
-374528
-381900

query I rowsort
SELECT - - 27 AS col2 FROM tab0 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT - COUNT( * ) + + + MIN( DISTINCT col2 ) * + MIN( ALL - 5 ) FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT - COUNT ( * ) + + + MIN ( DISTINCT col2 ) * + MIN ( ALL - 5 ) FROM tab2 AS cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT + ( + - 97 ) + + MIN( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT + ( + - 97 ) + + MIN ( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE col2 * - col2 IS NULL
----

query I rowsort
SELECT ALL + - 37 AS col0 FROM tab0 cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-29

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab2 WHERE 3 + + - 20 IS NULL
----

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
95

query I rowsort
SELECT ALL - 90 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL + col0 + - col1 + - + col0 FROM tab1 AS cor0 WHERE + col2 + - + col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - col0 - col1 + - 97 FROM tab2 AS cor0
----
-194
-238
-239

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT - + 32 * - COUNT( * ) * 65 AS col2 FROM tab0 cor0
----
6240

skipif mysql # not compatible
query I rowsort label-7950
SELECT - + 32 * - COUNT ( * ) * 65 AS col2 FROM tab0 cor0
----
6240

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT 86 DIV col2 * col2 AS col0 FROM tab0
----
0
47
80

skipif mysql # not compatible
query I rowsort label-7951
SELECT 86 / col2 * col2 AS col0 FROM tab0
----
0
47
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT col1 DIV ( col2 ) * - 22 FROM tab0
----
-22
-44
0

skipif mysql # not compatible
query I rowsort label-7952
SELECT col1 / ( col2 ) * - 22 FROM tab0
----
-22
-44
0

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT - 25 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT - CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7954
SELECT - CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( - + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) = 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7957
SELECT + COUNT( * ) DIV + 59 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7957
SELECT + COUNT ( * ) / + 59 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 96 * + + 36 * + + col1 * 72 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - ( ( col0 ) ), + col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL - + 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT + 12 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 12 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT COUNT( * ) + - COUNT( * ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7962
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= 87
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL AND NOT + 57 IS NULL
----
46
64
75

query I rowsort
SELECT - col1 * - col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT - MAX( - col1 ) + + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL < - col0 / - - ( + col1 ) + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7966
SELECT DISTINCT - MAX ( - col1 ) + + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL < - col0 / - - ( + col1 ) + col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * - col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7968
SELECT ALL COUNT( * ), CAST( + - COUNT( * ) AS SIGNED ) col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7968
SELECT ALL COUNT ( * ), CAST ( + - COUNT ( * ) AS INTEGER ) col1 FROM tab1 AS cor0
----
3
-3

query I rowsort
SELECT ALL 41 + - + 25 * col2 AS col0 FROM tab0 AS cor0
----
-1134
-209
-2434

query II rowsort
SELECT DISTINCT - col1, + col0 + - 22 FROM tab0 cor0 WHERE NOT - 24 <> col1
----

query II rowsort
SELECT DISTINCT - + col2, 65 AS col2 FROM tab0 AS cor0
----
-10
65
-47
65
-99
65

query II rowsort
SELECT 82, col2 * - 44 AS col2 FROM tab0 cor0
----
82
-2068
82
-4356
82
-440

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE + col2 / + 89 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7974
SELECT ALL + - CAST( NULL AS SIGNED ) + + 3 AS col1, col1 + + - 18 - - 28 * + + col1 FROM tab2 AS cor0
----
NULL
1461
NULL
1925
NULL
2215

skipif mysql # not compatible
query II rowsort label-7974
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 3 AS col1, col1 + + - 18 - - 28 * + + col1 FROM tab2 AS cor0
----
NULL
1461
NULL
1925
NULL
2215

query I rowsort
SELECT DISTINCT col0 + + 25 + - - col0 FROM tab1
----
127
195
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT - CAST( col0 AS SIGNED ) FROM tab0 WHERE + + 82 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7976
SELECT - CAST ( col0 AS INTEGER ) FROM tab0 WHERE + + 82 IS NULL
----

query II rowsort
SELECT DISTINCT - 59 + col2 AS col2, col0 AS col2 FROM tab1
----
0
85
37
51
9
91

query I rowsort
SELECT ALL 47 * + - 23 * col0 AS col2 FROM tab0 WHERE 96 <= 18 + + + 51
----

query I rowsort
SELECT DISTINCT - 32 + + col0 + - col2 FROM tab0
----
-34
-64
45

query I rowsort
SELECT - - 60 FROM tab2 WHERE NULL IS NULL
----
60
60
60

query II rowsort
SELECT 97, col1 AS col2 FROM tab2
----
97
51
97
67
97
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT - COUNT( * ) - + COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7982
SELECT - COUNT ( * ) - + COUNT ( * ) FROM tab1 cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 25 <= 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7984
SELECT + col2 col1, + 79 FROM tab1 AS cor0 WHERE NULL = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7984
SELECT + col2 col1, + 79 FROM tab1 AS cor0 WHERE NULL = CAST ( NULL AS REAL )
----

query I rowsort
SELECT - + 23 - 72 + + - col2 FROM tab2 AS cor0
----
-118
-135
-153

query II rowsort
SELECT + 60 - + ( - 66 ), col0 FROM tab1 AS cor0
----
126
51
126
85
126
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT + 62 - + + COUNT( * ) FROM tab2 cor0
----
59

skipif mysql # not compatible
query I rowsort label-7987
SELECT + 62 - + + COUNT ( * ) FROM tab2 cor0
----
59

query I rowsort
SELECT + 65 * + - 47 FROM tab1 AS cor0
----
-3055
-3055
-3055

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT 34 * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7989
SELECT 34 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL COUNT( * ) * COUNT( + - 68 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL COUNT ( * ) * COUNT ( + - 68 ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT DISTINCT SUM( ALL 72 ) AS col1 FROM tab0 cor0
----
216

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT SUM ( ALL 72 ) AS col1 FROM tab0 cor0
----
216

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL + MIN( 84 ) AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + MIN ( 84 ) AS col1 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT - COUNT( * ) * + SUM( ALL + 31 ) col0 FROM tab2
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7995
SELECT - COUNT ( * ) * + SUM ( ALL + 31 ) col0 FROM tab2
----
-279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * - col2 * 86 col0 FROM tab0
----
-102168
-10320
-48504

query I rowsort
SELECT DISTINCT col0 * + 16 FROM tab1 cor0
----
1360
1456
816

query I rowsort
SELECT + + col2 * + + 88 / - col2 - + col1 + + ( + col1 ) - - col2 * + col1 * + + col0 * + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 97 * col2 FROM tab1
----
-5723
-6596
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT DISTINCT + COUNT( * ) * + + 98 AS col1 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT + COUNT ( * ) * + + 98 AS col1 FROM tab1 AS cor0
----
294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8001
SELECT DISTINCT + 49 DIV - COUNT( - - col2 ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT + 49 / - COUNT ( - - col2 ) FROM tab0 AS cor0
----
-16

query I rowsort
SELECT + col0 * + col1 * ( + ( col1 ) ) + + - col0 FROM tab2 cor0
----
119600
336600
379392

query I rowsort
SELECT + - 30 + col0 AS col0 FROM tab1 AS cor0
----
21
55
61

query II rowsort
SELECT DISTINCT 75 AS col2, - ( - col0 ) AS col0 FROM tab2 AS cor0
----
75
46
75
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT + 5 * COUNT( * ) + SUM( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
210

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT + 5 * COUNT ( * ) + SUM ( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL - 76 * - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1064
3572
380

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL - 76 * - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1064
3572
380

query I rowsort
SELECT DISTINCT col1 * - ( - 55 ) + + - col0 + + ( + 88 ) FROM tab0 AS cor0
----
1156
4528
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL - MAX( col2 ) + + 90 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL - MAX ( col2 ) + + 90 FROM tab2
----
32

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE + - 72 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL 31 + - + col2 FROM tab2
----
-27
-9
8

query I rowsort
SELECT ALL ( + - 36 ) + + + col0 FROM tab1
----
15
49
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT COUNT( * ) * + + MIN( ALL 88 ) AS col1 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-8012
SELECT COUNT ( * ) * + + MIN ( ALL 88 ) AS col1 FROM tab1
----
264

query III rowsort
SELECT * FROM tab2 WHERE - ( - col1 ) + + - col0 > - col0 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 17 * - 83 AS col0 FROM tab2
----
-1411
-1411
-1411

query I rowsort
SELECT - 77 + + - 32 / - col2 FROM tab2 AS cor0 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT - 63 + - ( - COUNT( * ) ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT - 63 + - ( - COUNT ( * ) ) FROM tab1
----
-60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 >= + col2
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8020
SELECT + + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8020
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col1 * + - col2 * 7 FROM tab2 AS cor0
----
-21560
-27202
-8211

query II rowsort
SELECT ALL - 27 AS col2, col1 AS col2 FROM tab0
----
-27
1
-27
21
-27
81

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - 76 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 78 FROM tab2 WHERE NOT - col1 + + + col0 > + + col2
----
-78
-78
-78

query II rowsort
SELECT col2, ( - col0 ) AS col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT + col2 DIV - + col2 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8026
SELECT + col2 / - + col2 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IN ( + ( + 90 ) )
----

skipif mysql # not compatible
query I rowsort label-8027
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IN ( + ( + 90 ) )
----

query II rowsort
SELECT ALL col1 AS col1, + 22 + - col1 - + - col1 * - 45 + + + col1 * - col2 FROM tab2
----
51
-3497
67
-6946
77
-6600

query I rowsort
SELECT - col1 + + col1 FROM tab2 WHERE NOT + - col2 <> - 73
----

query I rowsort
SELECT DISTINCT + 51 FROM tab1 AS cor0 WHERE NOT 85 IS NULL
----
51

query II rowsort
SELECT DISTINCT col2, + 11 + col2 AS col1 FROM tab1 AS cor0
----
59
70
68
79
96
107

query II rowsort
SELECT ALL + + 75 AS col0, 41 FROM tab1 AS cor0
----
75
41
75
41
75
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT DISTINCT - MAX( ALL + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT - MAX ( ALL + - col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 WHERE - ( - col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( col2 ) FROM tab2 WHERE NOT ( col0 + + col1 ) > NULL
----

query I rowsort
SELECT col2 * + 98 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT - col1 * - ( ( - col0 ) ) + + col2 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT DISTINCT 32 - ( 75 ) FROM tab2
----
-43

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( + ( + 35 ) )
----

query I rowsort
SELECT col1 - 24 AS col1 FROM tab0
----
-23
-3
57

query I rowsort
SELECT DISTINCT - col1 * ( - col2 ) AS col2 FROM tab2 WHERE ( - ( col1 ) - col2 * + 58 ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT col1 * + col1 + 79 FROM tab1
----
104
2288
275

query I rowsort
SELECT 41 * 65 AS col0 FROM tab2
----
2665
2665
2665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8044
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 15 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 15 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL ( ( 69 ) ) FROM tab2
----
69
69
69

query I rowsort
SELECT DISTINCT col0 + - col0 * 33 AS col0 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8048
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 <> ( 9 DIV - 95 + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 <> ( 9 / - 95 + col1 )
----
-3

query I rowsort
SELECT DISTINCT ( + col0 ) * col1 FROM tab2 WHERE NOT NULL = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8050
SELECT CAST( NULL AS SIGNED ) - - 64 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT CAST ( NULL AS INTEGER ) - - 64 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - + col0 * + ( col1 ) AS col1 FROM tab1
----
-4368
-510
-765

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN 56 * col0 AND ( + 63 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 >= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT ALL 5 + CAST( col0 AS SIGNED ) FROM tab2
----
51
69
80

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL 5 + CAST ( col0 AS INTEGER ) FROM tab2
----
51
69
80

query I rowsort
SELECT 75 * + col1 AS col1 FROM tab0
----
1575
6075
75

query I rowsort
SELECT 44 * + 92 FROM tab1
----
4048
4048
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT COUNT( * ) * - 90 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT COUNT ( * ) * - 90 FROM tab2
----
-270

query I rowsort
SELECT col2 * 75 AS col1 FROM tab0
----
3525
7425
750

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ( SUM( - col1 ) ) * COUNT( * ) AS col1 FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-8059
SELECT ( SUM ( - col1 ) ) * COUNT ( * ) AS col1 FROM tab2
----
-585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8060
SELECT DISTINCT - MIN( - col1 ) - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT - MIN ( - col1 ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT - 46 / + 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT MIN( 93 ) * - MAX( ALL col0 * - col2 ) + COUNT( * ) col2 FROM tab2 WHERE NOT + 42 + col1 IS NULL
----
98397

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8063
SELECT MIN ( 93 ) * - MAX ( ALL col0 * - col2 ) + COUNT ( * ) col2 FROM tab2 WHERE NOT + 42 + col1 IS NULL
----
98397

query I rowsort
SELECT ALL 16 * col1 AS col0 FROM tab2 AS cor0
----
1072
1232
816

query I rowsort
SELECT + - 31 AS col0 FROM tab2 cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT SUM( 70 ) * - 13 FROM tab1 AS cor0
----
-2730

skipif mysql # not compatible
query I rowsort label-8066
SELECT SUM ( 70 ) * - 13 FROM tab1 AS cor0
----
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT - + COUNT( - 38 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - + COUNT ( - 38 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col2 * 95 AS col1 FROM tab0 AS cor0
----
4465
9405
950

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL - MAX( ALL col2 ) * 61 FROM tab2 AS cor0
----
-3538

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL - MAX ( ALL col2 ) * 61 FROM tab2 AS cor0
----
-3538

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8071
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT + 32 >= 8 * - col1
----

skipif mysql # not compatible
query I rowsort label-8071
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT + 32 >= 8 * - col1
----

query I rowsort
SELECT DISTINCT ( + 79 ) AS col0 FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT DISTINCT SUM( + col1 ) AS col0 FROM tab0 WHERE NOT NULL = + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT SUM ( + col1 ) AS col0 FROM tab0 WHERE NOT NULL = + 28
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 >= - 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8075
SELECT col2 * - col2 + 16 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + 80 * - 15 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8075
SELECT col2 * - col2 + 16 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + 80 * - 15 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8076
SELECT ALL + COUNT( * ) DIV MAX( DISTINCT + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL + COUNT ( * ) / MAX ( DISTINCT + col2 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 6 / col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT ALL ( - col1 ) DIV col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL ( - col1 ) / col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT - COUNT( * ) FROM tab1 WHERE NOT col1 BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT - COUNT ( * ) FROM tab1 WHERE NOT col1 BETWEEN - col1 AND NULL
----
0

query I rowsort
SELECT col0 + col0 FROM tab0 WHERE NOT + col0 * 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT - + 59 * + - MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
2714

skipif mysql # not compatible
query I rowsort label-8081
SELECT - + 59 * + - MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
2714

query I rowsort
SELECT ALL 26 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query III rowsort
SELECT * FROM tab0 WHERE ( - ( 14 ) * + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - 35 NOT BETWEEN - col1 * col1 AND - col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE + - col2 + 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
81

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT - + 84 + + - COUNT( * ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT - + 84 + + - COUNT ( * ) FROM tab0 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + + 94 FROM tab2 cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8090
SELECT + - CAST( - + col1 AS SIGNED ) * col0 + col2 FROM tab1 AS cor0
----
4345
484
810

skipif mysql # not compatible
query I rowsort label-8090
SELECT + - CAST ( - + col1 AS INTEGER ) * col0 + col2 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT + ( - 37 ) * col0 AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + - ( - 88 ) FROM tab2 AS cor0
----
13
24
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL COUNT( * ) * - 95 AS col0 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL COUNT ( * ) * - 95 AS col0 FROM tab0
----
-285

query I rowsort
SELECT - 5 + + col0 * - + 84 FROM tab0
----
-1265
-7313
-8153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8096
SELECT * FROM tab1 WHERE ( + - CAST( NULL AS SIGNED ) ) <> ( - col1 * 90 )
----

skipif mysql # not compatible
query III rowsort label-8096
SELECT * FROM tab1 WHERE ( + - CAST ( NULL AS INTEGER ) ) <> ( - col1 * 90 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN ( NULL ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( + 49 * + 75 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8099
SELECT ALL * FROM tab0 WHERE ( CAST( NULL AS DECIMAL ) + col2 ) NOT IN ( + col2 * ( - col0 ) - col2 )
----

skipif mysql # not compatible
query III rowsort label-8099
SELECT ALL * FROM tab0 WHERE ( CAST ( NULL AS REAL ) + col2 ) NOT IN ( + col2 * ( - col0 ) - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 * + 78 ) IN ( + 80 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - 73 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + + col1 ) + + col1 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT - 39 * COUNT( * ) FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-8103
SELECT - 39 * COUNT ( * ) FROM tab1
----
-117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8104
SELECT ALL + 8 DIV + CAST( col2 AS SIGNED ) * - col2 + - col1 * 93 + - CAST( col0 AS SIGNED ) FROM tab2
----
-4789
-6306
-7225

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL + 8 / + CAST ( col2 AS INTEGER ) * - col2 + - col1 * 93 + - CAST ( col0 AS INTEGER ) FROM tab2
----
-4789
-6306
-7225

query I rowsort
SELECT DISTINCT + col2 * - col1 - - ( - 26 ) AS col2 FROM tab0 AS cor0
----
-125
-236
-3833

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT - + 31 - - + COUNT( * ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8106
SELECT - + 31 - - + COUNT ( * ) FROM tab0 AS cor0
----
-28

query I rowsort
SELECT ALL + 91 * - + 20 FROM tab2 cor0
----
-1820
-1820
-1820

query II rowsort
SELECT col2 AS col2, col2 + col2 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT - 54 - + + COUNT( * ) * + CAST( NULL AS SIGNED ) + - - 70 * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT - 54 - + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - - 70 * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 + 14 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT ALL + 91 + - 42 DIV 76 col2 FROM tab1 AS cor0 WHERE NOT ( + col2 < - col2 )
----
91
91
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8111
SELECT ALL + 91 + - 42 / 76 col2 FROM tab1 AS cor0 WHERE NOT ( + col2 < - col2 )
----
91
91
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8112
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 > ( + CAST( NULL AS DECIMAL ) - + col1 + col0 )
----

skipif mysql # not compatible
query III rowsort label-8112
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 > ( + CAST ( NULL AS REAL ) - + col1 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 col2 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT COUNT( - 21 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) NOT IN ( 48 )
----
0

skipif mysql # not compatible
query I rowsort label-8114
SELECT COUNT ( - 21 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) NOT IN ( 48 )
----
0

query I rowsort
SELECT DISTINCT + 73 + - 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
35

query I rowsort
SELECT DISTINCT + + ( - - 91 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

query I rowsort
SELECT DISTINCT + - 85 AS col0 FROM tab0 AS cor0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8118
SELECT DISTINCT + - COUNT( * ) * 38 DIV COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT + - COUNT ( * ) * 38 / COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
-38

query I rowsort
SELECT DISTINCT 95 * col2 + - 79 + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
5531
6428
9055

query I rowsort
SELECT ALL - col0 * - col2 * + col1 * - col1 - - + col1 FROM tab0 cor0
----
-383649
-4625424
-9602

onlyif mysql # DIV for integer division: 
query I rowsort label-8121
SELECT ALL - - col1 DIV - + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - - col1 / - + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col2 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT ALL + col2 * + 24 AS col2 FROM tab1
----
1416
1632
2304

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col1 / - + col1 * - + 13 + + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8125
SELECT CAST( NULL AS SIGNED ), + col0 AS col2, col1 FROM tab1
----
9 values hashing to b0e5cd3088d29f86d8f55d9d4ec00f4e

skipif mysql # not compatible
query III rowsort label-8125
SELECT CAST ( NULL AS INTEGER ), + col0 AS col2, col1 FROM tab1
----
9 values hashing to b0e5cd3088d29f86d8f55d9d4ec00f4e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8126
SELECT DISTINCT col2, + CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8126
SELECT DISTINCT col2, + CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT DISTINCT COUNT( * ) * - ( 91 ) col0 FROM tab1
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8127
SELECT DISTINCT COUNT ( * ) * - ( 91 ) col0 FROM tab1
----
-273

query II rowsort
SELECT ALL - - col2, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 * - col0 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT DISTINCT - 63 DIV - col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT - 63 / - col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8131
SELECT COUNT( * ) + - + COUNT( * ) AS col1, + 8 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query II rowsort label-8131
SELECT COUNT ( * ) + - + COUNT ( * ) AS col1, + 8 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT 14 + + 6 AS col0 FROM tab0
----
20
20
20

query I rowsort
SELECT ALL + col1 * col2 + + col0 + - 50 AS col0 FROM tab1
----
1345
3237
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8134
SELECT col0 * + CAST( 99 AS SIGNED ) + col2 FROM tab1 AS cor0
----
5145
8474
9077

skipif mysql # not compatible
query I rowsort label-8134
SELECT col0 * + CAST ( 99 AS INTEGER ) + col2 FROM tab1 AS cor0
----
5145
8474
9077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8135
SELECT col2 - + - CAST( NULL AS SIGNED ) + col0 * - 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT col2 - + - CAST ( NULL AS INTEGER ) + col0 * - 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8136
SELECT - SUM( + col0 ) + + 12 AS col2 FROM tab0 AS cor0 WHERE 19 IN ( - col0, - col1 * + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT - SUM ( + col0 ) + + 12 AS col2 FROM tab0 AS cor0 WHERE 19 IN ( - col0, - col1 * + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT col0 * col1 * - 58 * + 20 - + + col1 AS col2 FROM tab1 AS cor0
----
-493005
-4961367
-828254

query II rowsort
SELECT DISTINCT - 41 AS col0, col1 FROM tab1
----
-41
14
-41
47
-41
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + + 71 + - col2 + col1 * + ( + col2 ) * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 FROM tab2 WHERE col0 NOT BETWEEN + + col2 + + + ( - + 51 ) AND NULL
----

query II rowsort
SELECT col2 * - col0 + - - 38, - 34 * col2 + col1 AS col0 FROM tab1
----
-4858
-3250
-4977
-2001
-6150
-2265

query I rowsort
SELECT col2 * - - col1 + - + 90 AS col2 FROM tab1
----
1254
205
3106

query II rowsort
SELECT col2 AS col1, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL - + SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL - + SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-8145
SELECT DISTINCT 93 * + + COUNT( * ) * + 65 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
18135
-3

skipif mysql # not compatible
query II rowsort label-8145
SELECT DISTINCT 93 * + + COUNT ( * ) * + 65 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
18135
-3

query I rowsort
SELECT 8 AS col0 FROM tab2 WHERE NOT NULL IN ( - col1 * 72 + 6 )
----

query I rowsort
SELECT + 50 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT + - ( - COUNT( * ) ) * + - 82 + - 18 AS col1 FROM tab1 cor0
----
-264

skipif mysql # not compatible
query I rowsort label-8148
SELECT + - ( - COUNT ( * ) ) * + - 82 + - 18 AS col1 FROM tab1 cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT - 37 * - COUNT( * ) col1 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8149
SELECT - 37 * - COUNT ( * ) col1 FROM tab0 AS cor0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT - 81 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - - ( - - col1 ) IS NULL OR NOT CAST( 84 AS SIGNED ) + - - CAST( ( col1 ) AS SIGNED ) NOT BETWEEN ( NULL ) AND ( col2 * - col1 )
----
-34
-67
-76

skipif mysql # not compatible
query I rowsort label-8150
SELECT - 81 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - - ( - - col1 ) IS NULL OR NOT CAST ( 84 AS INTEGER ) + - - CAST ( ( col1 ) AS INTEGER ) NOT BETWEEN ( NULL ) AND ( col2 * - col1 )
----
-34
-67
-76

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE - col2 + - col0 + - col0 = + + ( + 49 ) - - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / col0 + - 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 88 * - + col2 / col1, col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8154
SELECT - col2 + col0 DIV + - col1 FROM tab1
----
-69
-76
-99

skipif mysql # not compatible
query I rowsort label-8154
SELECT - col2 + col0 / + - col1 FROM tab1
----
-69
-76
-99

query I rowsort
SELECT ALL - ( col0 ) + - col1 AS col0 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL 27 * - - 59 * - + COUNT( ALL - col2 ) AS col2 FROM tab2
----
-4779

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL 27 * - - 59 * - + COUNT ( ALL - col2 ) AS col2 FROM tab2
----
-4779

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * + col1 + + 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8158
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8158
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT 97 * - col1 + + - col0, col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE - ( 76 ) <> NULL
----

query II rowsort
SELECT + - col2 AS col1, + ( - 4 ) FROM tab2 AS cor0 WHERE - col0 * + col0 BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL + + 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT - col0 + - col2 * + + col1 AS col2 FROM tab1
----
-1395
-3287
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT ALL + 84 * + col1 AS col2 FROM tab0 WHERE - - col0 * + + col2 NOT BETWEEN + - 47 * + col2 * + - col2 + - - 53 + - CAST( NULL AS SIGNED ) + CAST( + 39 AS SIGNED ) + - 23 * - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + 84 * + col1 AS col2 FROM tab0 WHERE - - col0 * + + col2 NOT BETWEEN + - 47 * + col2 * + - col2 + - - 53 + - CAST ( NULL AS INTEGER ) + CAST ( + 39 AS INTEGER ) + - 23 * - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT - CAST( + - 53 AS SIGNED ) * + AVG ( ALL 13 ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT - CAST ( + - 53 AS INTEGER ) * + AVG ( ALL 13 ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT - + CAST( NULL AS SIGNED ) + + - 6 * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT - + CAST ( NULL AS INTEGER ) + + - 6 * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT + COUNT( * ) * + 10 + - - 94 AS col1 FROM tab1 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-8167
SELECT + COUNT ( * ) * + 10 + - - 94 AS col1 FROM tab1 AS cor0
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8168
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 <> ( - col1 * + col0 + - - CAST( NULL AS SIGNED ) - + col2 )
----

skipif mysql # not compatible
query III rowsort label-8168
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 <> ( - col1 * + col0 + - - CAST ( NULL AS INTEGER ) - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + col2 ) col0, + col1 AS col0 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT 21 - 62 + 63 + + col1 AS col0 FROM tab0
----
103
23
43

onlyif mysql # DIV for integer division: 
query II rowsort label-8171
SELECT + 65 DIV + col2 AS col0, col1 AS col1 FROM tab2
----
1
67
1
77
2
51

skipif mysql # not compatible
query II rowsort label-8171
SELECT + 65 / + col2 AS col0, col1 AS col1 FROM tab2
----
1
67
1
77
2
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8172
SELECT ALL 31 DIV - + CAST( - ( - COUNT( * ) ) AS SIGNED ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL 31 / - + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) FROM tab1
----
-10

query II rowsort
SELECT DISTINCT + 6 - - 20 AS col1, - 79 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
26
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT CAST( - + ( + col1 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col2 / + col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-8174
SELECT CAST ( - + ( + col1 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 / + col0 = NULL
----

query I rowsort
SELECT ALL - col1 * + - 73 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query II rowsort label-8176
SELECT - 46, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-46
3

skipif mysql # not compatible
query II rowsort label-8176
SELECT - 46, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-46
3

query II rowsort
SELECT + col0 AS col1, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT - 74 FROM tab0 AS cor0 WHERE NOT col0 - - - 61 NOT BETWEEN col0 + + 70 + - CAST( col2 AS SIGNED ) / - + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8178
SELECT - 74 FROM tab0 AS cor0 WHERE NOT col0 - - - 61 NOT BETWEEN col0 + + 70 + - CAST ( col2 AS INTEGER ) / - + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 35 ) col1 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT - COUNT( * ) * + - 11 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8180
SELECT - COUNT ( * ) * + - 11 FROM tab1 AS cor0
----
33

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 + - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT ALL - col0 DIV + 83 + + col1 AS col1 FROM tab0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - col0 / + 83 + + col1 AS col1 FROM tab0
----
0
20
81

query I rowsort
SELECT ALL + col0 * + ( - col2 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT DISTINCT - COUNT( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) + + 27 * 54 AS col2 FROM tab0
----
1458

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT - COUNT ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) + + 27 * 54 AS col2 FROM tab0
----
1458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT - + col0 * + - CAST( - col2 AS SIGNED ) + - col1 * + + col1 FROM tab1 AS cor0
----
-5040
-5092
-8397

skipif mysql # not compatible
query I rowsort label-8185
SELECT - + col0 * + - CAST ( - col2 AS INTEGER ) + - col1 * + + col1 FROM tab1 AS cor0
----
-5040
-5092
-8397

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col0 + + 0 + - col1
----

query I rowsort
SELECT + - ( + col0 ) + + + 17 AS col1 FROM tab2 cor0
----
-29
-47
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL - 80 * + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-720

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL - 80 * + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT COUNT( * ) * - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-8189
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-81

query I rowsort
SELECT ALL col2 - col1 + + 11 * col1 FROM tab1
----
109
236
538

query I rowsort
SELECT DISTINCT + col1 - 85 + + col2 AS col1 FROM tab0 AS cor0
----
-54
15
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8192
SELECT - col0 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT - col0 - + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 0 - col2 + col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL - col0 * + 40 AS col0 FROM tab0 AS cor0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL COUNT( DISTINCT - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL COUNT ( DISTINCT - col0 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT + col2 AS col1 FROM tab2 WHERE NOT ( + CAST( + col2 AS SIGNED ) ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8196
SELECT + col2 AS col1 FROM tab2 WHERE NOT ( + CAST ( + col2 AS INTEGER ) ) < ( NULL )
----

query II rowsort
SELECT DISTINCT 61, + 79 AS col2 FROM tab2
----
61
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT 0 * - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8198
SELECT 0 * - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT ( - - 18 ) * ( - 57 ) AS col0 FROM tab0
----
-1026

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - 45 + - 23 NOT IN ( - + col2 * + col0 + - col2 + + 20 )
----

query I rowsort
SELECT ALL + 80 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8203
SELECT + - COUNT( * ) - - 50 DIV + 75 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8203
SELECT + - COUNT ( * ) - - 50 / + 75 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT + + ( + col1 ) * + col0 * - 97 FROM tab1 AS cor0
----
-41225
-414869
-69258

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT - + COUNT( + + col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8205
SELECT - + COUNT ( + + col2 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 55 * col0 AS col1 FROM tab2 AS cor0
----
2530
3520
4125

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND col0
----
1

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT ALL + 92 + ( + ( COUNT( * ) ) ) + + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + 92 + ( + ( COUNT ( * ) ) ) + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8209
SELECT DISTINCT - col2 + + col1 DIV col2 AS col2 FROM tab2 cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT - col2 + + col1 / col2 AS col2 FROM tab2 cor0
----
-21
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT - - MIN( ALL 64 ) AS col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT - - MIN ( ALL 64 ) AS col1 FROM tab0 AS cor0
----
64

query I rowsort
SELECT col0 + + - 2 FROM tab1
----
49
83
89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( ( + col1 ) + + + col0 )
----

query I rowsort
SELECT ALL 95 FROM tab0 WHERE + 29 NOT IN ( 41 )
----
95
95
95

query I rowsort
SELECT - 47 + 95 AS col2 FROM tab2
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8215
SELECT DISTINCT - col1 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT - col1 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT 12 AS col0, + 85 FROM tab2
----
12
85
12
85
12
85

query II rowsort
SELECT + 20, ( - 24 ) AS col2 FROM tab2
----
20
-24
20
-24
20
-24

query II rowsort
SELECT ALL + 65, col1 AS col0 FROM tab2 AS cor0
----
65
51
65
67
65
77

query II rowsort
SELECT DISTINCT 60, - col2 + col0 AS col0 FROM tab0 AS cor0
----
60
-2
60
-32
60
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL + + 27 - + ( 54 ) FROM tab1 cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - - 30 - - col1 - + + col0 AS col2 FROM tab0 AS cor0
----
-36
-66
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 93 - + + col0 * - + col2 * - - 47 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 - + 13 < col2
----

query II rowsort
SELECT DISTINCT - - ( - col2 ) * - col0 * col2, col2 AS col0 FROM tab0 AS cor0
----
33135
47
8700
10
950697
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 22 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 + + 25 NOT IN ( + col1, ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 80 * - col0 FROM tab2
----
-3680
-5120
-6000

query I rowsort
SELECT ALL - col0 * + - col0 AS col0 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8230
SELECT DISTINCT - CAST( + 29 AS SIGNED ) DIV + col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT - CAST ( + 29 AS INTEGER ) / + col0 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * + col2 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * - - 64 col2 FROM tab1
----
5440
5440
5440

query I rowsort
SELECT ALL - + 98 * + + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-69090
-85260
-941094

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT COUNT( * ) * - - ( + ( 68 ) ) FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT COUNT ( * ) * - - ( + ( 68 ) ) FROM tab0 AS cor0
----
204

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col2 + 80 + + col2
----

query I rowsort
SELECT 92 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query II rowsort
SELECT ALL - + col0, + col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT - col2 * - - col1 AS col1 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8239
SELECT ALL - + col2 AS col1, 36 + - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-8239
SELECT ALL - + col2 AS col1, 36 + - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT col1 * - 49 * - col2 AS col0 FROM tab1 AS cor0
----
14455
156604
65856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8241
SELECT + - SUM( col1 ) DIV 92 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8241
SELECT + - SUM ( col1 ) / 92 AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8242
SELECT + 75 AS col1, + col1 + 94 + 15 DIV col0 FROM tab2 AS cor0
----
75
145
75
161
75
171

skipif mysql # not compatible
query II rowsort label-8242
SELECT + 75 AS col1, + col1 + 94 + 15 / col0 FROM tab2 AS cor0
----
75
145
75
161
75
171

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + - col2 AND NULL
----

query II rowsort
SELECT - col1 + + col1 AS col2, 25 + + col2 AS col2 FROM tab1
----
0
121
0
84
0
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT DISTINCT - SUM( col2 ) + + 63 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - SUM ( col2 ) + + 63 FROM tab0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT + + 71 * + + ( + col0 ) + - CAST( NULL AS SIGNED ) + - - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8246
SELECT + + 71 * + + ( + col0 ) + - CAST ( NULL AS INTEGER ) + - - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8247
SELECT col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8247
SELECT col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT - 40 + - - col1 AS col1 FROM tab0 AS cor0
----
-19
-39
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 9 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8250
SELECT - CAST( NULL AS SIGNED ) * + - 8 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT - CAST ( NULL AS INTEGER ) * + - 8 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8251
SELECT - CAST( NULL AS SIGNED ) * - col2 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT - CAST ( NULL AS INTEGER ) * - col2 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 * 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT - SUM( - 33 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8253
SELECT - SUM ( - 33 ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT - + MIN( ALL + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8254
SELECT - + MIN ( ALL + col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT DISTINCT CAST( + - col0 AS SIGNED ) * 92 * + - col1 AS col2 FROM tab1 AS cor0
----
39100
393484
65688

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) * 92 * + - col1 AS col2 FROM tab1 AS cor0
----
39100
393484
65688

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 < NULL
----

query I rowsort
SELECT DISTINCT - + 64 * + 22 - - - col0 * - 62 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
-304909
-312253
-384973

query II rowsort
SELECT + 88 AS col0, - 68 FROM tab0 cor0
----
88
-68
88
-68
88
-68

query II rowsort
SELECT 36, + col2 FROM tab1 AS cor0
----
36
59
36
68
36
96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + - col2 * + col0 * + + 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT ALL + CAST( - 11 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + CAST ( - 11 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 86 * 58 * - - 37 AS col1, col2 col1 FROM tab2 AS cor0
----
184556
23
184556
40
184556
58

query III rowsort
SELECT ALL * FROM tab2 WHERE - 16 * + - col0 * + 79 + - 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT + COUNT( DISTINCT + 81 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + COUNT ( DISTINCT + 81 ) AS col1 FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - 8 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - + col1 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT - - 5 * - col1 * - + col1 * + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8267
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - - 5 * - col1 * - + col1 * + col1 IS NULL
----
3

query I rowsort
SELECT ALL + 89 * + col1 AS col0 FROM tab1
----
1246
4183
445

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + ( - - 57 ) BETWEEN - col2 * + + col2 * - col0 AND - - 98 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 67 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8271
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) * + col1 + - col0 + - + CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-8271
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) * + col1 + - col0 + - + CAST ( NULL AS REAL ) >= NULL
----

query I rowsort
SELECT ALL + col2 + + 13 FROM tab0 cor0
----
112
23
60

query II rowsort
SELECT ALL col0 + - ( - - col0 ) - col1 * + col2 AS col1, 89 FROM tab2
----
-1173
89
-3080
89
-3886
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL - COUNT( ALL 99 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - COUNT ( ALL 99 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8276
SELECT + col0 + col0 + + + ( - col2 ) DIV - + ( + col1 ) AS col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-8276
SELECT + col0 + col0 + + + ( - col2 ) / - + ( + col1 ) AS col0 FROM tab2 AS cor0
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col1, + col0 col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) + - + col0 + + col1 * 80 FROM tab0
----
-114
1506
6450

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) + - + col0 + + col1 * 80 FROM tab0
----
-114
1506
6450

query I rowsort
SELECT DISTINCT - 83 + - col0 FROM tab2
----
-129
-147
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT SUM( + col2 ) * - 53 FROM tab0
----
-8268

skipif mysql # not compatible
query I rowsort label-8280
SELECT SUM ( + col2 ) * - 53 FROM tab0
----
-8268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8281
SELECT + CAST( - MAX( DISTINCT + col1 ) AS SIGNED ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8281
SELECT + CAST ( - MAX ( DISTINCT + col1 ) AS INTEGER ) FROM tab1
----
-47

query I rowsort
SELECT 52 FROM tab1 WHERE - - col1 * + 33 IS NOT NULL
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8283
SELECT + col2 DIV + - CAST( col1 AS SIGNED ) * 15 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8283
SELECT + col2 / + - CAST ( col1 AS INTEGER ) * 15 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + 8 - 6 * + 81 AS col0 FROM tab0 AS cor0
----
-478
-478
-478

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE + 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT DISTINCT + COUNT( ALL - col1 ) * + 84 + - COUNT( * ) + + SUM( - col2 ) col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8286
SELECT DISTINCT + COUNT ( ALL - col1 ) * + 84 + - COUNT ( * ) + + SUM ( - col2 ) col1 FROM tab0 AS cor0
----
93

query II rowsort
SELECT col2 * - + col1 AS col0, - 66 AS col1 FROM tab2
----
-1173
-66
-3080
-66
-3886
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8288
SELECT DISTINCT + + MAX( - - col2 ) DIV + COUNT( * ) FROM tab1 WHERE ( NOT + col0 > 96 * + col2 + + col1 )
----
32

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT + + MAX ( - - col2 ) / + COUNT ( * ) FROM tab1 WHERE ( NOT + col0 > 96 * + col2 + + col1 )
----
32

query I rowsort
SELECT DISTINCT - 59 * col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3481
-4012
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT DISTINCT COUNT( * ) * + 82 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT COUNT ( * ) * + 82 FROM tab1
----
246

onlyif mysql # DIV for integer division: 
query II rowsort label-8291
SELECT + 19, - col0 + - col2 DIV - col1 + - + 99 AS col2 FROM tab0
----
19
-114
19
-186
19
-97

skipif mysql # not compatible
query II rowsort label-8291
SELECT + 19, - col0 + - col2 / - col1 + - + 99 AS col2 FROM tab0
----
19
-114
19
-186
19
-97

query I rowsort
SELECT + col2 * - + col0 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8293
SELECT ALL MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT - CAST( + col0 AS SIGNED ) * - col2 AS col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-8294
SELECT - CAST ( + col0 AS INTEGER ) * - col2 AS col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - col1 * - col1 * + col0 + + - col1 AS col2 FROM tab1 AS cor0
----
200972
2120
9982

query I rowsort
SELECT DISTINCT + + 38 * col0 FROM tab0 AS cor0
----
3306
3686
570

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT + SUM( col0 ) + 17 + - - COUNT( * ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-8297
SELECT + SUM ( col0 ) + 17 + - - COUNT ( * ) FROM tab0 AS cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT - MIN( DISTINCT + + col0 ) + + ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8298
SELECT - MIN ( DISTINCT + + col0 ) + + ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8299
SELECT COUNT( * ) * + COUNT( * ) + MAX( + - col1 ), - 5 AS col1 FROM tab1 AS cor0
----
4
-5

skipif mysql # not compatible
query II rowsort label-8299
SELECT COUNT ( * ) * + COUNT ( * ) + MAX ( + - col1 ), - 5 AS col1 FROM tab1 AS cor0
----
4
-5

query II rowsort
SELECT DISTINCT - - 28 / - col2 AS col2, 75 AS col2 FROM tab1 AS cor0 WHERE 87 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8301
SELECT 20 * - SUM( DISTINCT - col2 ) * CAST( NULL AS DECIMAL ) * - + COUNT( * ) - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 53 + col0 AND - col0 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT 20 * - SUM ( DISTINCT - col2 ) * CAST ( NULL AS REAL ) * - + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 53 + col0 AND - col0 * - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE ( + col2 ) + - col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8302
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE ( + col2 ) + - col0 <> NULL
----
0

query I rowsort
SELECT ALL - 64 * + col0 AS col2 FROM tab2 cor0
----
-2944
-4096
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + MAX( 50 ) AS col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8304
SELECT + MAX ( 50 ) AS col0 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT ( + ( - 24 ) ) * + + COUNT( * ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT ( + ( - 24 ) ) * + + COUNT ( * ) FROM tab1 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8306
SELECT 25 * + col2, - col1 * - CAST( 92 AS SIGNED ) - + CAST( col0 AS SIGNED ) + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
1000
2092
1450
1064
575
2300

skipif mysql # not compatible
query II rowsort label-8306
SELECT 25 * + col2, - col1 * - CAST ( 92 AS INTEGER ) - + CAST ( col0 AS INTEGER ) + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
1000
2092
1450
1064
575
2300

query I rowsort
SELECT ALL + + col1 * - - col0 - + + col0 + + - col0 AS col2 FROM tab2 AS cor0
----
2254
4800
4875

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8308
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - ( + + col2 ) + - + col1 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT COUNT( 26 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT COUNT ( 26 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL < col2 + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8313
SELECT + 89 DIV COUNT( * ) col1 FROM tab0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8313
SELECT + 89 / COUNT ( * ) col1 FROM tab0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8314
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col0 ) > + CAST( NULL AS SIGNED ) + + 72 + + 92
----

skipif mysql # not compatible
query III rowsort label-8314
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col0 ) > + CAST ( NULL AS INTEGER ) + + 72 + + 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col0 FROM tab0 cor0
----
-75
-75
-75

query I rowsort
SELECT + 72 + + ( + 49 ) * - 8 AS col1 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8317
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-8317
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) * col2
----

query II rowsort
SELECT ALL - col1, col0 - + col0 AS col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, - 29 + + - col2 AS col2 FROM tab1 AS cor0
----
-14
-125
-47
-97
-5
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT - col1 DIV col1 + col0 - - 55 + - 19 AS col0 FROM tab2
----
110
81
99

skipif mysql # not compatible
query I rowsort label-8320
SELECT - col1 / col1 + col0 - - 55 + - 19 AS col0 FROM tab2
----
110
81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL - SUM( DISTINCT 55 ) FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - SUM ( DISTINCT 55 ) FROM tab1
----
-55

query I rowsort
SELECT DISTINCT col0 + - col0 - ( - col2 ) + - col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 94 * 25 * - - col0 * - + col2 AS col2 FROM tab0
----
-1656750
-2044500
-22567050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + - col0 / + 76 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + - col0 / + 76 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL + SUM( - - col2 ) * + COUNT( * ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + SUM ( - - col2 ) * + COUNT ( * ) FROM tab0 AS cor0
----
468

query I rowsort
SELECT DISTINCT + 41 * - 19 FROM tab2 AS cor0
----
-779

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT MAX( + + col2 ) + - + 60 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-8328
SELECT MAX ( + + col2 ) + - + 60 FROM tab2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT + col2 + - CAST( NULL AS SIGNED ) + + 70 * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT + col2 + - CAST ( NULL AS INTEGER ) + + 70 * - col0 FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT - col0, - col2 + + - col2 / - - col0 AS col1 FROM tab1 cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT COUNT( * ) + - MAX( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8332
SELECT COUNT ( * ) + - MAX ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8333
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8333
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + col0 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE - col1 * + col2 * - col0 + - col2 * - + col1 + + col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT + SUM( - + ( + col2 ) ) + + 43 * COUNT( * ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8335
SELECT + SUM ( - + ( + col2 ) ) + + 43 * COUNT ( * ) FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL + MAX( ALL + - 89 ) FROM tab2 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + MAX ( ALL + - 89 ) FROM tab2 cor0
----
-89

query II rowsort
SELECT DISTINCT - - col1 AS col0, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - ( + col2 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - ( + col2 ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT 0 * + MIN( + - ( - col2 ) ) * + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT 0 * + MIN ( + - ( - col2 ) ) * + COUNT ( * ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT 11 DIV - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8341
SELECT 11 / - col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL SUM( DISTINCT + col2 ) * + + COUNT( * ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL SUM ( DISTINCT + col2 ) * + + COUNT ( * ) FROM tab2
----
363

query II rowsort
SELECT DISTINCT - 38 - + 46 AS col2, + col1 FROM tab0
----
-84
1
-84
21
-84
81

query I rowsort
SELECT col2 - ( 5 ) FROM tab1
----
54
63
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8345
SELECT DISTINCT col0 + col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
144
NULL
147
NULL
159
NULL

skipif mysql # not compatible
query II rowsort label-8345
SELECT DISTINCT col0 + col2, CAST ( NULL AS REAL ) AS col1 FROM tab1
----
144
NULL
147
NULL
159
NULL

query I rowsort
SELECT ALL - 47 * - 97 AS col1 FROM tab0 AS cor0
----
4559
4559
4559

query I rowsort
SELECT - - 40 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT DISTINCT SUM( - 71 ) FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT SUM ( - 71 ) FROM tab1 AS cor0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) * - + 85 AS col1 FROM tab1
----
-4335
-7225
-7735

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) * - + 85 AS col1 FROM tab1
----
-4335
-7225
-7735

query I rowsort
SELECT + 67 * + + col1 AS col0 FROM tab1
----
3149
335
938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT + 30 + 81 FROM tab1 WHERE NOT - 20 + col2 > - - col0
----
111
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8354
SELECT ALL + col0, + col1 + CAST( NULL AS SIGNED ) + col0 * - - 66 - 42 col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8354
SELECT ALL + col0, + col1 + CAST ( NULL AS INTEGER ) + col0 * - - 66 - 42 col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8355
SELECT DISTINCT + 70 * - + col0 + + + CAST( NULL AS SIGNED ) * - 45, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8355
SELECT DISTINCT + 70 * - + col0 + + + CAST ( NULL AS INTEGER ) * - 45, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8356
SELECT ALL 77 AS col0, ( - COUNT( * ) ) col1 FROM tab0
----
77
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8356
SELECT ALL 77 AS col0, ( - COUNT ( * ) ) col1 FROM tab0
----
77
-3

query I rowsort
SELECT + - 15 + + - 99 AS col0 FROM tab0 AS cor0
----
-114
-114
-114

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + - col0 <= col2 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col2 AS col0, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT - + CAST( NULL AS SIGNED ) + - col0 - + ( col0 ) AS col0 FROM tab0 WHERE NULL < - col1
----

skipif mysql # not compatible
query I rowsort label-8360
SELECT - + CAST ( NULL AS INTEGER ) + - col0 - + ( col0 ) AS col0 FROM tab0 WHERE NULL < - col1
----

query I rowsort
SELECT - col1 * + ( - col1 ) * + col1 AS col1 FROM tab1
----
103823
125
2744

query I rowsort
SELECT DISTINCT + 71 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT - + SUM( + 42 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-378

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT - + SUM ( + 42 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-378

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8364
SELECT + CAST( - col0 AS DECIMAL ) col2 FROM tab1 AS cor0 WHERE - ( + 79 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8364
SELECT + CAST ( - col0 AS REAL ) col2 FROM tab1 AS cor0 WHERE - ( + 79 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8365
SELECT ALL - CAST( - MAX( - 4 ) AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL - CAST ( - MAX ( - 4 ) AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8366
SELECT COUNT( * ) - + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT COUNT ( * ) - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 - + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL - 67 * + + col0 * - col1 - - col2 AS col0 FROM tab1 AS cor0
----
28534
286627
47934

query I rowsort
SELECT - + 5 - col1 AS col2 FROM tab2 AS cor0
----
-56
-72
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - 22 col0 FROM tab2 AS cor0
----
1276
506
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8371
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8372
SELECT * FROM tab1 WHERE NOT - - col2 + CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8372
SELECT * FROM tab1 WHERE NOT - - col2 + CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * + ( col0 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ( - col0 ) AS col1 FROM tab2 WHERE NOT col1 NOT IN ( - col2 )
----

query I rowsort
SELECT - col2 + + + col1 FROM tab2 WHERE NOT + - col0 NOT IN ( - col2 )
----

query II rowsort
SELECT - + col1 AS col1, + col1 + + col2 AS col0 FROM tab0 AS cor0
----
-1
100
-21
31
-81
128

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL + COUNT( * ) + + ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL + COUNT ( * ) + + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT - 63 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT ALL - col2 * - ( + + 27 ) FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - + MAX( - col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8381
SELECT - + MAX ( - col0 ) FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT - ( + - MAX( ALL + + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT - ( + - MAX ( ALL + + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - ( + 35 ) AS col2 FROM tab1 AS cor0
----
24
33
61

query I rowsort
SELECT AVG ( ALL + + 59 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT 28 + COUNT( * ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT 28 + COUNT ( * ) FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT COUNT( ALL + - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT COUNT ( ALL + - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8387
SELECT COUNT( * ) + - SUM( - col1 ), 39 AS col1 FROM tab2
----
198
39

skipif mysql # not compatible
query II rowsort label-8387
SELECT COUNT ( * ) + - SUM ( - col1 ), 39 AS col1 FROM tab2
----
198
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8388
SELECT + col1 AS col1, - col1 * + - ( - - CAST( NULL AS SIGNED ) ) + 90 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8388
SELECT + col1 AS col1, - col1 * + - ( - - CAST ( NULL AS INTEGER ) ) + 90 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8389
SELECT DISTINCT 51 * SUM( - + 27 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT 51 * SUM ( - + 27 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT + COUNT( + - 83 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8390
SELECT + COUNT ( + - 83 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL col0 - + 93 FROM tab1 AS cor0 WHERE NOT ( - 88 ) < ( 95 )
----

query I rowsort
SELECT ALL + + 73 + + 86 FROM tab2 AS cor0
----
159
159
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 0 col0 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT DISTINCT + 91 DIV - col1 + - col1 + - - col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT + 91 / - col1 + - col1 + - - col1 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT CAST( NULL AS SIGNED ) + - ( + col2 ) + + col1 * + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT CAST ( NULL AS INTEGER ) + - ( + col2 ) + + col1 * + - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - - col0 * + col1 + - ( col1 ) FROM tab0 AS cor0
----
158928
18144
9408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8397
SELECT ALL * FROM tab0 AS cor0 WHERE + 78 + col2 <> + + 41 * + ( 22 ) * + 21 * 75 + - col0 * + col2 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8397
SELECT ALL * FROM tab0 AS cor0 WHERE + 78 + col2 <> + + 41 * + ( 22 ) * + 21 * 75 + - col0 * + col2 * - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + + col2, + col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL - MIN( - col0 ) * - + MAX( DISTINCT + 64 ) AS col0 FROM tab0
----
-6208

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - MIN ( - col0 ) * - + MAX ( DISTINCT + 64 ) AS col0 FROM tab0
----
-6208

query I rowsort
SELECT ALL ( + - 31 ) AS col1 FROM tab1
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT + COUNT( - col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8401
SELECT + COUNT ( - col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + MAX( ALL + + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8402
SELECT + MAX ( ALL + + col2 ) AS col0 FROM tab1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8403
SELECT ALL 94 AS col0, + COUNT( * ) DIV - 96 * - 43 + - MAX( + - 63 ) AS col1 FROM tab0, tab2 AS cor0
----
94
63

skipif mysql # not compatible
query II rowsort label-8403
SELECT ALL 94 AS col0, + COUNT ( * ) / - 96 * - 43 + - MAX ( + - 63 ) AS col1 FROM tab0, tab2 AS cor0
----
94
63

onlyif mysql # DIV for integer division: 
query II rowsort label-8404
SELECT - 52 DIV + - 92 AS col1, + col1 AS col2 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-8404
SELECT - 52 / + - 92 AS col1, + col1 AS col2 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT + 1 * COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8405
SELECT + 1 * COUNT ( * ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8406
SELECT - + ( - 78 ) DIV - + col0 + col1 AS col0 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-8406
SELECT - + ( - 78 ) / - + col0 + col1 AS col0 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8407
SELECT * FROM tab2 AS cor0 WHERE NOT 0 / + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + 68
----

skipif mysql # not compatible
query III rowsort label-8407
SELECT * FROM tab2 AS cor0 WHERE NOT 0 / + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + 68
----

query I rowsort
SELECT ALL + col1 * 17 AS col1 FROM tab2 AS cor0
----
1139
1309
867

query I rowsort
SELECT ALL - 28 AS col0 FROM tab1 AS cor0 WHERE + col2 + + col1 BETWEEN - col0 AND + ( + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT DISTINCT - - col1 * + CAST( - 26 AS SIGNED ) + col2 + + col1 - - + col1 FROM tab1 AS cor0
----
-1060
-240
-61

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT - - col1 * + CAST ( - 26 AS INTEGER ) + col2 + + col1 - - + col1 FROM tab1 AS cor0
----
-1060
-240
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8411
SELECT ALL col2 DIV + col2 col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8411
SELECT ALL col2 / + col2 col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT DISTINCT SUM( - - 26 ) col2 FROM tab1
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8412
SELECT DISTINCT SUM ( - - 26 ) col2 FROM tab1
----
78

query I rowsort
SELECT + 78 AS col0 FROM tab0 WHERE NOT + 66 IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 * - - col0 - col2 + + - 37 * + 84 AS col1 FROM tab0 AS cor0
----
-12810
-3860
-3988

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT SUM( ALL 49 ) FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-8415
SELECT SUM ( ALL 49 ) FROM tab0 AS cor0
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT + + col1 DIV + + 97 * + + 73 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8416
SELECT + + col1 / + + 97 * + + 73 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT DISTINCT - COUNT( + col0 ) * + 49 * - 12 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
5292

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT - COUNT ( + col0 ) * + 49 * - 12 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT DISTINCT MAX( DISTINCT + 6 ) DIV + - 44 + - + SUM( - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT MAX ( DISTINCT + 6 ) / + - 44 + - + SUM ( - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT 95 DIV col0 DIV + 6 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8419
SELECT 95 / col0 / + 6 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8420
SELECT - CAST( - col0 AS SIGNED ) col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8420
SELECT - CAST ( - col0 AS INTEGER ) col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL + SUM( - ( - col1 ) ) + - 84 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL + SUM ( - ( - col1 ) ) + - 84 FROM tab0
----
19

query II rowsort
SELECT - 87 + - col1 AS col2, col0 AS col1 FROM tab0 AS cor0
----
-108
87
-168
15
-88
97

query II rowsort
SELECT ALL col2 + - + 58 + - col2 AS col0, col0 FROM tab2
----
-58
46
-58
64
-58
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 55 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT DISTINCT - COUNT( DISTINCT 33 ) + - - 89 AS col1 FROM tab2 cor0
----
88

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT - COUNT ( DISTINCT 33 ) + - - 89 AS col1 FROM tab2 cor0
----
88

query I rowsort
SELECT + + col0 - - col0 - 86 AS col0 FROM tab2 AS cor0
----
42
6
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + SUM( + + ( col1 ) ) * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-8427
SELECT + SUM ( + + ( col1 ) ) * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-309

query II rowsort
SELECT DISTINCT 44 AS col2, + col2 + + col2 FROM tab2
----
44
116
44
46
44
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8429
SELECT ALL 0, COUNT( * ) * 45 DIV + ( COUNT( * ) ) AS col0 FROM tab0
----
0
45

skipif mysql # not compatible
query II rowsort label-8429
SELECT ALL 0, COUNT ( * ) * 45 / + ( COUNT ( * ) ) AS col0 FROM tab0
----
0
45

query II rowsort
SELECT ALL + 80, + 63 AS col0 FROM tab1
----
80
63
80
63
80
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT DISTINCT + SUM( DISTINCT + 88 ) AS col0 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT + SUM ( DISTINCT + 88 ) AS col0 FROM tab2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8432
SELECT ALL 7 col1, COUNT( * ) AS col1 FROM tab1
----
7
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8432
SELECT ALL 7 col1, COUNT ( * ) AS col1 FROM tab1
----
7
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 < + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT - ( - - col0 ) DIV - + 4 FROM tab2
----
11
16
18

skipif mysql # not compatible
query I rowsort label-8434
SELECT - ( - - col0 ) / - + 4 FROM tab2
----
11
16
18

query II rowsort
SELECT + col1 * 68 * + 53 + col1 * 57 * + ( - - col0 ) * + col2 - col2 AS col0, + 64 - + + 28 + - 28 + 52 FROM tab2 AS cor0
----
11513308
60
16854060
60
3259387
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL SUM( ALL - 7 ) + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-54

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL SUM ( ALL - 7 ) + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ( - + COUNT( ALL - 24 ) ) * + - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8437
SELECT ( - + COUNT ( ALL - 24 ) ) * + - COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 38 + - col1 col2 FROM tab2
----
1697
2355
2783

query I rowsort
SELECT ALL - 64 * - col1 + 20 + + 23 / + - col2 FROM tab1 WHERE NOT - ( col0 ) - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8441
SELECT - - col1 DIV + ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8441
SELECT - - col1 / + ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( NULL ) > - - col2 * + + ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 92 + col0 + + + col2 - + + col0 col0 FROM tab0 AS cor0
----
-45
-82
7

query I rowsort
SELECT - 33 + - col1 * + 45 FROM tab0 AS cor0
----
-3678
-78
-978

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8446
SELECT DISTINCT + 99 DIV + col2 + - col2 AS col0 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT + 99 / + col2 + - col2 AS col0 FROM tab1 AS cor0
----
-58
-67
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8447
SELECT ALL - MIN( ALL - CAST( NULL AS DECIMAL ) ), - 5 col0 FROM tab0 cor0
----
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8447
SELECT ALL - MIN ( ALL - CAST ( NULL AS REAL ) ), - 5 col0 FROM tab0 cor0
----
NULL
-5

query I rowsort
SELECT ALL col0 * - col0 + ( + 80 ) - - 10 AS col1 FROM tab2
----
-2026
-4006
-5535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8449
SELECT ALL + CAST( NULL AS SIGNED ) * ( - col1 ) * - + 35 + col2 - col1 * + col0 AS col2 FROM tab0 WHERE + - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - col1 ) * - + 35 + col2 - col1 * + col0 AS col2 FROM tab0 WHERE + - col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT DISTINCT 9 - + + col1 DIV 33 AS col1 FROM tab2
----
7
8

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT 9 - + + col1 / 33 AS col1 FROM tab2
----
7
8

query II rowsort
SELECT DISTINCT + col1 AS col0, col2 * col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8452
SELECT ALL * FROM tab2 AS cor0 WHERE 87 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8452
SELECT ALL * FROM tab2 AS cor0 WHERE 87 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL - COUNT( * ) * - ( + 99 ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL - COUNT ( * ) * - ( + 99 ) FROM tab2
----
297

query I rowsort
SELECT - col0 * - ( + col1 ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL ( 61 ) * col0 AS col0 FROM tab1
----
3111
5185
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT COUNT( * ) + - 83 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-8456
SELECT COUNT ( * ) + - 83 FROM tab0
----
-80

query III rowsort
SELECT * FROM tab0 WHERE NOT - 97 / 90 NOT BETWEEN - 26 + + col1 AND - col0 + - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT COUNT( - 56 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8458
SELECT COUNT ( - 56 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 66 )
----

query I rowsort
SELECT 32 - + 49 FROM tab1
----
-17
-17
-17

query I rowsort
SELECT - ( col1 ) * - 29 AS col2 FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT + 19 FROM tab2 WHERE ( - 40 ) BETWEEN NULL AND - 45
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE col1 IN ( col1 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8464
SELECT ALL + col0 AS col1 FROM tab2 WHERE CAST( - 20 AS SIGNED ) BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + col0 AS col1 FROM tab2 WHERE CAST ( - 20 AS INTEGER ) BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + 3 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3
3
3

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT - SUM( - 39 ) FROM tab1 WHERE - 97 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT - SUM ( - 39 ) FROM tab1 WHERE - 97 IS NULL
----
NULL

query I rowsort
SELECT - col1 * 40 + col1 AS col0 FROM tab0
----
-3159
-39
-819

query I rowsort
SELECT + col2 + - col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL SUM( ALL col0 ) col2 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8471
SELECT ALL SUM ( ALL col0 ) col2 FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8472
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8472
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 83 * - 73 FROM tab2 AS cor0
----
-6059
-6059
-6059

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) - 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL + SUM( DISTINCT - 68 ) FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + SUM ( DISTINCT - 68 ) FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT + 60 DIV - 89 + 21 * - col2 AS col0 FROM tab2 cor0
----
-1218
-483
-840

skipif mysql # not compatible
query I rowsort label-8476
SELECT + 60 / - 89 + 21 * - col2 AS col0 FROM tab2 cor0
----
-1218
-483
-840

query I rowsort
SELECT + col2 + + 92 AS col0 FROM tab0 AS cor0
----
102
139
191

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT DISTINCT - COUNT( * ) * 22 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT - COUNT ( * ) * 22 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - col0 * col0 + 11 FROM tab0
----
-214
-7558
-9398

query I rowsort
SELECT 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( + 42 ) IS NULL
----

query I rowsort
SELECT ALL ( - 59 ) FROM tab1 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL + ( MAX( DISTINCT - 52 ) ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + ( MAX ( DISTINCT - 52 ) ) FROM tab1 AS cor0
----
-52

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 55 AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 44 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col2 + - 55 * 74 ) NOT IN ( - col2 / col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT DISTINCT - CAST( col1 AS SIGNED ) + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-430
-4324
-728

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-430
-4324
-728

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * - col2 ) BETWEEN + col1 AND + ( col1 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( - 17 + 33 ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NULL <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT ALL col2 + 75 + - CAST( - col1 AS SIGNED ) * 91 FROM tab2
----
4739
6230
7122

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL col2 + 75 + - CAST ( - col1 AS INTEGER ) * 91 FROM tab2
----
4739
6230
7122

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 36 / - col2 > NULL
----

query I rowsort
SELECT DISTINCT col0 + + col2 + 51 FROM tab1
----
195
198
210

query I rowsort
SELECT DISTINCT + + col1 - - 0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ( + 48 ) + - col0 AS col1 FROM tab0 AS cor0 WHERE col0 + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( col2 * 16 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT - - COUNT( ALL + 13 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8499
SELECT - - COUNT ( ALL + 13 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8500
SELECT DISTINCT * FROM tab2 WHERE NOT - 28 * CAST( NULL AS DECIMAL ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8500
SELECT DISTINCT * FROM tab2 WHERE NOT - 28 * CAST ( NULL AS REAL ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT + 0 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT + 0 / col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT + 77 * 25 AS col1 FROM tab0 AS cor0
----
1925
1925
1925

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT IN ( + 59 * + 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - - 84 AS col2, + 70 AS col0 FROM tab1 AS cor0
----
84
70
84
70
84
70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - 32 ) / + 52 + col0 > col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL 95 + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( - col1 )
----

query I rowsort
SELECT ALL + 55 * 96 * col0 AS col1 FROM tab2
----
242880
337920
396000

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 < ( + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - col0
----

query I rowsort
SELECT col2 * + 88 AS col0 FROM tab0
----
4136
8712
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8514
SELECT 54 DIV + SUM( DISTINCT col1 ) * ( COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8514
SELECT 54 / + SUM ( DISTINCT col1 ) * ( COUNT ( * ) ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8515
SELECT ALL col1 + col2 DIV col1 FROM tab0 WHERE NOT ( - + 54 * - 75 ) IN ( col1 * + ( col1 ) )
----
100
21
81

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL col1 + col2 / col1 FROM tab0 WHERE NOT ( - + 54 * - 75 ) IN ( col1 * + ( col1 ) )
----
100
21
81

query II rowsort
SELECT ALL + ( + col0 ), + 1 + + - col1 FROM tab2 AS cor0
----
46
-50
64
-76
75
-66

query I rowsort
SELECT DISTINCT - col0 * + + col2 + + col2 - col1 * col1 FROM tab2 AS cor0
----
-3636
-8449
-8781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( col1 ) <> 48 * + col1 + - col0
----

skipif mysql # not compatible
query I rowsort label-8518
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( col1 ) <> 48 * + col1 + - col0
----

query I rowsort
SELECT DISTINCT + - col1 + 83 FROM tab2 cor0
----
16
32
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8520
SELECT COUNT( - col0 ) FROM tab2 WHERE ( - ( - - col2 ) ) BETWEEN 48 - - CAST( 29 AS SIGNED ) AND - col1 + col0
----
0

skipif mysql # not compatible
query I rowsort label-8520
SELECT COUNT ( - col0 ) FROM tab2 WHERE ( - ( - - col2 ) ) BETWEEN 48 - - CAST ( 29 AS INTEGER ) AND - col1 + col0
----
0

query I rowsort
SELECT - col1 * - col2 * + - col1 + + col0 FROM tab0
----
-2
-308352
-4323

query I rowsort
SELECT col0 + + - 91 + - 52 FROM tab1 WHERE ( NULL ) IS NULL
----
-52
-58
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8523
SELECT + - 43 DIV + col0 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8523
SELECT + - 43 / + col0 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8524
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - + col2 * ( + - col2 ) AND + CAST( col1 AS SIGNED ) * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8524
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - + col2 * ( + - col2 ) AND + CAST ( col1 AS INTEGER ) * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8525
SELECT ( + + SUM( - 38 ) ) DIV - 49 + + 76 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8525
SELECT ( + + SUM ( - 38 ) ) / - 49 + + 76 FROM tab0 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8526
SELECT * FROM tab0 WHERE + 30 + + 74 + + + col2 BETWEEN ( - 60 * - col2 + 7 * + CAST( NULL AS SIGNED ) ) AND ( 73 + ( + 30 ) )
----

skipif mysql # not compatible
query III rowsort label-8526
SELECT * FROM tab0 WHERE + 30 + + 74 + + + col2 BETWEEN ( - 60 * - col2 + 7 * + CAST ( NULL AS INTEGER ) ) AND ( 73 + ( + 30 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 5 col1 FROM tab2
----
-255
-335
-385

query II rowsort
SELECT + 31 AS col2, - col1 FROM tab1
----
31
-14
31
-47
31
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT 97 + COUNT( * ) FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT 97 + COUNT ( * ) FROM tab2
----
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 52 * col2 col2 FROM tab0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
-10920
-197964
-5148

query I rowsort
SELECT ALL col0 - - ( + col0 ) AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT 9 FROM tab0 WHERE col0 IS NOT NULL
----
9
9
9

query I rowsort
SELECT DISTINCT + col2 + + - 51 + + - col1 AS col0 FROM tab2
----
-60
-79
-88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > ( + col2 )
----

query II rowsort
SELECT DISTINCT - + 19 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
-19
1
-19
21
-19
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ( MIN( + 15 ) ) FROM tab2 AS cor0 WHERE NOT ( 86 * - 33 * col0 ) <> col0 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT ( MIN ( + 15 ) ) FROM tab2 AS cor0 WHERE NOT ( 86 * - 33 * col0 ) <> col0 + - col1
----
NULL

query I rowsort
SELECT ALL + col0 + + col0 + + col0 * 30 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 0 * 72 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 34 * - col0 * col2 FROM tab1
----
-166464
-170510
-210392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - 99 col0 FROM tab1 AS cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT ALL - col0 * + - 28 AS col2 FROM tab0 AS cor0
----
2436
2716
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL COUNT( * ) * + ( - - 67 ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL COUNT ( * ) * + ( - - 67 ) FROM tab2 AS cor0
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT DISTINCT col2 FROM tab0 WHERE NOT - col1 + + + col0 IN ( CAST( - col1 AS SIGNED ) )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT col2 FROM tab0 WHERE NOT - col1 + + + col0 IN ( CAST ( - col1 AS INTEGER ) )
----
10
47
99

query II rowsort
SELECT 60 AS col1, + col0 FROM tab2
----
60
46
60
64
60
75

query II rowsort
SELECT 66, 34 AS col0 FROM tab1
----
66
34
66
34
66
34

query III rowsort
SELECT ALL * FROM tab2 WHERE - 9 * - + col0 * - - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8547
SELECT ALL + 97 AS col2, + col2 DIV + col0 AS col1 FROM tab2 cor0
----
97
0
97
0
97
0

skipif mysql # not compatible
query II rowsort label-8547
SELECT ALL + 97 AS col2, + col2 / + col0 AS col1 FROM tab2 cor0
----
97
0
97
0
97
0

query I rowsort
SELECT DISTINCT + - 75 * - - col2 FROM tab2 AS cor0
----
-1725
-3000
-4350

query I rowsort
SELECT + col1 + col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + + col0 AND + 36 - + col1
----

query I rowsort
SELECT 46 + - col0 AS col2 FROM tab1 AS cor0
----
-39
-45
-5

query I rowsort
SELECT - + 78 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query II rowsort
SELECT ( + col2 ) AS col2, - col1 AS 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 - 90 col2 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT - 37 - SUM( + 82 ) FROM tab2 AS cor0
----
-283

skipif mysql # not compatible
query I rowsort label-8554
SELECT - 37 - SUM ( + 82 ) FROM tab2 AS cor0
----
-283

query I rowsort
SELECT ( 70 ) - - col0 FROM tab1 AS cor0
----
121
155
161

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <> NULL AND NOT + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8557
SELECT DISTINCT + CAST( - MAX( - col1 ) AS SIGNED ) * + 13 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT + CAST ( - MAX ( - col1 ) AS INTEGER ) * + 13 FROM tab0
----
13

query I rowsort
SELECT 15 + - 72 AS col0 FROM tab1
----
-57
-57
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT ALL col2 DIV 75 + + + col0 AS col2 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL col2 / 75 + + + col0 AS col2 FROM tab1
----
52
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - 3
----

query I rowsort
SELECT ALL + - ( - - 23 ) AS col2 FROM tab2 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT COUNT( ALL - 59 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8562
SELECT COUNT ( ALL - 59 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col0 * - col1 + - - col0 - + + 69 * + ( - + col0 ) FROM tab0 AS cor0
----
2265
6887
7917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8564
SELECT ALL - + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL - + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT - - col1 BETWEEN col2 * col0 AND + + 9 * + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8566
SELECT ALL - - COUNT( * ) * + + CAST( NULL AS SIGNED ) + 98 * - 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL - - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + 98 * - 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 1 * col2 AS col2, + col2 - + + col0 col0 FROM tab0
----
10
-77
47
32
99
2

query I rowsort
SELECT + - ( - 23 ) AS col1 FROM tab2 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL + 72 * - COUNT( * ) FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + 72 * - COUNT ( * ) FROM tab2 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL + MAX( DISTINCT + + 77 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL + MAX ( DISTINCT + + 77 ) FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 83 col2, 93 * + col1 col0 FROM tab2 AS cor0
----
83
4743
83
6231
83
7161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * 65 * - col2 col1 FROM tab0 AS cor0
----
-143585
-637065
-6500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 AS col1, + col1 col0 FROM tab2 AS cor0
----
89
51
89
67
89
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT + + SUM( DISTINCT col2 ) FROM tab2 cor0 WHERE NOT NULL IN ( col1, + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT + + SUM ( DISTINCT col2 ) FROM tab2 cor0 WHERE NOT NULL IN ( col1, + 28 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 / + col1 - col2 NOT BETWEEN - + col1 + + - 86 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8577
SELECT ALL + col0 DIV col1 AS col1, - col0 AS col2 FROM tab2
----
0
-46
0
-64
1
-75

skipif mysql # not compatible
query II rowsort label-8577
SELECT ALL + col0 / col1 AS col1, - col0 AS col2 FROM tab2
----
0
-46
0
-64
1
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL MIN( - 59 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL MIN ( - 59 ) AS col2 FROM tab1
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - 22 col2, 19 FROM tab1
----
-17
19
-8
19
25
19

query I rowsort
SELECT ALL - col0 * - 54 AS col1 FROM tab1
----
2754
4590
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT 77 * MIN( - 72 ) col0 FROM tab1
----
-5544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8581
SELECT 77 * MIN ( - 72 ) col0 FROM tab1
----
-5544

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 84 >= ( 35 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE ( NULL ) < - 6 * + + col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL COUNT( * ) - - COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT col1 * - col1 * + 73 AS col1 FROM tab2 AS cor0 WHERE - 60 * + col0 - + - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8585
SELECT col1 * - col1 * + 73 AS col1 FROM tab2 AS cor0 WHERE - 60 * + col0 - + - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL - 98 + + col2 * - 23 + 74 FROM tab2 AS cor0
----
-1358
-553
-944

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 99 BETWEEN - col1 + + - col0 AND - + col0 )
----
91
47
68

query I rowsort
SELECT ALL 34 - + col0 - - ( col2 ) FROM tab1 cor0
----
11
79
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - col1 AND + col2
----
3

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - col1 AND + col2
----
3

query I rowsort
SELECT DISTINCT + + ( 32 ) FROM tab2 AS cor0
----
32

query I rowsort
SELECT ALL + ( + 23 ) FROM tab1
----
23
23
23

query II rowsort
SELECT - 4 * + + 72 AS col1, col1 AS col0 FROM tab1
----
-288
14
-288
47
-288
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT DISTINCT - ( + + 87 ) + 30 * - COUNT( * ) + - 12 + + 55 AS col2 FROM tab0
----
-134

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT - ( + + 87 ) + 30 * - COUNT ( * ) + - 12 + + 55 AS col2 FROM tab0
----
-134

query I rowsort
SELECT + 88 * - - 76 * - col2 AS col0 FROM tab1
----
-394592
-454784
-642048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT CAST( + - 51 AS SIGNED ) AS col1 FROM tab0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-8596
SELECT CAST ( + - 51 AS INTEGER ) AS col1 FROM tab0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8597
SELECT ALL ( - col1 ) AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-8597
SELECT ALL ( - col1 ) AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT 75 * + + COUNT( - + col2 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT 75 * + + COUNT ( - + col2 ) FROM tab2 AS cor0
----
225

query I rowsort
SELECT - + 0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 57 * + + 62 + 29 FROM tab2 AS cor0
----
3563

query I rowsort
SELECT 65 AS col0 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + 56 ) col0 FROM tab0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8603
SELECT ALL col0, col1 * + col2 + + CAST( NULL AS SIGNED ) + - col2 / - - 81 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8603
SELECT ALL col0, col1 * + col2 + + CAST ( NULL AS INTEGER ) + - col2 / - - 81 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT + ( + col0 ) * 69 AS col1 FROM tab2 AS cor0
----
3174
4416
5175

query I rowsort
SELECT 2 * - + 17 FROM tab2 AS cor0
----
-34
-34
-34

query II rowsort
SELECT - col2, 58 AS col0 FROM tab0 AS cor0
----
-10
58
-47
58
-99
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT - + COUNT( + ( col0 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8607
SELECT - + COUNT ( + ( col0 ) ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 78 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + + + col1 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT DISTINCT col1 * 39 + + col0 AS col0 FROM tab2
----
2035
2688
3067

query I rowsort
SELECT ALL 81 * col2 FROM tab0
----
3807
8019
810

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT DISTINCT + 21 DIV - 70 + - - col0 * + - col2 + - + col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT + 21 / - 70 + - - col0 * + - col2 + - + col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # DIV for integer division: 
query II rowsort label-8615
SELECT DISTINCT + col0, - col0 DIV col1 col2 FROM tab2 cor0 WHERE NOT 78 IN ( + - 69, + ( + - col1 ) )
----
46
0
64
0
75
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8615
SELECT DISTINCT + col0, - col0 / col1 col2 FROM tab2 cor0 WHERE NOT 78 IN ( + - 69, + ( + - col1 ) )
----
46
0
64
0
75
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8616
SELECT - + col0 * - + 98 + - - col0 DIV CAST( - 46 AS SIGNED ) FROM tab1 AS cor0
----
4997
8329
8917

skipif mysql # not compatible
query I rowsort label-8616
SELECT - + col0 * - + 98 + - - col0 / CAST ( - 46 AS INTEGER ) FROM tab1 AS cor0
----
4997
8329
8917

query I rowsort
SELECT 47 - - col2 - col0 FROM tab2 cor0
----
23
24
30

query I rowsort
SELECT + ( - ( + col2 ) ) - - 14 AS col2 FROM tab2 AS cor0
----
-26
-44
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL + MIN( DISTINCT - 33 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL + MIN ( DISTINCT - 33 ) FROM tab1 AS cor0
----
-33

query II rowsort
SELECT ALL col0 AS col2, 54 AS col2 FROM tab2
----
46
54
64
54
75
54

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT - 82 = NULL
----

query II rowsort
SELECT - 85 * + col1 AS col1, col1 + - + col1 * + col2 * 55 FROM tab0 AS cor0
----
-1785
-11529
-6885
-209304
-85
-5444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8623
SELECT COUNT( + + 12 ) DIV - 54 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8623
SELECT COUNT ( + + 12 ) / - 54 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + + COUNT( - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8624
SELECT + + COUNT ( - col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + ( - col1 ) * + 80 AS col0 FROM tab1 AS cor0 WHERE NOT 40 NOT IN ( + 97, - 3 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) + 30 col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8626
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) + 30 col2 FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT 91 + + - col1 FROM tab1
----
44
77
86

query I rowsort
SELECT ALL col1 FROM tab1 WHERE - col2 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col2 <> + 54
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - - col1 - - + col1 AS col0 FROM tab0
----
101
209
52

query III rowsort
SELECT * FROM tab2 WHERE - 35 * col0 IN ( - 24 * - 18, - col0 * + col2, + + 80 * - + col0, 19 + + col2 )
----

query I rowsort
SELECT ALL - 13 + - - col2 FROM tab1
----
46
55
83

query I rowsort
SELECT - 56 + - - col0 AS col0 FROM tab1
----
-5
29
35

query III rowsort
SELECT * FROM tab2 WHERE - + 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8635
SELECT + + COUNT( - 25 ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8635
SELECT + + COUNT ( - 25 ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + 90 + - col1 AS col0 FROM tab0 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8637
SELECT ALL + col2 AS col0, col1 + CAST( 49 AS SIGNED ) FROM tab0 AS cor0
----
10
70
47
130
99
50

skipif mysql # not compatible
query II rowsort label-8637
SELECT ALL + col2 AS col0, col1 + CAST ( 49 AS INTEGER ) FROM tab0 AS cor0
----
10
70
47
130
99
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT + SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8638
SELECT + SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col2 * + + 34, - 42 - col2, 30 )
----

query I rowsort
SELECT col0 * - + col2 AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT - 96 DIV + + 18 AS col0 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-8641
SELECT - 96 / + + 18 AS col0 FROM tab0
----
-5
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 2 NOT IN ( - + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT - col0 DIV col2 * + + col2 FROM tab2
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-8643
SELECT - col0 / col2 * + + col2 FROM tab2
----
-40
-46
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8644
SELECT ALL + CAST( NULL AS DECIMAL ) / col0 / - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL + CAST ( NULL AS REAL ) / col0 / - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT + 63 * + MAX( ALL + 52 ) FROM tab0
----
3276

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 63 * + MAX ( ALL + 52 ) FROM tab0
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT COUNT( * ) * + COUNT( DISTINCT - 80 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8646
SELECT COUNT ( * ) * + COUNT ( DISTINCT - 80 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + - 66 NOT IN ( + col0 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT - MIN( DISTINCT 91 ) + + 46 col0 FROM tab2
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8648
SELECT - MIN ( DISTINCT 91 ) + + 46 col0 FROM tab2
----
-45

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 - + - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col1 FROM tab2 AS cor0 WHERE NOT - 27 * + 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL + + 24 * - SUM( ALL 52 ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-3744

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL + + 24 * - SUM ( ALL 52 ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-3744

query II rowsort
SELECT ALL + col0, + 19 FROM tab2 AS cor0
----
46
19
64
19
75
19

query I rowsort
SELECT + + col1 * - + col0 + + - 21 FROM tab2 AS cor0
----
-2367
-4949
-5046

query II rowsort
SELECT ALL - - col2 AS col0, col2 AS col1 FROM tab1 cor0 WHERE NOT - 32 <> NULL
----

query II rowsort
SELECT DISTINCT + + col2 AS col2, + ( + + 92 ) FROM tab0 AS cor0
----
10
92
47
92
99
92

query I rowsort
SELECT col2 - + 45 FROM tab0
----
-35
2
54

query I rowsort
SELECT 59 + + col0 AS col0 FROM tab2
----
105
123
134

query I rowsort
SELECT - 18 * - ( - col2 ) * col2 + col0 + 55 FROM tab0
----
-1658
-176266
-39692

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT - 80 + COUNT( + 82 ) col1 FROM tab0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8659
SELECT DISTINCT - 80 + COUNT ( + 82 ) col1 FROM tab0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + + COUNT( ALL - 48 ) AS col2 FROM tab1 WHERE - ( + 39 ) * - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8660
SELECT + + COUNT ( ALL - 48 ) AS col2 FROM tab1 WHERE - ( + 39 ) * - + col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + + + col2 + + + 49 AS col1 FROM tab2 AS cor0
----
25
26
32

query I rowsort
SELECT ALL - 49 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 32 ) col1 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT - - col2 - + col2 * - + col1 AS col2 FROM tab2 AS cor0 WHERE + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + MIN( + + 53 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8665
SELECT + MIN ( + + 53 ) FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT + MAX( + col1 ) * - + 61 col1 FROM tab1 AS cor0
----
-2867

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8666
SELECT DISTINCT + MAX ( + col1 ) * - + 61 col1 FROM tab1 AS cor0
----
-2867

query I rowsort
SELECT 87 * col2 AS col2 FROM tab2 AS cor0
----
2001
3480
5046

query II rowsort
SELECT DISTINCT - + col0, - col2 * - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-15
103823
-87
1000
-97
970299

query I rowsort
SELECT DISTINCT - col0 + + col2 - - - 89 AS col0 FROM tab1 AS cor0 WHERE ( + + col2 ) - col0 * 11 IN ( col1 * col0 - col2 + - 48 )
----

query II rowsort
SELECT col1, - col1 + - - col0 FROM tab2 cor0
----
51
-5
67
8
77
-13

query II rowsort
SELECT col2 AS col0, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT DISTINCT - col2, col1 + + + col0 AS col2 FROM tab0 AS cor0
----
-10
108
-47
96
-99
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT - - COUNT( * ), + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8673
SELECT - - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + + 92 * + 54 AS col1 FROM tab2 AS cor0
----
4968

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT DISTINCT 6 DIV col1 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT 6 / col1 AS col0 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT + ( 54 ) AS col2 FROM tab2
----
54

query II rowsort
SELECT ALL 40, + col1 FROM tab2
----
40
51
40
67
40
77

query I rowsort
SELECT ( col1 ) AS col1 FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
51
67
77

query II rowsort
SELECT col1 * + 59 AS col0, 80 * - - 46 AS col0 FROM tab0
----
1239
3680
4779
3680
59
3680

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8680
SELECT ALL - CAST( NULL AS DECIMAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL - CAST ( NULL AS REAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 67 col0, - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL - MAX( ALL col2 ) FROM tab0 WHERE + - 39 + - + col0 + col2 BETWEEN col1 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - MAX ( ALL col2 ) FROM tab0 WHERE + - 39 + - + col0 + col2 BETWEEN col1 AND col0
----
NULL

query I rowsort
SELECT DISTINCT - + 16 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-16

query I rowsort
SELECT DISTINCT 57 * + - col2 + + col2 AS col0 FROM tab2
----
-1288
-2240
-3248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE NOT + col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT - COUNT( * ) + + 39 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
30

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT - COUNT ( * ) + + 39 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
30

query I rowsort
SELECT 32 + + col0 AS col2 FROM tab1
----
117
123
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT SUM( ALL + + col2 ) + 0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8689
SELECT SUM ( ALL + + col2 ) + 0 FROM tab0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - col1 - + col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT + col2 + ( col1 ) DIV + 93 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8691
SELECT + col2 + ( col1 ) / + 93 AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT - MAX( DISTINCT - - col2 ) * 55 + - 28 AS col2 FROM tab0 AS cor0
----
-5473

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) * 55 + - 28 AS col2 FROM tab0 AS cor0
----
-5473

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - 94 * + 96 + 97 AND ( + - col0 + + col1 - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT COUNT( * ) * SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT COUNT ( * ) * SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
468

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE 98 * 16 + col2 <> + 18
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT - COUNT( * ) FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8696
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + - 77 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 33 + + - 54 * - 93 + - col0 col0 FROM tab2 WHERE NOT - col2 IS NULL
----
5047
5060
5068

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL - - COUNT( * ) + + + MIN( col1 ) AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL - - COUNT ( * ) + + + MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT ALL - - col0 DIV - col1 - - 29 AS col1 FROM tab1 cor0
----
12
26
28

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - - col0 / - col1 - - 29 AS col1 FROM tab1 cor0
----
12
26
28

query I rowsort
SELECT col0 * + + 27 AS col0 FROM tab0
----
2349
2619
405

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 52 NOT BETWEEN - col0 + col0 AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT MIN( ALL - 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT MIN ( ALL - 0 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL + - 18 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL + - 18 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT 92 * + + 88 FROM tab0, tab0 AS cor0
----
9 values hashing to 13037ba931106fc3061093e790f20397

query I rowsort
SELECT ( + - 25 ) FROM tab1
----
-25
-25
-25

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col0 ) * + col1 / col1 + ( 17 ) + 91 / - col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * + 42 AS col0 FROM tab1
----
-1974
-210
-588

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 34 * + + col2 FROM tab1
----
-2006
-2312
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT + COUNT( * ) * MIN( 91 ) FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-8711
SELECT + COUNT ( * ) * MIN ( 91 ) FROM tab2
----
273

query II rowsort
SELECT - + 42 * - + col0 * + col1, - 12 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT ALL + col0 + col2 + - col0 AS col1, col0 - + col2 FROM tab1 AS cor0
----
59
26
68
23
96
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT 29 * + + CAST( col1 AS SIGNED ) + - col1 FROM tab1
----
1316
140
392

skipif mysql # not compatible
query I rowsort label-8714
SELECT 29 * + + CAST ( col1 AS INTEGER ) + - col1 FROM tab1
----
1316
140
392

query II rowsort
SELECT - col0 AS col0, + 59 FROM tab1
----
-51
59
-85
59
-91
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT - ( + 10 ) * COUNT( * ) col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8716
SELECT - ( + 10 ) * COUNT ( * ) col1 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT DISTINCT + col1 * - 20 AS col0 FROM tab2 cor0
----
-1020
-1340
-1540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + 33 col0 FROM tab1 AS cor0
----
1947
2244
3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8719
SELECT ALL 32 DIV COUNT( * ) col0, COUNT( DISTINCT + - 25 ) FROM tab1 AS cor0
----
10
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8719
SELECT ALL 32 / COUNT ( * ) col0, COUNT ( DISTINCT + - 25 ) FROM tab1 AS cor0
----
10
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8720
SELECT 54 * + 8 + + CAST( - MIN( ALL - 83 ) AS SIGNED ) + + COUNT( * ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
515

skipif mysql # not compatible
query I rowsort label-8720
SELECT 54 * + 8 + + CAST ( - MIN ( ALL - 83 ) AS INTEGER ) + + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT - ( - COUNT( DISTINCT - - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT - ( - COUNT ( DISTINCT - - col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT DISTINCT + col2 * + ( 78 ) + - col2 DIV 32 * + - col2 FROM tab2 AS cor0
----
1794
3160
4582

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT + col2 * + ( 78 ) + - col2 / 32 * + - col2 FROM tab2 AS cor0
----
1794
3160
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ( - MIN( DISTINCT + col2 ) ) + + + 99 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-8723
SELECT ( - MIN ( DISTINCT + col2 ) ) + + + 99 FROM tab0
----
89

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE 33 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 1 <= - 92
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 1 - 36 >= - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 / + ( - 19 ) + + 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8729
SELECT ALL + CAST( + ( col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + CAST ( + ( col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT - MAX( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT - MAX ( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + ( col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 60 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL NOT BETWEEN NULL AND + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT SUM( ALL 22 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
198

skipif mysql # not compatible
query I rowsort label-8734
SELECT SUM ( ALL 22 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
198

query I rowsort
SELECT DISTINCT + - 94 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-94

query II rowsort
SELECT ALL + col0 AS col1, + col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8737
SELECT - col0 DIV + + col2 AS col1 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8737
SELECT - col0 / + + col2 AS col1 FROM tab2 cor0
----
-1
-1
-2

query II rowsort
SELECT + col0, 62 FROM tab0 AS cor0
----
15
62
87
62
97
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8739
SELECT DISTINCT - ( + COUNT( * ) ) * + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ), + COUNT( * ) AS col1 FROM tab2 cor0
----
NULL
3
3

skipif mysql # not compatible
query III rowsort label-8739
SELECT DISTINCT - ( + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2 cor0
----
NULL
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT DISTINCT - col1 DIV col2 + + col2 FROM tab0
----
46
8
99

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT - col1 / col2 + + col2 FROM tab0
----
46
8
99

query I rowsort
SELECT + + col0 FROM tab1 WHERE NOT + 1 < + 84
----

query I rowsort
SELECT - + col1 FROM tab2 WHERE NOT - + 2 < - 39
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8743
SELECT DISTINCT 19 + + + 16 DIV + col1 AS col2 FROM tab1
----
19
20
22

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT 19 + + + 16 / + col1 AS col2 FROM tab1
----
19
20
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT - ( - + MIN( ALL - 31 ) ) AS col0 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - ( - + MIN ( ALL - 31 ) ) AS col0 FROM tab0 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT ALL + col1 AS col1 FROM tab2 WHERE + - col0 + - + ( + CAST( NULL AS SIGNED ) ) - col1 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + col1 AS col1 FROM tab2 WHERE + - col0 + - + ( + CAST ( NULL AS INTEGER ) ) - col1 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col2 + - - ( 83 ) AS col2 FROM tab2
----
25
43
60

query I rowsort
SELECT - col0 + - 74 + + ( + 53 ) FROM tab1 AS cor0
----
-106
-112
-72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 - - 66 IS NULL
----

query I rowsort
SELECT - col0 + - - col2 * + 73 FROM tab0 AS cor0
----
3416
643
7130

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT ALL + - col2 DIV - + col1 col0 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8750
SELECT ALL + - col2 / - + col1 col0 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT - - ( + col1 ) + - - col1 DIV col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-8751
SELECT - - ( + col1 ) + - - col1 / col1 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT ALL col2 DIV - 96 * 72 - + - col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL col2 / - 96 * 72 - + - col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8753
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8753
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + col2 - - + col2 + col1 AS col2 FROM tab0
----
175
199
41

query II rowsort
SELECT DISTINCT col1 + + - col0 AS col2, 8 FROM tab0
----
-66
8
-96
8
66
8

query I rowsort
SELECT 18 - + 68 AS col0 FROM tab1
----
-50
-50
-50

query II rowsort
SELECT col0, 16 AS col0 FROM tab1
----
51
16
85
16
91
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 * col0 col0 FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT + ( - 70 ) * + MAX( 96 ) AS col2 FROM tab0 AS cor0
----
-6720

skipif mysql # not compatible
query I rowsort label-8759
SELECT + ( - 70 ) * + MAX ( 96 ) AS col2 FROM tab0 AS cor0
----
-6720

query II rowsort
SELECT 56 * - 3 AS col1, col2 * - col2 AS col0 FROM tab1
----
-168
-3481
-168
-4624
-168
-9216

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 40 / - 73 * + 46 - 44 = - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT - 79 * + COUNT( * ) AS col0 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT - 79 * + COUNT ( * ) AS col0 FROM tab2
----
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8764
SELECT * FROM tab2 AS cor0 WHERE NOT + 78 + - col0 + CAST( NULL AS SIGNED ) * + + 25 * - 62 + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8764
SELECT * FROM tab2 AS cor0 WHERE NOT + 78 + - col0 + CAST ( NULL AS INTEGER ) * + + 25 * - 62 + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT + col0 DIV - - 24 AS col1 FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-8765
SELECT + col0 / - - 24 AS col1 FROM tab0 AS cor0
----
0
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL - - MAX( ALL col2 ) AS col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - - MAX ( ALL col2 ) AS col0 FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT DISTINCT - + ( + + COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT - + ( + + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT + ( SUM( ALL + col2 ) ) col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8768
SELECT + ( SUM ( ALL + col2 ) ) col2 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT DISTINCT CAST( - 43 AS SIGNED ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT CAST ( - 43 AS INTEGER ) FROM tab0 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + + COUNT( + ( col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8770
SELECT + + COUNT ( + ( col0 ) ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT - 19, 67 AS col2 FROM tab0
----
-19
67
-19
67
-19
67

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND - 17 + - col2 * - + 85
----

query I rowsort
SELECT DISTINCT + 69 + + col2 AS col2 FROM tab1
----
128
137
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT + CAST( - 36 AS SIGNED ) FROM tab0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-8774
SELECT + CAST ( - 36 AS INTEGER ) FROM tab0
----
-36
-36
-36

query III rowsort
SELECT * FROM tab2 WHERE 89 * + 71 * col0 - + col1 - 25 * 11 BETWEEN NULL AND ( 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT DISTINCT - - 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-8776
SELECT DISTINCT - - MIN ( - ( - - col2 ) ) col2 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + + col2 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT 13 * + CAST( 90 AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 41b6a976f5dabe4c2b106737f95ff661

skipif mysql # not compatible
query I rowsort label-8778
SELECT 13 * + CAST ( 90 AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 41b6a976f5dabe4c2b106737f95ff661

query I rowsort
SELECT - + 32 - + 60 + + col2 FROM tab1 cor0
----
-24
-33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + 14 + + 75 + + - 88 col0 FROM tab0 AS cor0
----
-17
20
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8781
SELECT col1 * col2 DIV 51 - - 71 FROM tab2 AS cor0
----
131
147
94

skipif mysql # not compatible
query I rowsort label-8781
SELECT col1 * col2 / 51 - - 71 FROM tab2 AS cor0
----
131
147
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT + - 33 DIV + col2 - - + col0 AS col0 FROM tab0 AS cor0
----
15
84
97

skipif mysql # not compatible
query I rowsort label-8782
SELECT + - 33 / + col2 - - + col0 AS col0 FROM tab0 AS cor0
----
15
84
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT - col2 / CAST( NULL AS SIGNED ) - 36 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT - col2 / CAST ( NULL AS INTEGER ) - 36 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - 54 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 + - + col2 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL 20 * COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL 20 * COUNT ( * ) FROM tab1
----
60

query I rowsort
SELECT DISTINCT 47 * - + ( + col0 ) FROM tab0
----
-4089
-4559
-705

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + COUNT( 37 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8789
SELECT + COUNT ( 37 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - - SUM( - col2 ) col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8790
SELECT - - SUM ( - col2 ) col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT col0 < NULL
----

query II rowsort
SELECT - - col1 AS col0, - 14 FROM tab2 AS cor0
----
51
-14
67
-14
77
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8793
SELECT - 71, - 90 - MAX( + ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-8793
SELECT - 71, - 90 - MAX ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
-71
NULL

query II rowsort
SELECT DISTINCT col1 AS col2, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - + COUNT( + 35 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8795
SELECT - + COUNT ( + 35 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8796
SELECT + + col0 AS col1, - 73 * - ( 46 ) * - col2 - + - CAST( NULL AS SIGNED ) / - 38 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8796
SELECT + + col0 AS col1, - 73 * - ( 46 ) * - col2 - + - CAST ( NULL AS INTEGER ) / - 38 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT DISTINCT - 55 * col2 * + col0 AS col0 FROM tab1 AS cor0
----
-269280
-275825
-340340

query I rowsort
SELECT - + col2 + + - 74 AS col2 FROM tab2 AS cor0
----
-114
-132
-97

query I rowsort
SELECT ALL ( - + 22 ) * + + col1 AS col2 FROM tab1 AS cor0
----
-1034
-110
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + + 1 + COUNT( * ) * - 40 FROM tab1 cor0
----
-119

skipif mysql # not compatible
query I rowsort label-8800
SELECT + + 1 + COUNT ( * ) * - 40 FROM tab1 cor0
----
-119

query I rowsort
SELECT DISTINCT - col1 + 3 FROM tab0 AS cor0
----
-18
-78
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + - 32 col2 FROM tab2
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT + ( - CAST( NULL AS SIGNED ) ) * + SUM( ALL - col2 ) FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT + ( - CAST ( NULL AS INTEGER ) ) * + SUM ( ALL - col2 ) FROM tab1 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT DISTINCT + COUNT( * ) + - - 18 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT + COUNT ( * ) + - - 18 FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + MIN( - col2 ) + + + COUNT( * ) AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + MIN ( - col2 ) + + + COUNT ( * ) AS col0 FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT ALL CAST( + col1 AS SIGNED ) + + col2 * - 97 FROM tab0
----
-4478
-949
-9602

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL CAST ( + col1 AS INTEGER ) + + col2 * - 97 FROM tab0
----
-4478
-949
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + COUNT( - + 3 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8807
SELECT + COUNT ( - + 3 ) FROM tab2
----
3

query II rowsort
SELECT + col1 * + 8, 0 AS col2 FROM tab2 AS cor0
----
408
0
536
0
616
0

query I rowsort
SELECT ALL - + 5 AS col0 FROM tab1 AS cor0
----
-5
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 68 = - - 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 25 - 40 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT ( - col1 ) - + col1 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8813
SELECT ALL + + 90 DIV col1 - col1 AS col1, col2 * - CAST( NULL AS SIGNED ) * col1 * + col2 FROM tab0 AS cor0
----
-17
NULL
-80
NULL
89
NULL

skipif mysql # not compatible
query II rowsort label-8813
SELECT ALL + + 90 / col1 - col1 AS col1, col2 * - CAST ( NULL AS INTEGER ) * col1 * + col2 FROM tab0 AS cor0
----
-17
NULL
-80
NULL
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT COUNT( * ) + - 16 + + - 86 AS col0 FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT COUNT ( * ) + - 16 + + - 86 AS col0 FROM tab1 cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * + - col0 * 47 - - col0 + - + 97 * col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8816
SELECT DISTINCT + - ( col1 ) - + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT + - ( col1 ) - + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * col0 * 34 AS col2 FROM tab2 AS cor0
----
147900
35972
87040

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL + 75 * + COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL + 75 * + COUNT ( * ) FROM tab2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT CAST( NULL AS SIGNED ) * - 52 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT CAST ( NULL AS INTEGER ) * - 52 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT + ( + MAX( DISTINCT + col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8821
SELECT + ( + MAX ( DISTINCT + col1 ) ) AS col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT MAX( DISTINCT - col1 ) * - 99 AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8822
SELECT MAX ( DISTINCT - col1 ) * - 99 AS col2 FROM tab0
----
99

query I rowsort
SELECT ALL + col2 * - ( - - col1 ) FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - 33 + 51 IN ( + + 32, - col0, 78 + col1, - col2, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col1 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - col1 + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8827
SELECT DISTINCT + 92 DIV col2 FROM tab0 cor0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT + 92 / col2 FROM tab0 cor0
----
0
1
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT 14 * - ( + + 47 ) + + 16 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 0fdbc6141a09c4dadf28cb58748b6e63

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT + COUNT( * ) * + + 37 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-8830
SELECT + COUNT ( * ) * + + 37 FROM tab0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ALL - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8832
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8832
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT 46 DIV - col0 col1 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8833
SELECT 46 / - col0 col1 FROM tab0 cor0
----
-3
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT ALL 20 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 * + col2 / - ( col2 ) + - - col0 + - 70 = NULL
----

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL 20 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 * + col2 / - ( col2 ) + - - col0 + - 70 = NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 >= col0 - 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT - col2 DIV - col0 + col2 + - + 60 AS col2 FROM tab0 AS cor0
----
-10
-50
40

skipif mysql # not compatible
query I rowsort label-8836
SELECT - col2 / - col0 + col2 + - + 60 AS col2 FROM tab0 AS cor0
----
-10
-50
40

query I rowsort
SELECT ALL col1 * + + 50 FROM tab0 AS cor0
----
1050
4050
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8838
SELECT + + COUNT( * ) DIV - + 1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8838
SELECT + + COUNT ( * ) / - + 1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 + + col2 + - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-8840
SELECT ALL + 28 DIV - - col2 + - col1, + col2 FROM tab2 AS cor0
----
-50
23
-67
58
-77
40

skipif mysql # not compatible
query II rowsort label-8840
SELECT ALL + 28 / - - col2 + - col1, + col2 FROM tab2 AS cor0
----
-50
23
-67
58
-77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT + 18 DIV + col1 FROM tab0 AS cor0
----
0
0
18

skipif mysql # not compatible
query I rowsort label-8841
SELECT + 18 / + col1 FROM tab0 AS cor0
----
0
0
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8842
SELECT ALL + - COUNT( * ), + 32 + + 78 AS col2 FROM tab2 cor0 WHERE - col2 + - 91 + col2 NOT BETWEEN col2 AND - 34 - - CAST( NULL AS SIGNED )
----
-3
110

skipif mysql # not compatible
query II rowsort label-8842
SELECT ALL + - COUNT ( * ), + 32 + + 78 AS col2 FROM tab2 cor0 WHERE - col2 + - 91 + col2 NOT BETWEEN col2 AND - 34 - - CAST ( NULL AS INTEGER )
----
-3
110

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT - COUNT( * ) col2, + 36 FROM tab0 AS cor0
----
-3
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8843
SELECT - COUNT ( * ) col2, + 36 FROM tab0 AS cor0
----
-3
36

query I rowsort
SELECT DISTINCT - + col2 + + - col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT MIN( DISTINCT + ( + 40 ) ) AS col1 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8845
SELECT MIN ( DISTINCT + ( + 40 ) ) AS col1 FROM tab0
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-8846
SELECT - 25, - 31 DIV + - 92 * col2 AS col0 FROM tab0
----
-25
0
-25
0
-25
0

skipif mysql # not compatible
query II rowsort label-8846
SELECT - 25, - 31 / + - 92 * col2 AS col0 FROM tab0
----
-25
0
-25
0
-25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT ALL - COUNT( * ) + ( - + COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL - COUNT ( * ) + ( - + COUNT ( * ) ) FROM tab0
----
-6

query I rowsort
SELECT ALL - col1 + + - 2 + + col1 FROM tab2
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <> + col2 AND NOT ( - col0 BETWEEN - 93 / - + col1 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + - COUNT( * ) + - + ( + 91 ) AS col1 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8850
SELECT + - COUNT ( * ) + - + ( + 91 ) AS col1 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT - col2 * - - 45 - - col2 AS col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT COUNT( * ) + MIN( col1 ) AS col2 FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT COUNT ( * ) + MIN ( col1 ) AS col2 FROM tab2 cor0
----
54

query II rowsort
SELECT ALL + 16, 4 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to cc9cd0f39e80178c67688b20e745f391

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT DISTINCT + COUNT( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT + COUNT ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - 77 FROM tab2 cor0
----
-77
-77
-77

query I rowsort
SELECT ALL col1 * col0 * - + col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab0 WHERE NOT - 45 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8858
SELECT DISTINCT COUNT( ALL + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8859
SELECT DISTINCT CAST( NULL AS SIGNED ) * 63 + 75 AS col2, CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8859
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 63 + 75 AS col2, CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8860
SELECT col0 DIV - 69 AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8860
SELECT col0 / - 69 AS col0 FROM tab0
----
-1
-1
0

query II rowsort
SELECT + 68 AS col2, 44 * + 77 FROM tab1
----
68
3388
68
3388
68
3388

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + + col0 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE col1 * + col1 IN ( + col0 )
----

query I rowsort
SELECT ALL - + col2 + + - 5 FROM tab1 AS cor0
----
-101
-64
-73

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 / + col0
----

query I rowsort
SELECT DISTINCT 46 FROM tab0 WHERE NOT + 85 * - col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 88 col1 FROM tab0
----
-4136
-8712
-880

query I rowsort
SELECT ( + 66 ) FROM tab0
----
66
66
66

query I rowsort
SELECT ALL 62 * + 9 FROM tab2
----
558
558
558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT COUNT( * ) col0 FROM tab1 WHERE NOT NULL BETWEEN col0 * + CAST( NULL AS SIGNED ) AND col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8870
SELECT COUNT ( * ) col0 FROM tab1 WHERE NOT NULL BETWEEN col0 * + CAST ( NULL AS INTEGER ) AND col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ( SUM( DISTINCT col2 ) ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8871
SELECT ( SUM ( DISTINCT col2 ) ) AS col1 FROM tab2
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT CAST( - MIN( col0 ) AS SIGNED ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8872
SELECT CAST ( - MIN ( col0 ) AS INTEGER ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 14 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( - 36 * col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT SUM( ALL - 26 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT SUM ( ALL - 26 ) FROM tab0
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8877
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2 WHERE ( NULL ) > 62
----

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2 WHERE ( NULL ) > 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8878
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 * + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT COUNT( * ) * + 20 AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-8879
SELECT COUNT ( * ) * + 20 AS col1 FROM tab0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT + col0 AS col1 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) * col0 - + col2 ) < 70
----

skipif mysql # not compatible
query I rowsort label-8880
SELECT + col0 AS col1 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) * col0 - + col2 ) < 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8881
SELECT * FROM tab2 WHERE - col2 * + col2 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8881
SELECT * FROM tab2 WHERE - col2 * + col2 >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 87 - col2 AS col0 FROM tab2
----
29
47
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT 63 + COUNT( * ) col0 FROM tab0 WHERE 24 * col0 + 80 NOT IN ( 56 )
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8883
SELECT DISTINCT 63 + COUNT ( * ) col0 FROM tab0 WHERE 24 * col0 + 80 NOT IN ( 56 )
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 >= col2 + col2
----
87
21
10

query I rowsort
SELECT + ( col0 ) * + 74 AS col1 FROM tab1
----
3774
6290
6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col0 * 27 col2 FROM tab0
----
-2262
-2522
-390

query I rowsort
SELECT ALL + 19 * - ( col0 ) FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT + COUNT( * ) col2 FROM tab1 WHERE NOT + col2 = col1 + col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8888
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 WHERE NOT + col2 = col1 + col1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 * + 15 col0 FROM tab1 WHERE col0 * + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT - col0 + - col2 BETWEEN NULL AND + 25
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) = ( - col0 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT ALL + CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE 11 * ( - col2 * - col1 ) - 51 * 86 NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) * 6 + - col1
----

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE 11 * ( - col2 * - col1 ) - 51 * 86 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) * 6 + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT ( + col1 ) + 7 DIV 96 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8895
SELECT ( + col1 ) + 7 / 96 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT 49 * COUNT( * ) AS col0 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-8896
SELECT 49 * COUNT ( * ) AS col0 FROM tab0
----
147

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 18 + col2 ) <> ( col2 / col2 )
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( 36 + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8899
SELECT DISTINCT ( - 66 ) DIV COUNT( * ) AS col1 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT ( - 66 ) / COUNT ( * ) AS col1 FROM tab2
----
-22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 22 IS NULL
----

query I rowsort
SELECT - 1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8902
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( col0 ) <> CAST( + col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8902
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( col0 ) <> CAST ( + col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT - SUM( ALL 17 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8904
SELECT - SUM ( ALL 17 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT DISTINCT - MIN( DISTINCT - 58 ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT - MIN ( DISTINCT - 58 ) FROM tab0
----
58

query I rowsort
SELECT ALL col0 * col2 AS col0 FROM tab1 WHERE ( NULL ) >= + 36
----

query I rowsort
SELECT ALL 84 AS col0 FROM tab0 WHERE NOT + col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT - 66 * + COUNT( * ) AS col2 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-8908
SELECT - 66 * + COUNT ( * ) AS col2 FROM tab0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT MIN( DISTINCT - 35 ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-8909
SELECT MIN ( DISTINCT - 35 ) FROM tab1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT + col2 DIV 52 * col2 AS col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-8910
SELECT + col2 / 52 * col2 AS col0 FROM tab0
----
0
0
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 + 4 * - col2 ) > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT - 50 DIV - - 71 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8912
SELECT - 50 / - - 71 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND + col2 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT - CAST( NULL AS SIGNED ) / - col0 + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT - CAST ( NULL AS INTEGER ) / - col0 + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT - ( + col2 ) DIV col1 + - col0 * + 72 AS col2 FROM tab2 AS cor0
----
-3312
-4608
-5400

skipif mysql # not compatible
query I rowsort label-8916
SELECT - ( + col2 ) / col1 + - col0 * + 72 AS col2 FROM tab2 AS cor0
----
-3312
-4608
-5400

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) < NULL )
----

query I rowsort
SELECT ALL col1 * + 0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * - + 22 col2 FROM tab1 AS cor0
----
-1071
-1785
-1911

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE col2 * + 77 * - col1 IS NULL
----

query I rowsort
SELECT ALL + + col0 * + + ( col2 ) FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + + 93 * - col1 FROM tab0 AS cor0
----
-1953
-7533
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col2 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 ) OR col1 + + 60 * - col1 NOT BETWEEN ( col0 * 6 ) AND NULL
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8924
SELECT col1 DIV + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8924
SELECT col1 / + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8925
SELECT ALL + col1 DIV 17 AS col1 FROM tab2 AS cor0
----
3
3
4

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL + col1 / 17 AS col1 FROM tab2 AS cor0
----
3
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT - 65 * + col2 - + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT - 65 * + col2 - + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 31 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8928
SELECT + 68 / + CAST( NULL AS DECIMAL ) + AVG ( 96 ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT + 68 / + CAST ( NULL AS REAL ) + AVG ( 96 ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - - 36 FROM tab2
----
-15
-31
-41

query I rowsort
SELECT DISTINCT 95 + - col0 - + 90 FROM tab0
----
-10
-82
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT - SUM( ALL - col0 ) col1 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8931
SELECT DISTINCT - SUM ( ALL - col0 ) col1 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT + ( + - 18 ) + COUNT( * ) * - - MAX( - col2 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-8932
SELECT + ( + - 18 ) + COUNT ( * ) * - - MAX ( - col2 ) FROM tab0
----
-48

query I rowsort
SELECT + + col2 - - 61 FROM tab1 WHERE NULL IS NULL
----
120
129
157

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT ALL - ( + - ( + - col0 ) ) + + 88 DIV + col2 FROM tab0
----
-14
-79
-97

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - ( + - ( + - col0 ) ) + + 88 / + col2 FROM tab0
----
-14
-79
-97

query I rowsort
SELECT ALL + 28 AS col0 FROM tab1 cor0
----
28
28
28

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8937
SELECT ALL - col0 - + - ( CAST( NULL AS SIGNED ) ) + - + col2 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL - col0 - + - ( CAST ( NULL AS INTEGER ) ) + - + col2 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT DISTINCT + - 59 - - CAST( + col0 AS SIGNED ) * - ( + 54 ) + col0 FROM tab1 AS cor0
----
-2762
-4564
-4882

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT + - 59 - - CAST ( + col0 AS INTEGER ) * - ( + 54 ) + col0 FROM tab1 AS cor0
----
-2762
-4564
-4882

query I rowsort
SELECT - col1 * + - 17 FROM tab0 AS cor0
----
1377
17
357

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT 18 DIV - - 7 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8941
SELECT 18 / - - 7 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT + + 67 * + ( + ( 87 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8944
SELECT + 9 col1, ( + 83 ) DIV - + col0 AS col2 FROM tab0 AS cor0
----
9
-5
9
0
9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8944
SELECT + 9 col1, ( + 83 ) / - + col0 AS col2 FROM tab0 AS cor0
----
9
-5
9
0
9
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * col1 AS col1 FROM tab2 AS cor0 WHERE ( - ( - 34 ) + - col0 ) > col0 / + 5
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT + + COUNT( * ) AS col2, 20 AS col1 FROM tab1 cor0
----
3
20

skipif mysql # not compatible
query II rowsort label-8947
SELECT + + COUNT ( * ) AS col2, 20 AS col1 FROM tab1 cor0
----
3
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col1 FROM tab0 AS cor0 WHERE NOT col2 * col2 <> + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT - COUNT( ALL + 67 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8949
SELECT - COUNT ( ALL + 67 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 11 + - col2 AS col1 FROM tab1 WHERE + col1 - col1 > + col1 * - + ( + col1 ) * 59
----
-48
-57
-85

query I rowsort
SELECT ALL - 76 + - 4 AS col2 FROM tab0
----
-80
-80
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT ALL col2 DIV - ( + col2 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL col2 / - ( + col2 ) FROM tab2
----
-1
-1
-1

query II rowsort
SELECT ALL + 2 AS col2, + 23 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT - col1 DIV + + col1 - - 88 AS col1 FROM tab2 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-8954
SELECT - col1 / + + col1 - - 88 AS col1 FROM tab2 AS cor0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 4 ) BETWEEN ( ( ( 55 ) ) ) AND ( + col1 + - 50 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 FROM tab0 cor0 WHERE 17 + + col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 * col0 + col0 * 5 AS col2 FROM tab2 AS cor0
----
-1886
-3776
-5250

query I rowsort
SELECT + 68 * + + 42 + - 17 + 42 + - 64 * - col0 * - 41 FROM tab1 AS cor0
----
-130943
-220159
-235903

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT - + 61 + - 14 - + + COUNT( * ) * + + SUM( + 2 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8960
SELECT - + 61 + - 14 - + + COUNT ( * ) * + + SUM ( + 2 ) FROM tab1 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT + + CAST( NULL AS SIGNED ) * - col0 + + 54 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT + + CAST ( NULL AS INTEGER ) * - col0 + + 54 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 7 + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8963
SELECT + col2 DIV + col0, 3 + + + col2 AS col1 FROM tab1 AS cor0
----
0
62
0
71
1
99

skipif mysql # not compatible
query II rowsort label-8963
SELECT + col2 / + col0, 3 + + + col2 AS col1 FROM tab1 AS cor0
----
0
62
0
71
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 56 col2 FROM tab2 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT MAX( DISTINCT + - 27 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-8965
SELECT MAX ( DISTINCT + - 27 ) FROM tab2
----
-27

query I rowsort
SELECT ALL 53 + + + col1 AS col2 FROM tab1
----
100
58
67

query I rowsort
SELECT + 40 * col0 FROM tab2
----
1840
2560
3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 WHERE NOT ( col0 + + 76 - - col1 ) < col2 OR NULL IS NULL
----
15
87
97

query II rowsort
SELECT col2, + col2 AS col1 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 97 * - ( + col0 ) + + col1 * col0 > col2 + + col0
----

query I rowsort
SELECT ALL - 43 + 75 AS col1 FROM tab2
----
32
32
32

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN ( NULL ) AND - 78 * + col0 * - col1 * col1 * - col0 - + col1 / ( 84 )
----

query I rowsort
SELECT ALL + ( + + col0 ) + 77 FROM tab2
----
123
141
152

query I rowsort
SELECT - 38 - 86 FROM tab1
----
-124
-124
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8975
SELECT DISTINCT + COUNT( * ) + - - CAST( + 73 AS SIGNED ) col2 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8975
SELECT DISTINCT + COUNT ( * ) + - - CAST ( + 73 AS INTEGER ) col2 FROM tab1 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT ALL MIN( ALL + 40 ) FROM tab2 cor0
----
40

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL MIN ( ALL + 40 ) FROM tab2 cor0
----
40

query I rowsort
SELECT DISTINCT ( + - ( + col1 ) ) * - col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT - col1 * - + col0 + - + col2 - + 15 FROM tab0 AS cor0
----
-17
1153
1802

query I rowsort
SELECT ALL col1 + - col0 + + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
56
59
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8980
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + CAST( NULL AS SIGNED ) + col0 > - col0
----

skipif mysql # not compatible
query III rowsort label-8980
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + CAST ( NULL AS INTEGER ) + col0 > - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - + 14 * - - 20 + + + col2 IN ( 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 + col0 * + + 97 col1 FROM tab0 AS cor0 WHERE + 32 + - ( + + col2 ) IS NOT NULL
----
1506
8490
9460

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE 98 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT COUNT( * ) + - + 43 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-43

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT COUNT ( * ) + - + 43 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-43

query I rowsort
SELECT ALL - - col1 * 92 AS col0 FROM tab1 AS cor0
----
1288
4324
460

query I rowsort
SELECT - col1 * + - col1 + + - 94 AS col1 FROM tab1 AS cor0
----
-69
102
2115

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 * 25 + + - 33 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 11 <> col0 + 28 - - col2 / col0 + + col1 * - 29 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT DISTINCT - MIN( + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT - MIN ( + col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT DISTINCT CAST( - - 71 AS SIGNED ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT CAST ( - - 71 AS INTEGER ) FROM tab0 AS cor0
----
71

query II rowsort
SELECT ALL - - col1 * col0 + - - col1 AS col2, + col0 AS col0 FROM tab2 AS cor0
----
2397
46
5005
64
5092
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8992
SELECT DISTINCT - 48, + SUM( + - col1 ) col1 FROM tab2 cor0
----
-48
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8992
SELECT DISTINCT - 48, + SUM ( + - col1 ) col1 FROM tab2 cor0
----
-48
-195

query I rowsort
SELECT - 73 + col1 AS col0 FROM tab2 AS cor0
----
-22
-6
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + COUNT( * ) + + 35 AS col1 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8994
SELECT + COUNT ( * ) + + 35 AS col1 FROM tab0 AS cor0
----
38

query I rowsort
SELECT + col2 + 41 + ( - col0 ) FROM tab1
----
15
18
86

query I rowsort
SELECT DISTINCT 17 + - col1 + 28 FROM tab0
----
-36
24
44

query I rowsort
SELECT ALL + 31 - - ( + col1 ) * + 29 * - 31 AS col2 FROM tab1
----
-12555
-42222
-4464

query I rowsort
SELECT ALL col0 + + + 92 FROM tab2
----
138
156
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ALL + ( + - ( + 11 ) ) * + COUNT( * ) + + SUM( DISTINCT - 85 ) * COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-864

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + ( + - ( + 11 ) ) * + COUNT ( * ) + + SUM ( DISTINCT - 85 ) * COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-864

query I rowsort
SELECT DISTINCT col0 - 62 AS col0 FROM tab1 cor0
----
-11
23
29

query II rowsort
SELECT - col1, + 76 + + col0 AS col2 FROM tab2 cor0
----
-51
122
-67
151
-77
140

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT ALL - 53 + - col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
-152
-53
-53

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL - 53 + - col2 / + col1 AS col1 FROM tab0 AS cor0
----
-152
-53
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT + - col2 / - CAST( NULL AS SIGNED ) * + col1 - + ( + + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT + - col2 / - CAST ( NULL AS INTEGER ) * + col1 - + ( + + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL MAX( + - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL MAX ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9005
SELECT DISTINCT - 70 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
-70
3

skipif mysql # not compatible
query II rowsort label-9005
SELECT DISTINCT - 70 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
-70
3

query I rowsort
SELECT col1 - + col0 AS col2 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT + col0 * - + col2 + + col1 + - + col0 + - + col0 FROM tab2 cor0
----
-1099
-2611
-4433

onlyif mysql # aggregate syntax: 
query II rowsort label-9008
SELECT DISTINCT + COUNT( * ) AS col0, - COUNT( DISTINCT - + col1 ) + - - COUNT( * ) + + 30 FROM tab0 AS cor0
----
3
30

skipif mysql # not compatible
query II rowsort label-9008
SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( DISTINCT - + col1 ) + - - COUNT ( * ) + + 30 FROM tab0 AS cor0
----
3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT COUNT( - ( + - col2 ) ) + - - 27 AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9009
SELECT COUNT ( - ( + - col2 ) ) + - - 27 AS col2 FROM tab2
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-9010
SELECT DISTINCT + col0 * col2 AS col2, 36 DIV - + 49 FROM tab0
----
705
0
870
0
9603
0

skipif mysql # not compatible
query II rowsort label-9010
SELECT DISTINCT + col0 * col2 AS col2, 36 / - + 49 FROM tab0
----
705
0
870
0
9603
0

query I rowsort
SELECT col2 * col2 + - - col2 FROM tab2
----
1640
3422
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col2 ) * + col2 col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL - 46 AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 16 + col2 FROM tab2
----
39
56
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT + COUNT( + + 0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + COUNT ( + + 0 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 69 * + - 18 + - col0 + - col1 / col0 NOT IN ( + col2 / - 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 89 AS col0 FROM tab0 WHERE NOT + + col2 IS NULL
----
89
89
89

query I rowsort
SELECT ALL + col1 * - 66 + - ( + col2 ) + + 62 AS col0 FROM tab0 AS cor0
----
-103
-1334
-5331

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL - - ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL - - ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE - col0 * + - col0 * 39 * + + col2 + col1 * + + col2 IN ( - col2, + 10 )
----

query II rowsort
SELECT + 4 AS col0, col0 AS col0 FROM tab1 AS cor0
----
4
51
4
85
4
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - - SUM( + 41 ) FROM tab1 AS cor0 WHERE NOT 64 BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT - - SUM ( + 41 ) FROM tab1 AS cor0 WHERE NOT 64 BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT - MAX( + 98 ) AS col1 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9023
SELECT - MAX ( + 98 ) AS col1 FROM tab1 AS cor0
----
-98

query III rowsort
SELECT col2 AS col1, + ( - + col1 ) AS col2, col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 44 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9025
SELECT DISTINCT col1 DIV 63 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT col1 / 63 AS col2 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( - ( col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 54 + - col2 AS col0 FROM tab1
----
-14
-42
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT - ( - - 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-9028
SELECT - ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT - COUNT( * ) * MAX( ALL + + 16 ) * + COUNT( * ) FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-9029
SELECT - COUNT ( * ) * MAX ( ALL + + 16 ) * + COUNT ( * ) FROM tab1
----
-144

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - col2 ) < col0
----

query II rowsort
SELECT ALL + + ( + + col1 ) AS col2, - 87 + - col0 AS col2 FROM tab0 AS cor0
----
1
-184
21
-174
81
-102

query I rowsort
SELECT DISTINCT 61 * - col0 FROM tab2 AS cor0
----
-2806
-3904
-4575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT ALL - MAX( DISTINCT + col0 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - MAX ( DISTINCT + col0 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 93 * 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 282e71b484507bd28e5642242ab0858b

query I rowsort
SELECT ALL + ( - - ( + col1 ) ) + + - col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT + col1 + - 82 FROM tab1
----
-35
-68
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9038
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( - - CAST( 28 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9038
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( - - CAST ( 28 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9040
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) > CAST( NULL AS SIGNED ) * - + 47
----

skipif mysql # not compatible
query III rowsort label-9040
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) > CAST ( NULL AS INTEGER ) * - + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT + + COUNT( * ) + - 73 col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9041
SELECT + + COUNT ( * ) + - 73 col1 FROM tab2 AS cor0
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9042
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN col1 AND - 61
----

skipif mysql # not compatible
query III rowsort label-9042
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN col1 AND - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT COUNT( DISTINCT col1 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9043
SELECT COUNT ( DISTINCT col1 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT + CAST( - + AVG ( DISTINCT + 77 ) AS SIGNED ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-9044
SELECT + CAST ( - + AVG ( DISTINCT + 77 ) AS INTEGER ) FROM tab1
----
-77

query I rowsort
SELECT 45 * + - col2 FROM tab0
----
-2115
-4455
-450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT ALL - SUM( CAST( - + col2 AS SIGNED ) ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - SUM ( CAST ( - + col2 AS INTEGER ) ) AS col0 FROM tab2
----
121

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - - col1 * + - 44 IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86, - col0 col0 FROM tab1
----
86
-51
86
-85
86
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT MIN( - 62 ) AS col0 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-9049
SELECT MIN ( - 62 ) AS col0 FROM tab2
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, + col2 col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT DISTINCT - col2 + 5 + + ( col0 ) * col1 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-18275
-57147
-9697

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + COUNT( * ) FROM tab2 WHERE NOT - col1 * - - ( + col2 ) NOT BETWEEN + 50 * 37 AND + 17
----
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - col1 * - - ( + col2 ) NOT BETWEEN + 50 * 37 AND + 17
----
0

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9054
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + - 92 AS col1 FROM tab1 cor0
----
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 44 NOT BETWEEN - 56 + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9057
SELECT CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 * 79 + - + col0 FROM tab0 cor0
----
-1746
-176
-6414

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT - SUM( DISTINCT - + 57 ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-9059
SELECT - SUM ( DISTINCT - + 57 ) FROM tab2
----
57

query I rowsort
SELECT DISTINCT + 42 + + col1 + + col1 FROM tab2
----
144
176
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT ALL ( + 49 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL ( + 49 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL - 40 * - 28 * + 16 + - COUNT( * ) FROM tab0
----
17917

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL - 40 * - 28 * + 16 + - COUNT ( * ) FROM tab0
----
17917

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT - SUM( ALL - + 19 ) + - COUNT( * ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT - SUM ( ALL - + 19 ) + - COUNT ( * ) AS col0 FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9064
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( ( - 23 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9064
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( ( - 23 ) AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - 72 ) IS NULL
----

query I rowsort
SELECT ALL + ( - + col2 ) FROM tab0 WHERE NOT + 16 * 73 * - col2 - col2 + col1 = NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE - col2 - + col1 IS NULL
----

query I rowsort
SELECT col0 * + + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + + MIN( ALL + 29 ) FROM tab0 cor0
----
29

skipif mysql # not compatible
query I rowsort label-9069
SELECT + + MIN ( ALL + 29 ) FROM tab0 cor0
----
29

query I rowsort
SELECT DISTINCT + ( + 47 ) AS col1 FROM tab1 AS cor0
----
47

query II rowsort
SELECT DISTINCT - ( - - 2 ) AS col2, + ( + - 33 ) AS col2 FROM tab0 AS cor0
----
-2
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * - ( - - col0 ) col1 FROM tab0 AS cor0
----
-4698
-5238
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9073
SELECT + CAST( MAX( col1 ) AS SIGNED ) * 61 + + 60 FROM tab1 AS cor0
----
2927

skipif mysql # not compatible
query I rowsort label-9073
SELECT + CAST ( MAX ( col1 ) AS INTEGER ) * 61 + + 60 FROM tab1 AS cor0
----
2927

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9074
SELECT col2 DIV - - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
NULL
1
NULL
3
NULL

skipif mysql # not compatible
query II rowsort label-9074
SELECT col2 / - - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
NULL
1
NULL
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN - col1 AND ( + - 11 ) * + 49 * - 23 + - - ( - col2 ) * + col2 + 52 - + ( col1 ) * + col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9076
SELECT - + SUM( + col1 ) + CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9076
SELECT - + SUM ( + col1 ) + CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT col1 * + 47 AS col1 FROM tab2
----
2397
3149
3619

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT + col0 DIV 22 AS col0 FROM tab1 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-9078
SELECT + col0 / 22 AS col0 FROM tab1 AS cor0
----
2
3
4

query I rowsort
SELECT + ( + 66 ) AS col1 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT 83 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL - - 55 + MIN( DISTINCT - 48 ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
7

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - - 55 + MIN ( DISTINCT - 48 ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL + COUNT( * ) + + + COUNT( * ) + + SUM( + 93 ) AS col0 FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) + + SUM ( + 93 ) AS col0 FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 * - 57 AS col0 FROM tab2 AS cor0
----
-2622
-3648
-4275

query I rowsort
SELECT + - ( + - col1 ) + - - col0 * - col1 * + - col1 AS col0 FROM tab0 AS cor0
----
38388
98
98496

query II rowsort
SELECT - + col0 * - col2 + + - col0 + - 56, col0 + - col2 AS col2 FROM tab2 AS cor0
----
2440
24
4219
17
956
23

query I rowsort
SELECT DISTINCT + col1 * col1 + - 97 FROM tab1 AS cor0
----
-72
2112
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT - 61 + - + COUNT( * ) col0 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9087
SELECT - 61 + - + COUNT ( * ) col0 FROM tab1 AS cor0
----
-64

query II rowsort
SELECT DISTINCT + col2, - col2 FROM tab2 cor0
----
23
-23
40
-40
58
-58

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT - COUNT( DISTINCT 76 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9090
SELECT - COUNT ( DISTINCT 76 ) FROM tab1
----
-1

query III rowsort
SELECT * FROM tab2 WHERE - ( - - 95 ) * - + col1 IN ( - col0, 34, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT MAX( + col0 ) + + - 70 * - 61 AS col0 FROM tab2
----
4345

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT MAX ( + col0 ) + + - 70 * - 61 AS col0 FROM tab2
----
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT MAX( DISTINCT - 70 ) FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT MAX ( DISTINCT - 70 ) FROM tab0
----
-70

query III rowsort
SELECT * FROM tab0 WHERE 8 * - - col1 * - - col2 - 12 + + col1 * - 51 - + - ( col0 ) * - col0 = - - col1
----

query I rowsort
SELECT - + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT + ( + + COUNT( * ) ) + + 14 AS col1 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-9096
SELECT + ( + + COUNT ( * ) ) + + 14 AS col1 FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT + COUNT( * ), 83 + + 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
137

skipif mysql # not compatible
query II rowsort label-9097
SELECT + COUNT ( * ), 83 + + 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
137

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT DISTINCT col0 DIV + + col1 AS col0 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT col0 / + + col1 AS col0 FROM tab1 cor0
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT + MAX( ALL - col1 ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9099
SELECT + MAX ( ALL - col1 ) col1 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9100
SELECT ALL - COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT MAX( + - 51 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9101
SELECT MAX ( + - 51 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT - SUM( ( + 66 ) ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-9102
SELECT - SUM ( ( + 66 ) ) AS col2 FROM tab1
----
-198

query II rowsort
SELECT - + 5 AS col2, + col1 AS col0 FROM tab2 WHERE NOT + + 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL - + COUNT( + 7 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9104
SELECT ALL - + COUNT ( + 7 ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - + 43 FROM tab1 AS cor0 WHERE NOT col2 * + col1 IS NULL
----
-43
-43
-43

query II rowsort
SELECT DISTINCT + col0 + + col1 AS col1, 45 * col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
108
3915
96
675
98
4365

query II rowsort
SELECT + + col1 + - 73 + + col2 * - ( - - col0 ) AS col2, + col1 FROM tab1 AS cor0
----
-4955
14
-5083
5
-6214
47

query I rowsort
SELECT - 25 + - col1 * - ( + - 47 ) FROM tab2
----
-2422
-3174
-3644

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - COUNT( * ) * - 71 col0 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9109
SELECT - COUNT ( * ) * - 71 col0 FROM tab0 AS cor0
----
213

query I rowsort
SELECT - 68 * - - col0 FROM tab0 AS cor0
----
-1020
-5916
-6596

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9112
SELECT - CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9112
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL MIN( - 53 ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL MIN ( - 53 ) FROM tab0 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT + + COUNT( * ) + - + 11 AS col0 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9114
SELECT + + COUNT ( * ) + - + 11 AS col0 FROM tab2 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9115
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-9115
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT ALL 50 * + - col2 + - col2 * - + col1 FROM tab1
----
-204
-2655
-3456

query I rowsort
SELECT DISTINCT 24 + - col1 AS col1 FROM tab1
----
-23
10
19

query I rowsort
SELECT DISTINCT ( + - col0 ) + - col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT - col0 + 66 FROM tab0
----
-21
-31
51

query I rowsort
SELECT 45 FROM tab1 WHERE + col0 - col0 IS NOT NULL
----
45
45
45

query I rowsort
SELECT - 39 + + - col1 AS col2 FROM tab1
----
-44
-53
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT DISTINCT - col2 * + - col0 + col1 DIV + col2 - 41 FROM tab0
----
665
831
9562

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT - col2 * + - col0 + col1 / + col2 - 41 FROM tab0
----
665
831
9562

query I rowsort
SELECT ALL col1 + 38 + 90 FROM tab1 WHERE ( NULL ) < - ( 2 ) * - + 32 + + col0
----

query I rowsort
SELECT - col2 + + + col2 - col0 AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT ALL + 70 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL + 70 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9126
SELECT * FROM tab2 cor0 WHERE 17 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9126
SELECT * FROM tab2 cor0 WHERE 17 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + + COUNT( * ) + + - 82 AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-9127
SELECT + + COUNT ( * ) + + - 82 AS col0 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT - 65 FROM tab2, tab1 cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT DISTINCT 7 - - ( - 73 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-66

query I rowsort
SELECT + + 65 FROM tab1 cor0
----
65
65
65

query I rowsort
SELECT DISTINCT + col0 * + 17 AS col0 FROM tab2 AS cor0 WHERE 67 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9133
SELECT ALL - CAST( NULL AS SIGNED ) * 38 * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL - CAST ( NULL AS INTEGER ) * 38 * + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9134
SELECT * FROM tab1 WHERE NOT + col2 - col0 <> CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9134
SELECT * FROM tab1 WHERE NOT + col2 - col0 <> CAST ( col0 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 + + + col2 BETWEEN NULL AND - ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + - 88 * ( + + 60 ) AS col0 FROM tab0
----
-110880
-427680
-5280

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( 48 + + - col2 / + col2 * - col0 + col0 )
----

query I rowsort
SELECT - + col1 - - 26 + + 84 * + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 1 AS col1, - 31 FROM tab0
----
1
-31
1
-31
1
-31

query I rowsort
SELECT ALL col1 * + 53 + + col2 AS col1 FROM tab2 AS cor0
----
2726
3609
4121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9141
SELECT DISTINCT - AVG ( col1 ) * - MAX( ALL + CAST( NULL AS SIGNED ) ) + 91 + + + SUM( CAST( - col2 AS SIGNED ) ) + + COUNT( * ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT - AVG ( col1 ) * - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + 91 + + + SUM ( CAST ( - col2 AS INTEGER ) ) + + COUNT ( * ) AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT + col2 + - - col1 DIV - + col0 * + 55 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9143
SELECT + col2 + - - col1 / - + col0 * + 55 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT col0 DIV - col0 + + 70 * - + 93 * + - col1 AS col0 FROM tab0 AS cor0
----
136709
527309
6509

skipif mysql # not compatible
query I rowsort label-9144
SELECT col0 / - col0 + + 70 * - + 93 * + - col1 AS col0 FROM tab0 AS cor0
----
136709
527309
6509

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 48 - - col1 IN ( + 93, ( + col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND 18 / - 2
----

query I rowsort
SELECT ALL - col2 - + - 20 AS col1 FROM tab0 AS cor0
----
-27
-79
10

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - 55 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT - 90 DIV - + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9149
SELECT - 90 / - + col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT ( col2 ) + + col1 * 32 FROM tab1
----
1572
219
544

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9151
SELECT ALL 95 * + + 83 * + + 4, + COUNT( * ) AS col1 FROM tab1 WHERE + col1 NOT IN ( - 8, col0 + col0 * + 4 - + ( + + CAST( NULL AS DECIMAL ) ), + - col2 )
----
31540
0

skipif mysql # not compatible
query II rowsort label-9151
SELECT ALL 95 * + + 83 * + + 4, + COUNT ( * ) AS col1 FROM tab1 WHERE + col1 NOT IN ( - 8, col0 + col0 * + 4 - + ( + + CAST ( NULL AS REAL ) ), + - col2 )
----
31540
0

query I rowsort
SELECT DISTINCT - 9 + - 47 AS col2 FROM tab1
----
-56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT COUNT( * ) + - MAX( DISTINCT - - 77 ) FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT COUNT ( * ) + - MAX ( DISTINCT - - 77 ) FROM tab0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col0 ) - + - col1, col0 col2 FROM tab1 cor0
----
138
91
65
51
90
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + - COUNT( * ) - - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9156
SELECT + - COUNT ( * ) - - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9157
SELECT ALL - MIN( DISTINCT CAST( col2 AS SIGNED ) ) col2 FROM tab1 AS cor0 WHERE 50 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9157
SELECT ALL - MIN ( DISTINCT CAST ( col2 AS INTEGER ) ) col2 FROM tab1 AS cor0 WHERE 50 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + col0 + 9 AS col2 FROM tab2 cor0
----
55
73
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT - + 34 AS col1 FROM tab2 AS cor0 WHERE NOT col2 / CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * col0 <> - col0 * 31 * + + col0
----

skipif mysql # not compatible
query I rowsort label-9159
SELECT - + 34 AS col1 FROM tab2 AS cor0 WHERE NOT col2 / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * col0 <> - col0 * 31 * + + col0
----

query I rowsort
SELECT 86 * + col2 AS col0 FROM tab1 AS cor0
----
5074
5848
8256

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + + - 21 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + + - 21 <= NULL
----
0

query I rowsort
SELECT col1 + - 41 AS col1 FROM tab1 AS cor0 WHERE NOT col1 / col2 * + col2 BETWEEN NULL AND col1
----

query I rowsort
SELECT col1 * - ( - - col2 ) AS col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 22 * + - col2 FROM tab2
----
-1276
-506
-880

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 32 FROM tab2 AS cor0 WHERE NOT col0 > - col1 + - ( - col0 )
----

query I rowsort
SELECT col1 * - ( col2 ) + + col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( col0 ) AND NULL
----

query II rowsort
SELECT col2, 3 FROM tab2 AS cor0
----
23
3
40
3
58
3

query I rowsort
SELECT - + 51 * - - 49 AS col2 FROM tab2 AS cor0 WHERE NOT 33 - + + 79 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - ( col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 91 BETWEEN + col0 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT ALL ( + 44 ) DIV col2 AS col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL ( + 44 ) / col2 AS col0 FROM tab0 AS cor0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT 19 * + COUNT( * ) AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9174
SELECT 19 * + COUNT ( * ) AS col0 FROM tab0
----
57

query I rowsort
SELECT DISTINCT - 76 + + col2 FROM tab0
----
-29
-66
23

query I rowsort
SELECT DISTINCT - 71 * col0 * - col2 * - - col0 FROM tab2
----
11632640
23163750
3455428

query III rowsort
SELECT * FROM tab2 WHERE NOT - 20 <> col2
----

query I rowsort
SELECT - ( + col1 ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT - + col2 + + col2 * + col2 AS col1 FROM tab0 AS cor0
----
2162
90
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT COUNT( * ) + - MIN( DISTINCT - - 28 ) AS col2 FROM tab1 cor0 WHERE 19 + + col2 IS NOT NULL
----
-25

skipif mysql # not compatible
query I rowsort label-9180
SELECT COUNT ( * ) + - MIN ( DISTINCT - - 28 ) AS col2 FROM tab1 cor0 WHERE 19 + + col2 IS NOT NULL
----
-25

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 65 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 27 + - 81
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9183
SELECT DISTINCT + 49 DIV col1 * - col2, + col0 FROM tab1 cor0
----
-288
51
-531
85
-68
91

skipif mysql # not compatible
query II rowsort label-9183
SELECT DISTINCT + 49 / col1 * - col2, + col0 FROM tab1 cor0
----
-288
51
-531
85
-68
91

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col2 + col0 + + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL + 99 - + COUNT( * ) FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + 99 - + COUNT ( * ) FROM tab2 cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT ALL + ( + ( col1 ) ) DIV + - 79 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL + ( + ( col1 ) ) / + - 79 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT + - ( 31 ) - - COUNT( col1 ) AS col0 FROM tab2 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9187
SELECT + - ( 31 ) - - COUNT ( col1 ) AS col0 FROM tab2 cor0
----
-28

query I rowsort
SELECT ALL + + ( - + 19 ) FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT 35 - - ( - 4 ) AS col1 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT COUNT( * ) + + 30 + - + 83 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT COUNT ( * ) + + 30 + - + 83 FROM tab2 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL + COUNT( ALL - 10 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + COUNT ( ALL - 10 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col2 * + 4 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT - SUM( DISTINCT - col0 ) + - - MIN( col1 ) * - - COUNT( * ) FROM tab2 AS cor0
----
338

skipif mysql # not compatible
query I rowsort label-9193
SELECT - SUM ( DISTINCT - col0 ) + - - MIN ( col1 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
338

query I rowsort
SELECT + col2 + + ( ( + col1 ) ) AS col2 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9195
SELECT ALL + col1 / + CAST( NULL AS SIGNED ) + col2 + - col1 + - - 53 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL + col1 / + CAST ( NULL AS INTEGER ) + col2 + - col1 + - - 53 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - + 41 + + - col2 + 6 * + - col1 + + col2 * + + 20 + col1 AS col0 FROM tab1
----
1107
1140
1764

query I rowsort
SELECT + 99 + + 16 FROM tab2
----
115
115
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT + col1 AS col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9198
SELECT + col1 AS col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + col1 - + ( 95 ) AS col2 FROM tab1
----
-48
-81
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL - COUNT( * ) + + 39 AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL - COUNT ( * ) + + 39 AS col2 FROM tab2
----
36

query I rowsort
SELECT DISTINCT + col0 + - col2 + col1 + - col1 - + 5 * + col2 FROM tab1
----
-269
-317
-525

query I rowsort
SELECT DISTINCT - col1 * + 44 * - - col1 * + 29 - col0 FROM tab0
----
-1373
-562803
-8371851

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL - MIN( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - MIN ( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
96

query II rowsort
SELECT ALL - col0, col0 AS col0 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9206
SELECT 83 DIV + - COUNT( * ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-9206
SELECT 83 / + - COUNT ( * ) AS col0 FROM tab1
----
-27

query I rowsort
SELECT ALL + ( 79 ) AS col1 FROM tab2 AS cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 * + col2 col1 FROM tab0 AS cor0
----
-235
-495
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9209
SELECT + + MIN( + 0 ) DIV + 66 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT + + MIN ( + 0 ) / + 66 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9210
SELECT + 93 AS col1, 27 + COUNT( col2 ) FROM tab2 AS cor0
----
93
30

skipif mysql # not compatible
query II rowsort label-9210
SELECT + 93 AS col1, 27 + COUNT ( col2 ) FROM tab2 AS cor0
----
93
30

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9211
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( + col1 AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9211
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( + col1 AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 74 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * - col0 * 72 AS col0 FROM tab0 AS cor0
----
50760
62640
691416

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT - 47 * - COUNT( * ) FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT - 47 * - COUNT ( * ) FROM tab2 AS cor0
----
141

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 46 IS NOT NULL
----

query I rowsort
SELECT col1 + - - 88 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL - SUM( + 9 ) + - MIN( DISTINCT - 38 ) - + + MAX( DISTINCT 44 ) AS col0 FROM tab0, tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL - SUM ( + 9 ) + - MIN ( DISTINCT - 38 ) - + + MAX ( DISTINCT 44 ) AS col0 FROM tab0, tab0 AS cor0
----
-87

query I rowsort
SELECT ( - - ( col1 ) ) * col1 * + col2 AS col2 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT 88 * + ( 70 ) AS col1 FROM tab0
----
6160
6160
6160

query I rowsort
SELECT ALL 11 + 12 + + col0 FROM tab1
----
108
114
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL 38 * + ( - COUNT( * ) ) * - - 98 - - COUNT( * ) FROM tab0
----
-11169

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL 38 * + ( - COUNT ( * ) ) * - - 98 - - COUNT ( * ) FROM tab0
----
-11169

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT - ( 14 ) < + 47 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT + + col2 DIV + + 51 + - col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-9223
SELECT + + col2 / + + 51 + - col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT DISTINCT - + col1 * - + col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-9225
SELECT - + col2 DIV + - col1 AS col0 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-9225
SELECT - + col2 / + - col1 AS col0 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL 42 + - + 25 * COUNT( * ) * + 98 AS col2 FROM tab2
----
-7308

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL 42 + - + 25 * COUNT ( * ) * + 98 AS col2 FROM tab2
----
-7308

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT + 31 + - MAX( ALL + col1 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT + 31 + - MAX ( ALL + col1 ) AS col2 FROM tab2
----
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + - - col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 - - col0 + col0 FROM tab2 AS cor0
----
143
205
217

query II rowsort
SELECT DISTINCT - col2, + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 47
----

query I rowsort
SELECT DISTINCT + - col0 - + - col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9233
SELECT MIN( - ( col1 ) ) - - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT MIN ( - ( col1 ) ) - - + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 + + 17 FROM tab0
----
18
38
98

query II rowsort
SELECT 2 AS col1, - col2 FROM tab2
----
2
-23
2
-40
2
-58

query I rowsort
SELECT DISTINCT + 37 AS col1 FROM tab2 WHERE NULL IS NULL
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT - COUNT( * ) FROM tab1 WHERE NOT - - 82 * col2 - + - 72 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9237
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - - 82 * col2 - + - 72 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL ( + + COUNT( - col0 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL ( + + COUNT ( - col0 ) ) FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT - 76 AS col0, - col2 FROM tab2 AS cor0
----
-76
-23
-76
-40
-76
-58

query I rowsort
SELECT ALL 15 * + - col1 AS col2 FROM tab2
----
-1005
-1155
-765

query II rowsort
SELECT DISTINCT ( col2 ), - 40 * col1 + - - col2 FROM tab2
----
23
-2017
40
-3040
58
-2622

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 <= + 7
----

query I rowsort
SELECT - 58 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query II rowsort
SELECT ALL - - ( - col2 ), + 51 AS col1 FROM tab2 AS cor0
----
-23
51
-40
51
-58
51

query I rowsort
SELECT ALL 62 * - 89 FROM tab2 AS cor0
----
-5518
-5518
-5518

query I rowsort
SELECT + + ( - 33 ) FROM tab2 AS cor0
----
-33
-33
-33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 24 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT COUNT( * ) * 63 FROM tab0 cor0
----
189

skipif mysql # not compatible
query I rowsort label-9248
SELECT COUNT ( * ) * 63 FROM tab0 cor0
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-9249
SELECT 37 DIV + 39 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9249
SELECT 37 / + 39 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT ALL - COUNT( * ) + + 91 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL - COUNT ( * ) + + 91 FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT DISTINCT + COUNT( * ) + + 33 AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT + COUNT ( * ) + + 33 AS col2 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT COUNT( * ) + + + 18 AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9252
SELECT COUNT ( * ) + + + 18 AS col2 FROM tab2
----
21

query I rowsort
SELECT col0 + + 52 AS col2 FROM tab2
----
116
127
98

query I rowsort
SELECT DISTINCT col2 + - col1 * col0 * + 3 FROM tab2
----
-14744
-15017
-7015

query I rowsort
SELECT ALL + col0 + - col0 * - - col2 FROM tab0 AS cor0
----
-690
-783
-9506

query I rowsort
SELECT ( + 77 ) FROM tab2 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT + MAX( ALL - col0 ) col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9257
SELECT + MAX ( ALL - col0 ) col1 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT + col1 DIV 51 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9258
SELECT + col1 / 51 AS col1 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 - + 41 col0 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT - - ( + 7 ) FROM tab2 cor0 WHERE - 6 * - col0 IS NOT NULL
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT ALL CAST( - col2 AS SIGNED ) - - - col1 FROM tab0 AS cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL CAST ( - col2 AS INTEGER ) - - - col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT - 51 - - - col1 AS col1 FROM tab0 AS cor0
----
-132
-52
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT + + col1 + - col2 + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-1
49
98

skipif mysql # not compatible
query I rowsort label-9264
SELECT + + col1 + - col2 + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-1
49
98

query I rowsort
SELECT + col0 + col1 * + col2 FROM tab1 cor0
----
1395
3287
380

query II rowsort
SELECT ALL col0, col2 FROM tab1 AS cor0 WHERE NOT + 98 <= + + col2
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL - 60 * COUNT( * ) * 87 * 13 col0 FROM tab0
----
-203580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9267
SELECT ALL - 60 * COUNT ( * ) * 87 * 13 col0 FROM tab0
----
-203580

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT 39 * COUNT( * ) FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT 39 * COUNT ( * ) FROM tab0
----
117

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL NOT BETWEEN NULL AND col0 * col2 * + + 29 * + col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT - ( SUM( 92 ) ) AS col0 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - ( SUM ( 92 ) ) AS col0 FROM tab2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT + 81 * - COUNT( * ) FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + 81 * - COUNT ( * ) FROM tab2
----
-243

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) = - col0 + - - 84 + - col2 * - 31 + 47
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col2 FROM tab1 WHERE NOT - col2 IS NULL
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + COUNT( * ) * - COUNT( ALL + 31 ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9274
SELECT + COUNT ( * ) * - COUNT ( ALL + 31 ) AS col0 FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT - col2 DIV - + col0 AS col2 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9275
SELECT - col2 / - + col0 AS col2 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT 75 * ( - - col2 ) FROM tab1
----
4425
5100
7200

onlyif mysql # aggregate syntax: 
query II rowsort label-9277
SELECT ALL - 71, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-71
3

skipif mysql # not compatible
query II rowsort label-9277
SELECT ALL - 71, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-71
3

query I rowsort
SELECT - ( col0 ) * col2 + + + 22 * + + col2 AS col2 FROM tab0 AS cor0
----
-650
-7425
329

query I rowsort
SELECT - col2 + - - col2 * - - col1 AS col0 FROM tab2 AS cor0
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9280
SELECT - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9281
SELECT + - col1 DIV + - 34 + - col0 AS col0, col0 FROM tab2 AS cor0
----
-45
46
-62
64
-74
75

skipif mysql # not compatible
query II rowsort label-9281
SELECT + - col1 / + - 34 + - col0 AS col0, col0 FROM tab2 AS cor0
----
-45
46
-62
64
-74
75

query II rowsort
SELECT ALL + 21 AS col2, - ( + col0 ) * + - 33 - 46 FROM tab2 cor0
----
21
1472
21
2066
21
2429

query II rowsort
SELECT ALL + - col2 + - col1, col2 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT - ( + + 86 ), + col2 FROM tab1 WHERE col0 + + - col0 = + + col0 * - + col0 + col0 * - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 41 )
----

query I rowsort
SELECT DISTINCT - 59 + - col0 AS col2 FROM tab0
----
-146
-156
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9287
SELECT DISTINCT col1 + col0 AS col2, col1 - CAST( NULL AS SIGNED ) - 35 FROM tab0
----
108
NULL
96
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-9287
SELECT DISTINCT col1 + col0 AS col2, col1 - CAST ( NULL AS INTEGER ) - 35 FROM tab0
----
108
NULL
96
NULL
98
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT DISTINCT col2 DIV col0 * + col2 + - col1 + - + 70 AS col2 FROM tab2
----
-121
-137
-147

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT col2 / col0 * + col2 + - col1 + - + 70 AS col2 FROM tab2
----
-121
-137
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT ALL + ( + ( - CAST( NULL AS SIGNED ) ) ) - + 47 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL + ( + ( - CAST ( NULL AS INTEGER ) ) ) - + 47 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
14
47
5

query I rowsort
SELECT DISTINCT - - 0 + + col2 FROM tab2 cor0 WHERE + 9 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT ALL 57 * + + col0 FROM tab1 AS cor0 WHERE col2 * + - CAST( NULL AS SIGNED ) + + col0 * - col0 IS NULL
----
2907
4845
5187

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL 57 * + + col0 FROM tab1 AS cor0 WHERE col2 * + - CAST ( NULL AS INTEGER ) + + col0 * - col0 IS NULL
----
2907
4845
5187

query I rowsort
SELECT ALL 93 * + - col1 FROM tab2 cor0
----
-4743
-6231
-7161

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + - col1 / - 25 + + 9 * 32, col1, + col0, - col2 * col0 * - 59 * + ( - col2 ), 33, - - col0, 29 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9298
SELECT DISTINCT - ( + + ( + - col0 ) ) * - + col0 DIV + - col0 + - + 51 * col0 AS col0, col0 DIV col1 FROM tab2
----
-2300
0
-3200
0
-3750
1

skipif mysql # not compatible
query II rowsort label-9298
SELECT DISTINCT - ( + + ( + - col0 ) ) * - + col0 / + - col0 + - + 51 * col0 AS col0, col0 / col1 FROM tab2
----
-2300
0
-3200
0
-3750
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT 9 * COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9299
SELECT 9 * COUNT ( * ) AS col2 FROM tab0
----
27

query II rowsort
SELECT 44, 68 * col0 * - - 3 AS col2 FROM tab0
----
44
17748
44
19788
44
3060

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9301
SELECT 50 AS col0, - CAST( NULL AS SIGNED ) + - - ( - - col0 ) * 4 AS col2 FROM tab1
----
50
NULL
50
NULL
50
NULL

skipif mysql # not compatible
query II rowsort label-9301
SELECT 50 AS col0, - CAST ( NULL AS INTEGER ) + - - ( - - col0 ) * 4 AS col2 FROM tab1
----
50
NULL
50
NULL
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - COUNT( ALL + + 46 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9302
SELECT - COUNT ( ALL + + 46 ) col1 FROM tab0
----
-3

query II rowsort
SELECT DISTINCT - 38 * - 28, col1 AS col2 FROM tab0
----
1064
1
1064
21
1064
81

query I rowsort
SELECT DISTINCT ( - col2 ) * 94 * + + 7 * + 60 AS col0 FROM tab0
----
-1855560
-3908520
-394800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT ( - CAST( NULL AS SIGNED ) ) * + - col2 * ( col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT ( - CAST ( NULL AS INTEGER ) ) * + - col2 * ( col0 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9306
SELECT DISTINCT + COUNT( * ) * + - CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT + COUNT ( * ) * + - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL - 60 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT DISTINCT - MAX( DISTINCT ( - - col0 ) ) * COUNT( * ) * - + 64 FROM tab1 AS cor0
----
17472

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT - MAX ( DISTINCT ( - - col0 ) ) * COUNT ( * ) * - + 64 FROM tab1 AS cor0
----
17472

query I rowsort
SELECT ( - 53 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT col0 + + 83 + - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - col0 > NULL
----

query I rowsort
SELECT ALL + ( + 87 ) FROM tab1 AS cor0 WHERE NOT - col1 IN ( + col2, - col2, - col1, - - col1 * + ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9312
SELECT * FROM tab2 AS cor0 WHERE 22 + 17 BETWEEN - col2 AND 52 * + - col1 * CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9312
SELECT * FROM tab2 AS cor0 WHERE 22 + 17 BETWEEN - col2 AND 52 * + - col1 * CAST ( col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 48 NOT IN ( - 57 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT DISTINCT COUNT( DISTINCT - + 74 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT COUNT ( DISTINCT - + 74 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 1 + + col0 AS col2 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT ( - + col2 ) AS col0 FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE 40 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * - 49 + col1 + - col2 col2 FROM tab0
----
-2171
-2194
-2303

query I rowsort
SELECT - 40 + 62 + - - 51 * 30 AS col1 FROM tab2
----
1552
1552
1552

query I rowsort
SELECT DISTINCT ( + + col1 ) + + - col2 AS col1 FROM tab2
----
28
37
9

query I rowsort
SELECT ALL col2 + + 36 AS col0 FROM tab1
----
104
132
95

query I rowsort
SELECT DISTINCT - col0 - + col1 AS col1 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9323
SELECT DISTINCT col2 AS col2, + col2 - - - col0 * 62 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9323
SELECT DISTINCT col2 AS col2, + col2 - - - col0 * 62 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL + + ( 20 ) AS col1 FROM tab0 cor0
----
20
20
20

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) < + 46
----
15
81
47
97
1
99

query I rowsort
SELECT ALL + 20 * + col0 AS col0 FROM tab1
----
1020
1700
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT + 38 - COUNT( * ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-9327
SELECT + 38 - COUNT ( * ) FROM tab1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT + 54 DIV - ( + col1 ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9328
SELECT + 54 / - ( + col1 ) FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE col1 * col0 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + 69 + 8 FROM tab2
----
77
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9331
SELECT - COUNT( * ) DIV COUNT( * ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9331
SELECT - COUNT ( * ) / COUNT ( * ) col2 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9332
SELECT ALL - CAST( NULL AS SIGNED ) - - 76 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - CAST ( NULL AS INTEGER ) - - 76 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT ALL - 32 / + 16 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 - - 22 * col1 FROM tab1
----
1102
169
404

query I rowsort
SELECT DISTINCT + 37 FROM tab2 WHERE NOT col1 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IN ( + 53 * - ( + col2 ) + 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - SUM( + 44 ) AS col2 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-9338
SELECT - SUM ( + 44 ) AS col2 FROM tab1
----
-132

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT ALL + col1 AS col0 FROM tab1 WHERE + col2 + CAST( 48 + + col2 * + 39 AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL + col1 AS col0 FROM tab1 WHERE + col2 + CAST ( 48 + + col2 * + 39 AS INTEGER ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 + 81 AS col1 FROM tab1
----
140
149
177

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT MAX( ALL + col0 ) - 40 AS col1 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT MAX ( ALL + col0 ) - 40 AS col1 FROM tab0
----
57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - 97
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 53 + col2 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 = - col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT + 0 + COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9346
SELECT + 0 + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT DISTINCT - COUNT( * ) - + 61 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT - COUNT ( * ) - + 61 FROM tab0
----
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 2 + - col2 ) BETWEEN ( - col0 * 42 ) AND NULL
----

query I rowsort
SELECT + 9 FROM tab2 AS cor0 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT SUM( ALL 85 ) * COUNT( * ) FROM tab1 AS cor0
----
765

skipif mysql # not compatible
query I rowsort label-9350
SELECT SUM ( ALL 85 ) * COUNT ( * ) FROM tab1 AS cor0
----
765

onlyif mysql # DIV for integer division: 
query I rowsort label-9351
SELECT - col0 DIV 42 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9351
SELECT - col0 / 42 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * - 54 AS col0 FROM tab0 AS cor0
----
-1134
-4374
-54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 2 * ( ( - 17 ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT 31 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT 31 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col1 ) BETWEEN col0 AND NULL
----
1

skipif mysql # not compatible
query I rowsort label-9355
SELECT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col1 ) BETWEEN col0 AND NULL
----
1

query I rowsort
SELECT + col2 + col0 * + 69 FROM tab0
----
1082
6013
6792

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9357
SELECT ALL COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 >= col2
----

query I rowsort
SELECT 96 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 42 - col2 / - col0 NOT IN ( col1 * col2 )
----

query I rowsort
SELECT + - col2 + ( col1 ) * - 28 FROM tab1 AS cor0
----
-1384
-199
-488

query I rowsort
SELECT ALL - + 46 * - 63 FROM tab2 AS cor0
----
2898
2898
2898

onlyif mysql # DIV for integer division: 
query I rowsort label-9363
SELECT ALL - 53 DIV col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - 53 / col2 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9364
SELECT DISTINCT 72 DIV col1 AS col2 FROM tab1 AS cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT 72 / col1 AS col2 FROM tab1 AS cor0
----
1
14
5

query I rowsort
SELECT + + 23 + + col0 AS col2 FROM tab1 AS cor0
----
108
114
74

query I rowsort
SELECT DISTINCT 86 + 37 AS col0 FROM tab2 AS cor0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT DISTINCT 43 DIV - col2 + 5 AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT 43 / - col2 + 5 AS col1 FROM tab1
----
5

query I rowsort
SELECT + ( - - ( + 39 ) ) FROM tab1
----
39
39
39

query III rowsort
SELECT * FROM tab1 WHERE ( + ( - 40 ) ) <= - col1
----
51
14
96
85
5
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT BETWEEN NULL AND + col1 * - 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL - col1 * - CAST( col1 AS SIGNED ) + - col1 AS col0 FROM tab0
----
0
420
6480

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - col1 * - CAST ( col1 AS INTEGER ) + - col1 AS col0 FROM tab0
----
0
420
6480

query I rowsort
SELECT DISTINCT + col1 - + - 85 AS col0 FROM tab1
----
132
90
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT - 38 / - - col2 * CAST( NULL AS SIGNED ) - + 74 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT - 38 / - - col2 * CAST ( NULL AS INTEGER ) - + 74 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - + - 10 - col0 FROM tab0 AS cor0
----
-86
-88
-98

query I rowsort
SELECT ALL - col2 * - - col1 + 29 FROM tab0 AS cor0
----
-181
-3778
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 91 ) - - 32 col0 FROM tab1 cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT ALL - 41 * MIN( 15 ) + - COUNT( * ) FROM tab1 AS cor0
----
-618

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL - 41 * MIN ( 15 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-618

query I rowsort
SELECT - 16 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-322
-576
-853

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9380
SELECT CAST( - + 31 AS SIGNED ) DIV 57 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT CAST ( - + 31 AS INTEGER ) / 57 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 7 * col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 97 ) col2 FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT + MIN( DISTINCT + 7 ) AS col2 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9383
SELECT + MIN ( DISTINCT + 7 ) AS col2 FROM tab0 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT DISTINCT - CAST( + 14 AS SIGNED ) FROM tab1 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT - CAST ( + 14 AS INTEGER ) FROM tab1 cor0
----
-14

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * - + col2 / + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + 11 * + col0 AS col1 FROM tab0 AS cor0
----
-1067
-165
-957

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col0 IS NOT NULL
----

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col0, ( - col1 ) * - col0 FROM tab2 AS cor0
----
-46
2346
-64
4928
-75
5025

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + col0 ) > - 91
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL - ( SUM( DISTINCT col1 ) ) FROM tab0 WHERE NOT ( 31 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL - ( SUM ( DISTINCT col1 ) ) FROM tab0 WHERE NOT ( 31 ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 - + ( 99 ) * col2 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( + 39 ) * col2 col2 FROM tab2
----
-169650
-41262
-99840

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL MAX( - 35 ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL MAX ( - 35 ) FROM tab2
----
-35

query I rowsort
SELECT DISTINCT + ( - col0 ) * - ( + ( col0 ) ) AS col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT + 8 - col2 FROM tab2 WHERE NOT ( + col1 ) <= ( col1 + + col0 )
----

query I rowsort
SELECT DISTINCT col1 * - + col0 * - - col1 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN 9 * + col1 + col1 - col0 AND ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT COUNT( ALL - ( - 2 ) ) * + 38 * 53 FROM tab2
----
6042

skipif mysql # not compatible
query I rowsort label-9400
SELECT COUNT ( ALL - ( - 2 ) ) * + 38 * 53 FROM tab2
----
6042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL + col1 * + - CAST( + 51 AS SIGNED ) col2 FROM tab0
----
-1071
-4131
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9401
SELECT ALL + col1 * + - CAST ( + 51 AS INTEGER ) col2 FROM tab0
----
-1071
-4131
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - col2 * - - 75 + + ( col0 ) ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - - col2 + - 83 BETWEEN NULL AND ( - 8 - + 4 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT - COUNT( * ) + 17 AS col2 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-9404
SELECT - COUNT ( * ) + 17 AS col2 FROM tab1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT ALL CAST( NULL AS SIGNED ) + + + 28 + 86 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL CAST ( NULL AS INTEGER ) + + + 28 + 86 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT COUNT( - - 70 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9406
SELECT COUNT ( - - 70 ) col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 20 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT ALL - SUM( DISTINCT + col0 ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL - SUM ( DISTINCT + col0 ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT DISTINCT + 8 / - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT + 8 / - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col1
----
NULL

query I rowsort
SELECT - ( - 56 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - 69 * COUNT( - - col1 ) * + 74 AS col2 FROM tab2 AS cor0
----
-15318

skipif mysql # not compatible
query I rowsort label-9412
SELECT - 69 * COUNT ( - - col1 ) * + 74 AS col2 FROM tab2 AS cor0
----
-15318

onlyif mysql # aggregate syntax: 
query II rowsort label-9413
SELECT DISTINCT + - COUNT( * ) AS col2, + 30 AS col1 FROM tab1 AS cor0
----
-3
30

skipif mysql # not compatible
query II rowsort label-9413
SELECT DISTINCT + - COUNT ( * ) AS col2, + 30 AS col1 FROM tab1 AS cor0
----
-3
30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 62 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * + col2 + col2 + + - col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT COUNT( * ) + - 36 AS col1 FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9416
SELECT COUNT ( * ) + - 36 AS col1 FROM tab0 cor0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9417
SELECT ALL COUNT( * ) AS col2, 23 * + 64 FROM tab0
----
3
1472

skipif mysql # not compatible
query II rowsort label-9417
SELECT ALL COUNT ( * ) AS col2, 23 * + 64 FROM tab0
----
3
1472

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT + col0 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT col1 * 85 + + ( + col0 + - CAST( NULL AS SIGNED ) * 68 ) * col2 FROM tab0 WHERE NULL NOT BETWEEN + ( + col0 ) AND + CAST( NULL AS SIGNED ) * + + col2 + + col0
----

skipif mysql # not compatible
query I rowsort label-9419
SELECT col1 * 85 + + ( + col0 + - CAST ( NULL AS INTEGER ) * 68 ) * col2 FROM tab0 WHERE NULL NOT BETWEEN + ( + col0 ) AND + CAST ( NULL AS INTEGER ) * + + col2 + + col0
----

query I rowsort
SELECT DISTINCT - 67 + + - col1 AS col2 FROM tab1
----
-114
-72
-81

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE col0 NOT BETWEEN + col0 AND ( 8 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT - + SUM( - + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT - + SUM ( - + col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL col0 - - + col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL 21 * - - 76 AS col1 FROM tab0
----
1596
1596
1596

query I rowsort
SELECT DISTINCT 5 * + 11 * + col2 AS col1 FROM tab2
----
1265
2200
3190

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT ( 4 ) * col1 IN ( - 3 )
----
46
64
75

query I rowsort
SELECT - col1 - - 76 FROM tab2 WHERE NOT + - col1 * + - col0 >= + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 89 * - 22 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT + MIN( - 24 ) AS col2 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9429
SELECT + MIN ( - 24 ) AS col2 FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9430
SELECT ALL - COUNT( * ) DIV + - COUNT( DISTINCT - 69 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - COUNT ( * ) / + - COUNT ( DISTINCT - 69 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT DISTINCT + - MAX( - ( - - col1 ) ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT + - MAX ( - ( - - col1 ) ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT + + col1 * + - ( - ( - + col1 ) ) AS col1 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT DISTINCT - - SUM( ALL - 21 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT - - SUM ( ALL - 21 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9434
SELECT ALL + CAST( + 58 AS SIGNED ) AS col1, col2 * - 94 FROM tab1 AS cor0
----
58
-5546
58
-6392
58
-9024

skipif mysql # not compatible
query II rowsort label-9434
SELECT ALL + CAST ( + 58 AS INTEGER ) AS col1, col2 * - 94 FROM tab1 AS cor0
----
58
-5546
58
-6392
58
-9024

onlyif mysql # aggregate syntax: 
query II rowsort label-9435
SELECT DISTINCT + COUNT( ALL - 51 ) + + 80 AS col2, 70 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
83
70

skipif mysql # not compatible
query II rowsort label-9435
SELECT DISTINCT + COUNT ( ALL - 51 ) + + 80 AS col2, 70 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
83
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9436
SELECT * FROM tab0 WHERE NOT - col0 * + CAST( - col0 AS SIGNED ) > - col2 * + col0 + - - ( + 21 ) * + col2
----
15
81
47

skipif mysql # not compatible
query III rowsort label-9436
SELECT * FROM tab0 WHERE NOT - col0 * + CAST ( - col0 AS INTEGER ) > - col2 * + col0 + - - ( + 21 ) * + col2
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44 col1, + col2 FROM tab1
----
44
59
44
68
44
96

query II rowsort
SELECT DISTINCT + col1, - col0 + col1 FROM tab2
----
51
5
67
-8
77
13

query II rowsort
SELECT 62 AS col2, - ( 22 ) FROM tab2
----
62
-22
62
-22
62
-22

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( + col1 + - col2 + - col2 ) IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * + 43 col2 FROM tab1 AS cor0
----
-258
-258
-258

query II rowsort
SELECT DISTINCT - - col0, + col2 + + 37 * 15 + - + col1 AS col1 FROM tab2 AS cor0
----
46
527
64
518
75
546

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col1 AND col1 + + 82 * ( col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - + col0
----

query I rowsort
SELECT ALL 33 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT 10 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( - 28 * - 60 ) <> + 40 )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL + col2 * - 59 + + + 66 AS col0 FROM tab1
----
-3415
-3946
-5598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 + - col2 + 89 * + 50 * - - col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 + - col2 + 89 * + 50 * - - col1 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT - COUNT( * ) + + - MAX( ALL - col0 ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9450
SELECT - COUNT ( * ) + + - MAX ( ALL - col0 ) AS col1 FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9451
SELECT 4 DIV col2 * col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9451
SELECT 4 / col2 * col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9452
SELECT * FROM tab1 AS cor0 WHERE ( 64 + + 14 + + CAST( 36 AS SIGNED ) * col1 * col2 - + - 83 ) >= + 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9452
SELECT * FROM tab1 AS cor0 WHERE ( 64 + + 14 + + CAST ( 36 AS INTEGER ) * col1 * col2 - + - 83 ) >= + 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 * col2, + 98 AS col1 FROM tab1 cor0
----
1344
98
295
98
3196
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 >= NULL
----

query I rowsort
SELECT 62 * - ( - - col2 ) * - 95 FROM tab0
----
276830
583110
58900

query I rowsort
SELECT ALL 11 * + - ( col1 ) * - - 92 * + + col1 AS col0 FROM tab1
----
-198352
-2235508
-25300

query I rowsort
SELECT DISTINCT 29 * 56 * + col0 AS col1 FROM tab0
----
141288
157528
24360

query I rowsort
SELECT DISTINCT 98 + + ( - + 71 ) FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT COUNT( * ) + + - 58 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT COUNT ( * ) + + - 58 FROM tab0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT - CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT - CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 10 - col2 * - col0 FROM tab2
----
1068
2570
4360

query II rowsort
SELECT DISTINCT 44 * - + col2 + + 87 + col1 * - ( + - 49 ), + col1 + + ( col0 ) * - + col0 AS col0 FROM tab1
----
-2264
-7220
-3451
-2587
-602
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT DISTINCT COUNT( * ) - + 3 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT COUNT ( * ) - + 3 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT DISTINCT + MIN( ALL - col0 ) AS col1 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT + MIN ( ALL - col0 ) AS col1 FROM tab0 cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - ( - + ( - col1 ) ), col2 ) )
----

query I rowsort
SELECT - 98 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 < ( + ( + col0 ) * - col1 + - col1 )
----
-98
-98
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 >= ( 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 * col2 / 68 ) NOT BETWEEN NULL AND ( 11 )
----

query I rowsort
SELECT DISTINCT col2 * col2 * - col0 AS col2 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT ALL col0 * 83 FROM tab1
----
4233
7055
7553

query I rowsort
SELECT col1 * + col2 * col2 * col1 FROM tab0
----
14493249
44100
9801

query I rowsort
SELECT DISTINCT 32 * + col0 AS col1 FROM tab2 AS cor0
----
1472
2048
2400

query I rowsort
SELECT - - col0 AS col0 FROM tab2 cor0 WHERE NOT col2 <= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / col2 + 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT - 62 + + + COUNT( * ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - 62 + + + COUNT ( * ) FROM tab2
----
-59

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT - 0 >= - - col2 / - + 10
----

query I rowsort
SELECT ALL ( + - col2 ) + col1 AS col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + COUNT( * ) + - 90 * ( + 51 ) FROM tab2 AS cor0
----
-4587

skipif mysql # not compatible
query I rowsort label-9478
SELECT + COUNT ( * ) + - 90 * ( + 51 ) FROM tab2 AS cor0
----
-4587

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT - COUNT( * ) + + - 97 AS col2, COUNT( * ) * - + 40 FROM tab2 AS cor0
----
-100
-120

skipif mysql # not compatible
query II rowsort label-9480
SELECT - COUNT ( * ) + + - 97 AS col2, COUNT ( * ) * - + 40 FROM tab2 AS cor0
----
-100
-120

query I rowsort
SELECT DISTINCT + col2 + + ( + 13 ) - + 88 AS col2 FROM tab0
----
-28
-65
24

query I rowsort
SELECT DISTINCT + + col2 + + col2 AS col1 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + MIN( + 40 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-9483
SELECT + MIN ( + 40 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 66 <= NULL
----

query I rowsort
SELECT ALL + ( - + 35 ) AS col2 FROM tab2 AS cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
106
71
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9487
SELECT ALL col2 DIV - 60 - CAST( 23 AS SIGNED ) + - col1 AS col0 FROM tab2 cor0
----
-100
-74
-90

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL col2 / - 60 - CAST ( 23 AS INTEGER ) + - col1 AS col0 FROM tab2 cor0
----
-100
-74
-90

query I rowsort
SELECT + 0 - + 44 AS col0 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT + col2 - - col1 * + col2 * - + 89 FROM tab2 AS cor0
----
-104374
-274080
-345796

query I rowsort
SELECT col2 + + 85 FROM tab0 cor0
----
132
184
95

query II rowsort
SELECT ALL col2, - col2 FROM tab1 AS cor0 WHERE - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT DISTINCT + COUNT( - - 68 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT + COUNT ( - - 68 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 / - 92 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 + 48 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT + 23 + - CAST( + 13 AS SIGNED ) - 5 * - COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9495
SELECT + 23 + - CAST ( + 13 AS INTEGER ) - 5 * - COUNT ( * ) FROM tab0 AS cor0
----
25

query I rowsort
SELECT col0 * - col1 * - - col1 + + - ( + - 94 ) AS col2 FROM tab2
----
-119552
-336581
-379362

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE ( + col0 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 - + col2 IN ( col0 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ALL MIN( ALL - - col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL MIN ( ALL - - col2 ) AS col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL + - MIN( ALL col0 ) * + COUNT( * ) col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9501
SELECT ALL + - MIN ( ALL col0 ) * + COUNT ( * ) col1 FROM tab0 AS cor0
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9502
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9502
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9503
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9503
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9505
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 < CAST( NULL AS SIGNED ) * - 19
----

skipif mysql # not compatible
query III rowsort label-9505
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 < CAST ( NULL AS INTEGER ) * - 19
----

query II rowsort
SELECT ALL - col1, col0 FROM tab0 AS cor0 WHERE col1 * + + col2 + - 93 IS NULL
----

query I rowsort
SELECT + 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT DISTINCT 41 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
41

query I rowsort
SELECT ALL + ( + + 66 ) AS col2 FROM tab1
----
66
66
66

query I rowsort
SELECT col1 * 4 AS col1 FROM tab0
----
324
4
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT 56 DIV 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9511
SELECT 56 / 83 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + 36 FROM tab0 AS cor0
----
-2916
-36
-756

query I rowsort
SELECT ALL + 62 + + + ( - col0 ) + 42 * + 0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 7 > - + ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + - 77 AND - col1
----

query I rowsort
SELECT - - col2 + 23 AS col2 FROM tab0 AS cor0
----
122
33
70

query I rowsort
SELECT ALL - - 98 + col2 FROM tab1 cor0
----
157
166
194

query I rowsort
SELECT ALL - 32 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 + + - col1 col2 FROM tab1
----
50
83
92

query I rowsort
SELECT ALL 46 * + 18 AS col2 FROM tab1
----
828
828
828

query I rowsort
SELECT ALL + col2 * - col0 + + col1 + - 77 - + 3 * + + 51 AS col0 FROM tab0
----
-1079
-854
-9832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab2 WHERE + col0 IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT ALL col0 AS col2, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT col0 * col1 - - col1 AS col2 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # DIV for integer division: 
query I rowsort label-9525
SELECT + - col0 * + col2 DIV - col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9525
SELECT + - col0 * + col2 / - col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT col1 FROM tab1 WHERE + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 34 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT ALL - - CAST( + - 53 AS SIGNED ) - + col2 * col1 FROM tab1 AS cor0
----
-1397
-3249
-348

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL - - CAST ( + - 53 AS INTEGER ) - + col2 * col1 FROM tab1 AS cor0
----
-1397
-3249
-348

query I rowsort
SELECT ALL - - col0 * + col2 AS col2 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - + MIN( DISTINCT + - ( + 0 ) ) - - + 24 col2 FROM tab1 cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9530
SELECT ALL - + MIN ( DISTINCT + - ( + 0 ) ) - - + 24 col2 FROM tab1 cor0
----
24

query I rowsort
SELECT ALL col0 * - - col1 / + + col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9532
SELECT - 90 DIV - ( + - COUNT( - 7 ) ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-9532
SELECT - 90 / - ( + - COUNT ( - 7 ) ) FROM tab0
----
-30

query I rowsort
SELECT + col1 * 0 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT - 33, col0 FROM tab0
----
-33
15
-33
87
-33
97

query I rowsort
SELECT ( 22 ) AS col0 FROM tab0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - - 5 ) FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT ALL col1 * - 83 AS col1 FROM tab2 AS cor0
----
-4233
-5561
-6391

query I rowsort
SELECT ALL - 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT ALL col2 * - 81 AS col0 FROM tab1
----
-4779
-5508
-7776

query I rowsort
SELECT DISTINCT - col1 * + + col2 * + col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT DISTINCT - ( col1 ) DIV + - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT - ( col1 ) / + - col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 92 AND NULL
----

query I rowsort
SELECT DISTINCT - + col0 * 27 AS col2 FROM tab1 AS cor0
----
-1377
-2295
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT DISTINCT - COUNT( * ) + 83 col2 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9545
SELECT DISTINCT - COUNT ( * ) + 83 col2 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + - MIN( col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9546
SELECT + - MIN ( col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - + col0 * col2 FROM tab1 AS cor0 WHERE col1 - + col0 IS NULL
----

query I rowsort
SELECT ALL - 67 + - col2 AS col0 FROM tab2
----
-107
-125
-90

query I rowsort
SELECT ALL col1 * col1 + - + col2 * - col0 + - + col0 AS col1 FROM tab1
----
4955
5041
8306

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 >= - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + + col1 * col1 FROM tab0
----
2
462
6642

query I rowsort
SELECT col1 * + col2 * + col1 + - 8 AS col0 FROM tab2
----
237152
260354
59815

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT + 21 * + - 56 * - 86 + + COUNT( * ) AS col0 FROM tab0
----
101139

skipif mysql # not compatible
query I rowsort label-9554
SELECT + 21 * + - 56 * - 86 + + COUNT ( * ) AS col0 FROM tab0
----
101139

query I rowsort
SELECT + 15 + - col1 FROM tab2 cor0
----
-36
-52
-62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT MIN( - - 86 ) col1 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9557
SELECT MIN ( - - 86 ) col1 FROM tab1 AS cor0
----
86

query II rowsort
SELECT ALL - col0, col0 AS col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT 5 * - 24 AS col0 FROM tab0
----
-120
-120
-120

query II rowsort
SELECT - col0 * 70 AS col1, 56 + - col1 FROM tab0
----
-1050
-25
-6090
35
-6790
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9561
SELECT DISTINCT MIN( - col0 ) AS col0, 11 + + 51 FROM tab0
----
-97
62

skipif mysql # not compatible
query II rowsort label-9561
SELECT DISTINCT MIN ( - col0 ) AS col0, 11 + + 51 FROM tab0
----
-97
62

query I rowsort
SELECT - - col2 AS col2 FROM tab0 WHERE NOT - 57 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 * + + ( + + col1 ) col0 FROM tab1 AS cor0
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9564
SELECT DISTINCT - COUNT( - - 66 ) DIV - 75 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT - COUNT ( - - 66 ) / - 75 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9565
SELECT ALL * FROM tab1 WHERE col0 + col2 BETWEEN col1 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9565
SELECT ALL * FROM tab1 WHERE col0 + col2 BETWEEN col1 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT - 16, + COUNT( + col0 ) AS col0 FROM tab1
----
-16
3

skipif mysql # not compatible
query II rowsort label-9566
SELECT - 16, + COUNT ( + col0 ) AS col0 FROM tab1
----
-16
3

query I rowsort
SELECT ALL + col2 + + 13 FROM tab1
----
109
72
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT + 65 + + CAST( NULL AS SIGNED ) 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-9568
SELECT + 65 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9569
SELECT COUNT( * ) * - 20 + - COUNT( * ) + - CAST( + 36 AS SIGNED ) + + 24 * - + 28 * + 36 AS col1 FROM tab1 AS cor0
----
-24291

skipif mysql # not compatible
query I rowsort label-9569
SELECT COUNT ( * ) * - 20 + - COUNT ( * ) + - CAST ( + 36 AS INTEGER ) + + 24 * - + 28 * + 36 AS col1 FROM tab1 AS cor0
----
-24291

onlyif mysql # DIV for integer division: 
query II rowsort label-9570
SELECT ALL - col2 AS col2, - 62 DIV col1 FROM tab2 cor0
----
-23
-1
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-9570
SELECT ALL - col2 AS col2, - 62 / col1 FROM tab2 cor0
----
-23
-1
-40
0
-58
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 37 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 82 AS col0 FROM tab1 cor0
----
82

query I rowsort
SELECT - col1 * ( 58 ) FROM tab0
----
-1218
-4698
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT COUNT( * ) - + ( - MAX( - col0 ) ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT COUNT ( * ) - + ( - MAX ( - col0 ) ) FROM tab0
----
-12

query I rowsort
SELECT + col1 - - + col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT - - 73 FROM tab2 cor0
----
73

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9578
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * col2 BETWEEN - 75 AND + - col0
----

skipif mysql # not compatible
query III rowsort label-9578
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * col2 BETWEEN - 75 AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT + 56 * + + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9579
SELECT + 56 * + + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9580
SELECT DISTINCT - COUNT( DISTINCT 22 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT - COUNT ( DISTINCT 22 ) / + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - 39 AS col1 FROM tab2 cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9582
SELECT DISTINCT 33 AS col0, - MAX( col1 ) FROM tab1 AS cor0
----
33
-47

skipif mysql # not compatible
query II rowsort label-9582
SELECT DISTINCT 33 AS col0, - MAX ( col1 ) FROM tab1 AS cor0
----
33
-47

query I rowsort
SELECT + ( + + 55 ) AS col1 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT ALL - + col2 / col0 AS col0 FROM tab2 WHERE NOT + ( + 98 ) * + col1 > ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9586
SELECT COUNT( * ) * + CAST( - + CAST( CAST( - 40 AS SIGNED ) AS SIGNED ) AS SIGNED ) * COUNT( * ) FROM tab0
----
360

skipif mysql # not compatible
query I rowsort label-9586
SELECT COUNT ( * ) * + CAST ( - + CAST ( CAST ( - 40 AS INTEGER ) AS INTEGER ) AS INTEGER ) * COUNT ( * ) FROM tab0
----
360

query II rowsort
SELECT col0 AS col2, + col1 AS col2 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT col1 * - 89 AS col1 FROM tab1
----
-1246
-4183
-445

onlyif mysql # DIV for integer division: 
query I rowsort label-9589
SELECT ALL 11 DIV + - ( + + col2 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL 11 / + - ( + + col2 ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - + col2 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * + 93 + + 11 + + + col2 col1 FROM tab1 AS cor0
----
-5380
-5408
-5417

query I rowsort
SELECT - - ( - + col1 ) + + col1 + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9593
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col0 FROM tab2 cor0 WHERE 65 * + 48 IS NOT NULL
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT 20 + - MIN( 80 ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9595
SELECT 20 + - MIN ( 80 ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT + ( + 30 ) * - col2 + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1775
-2087
-2894

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - SUM( DISTINCT - ( + ( - 2 ) ) ) + + 67 col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9597
SELECT - SUM ( DISTINCT - ( + ( - 2 ) ) ) + + 67 col0 FROM tab2 AS cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 75 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + + col0 / + 39 IS NULL
----

query II rowsort
SELECT - col1 + - + col1 * - col0 AS col2, 71 AS col2 FROM tab2
----
2295
71
4851
71
4958
71

query I rowsort
SELECT DISTINCT col1 + 84 AS col0 FROM tab1
----
131
89
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 85 < col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 67 * col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( col1 ) ) >= NULL
----

query I rowsort
SELECT DISTINCT + ( 78 ) * + col2 - - 14 FROM tab0 AS cor0
----
3680
7736
794

query II rowsort
SELECT DISTINCT 41, + col0 AS col2 FROM tab1 AS cor0
----
41
51
41
85
41
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 38 * 60 col2 FROM tab2
----
104880
145920
171000

query I rowsort
SELECT + 2 * + 2 AS col0 FROM tab0
----
4
4
4

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 20 + col1 NOT IN ( + col0, - col2 * - col0, - 0, col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT + - 34 * - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9611
SELECT + - 34 * - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - ( 62 ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-9612
SELECT - ( 62 ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT ALL + 44 * - 90 + - col0 FROM tab1 AS cor0
----
-4011
-4045
-4051

query I rowsort
SELECT 95 * - 31 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 76ae60866e6de83cec35a75f29b5229d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT DISTINCT - CAST( + + 24 AS SIGNED ) * - - col1 AS col2 FROM tab0
----
-1944
-24
-504

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - CAST ( + + 24 AS INTEGER ) * - - col1 AS col2 FROM tab0
----
-1944
-24
-504

query II rowsort
SELECT DISTINCT col2 AS col0, col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col2, - 36, + col0, + + col2, col1 * + col0 * - col0 + + col2 * col1, - col1, + 6 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT MIN( ALL + - col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-9617
SELECT MIN ( ALL + - col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT ALL 8 DIV col1 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL 8 / col1 AS col0 FROM tab1
----
0
0
1

query II rowsort
SELECT ALL - 2 AS col0, 95 FROM tab0
----
-2
95
-2
95
-2
95

query II rowsort
SELECT - + 52 AS col0, + col0 + + col1 FROM tab0 AS cor0
----
-52
108
-52
96
-52
98

query I rowsort
SELECT ALL + col0 + - - 41 AS col1 FROM tab2 cor0
----
105
116
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT DISTINCT - 95 * + + COUNT( * ) + - + 88 * CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT - 95 * + + COUNT ( * ) + - + 88 * CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + col0 AS col2, + col0 col1 FROM tab1
----
4896
51
5015
85
6188
91

query I rowsort
SELECT + - col2 + - + 95 AS col1 FROM tab2 AS cor0
----
-118
-135
-153

query I rowsort
SELECT ALL - + col1 * col0 + + 71 AS col1 FROM tab0 AS cor0
----
-1144
-1756
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9626
SELECT ALL - - 31, col1 AS col1, + col0 * - - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
9 values hashing to 21d6869e8b5c84f7451f7f64423d2026

skipif mysql # not compatible
query III rowsort label-9626
SELECT ALL - - 31, col1 AS col1, + col0 * - - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
9 values hashing to 21d6869e8b5c84f7451f7f64423d2026

onlyif mysql # aggregate syntax: 
query II rowsort label-9627
SELECT DISTINCT 57 AS col2, + COUNT( * ) * + 40 FROM tab0 AS cor0
----
57
120

skipif mysql # not compatible
query II rowsort label-9627
SELECT DISTINCT 57 AS col2, + COUNT ( * ) * + 40 FROM tab0 AS cor0
----
57
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT + 11 * + - COUNT( * ) col1 FROM tab1 cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9628
SELECT + 11 * + - COUNT ( * ) col1 FROM tab1 cor0
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9629
SELECT ALL - 73 + 53 * + - 79 FROM tab1 AS cor0 WHERE NOT - CAST( col0 AS DECIMAL ) < - col2
----
-4260

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - 73 + 53 * + - 79 FROM tab1 AS cor0 WHERE NOT - CAST ( col0 AS REAL ) < - col2
----
-4260

query I rowsort
SELECT DISTINCT + 81 + + - 78 AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9631
SELECT + 80 DIV - 54 AS col2, MAX( DISTINCT - 19 ) FROM tab0
----
-1
-19

skipif mysql # not compatible
query II rowsort label-9631
SELECT + 80 / - 54 AS col2, MAX ( DISTINCT - 19 ) FROM tab0
----
-1
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL MIN( DISTINCT - + col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL MIN ( DISTINCT - + col1 ) AS col2 FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT ALL - MIN( - col2 ) + - - CAST( + ( + + COUNT( * ) ) AS SIGNED ) + - 15 - + 68 * - 60 FROM tab0
----
4167

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL - MIN ( - col2 ) + - - CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) + - 15 - + 68 * - 60 FROM tab0
----
4167

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT - - COUNT( * ) AS col2 FROM tab1 WHERE - + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9634
SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE - + col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT DISTINCT + col1 + + - 92 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT + col1 + + - 92 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 17 ) * - - col1 - - col0 col0 FROM tab2
----
-1064
-1245
-821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9637
SELECT + CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col2 - - col2 + + col1 - - col0 AS col0 FROM tab2
----
143
221
258

query II rowsort
SELECT DISTINCT + + col0 - + col2, + col0 AS col1 FROM tab0 cor0
----
-2
97
-32
15
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL + 45 - COUNT( * ) - + + 83 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL + 45 - COUNT ( * ) - + + 83 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL + - COUNT( * ) * - 4 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL + - COUNT ( * ) * - 4 FROM tab2 AS cor0
----
12

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> + 21
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 58 + - col1 NOT IN ( - col0 + + ( + 3 ) )
----

query I rowsort
SELECT 72 * - 1 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col0 + + col1 IS NULL )
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL + COUNT( * ) * 80 AS col2 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + COUNT ( * ) * 80 AS col2 FROM tab2 AS cor0
----
240

query I rowsort
SELECT DISTINCT col1 * - - 48 FROM tab1 cor0
----
2256
240
672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9649
SELECT DISTINCT + MIN( DISTINCT 66 ) DIV + 24 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + MIN ( DISTINCT 66 ) / + 24 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT ALL + - MAX( DISTINCT + col0 ) * + 64 * + 39 FROM tab2 AS cor0 WHERE - col1 + col1 + - col2 IS NOT NULL
----
-187200

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL + - MAX ( DISTINCT + col0 ) * + 64 * + 39 FROM tab2 AS cor0 WHERE - col1 + col1 + - col2 IS NOT NULL
----
-187200

query I rowsort
SELECT ALL 88 * - + col0 FROM tab0 cor0
----
-1320
-7656
-8536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT ALL CAST( - - 53 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL CAST ( - - 53 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9653
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * 94 * + col2, 57 + + - col2 AS col1 FROM tab2 AS cor0
----
240640
17
408900
-1
99452
34

skipif mysql # not compatible
query II rowsort label-9653
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * 94 * + col2, 57 + + - col2 AS col1 FROM tab2 AS cor0
----
240640
17
408900
-1
99452
34

query I rowsort
SELECT ALL - 28 * - col2 * + col2 FROM tab1
----
129472
258048
97468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 27 col2 FROM tab2
----
-1242
-1728
-2025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9656
SELECT DISTINCT 17 * - ( - - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT 17 * - ( - - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT ALL - 52 DIV COUNT( * ) * + COUNT( * ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - 52 / COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9658
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + col2 AND + + 2 * + 53 + - col1 / + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + col2 AND + + 2 * + 53 + - col1 / + 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9659
SELECT DISTINCT col2 DIV - - 48 + + + col0 FROM tab0 AS cor0
----
15
87
99

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT col2 / - - 48 + + + col0 FROM tab0 AS cor0
----
15
87
99

query I rowsort
SELECT DISTINCT - col0 + + ( - ( col1 ) ) FROM tab0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT - + 34 DIV - 23 - + col1 FROM tab0 AS cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT - + 34 / - 23 - + col1 FROM tab0 AS cor0
----
-20
-80
0

query I rowsort
SELECT ALL - col0 * - + col0 * + col1 - + - 89 AS col1 FROM tab1 AS cor0
----
36214
36503
389296

query I rowsort
SELECT - + 53 + - - col2 FROM tab0 AS cor0
----
-43
-6
46

query I rowsort
SELECT ALL col1 + 54 * + col1 FROM tab2
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT + - COUNT( * ) col0 FROM tab2 WHERE ( NOT col0 * col1 / - col1 * col0 BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9665
SELECT + - COUNT ( * ) col0 FROM tab2 WHERE ( NOT col0 * col1 / - col1 * col0 BETWEEN NULL AND NULL )
----
0

query I rowsort
SELECT ( + 32 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + ( - 28 ) * col1 * col0 FROM tab2 AS cor0
----
-137984
-140700
-65688

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT DISTINCT MIN( 81 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9668
SELECT DISTINCT MIN ( 81 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query II rowsort
SELECT 29 * col1, + 14 FROM tab2 WHERE NOT + 74 IS NOT NULL
----

query I rowsort
SELECT AVG ( + + ( + col1 ) ) FROM tab1 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT DISTINCT MIN( DISTINCT 80 ) * + 7 * - + 70 AS col1 FROM tab1 AS cor0
----
-39200

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT MIN ( DISTINCT 80 ) * + 7 * - + 70 AS col1 FROM tab1 AS cor0
----
-39200

query I rowsort
SELECT + col0 AS col0 FROM tab0 cor0 WHERE NOT - col1 + - col0 >= - + 43
----
15
87
97

query I rowsort
SELECT DISTINCT + col0 * - col1 * col1 * + - col1 AS col0 FROM tab0 AS cor0
----
7971615
805707
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + + 48 * + + SUM( DISTINCT + + 84 ) FROM tab0 AS cor0
----
4032

skipif mysql # not compatible
query I rowsort label-9674
SELECT + + 48 * + + SUM ( DISTINCT + + 84 ) FROM tab0 AS cor0
----
4032

query I rowsort
SELECT DISTINCT - ( + col2 ) * + 44 FROM tab0 AS cor0
----
-2068
-4356
-440

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * 71 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT col1 * + 51 + + + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - COUNT( * ) * + - COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9678
SELECT - COUNT ( * ) * + - COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 - - ( + - ( + + col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 33 * - col1 FROM tab2
----
1683
2211
2541

query I rowsort
SELECT DISTINCT col0 + - - 68 FROM tab0
----
155
165
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT 43 DIV + COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-9682
SELECT 43 / + COUNT ( * ) FROM tab2
----
14

query I rowsort
SELECT - 0 * - 32 * 76 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 45 <> col2 * + - col0 + + + col1 * 92 * ( + - 20 ) - + col2
----

query I rowsort
SELECT ( col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - 97 * - 27 + - 89 + 14 + col1 AS col0 FROM tab1 AS cor0
----
2549
2558
2591

query I rowsort
SELECT ( + - col0 ) + col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - 56 - + + col2 FROM tab1
----
-115
-124
-152

query I rowsort
SELECT ( + ( + + col1 ) ) + + col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT + 67 + - MAX( DISTINCT + col0 ) AS col1 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-9692
SELECT + 67 + - MAX ( DISTINCT + col0 ) AS col1 FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT ALL - COUNT( * ) - + 86 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL - COUNT ( * ) - + 86 FROM tab2 AS cor0
----
-89

query II rowsort
SELECT ALL 25 * + + 70 - 67 + col0 AS col0, 25 AS col2 FROM tab2 AS cor0
----
1729
25
1747
25
1758
25

query II rowsort
SELECT - - 20 * + - col2 AS col0, + col0 + 45 AS col2 FROM tab1 AS cor0
----
-1180
130
-1360
136
-1920
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - - col0 * - col1 col1 FROM tab2 AS cor0
----
2397
5005
5092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col0 FROM tab1 cor0
----
51
51
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT ALL - col0 DIV + 78 AS col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL - col0 / + 78 AS col1 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT - 6 - - col0 FROM tab2
----
40
58
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 67 col0, 9 AS col1 FROM tab1
----
67
9
67
9
67
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT ALL CAST( - 87 AS SIGNED ) AS col2 FROM tab0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL CAST ( - 87 AS INTEGER ) AS col2 FROM tab0
----
-87
-87
-87

query II rowsort
SELECT 99 AS col2, col2 * + col0 FROM tab1
----
99
4896
99
5015
99
6188

query I rowsort
SELECT ( col1 ) * - col1 AS col2 FROM tab1
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col2 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT 23 AS col1, col2 * col0 AS col2 FROM tab2
----
23
1058
23
2560
23
4350

query I rowsort
SELECT ALL - 6 AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL + - SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL + - SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT + 73 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + + ( + + col1 ) * - 57 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - + 38, col2 * + col1 AS col1 FROM tab2 AS cor0
----
-38
1173
-38
3080
-38
3886

query II rowsort
SELECT DISTINCT 56, col2 AS col2 FROM tab0 AS cor0
----
56
10
56
47
56
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9712
SELECT - col1 DIV + 49 + - 99 col0 FROM tab1 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9712
SELECT - col1 / + 49 + - 99 col0 FROM tab1 AS cor0
----
-99
-99
-99

query II rowsort
SELECT DISTINCT + 13 AS col1, col1 AS col1 FROM tab2 AS cor0
----
13
51
13
67
13
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 84 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT + - 83 DIV col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9715
SELECT + - 83 / col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL - - MAX( ALL + col1 ) AS col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL - - MAX ( ALL + col1 ) AS col2 FROM tab2 cor0
----
77

query II rowsort
SELECT + col1, + col0 * + 46 FROM tab2 AS cor0
----
51
2116
67
3450
77
2944

query I rowsort
SELECT DISTINCT + + 57 + col2 * - col2 FROM tab1 AS cor0
----
-3424
-4567
-9159

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT - - MIN( ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9719
SELECT - - MIN ( ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + col2 + - - 25 AS col2 FROM tab1
----
121
84
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 12 IS NULL
----

query I rowsort
SELECT col2 * - ( - ( + + col2 ) ) * col2 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT + col1 + - 73 AS col1 FROM tab2 WHERE + col2 NOT BETWEEN - col0 AND + - col0
----
-22
-6
4

query II rowsort
SELECT col1 + - - ( + col2 ), col0 AS col1 FROM tab2
----
117
64
125
75
74
46

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 48 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9726
SELECT - CAST( + col0 AS SIGNED ) * + + col1 * + + col0 * - ( - col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-1476178
-3337919
-9310

skipif mysql # not compatible
query I rowsort label-9726
SELECT - CAST ( + col0 AS INTEGER ) * + + col1 * + + col0 * - ( - col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-1476178
-3337919
-9310

query I rowsort
SELECT + ( + - col1 ) + - col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT - col0 * col1 + - col0 AS col1 FROM tab1 AS cor0
----
-4368
-510
-765

query II rowsort
SELECT ( + col2 ) + + col1 AS col0, ( + + col1 ) AS col2 FROM tab0 AS cor0
----
100
1
128
81
31
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT - 24 DIV - col2 * + ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9730
SELECT - 24 / - col2 * + ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 < + ( 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT DISTINCT - 50 * + COUNT( * ) AS col2 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT - 50 * + COUNT ( * ) AS col2 FROM tab2
----
-150

query I rowsort
SELECT DISTINCT col1 * + + 36 AS col2 FROM tab1
----
1692
180
504

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 * col1 <> + col1
----

query I rowsort
SELECT 49 AS col0 FROM tab2 WHERE NOT ( col2 / + + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT 37 DIV + + 28 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9736
SELECT 37 / + + 28 AS col2 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT DISTINCT col1 DIV + + col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT col1 / + + col0 FROM tab0
----
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT + MIN( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT + MIN ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9739
SELECT ALL - col1, col2 DIV + + 53 AS col0 FROM tab2
----
-51
0
-67
1
-77
0

skipif mysql # not compatible
query II rowsort label-9739
SELECT ALL - col1, col2 / + + 53 AS col0 FROM tab2
----
-51
0
-67
1
-77
0

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT + + ( col1 ) + col0 AS col2 FROM tab1 WHERE NOT col2 + + col2 - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * + 16 + + 12 + + + 67 col0 FROM tab0 AS cor0
----
-913
-913
-913

query I rowsort
SELECT DISTINCT - 41 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT + 64 * + - col0 DIV col0 + 84 FROM tab1 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-9744
SELECT + 64 * + - col0 / col0 + 84 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT - + col0 * col1 * - - 29 + - col1 FROM tab0 AS cor0
----
-2814
-35316
-53004

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT + MIN( + 96 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT + MIN ( + 96 ) FROM tab1 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-9747
SELECT ALL + col0 AS col2, 52 DIV col0 * col0 AS col1 FROM tab0 AS cor0
----
15
45
87
0
97
0

skipif mysql # not compatible
query II rowsort label-9747
SELECT ALL + col0 AS col2, 52 / col0 * col0 AS col1 FROM tab0 AS cor0
----
15
45
87
0
97
0

query I rowsort
SELECT ALL 38 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col2 * 25 * - col0 + col2 AS col0, 57 FROM tab2 WHERE - col1 + + - 41 / + 83 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + col2 * - 95 + - col0 col2, + col0 FROM tab0
----
-1016
87
-4399
15
-9501
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT ALL col0 + + 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-9751
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT + COUNT( ALL + + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9752
SELECT + COUNT ( ALL + + col0 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col0 + + col0 * + 90 FROM tab2
----
4186
5824
6825

query I rowsort
SELECT 54 + + + col0 * col2 * - col1 * - 95 AS col2 FROM tab1 AS cor0
----
2382179
27629474
6511734

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col2 - + 77 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT COUNT( * ) + 64 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT COUNT ( * ) + 64 FROM tab1
----
67

query I rowsort
SELECT ALL + - 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT + 43 * col2 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT DISTINCT - 85 - - - 27 - - - CAST( - 22 AS SIGNED ) col1 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9759
SELECT DISTINCT - 85 - - - 27 - - - CAST ( - 22 AS INTEGER ) col1 FROM tab2 AS cor0
----
-90

query II rowsort
SELECT ALL + col0 AS col2, + 90 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND - 63 * - 48 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9763
SELECT 73, + COUNT( * ) AS col0 FROM tab1
----
73
3

skipif mysql # not compatible
query II rowsort label-9763
SELECT 73, + COUNT ( * ) AS col0 FROM tab1
----
73
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * col1 col0 FROM tab0
----
-2058
-7938
-98

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - + 29 ) / + col1 + 21 + ( + 79 ) * 36 * - 0 / col1 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT DISTINCT - CAST( + 94 AS SIGNED ) AS col2 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT - CAST ( + 94 AS INTEGER ) AS col2 FROM tab2
----
-94

query I rowsort
SELECT - 25 * + 61 FROM tab1
----
-1525
-1525
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL SUM( DISTINCT col0 ) col1 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9768
SELECT ALL SUM ( DISTINCT col0 ) col1 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - 77 / - SUM( 71 ) FROM tab2 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT - 77 / - SUM ( 71 ) FROM tab2 WHERE NOT ( NULL IS NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT col0 DIV - 89 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9770
SELECT col0 / - 89 AS col2 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT 75 DIV 83 * - ( ( + + col0 ) ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9771
SELECT 75 / 83 * - ( ( + + col0 ) ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE - col2 * - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE - col2 * - col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT - SUM( - - col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT - SUM ( - - col1 ) AS col0 FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-9774
SELECT COUNT( * ) col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9774
SELECT COUNT ( * ) col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT 6 - - 64 FROM tab2
----
70
70
70

query I rowsort
SELECT + 17 + 54 AS col1 FROM tab1
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT DISTINCT col2 - + CAST( col1 + - col1 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT col2 - + CAST ( col1 + - col1 AS INTEGER ) FROM tab1
----
59
68
96

query I rowsort
SELECT col0 + + 67 FROM tab0
----
154
164
82

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT DISTINCT + SUM( DISTINCT - col1 ) FROM tab0 WHERE NULL <= ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT + SUM ( DISTINCT - col1 ) FROM tab0 WHERE NULL <= ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL ( 35 ) * COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL ( 35 ) * COUNT ( * ) FROM tab1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9782
SELECT + CAST( NULL AS SIGNED ) * - 28 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT + CAST ( NULL AS INTEGER ) * - 28 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT + ( CAST( col1 AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9783
SELECT + ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9784
SELECT DISTINCT + COUNT( * ) DIV 99 + 27 AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT + COUNT ( * ) / 99 + 27 AS col0 FROM tab0
----
27

query I rowsort
SELECT + 85 FROM tab0 WHERE ( NULL ) IS NULL
----
85
85
85

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 - col2 IN ( - 81 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 73 * + col1 + - 79 FROM tab0
----
-6
1454
5834

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT - COUNT( DISTINCT + 67 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9788
SELECT - COUNT ( DISTINCT + 67 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT + 15 + col0 AS col2 FROM tab2
----
61
79
90

query I rowsort
SELECT - 4 - col0 * 70 AS col1 FROM tab1
----
-3574
-5954
-6374

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 31 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 85 - - col2 FROM tab1
----
144
153
181

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN col1 + - 36 AND 3
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9795
SELECT col0 DIV - col1 - - ( + col2 + 24 * col1 ) FROM tab0
----
1991
26
510

skipif mysql # not compatible
query I rowsort label-9795
SELECT col0 / - col1 - - ( + col2 + 24 * col1 ) FROM tab0
----
1991
26
510

query I rowsort
SELECT ALL + 82 + + 24 FROM tab1
----
106
106
106

query I rowsort
SELECT + col1 + col0 AS col2 FROM tab0 WHERE - 12 * 40 + - col2 BETWEEN - 13 + 24 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9798
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9798
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + col1 * + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT 20 * CAST( + col0 AS SIGNED ) FROM tab2
----
1280
1500
920

skipif mysql # not compatible
query I rowsort label-9800
SELECT 20 * CAST ( + col0 AS INTEGER ) FROM tab2
----
1280
1500
920

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + 63 * ( + COUNT( * ) ) AS col2 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-9802
SELECT + 63 * ( + COUNT ( * ) ) AS col2 FROM tab0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT DISTINCT - SUM( ALL col0 ) * SUM( + col2 ) FROM tab2
----
-22385

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT - SUM ( ALL col0 ) * SUM ( + col2 ) FROM tab2
----
-22385

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT MAX( DISTINCT 51 ) FROM tab1 WHERE NULL >= + col1 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT MAX ( DISTINCT 51 ) FROM tab1 WHERE NULL >= + col1 * + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT - COUNT( * ) * - COUNT( - col1 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9805
SELECT - COUNT ( * ) * - COUNT ( - col1 ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT DISTINCT - col2 DIV col2 + + col0 AS col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT - col2 / col2 + + col0 AS col0 FROM tab2
----
45
63
74

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - col1 AND 68
----

query I rowsort
SELECT ALL + 23 + col2 AS col2 FROM tab1
----
119
82
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9809
SELECT COUNT( * ) FROM tab1 WHERE NOT + CAST( col2 AS SIGNED ) - - col1 NOT BETWEEN col0 AND + 94
----
0

skipif mysql # not compatible
query I rowsort label-9809
SELECT COUNT ( * ) FROM tab1 WHERE NOT + CAST ( col2 AS INTEGER ) - - col1 NOT BETWEEN col0 AND + 94
----
0

query I rowsort
SELECT DISTINCT + 41 + + 21 AS col1 FROM tab1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT DISTINCT - col2 DIV 11 AS col2 FROM tab0
----
-4
-9
0

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT - col2 / 11 AS col2 FROM tab0
----
-4
-9
0

query I rowsort
SELECT ALL 99 * col2 AS col2 FROM tab0
----
4653
9801
990

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 NOT BETWEEN ( + col1 ) AND - 40 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + col0 + + 51
----

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE + col0 = - col1 - + 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT - col1 DIV 78 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9817
SELECT - col1 / 78 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 80 ) * col2 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( 89 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( + 59 ) * ( col0 + col0 ) ) IN ( 21 * + 61 )
----

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab2 AS cor0 WHERE NULL >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9822
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( - 30 AS SIGNED ) * col1 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9822
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( - 30 AS INTEGER ) * col1 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * 82 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN ( - 17 ) AND + col1
----
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT DISTINCT 72 * COUNT( * ) FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT 72 * COUNT ( * ) FROM tab2 AS cor0
----
216

query I rowsort
SELECT DISTINCT + col2 FROM tab0 cor0 WHERE ( - 28 ) IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT ALL + CAST( + col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9827
SELECT ALL + CAST ( + col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT col0 * 56 FROM tab0 AS cor0
----
4872
5432
840

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT ( - COUNT( * ) ) * 80 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT ( - COUNT ( * ) ) * 80 FROM tab1
----
-240

query I rowsort
SELECT - col2 * 87 AS col2 FROM tab1
----
-5133
-5916
-8352

query I rowsort
SELECT + ( + - col2 ) * col1 FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL - ( + 84 ) AS col2 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT ALL - 4 FROM tab0 AS cor0 WHERE NOT ( - 66 ) <> ( col0 + 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT - MIN( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9835
SELECT - MIN ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - ( 16 ) * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT DISTINCT 7 DIV COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT 7 / COUNT ( * ) FROM tab1 AS cor0
----
2

query I rowsort
SELECT col1 + - 30 AS col2 FROM tab2
----
21
37
47

query I rowsort
SELECT col1 * - col1 + + 53 FROM tab2
----
-2548
-4436
-5876

query I rowsort
SELECT ALL 96 * - 22 AS col0 FROM tab2
----
-2112
-2112
-2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + - col2 col0 FROM tab0 AS cor0
----
-19
-71
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT SUM( ALL - + col0 ) + - 27 FROM tab1 AS cor0
----
-254

skipif mysql # not compatible
query I rowsort label-9842
SELECT SUM ( ALL - + col0 ) + - 27 FROM tab1 AS cor0
----
-254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT DISTINCT + CAST( - 24 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT + CAST ( - 24 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9844
SELECT ALL COUNT( * ) * + + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL COUNT ( * ) * + + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 * + 71 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 71 * + col0 FROM tab1 AS cor0
----
3621
6035
6461

query I rowsort
SELECT ALL - + 75 + - col1 FROM tab2 AS cor0
----
-126
-142
-152

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE col2 IN ( - - col0 - - col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + 56 * MAX( + + col2 ) FROM tab0 AS cor0
----
5544

skipif mysql # not compatible
query I rowsort label-9849
SELECT + 56 * MAX ( + + col2 ) FROM tab0 AS cor0
----
5544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT ALL - COUNT( ALL + col2 ) DIV SUM( DISTINCT col1 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL - COUNT ( ALL + col2 ) / SUM ( DISTINCT col1 ) FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col0 * - - 39 * col0 )
----

query I rowsort
SELECT DISTINCT + col0 + + col1 + - - col1 AS col2 FROM tab1
----
185
79
95

query III rowsort
SELECT * FROM tab2 WHERE + + 70 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 59 + + - col1 FROM tab0
----
-22
38
58

query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab1 WHERE NOT + 95 + + ( 78 ) + + col2 / col1 > col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9856
SELECT ALL + ( - COUNT( * ) ) + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9856
SELECT ALL + ( - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL ( - col1 ) + - + 10 FROM tab2
----
-61
-77
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT col2 DIV - col2 - + 3 + + col2 col1 FROM tab0
----
43
6
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9858
SELECT col2 / - col2 - + 3 + + col2 col1 FROM tab0
----
43
6
95

query I rowsort
SELECT DISTINCT - 29 * 96 * + col2 + - col2 AS col0 FROM tab2
----
-111400
-161530
-64055

query I rowsort
SELECT + ( + 37 ) - - + col0 AS col1 FROM tab2
----
101
112
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT ALL + col1 + - col2 DIV - + 27 AS col0 FROM tab1
----
17
49
7

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL + col1 + - col2 / - + 27 AS col0 FROM tab1
----
17
49
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 85 NOT IN ( 40 ) AND NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9863
SELECT ALL * FROM tab0 cor0 WHERE + CAST( NULL AS DECIMAL ) + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-9863
SELECT ALL * FROM tab0 cor0 WHERE + CAST ( NULL AS REAL ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) <= NULL
----

query I rowsort
SELECT col0 * - ( + - 79 ) FROM tab1
----
4029
6715
7189

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + 2 )
----

query I rowsort
SELECT ALL + 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab0 WHERE NOT - 16 * col1 * - ( - col0 ) - + col0 + 99 NOT BETWEEN col2 / + ( + col2 ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT DISTINCT + CAST( - col0 AS SIGNED ) col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9868
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL col0 + col1 FROM tab2 WHERE NOT - - 73 NOT BETWEEN ( - col0 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( - col2 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT + MAX( DISTINCT col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-9871
SELECT + MAX ( DISTINCT col0 ) FROM tab0 cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT ALL col2 / ( - CAST( col1 AS SIGNED ) ) col1 FROM tab0 AS cor0 WHERE ( + ( - col0 ) ) IN ( + 59 * - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9872
SELECT ALL col2 / ( - CAST ( col1 AS INTEGER ) ) col1 FROM tab0 AS cor0 WHERE ( + ( - col0 ) ) IN ( + 59 * - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - 30
----

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( 38 ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col0 * + col1 + - col0 + + col1 + 84 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col0 * + col1 + - col0 + + col1 + 84 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 - + col0 AS col2 FROM tab0 WHERE NOT col1 * + - col0 * + + col2 + 18 + + col1 IS NULL
----
0
0
0

query I rowsort
SELECT - + 57 + + 63 * 34 AS col2 FROM tab0 WHERE NOT ( ( col0 ) < col2 )
----
2085

query I rowsort
SELECT ( + + 98 ) AS col1 FROM tab2
----
98
98
98

query II rowsort
SELECT ALL col1, + col1 AS col2 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9880
SELECT + 46 AS col2, - col0 AS col1, + ( + CAST( + col2 AS SIGNED ) ) - - col0 + col2 AS col1 FROM tab2
----
9 values hashing to 401649723247a56c6f5126caf27cae3f

skipif mysql # not compatible
query III rowsort label-9880
SELECT + 46 AS col2, - col0 AS col1, + ( + CAST ( + col2 AS INTEGER ) ) - - col0 + col2 AS col1 FROM tab2
----
9 values hashing to 401649723247a56c6f5126caf27cae3f

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT + col2 DIV + 36 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9881
SELECT + col2 / + 36 FROM tab0
----
0
1
2

query I rowsort
SELECT - 23 - - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 1 * + - 57 * + - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 * ( - 16 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9885
SELECT col2 DIV - + 62, 13 + - + col2 AS col0 FROM tab1
----
-1
-55
-1
-83
0
-46

skipif mysql # not compatible
query II rowsort label-9885
SELECT col2 / - + 62, 13 + - + col2 AS col0 FROM tab1
----
-1
-55
-1
-83
0
-46

query II rowsort
SELECT + 4 AS col0, 77 AS col0 FROM tab1 AS cor0 WHERE 40 * - 83 - 48 IS NULL
----

query I rowsort
SELECT ALL ( 48 ) + col1 + col2 FROM tab1 cor0
----
112
158
163

query I rowsort
SELECT ALL - 63 * + col2 FROM tab0 AS cor0
----
-2961
-6237
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT - 45 + - col2 + - 34 DIV 68 * + 89 FROM tab0 AS cor0
----
-144
-55
-92

skipif mysql # not compatible
query I rowsort label-9889
SELECT - 45 + - col2 + - 34 / 68 * + 89 FROM tab0 AS cor0
----
-144
-55
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 0 * + 73 + + 25 col0, col1 FROM tab1 AS cor0
----
25
14
25
47
25
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT DISTINCT 3 DIV col0 + 14 DIV col0 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9891
SELECT DISTINCT 3 / col0 + 14 / col0 col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + col2 + - 74, - col0 + + 46 AS col0 FROM tab0 cor0
----
-27
31
-64
-41
25
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL - + COUNT( * ) + + CAST( 5 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 < 28 * col2
----
5

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - + COUNT ( * ) + + CAST ( 5 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 < 28 * col2
----
5

query I rowsort
SELECT ( - col2 ) + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9895
SELECT - CAST( NULL AS DECIMAL ) + - + col1 * - col2, + col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9895
SELECT - CAST ( NULL AS REAL ) + - + col1 * - col2, + col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT 79 + + + col0 AS col1 FROM tab1
----
130
164
170

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 AND + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 + 94 - - 22 ) BETWEEN - 41 * 22 * col1 + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9900
SELECT - + CAST( MIN( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9900
SELECT - + CAST ( MIN ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL + COUNT( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + COUNT ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - - col1 IS NOT NULL
----

query I rowsort
SELECT - + 0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT ALL col1 DIV 65 + - - col1 AS col0 FROM tab2 AS cor0
----
51
68
78

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL col1 / 65 + - - col1 AS col0 FROM tab2 AS cor0
----
51
68
78

query I rowsort
SELECT + - 46 * + ( - + col2 ) FROM tab1 AS cor0
----
2714
3128
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 > - 97
----

query I rowsort
SELECT ( + - col2 ) * col2 * 44 * - col2 FROM tab2 WHERE NOT - col1 >= - 35 * col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - - ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 49 BETWEEN + 12 / - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 59 ) col2 FROM tab2
----
-59
-59
-59

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - col1 NOT IN ( - - 86 * col2 + - col0 )
----

query I rowsort
SELECT DISTINCT + ( + + col2 ) + - col2 + - ( + - col1 ) + + col2 * - col2 + + 25 * col1 AS col2 FROM tab1 WHERE NOT NULL = - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9915
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) BETWEEN col2 / + 82 * - ( + col1 ) + 28 + + CAST( NULL AS SIGNED ) + + - CAST( col0 AS SIGNED ) AND ( + ( col0 ) + - 34 )
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-9915
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) BETWEEN col2 / + 82 * - ( + col1 ) + 28 + + CAST ( NULL AS INTEGER ) + + - CAST ( col0 AS INTEGER ) AND ( + ( col0 ) + - 34 )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT MAX( DISTINCT - col1 ) + + 29 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT MAX ( DISTINCT - col1 ) + + 29 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----
NULL

query I rowsort
SELECT + col2 * + + col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT col2 * col1 + - col0 FROM tab0 AS cor0
----
123
2
3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - 22 col1 FROM tab0 AS cor0 WHERE - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 83 + - 12 FROM tab1
----
71
71
71

query I rowsort
SELECT - 49 + + 75 + - col0 AS col1 FROM tab1
----
-25
-59
-65

query I rowsort
SELECT col1 * col2 - - - ( + 4 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
1169
3076
3882

query I rowsort
SELECT ALL - col2 - + 17 FROM tab0 AS cor0
----
-116
-27
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT + - ( + MAX( + - col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9924
SELECT + - ( + MAX ( + - col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT DISTINCT col2 * col0 DIV col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT col2 * col0 / col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT ALL + - 29 + COUNT( * ) + - COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL + - 29 + COUNT ( * ) + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9929
SELECT - + col0 AS col0, - 69 AS col0 FROM tab0 cor0 WHERE 82 >= - 25 + - - col2 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-9929
SELECT - + col0 AS col0, - 69 AS col0 FROM tab0 cor0 WHERE 82 >= - 25 + - - col2 * - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + 77 + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 77 + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9931
SELECT ALL col0 - + - 20 DIV - - 35 AS col0, + col2 FROM tab0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-9931
SELECT ALL col0 - + - 20 / - - 35 AS col0, + col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT - col2 - - 85 FROM tab0
----
-14
38
75

query I rowsort
SELECT DISTINCT 64 * col2 FROM tab0 AS cor0
----
3008
6336
640

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - 49 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT + + AVG ( DISTINCT - + 54 ) FROM tab0 WHERE NOT NULL BETWEEN 22 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 89 IS NOT NULL
----

query II rowsort
SELECT + ( col2 ) * col0 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT + + 76 + - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( ( ( NULL ) IS NOT NULL ) )
----
18
36
53

skipif mysql # not compatible
query I rowsort label-9939
SELECT + + 76 + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( ( ( NULL ) IS NOT NULL ) )
----
18
36
53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 95 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 / - col1 / - - col1 NOT BETWEEN - col2 AND col0 + - col0 * + col1 + + - 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + ( + - col2 ) FROM tab1 cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2, col0 col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col0 * - 58
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 34 AND + col0 * - col0
----

query I rowsort
SELECT + 28 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT 57 + - ( + + ( col1 ) ) FROM tab0
----
-24
36
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT COUNT( * ) + + - MIN( - 29 ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-9948
SELECT COUNT ( * ) + + - MIN ( - 29 ) FROM tab2
----
32

query I rowsort
SELECT ALL 12 + + 23 * - col2 FROM tab0
----
-1069
-218
-2265

query I rowsort
SELECT ALL - ( 4 ) FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL col0 + + col2 + - col0 AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9952
SELECT + 10, - COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
10
-3

skipif mysql # not compatible
query II rowsort label-9952
SELECT + 10, - COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT + 30 * SUM( DISTINCT 13 ) + - 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
364

skipif mysql # not compatible
query I rowsort label-9953
SELECT + 30 * SUM ( DISTINCT 13 ) + - 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
364

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 40 / + - 30 IS NULL
----

query I rowsort
SELECT + + 89 * 59 + + col2 FROM tab2 AS cor0 WHERE ( NULL ) <= - + 99 * + 48
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9956
SELECT - CAST( NULL AS DECIMAL ) + + col1 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT - CAST ( NULL AS REAL ) + + col1 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT ALL ( - + 36 ) - CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
15
31
41

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL ( - + 36 ) - CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
15
31
41

query II rowsort
SELECT 56 + + + 11 + - + col2 AS col2, col0 AS col1 FROM tab0 cor0
----
-32
97
20
15
57
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT MAX( ALL + col2 ) AS col1 FROM tab0 AS cor0 WHERE ( + 66 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT MAX ( ALL + col2 ) AS col1 FROM tab0 AS cor0 WHERE ( + 66 ) >= NULL
----
NULL

query I rowsort
SELECT + 81 + - + col1 * + + 0 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT - 86 + - 76 AS col2 FROM tab0 AS cor0
----
-162
-162
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT COUNT( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE + col1 IN ( - + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-9962
SELECT COUNT ( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE + col1 IN ( - + 54 )
----
0

query I rowsort
SELECT 7 + - col0 AS col1 FROM tab1 AS cor0
----
-44
-78
-84

query I rowsort
SELECT ( + col0 ) + + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 30 * col1 * - + col0 AS col0 FROM tab2
----
-147840
-150750
-70380

query I rowsort
SELECT DISTINCT + ( - col1 ) * ( + - ( + col2 ) ) FROM tab1
----
1344
295
3196

query II rowsort
SELECT + col0 AS col2, col0 * + - col2 FROM tab2
----
46
-1058
64
-2560
75
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT ( + CAST( + col1 AS SIGNED ) ) * + - 92 AS col0 FROM tab0
----
-1932
-7452
-92

skipif mysql # not compatible
query I rowsort label-9968
SELECT ( + CAST ( + col1 AS INTEGER ) ) * + - 92 AS col0 FROM tab0
----
-1932
-7452
-92

query II rowsort
SELECT DISTINCT - 89, col0 FROM tab2
----
-89
46
-89
64
-89
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9970
SELECT - COUNT( * ) AS col0, - 73 col1 FROM tab0
----
-3
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9970
SELECT - COUNT ( * ) AS col0, - 73 col1 FROM tab0
----
-3
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9971
SELECT ALL - + CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT DISTINCT - COUNT( * ) DIV + 1 AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT - COUNT ( * ) / + 1 AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 + + col1 col0 FROM tab1 AS cor0
----
210
2256
30

onlyif mysql # DIV for integer division: 
query II rowsort label-9974
SELECT 1 * col1 col0, - 53 DIV - - col1 FROM tab0 AS cor0
----
1
-53
21
-2
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9974
SELECT 1 * col1 col0, - 53 / - - col1 FROM tab0 AS cor0
----
1
-53
21
-2
81
0

query I rowsort
SELECT col1 + - 3 AS col0 FROM tab1 AS cor0
----
11
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT MIN( + - 39 ) + - 55 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9976
SELECT MIN ( + - 39 ) + - 55 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT 52 + + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-4844
-4963
-6136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col1 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9979
SELECT ALL + ( - col1 ) + - 44 AS col2, + CAST( + 60 AS SIGNED ) FROM tab0
----
-125
60
-45
60
-65
60

skipif mysql # not compatible
query II rowsort label-9979
SELECT ALL + ( - col1 ) + - 44 AS col2, + CAST ( + 60 AS INTEGER ) FROM tab0
----
-125
60
-45
60
-65
60

query III rowsort
SELECT * FROM tab0 WHERE - 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 14 + - - 27 FROM tab1
----
13
13
13

query II rowsort
SELECT ALL + col2 + col2 * 98 - - 77, + col2 AS col1 FROM tab1
----
5918
59
6809
68
9581
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL ( COUNT( col2 ) ) * + MAX( DISTINCT + + col2 ) AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL ( COUNT ( col2 ) ) * + MAX ( DISTINCT + + col2 ) AS col2 FROM tab0
----
297

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 13 BETWEEN 55 AND - 28 * 9 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT + col0 * - + 91 * 18 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT + col0 * - + 91 * 18 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 49 + - + 86 FROM tab0 AS cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT DISTINCT MIN( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT MIN ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT - ( - CAST( col0 AS SIGNED ) ) + 79 * - 3 - col0 AS col0 FROM tab0 AS cor0
----
-237
-237
-237

skipif mysql # not compatible
query I rowsort label-9988
SELECT - ( - CAST ( col0 AS INTEGER ) ) + 79 * - 3 - col0 AS col0 FROM tab0 AS cor0
----
-237
-237
-237

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + + 65 + col2 * - 61 * col0, - 72 + col0 )
----

query I rowsort
SELECT DISTINCT - - 91 + - 71 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
20

query I rowsort
SELECT ALL + + 30 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN + 30 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col0 + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT ALL 65 - - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 cor0
----
68

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL 65 - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9996
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 91 + + col1, CAST( NULL AS SIGNED ) + - col0 / - ( + 35 ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-9996
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 91 + + col1, CAST ( NULL AS INTEGER ) + - col0 / - ( + 35 ) * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT - COUNT( * ) - - + MAX( col0 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9997
SELECT - COUNT ( * ) - - + MAX ( col0 ) FROM tab2 AS cor0
----
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) = NULL
----

query I rowsort
SELECT col0 * - ( - col2 ) AS col1 FROM tab2
----
1058
2560
4350

