sqllogictest
Artifact Content
Not logged in

Artifact d9722709d683951938d2db06592ddda1abe29230:


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