sqllogictest

Artifact [9085313967]
Login

Artifact 90853139675c2ba9b28668b74977088b114805d0:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-0
SELECT ALL + - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + - col1 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query II rowsort
SELECT col1 + col0 * + col0, + ( col2 ) AS col0 FROM tab0 AS cor0
----
306
47
7590
10
9410
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3
SELECT - CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 48 IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3
SELECT - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 48 IS NULL
----
-15
-87
-97

query I rowsort
SELECT col1 + + - col2 FROM tab0 AS cor0
----
-98
11
34

query II rowsort
SELECT ALL col0 * + + col1 + col0 AS col1, + ( + col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
1230
705
1914
870
194
9603

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT 47 <= - 2
----
51
67
77

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ( - col0 ) * 54 AS col1 FROM tab1
----
-2754
-4590
-4914

query I rowsort
SELECT 13 * col0 * - - col1 FROM tab2
----
30498
64064
65325

query III rowsort
SELECT * FROM tab0 WHERE - 26 <> - + col2 * + 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col0 ) * + - col2 + + col0, col2 + col1 col0 FROM tab1
----
-4845
110
-4930
64
-6097
115

query II rowsort
SELECT - col0 AS col1, col2 AS col2 FROM tab0 WHERE + 88 * + col0 + - 3 * - + col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT MAX( ( - 42 ) ) AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-16
SELECT MAX ( ( - 42 ) ) AS col1 FROM tab0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT - MIN( ALL + col2 ) * 52 FROM tab0 AS cor0
----
-520

skipif mysql # not compatible
query I rowsort label-17
SELECT - MIN ( ALL + col2 ) * 52 FROM tab0 AS cor0
----
-520

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT - col1 + - 68 DIV + - col0 AS col0 FROM tab1 AS cor0 WHERE + col2 * - 89 + - col2 NOT IN ( - - col2 * - col1 - + col0 + + - col1 + - col2, + col1 )
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-18
SELECT - col1 + - 68 / + - col0 AS col0 FROM tab1 AS cor0 WHERE + col2 * - 89 + - col2 NOT IN ( - - col2 * - col1 - + col0 + + - col1 + - col2, + col1 )
----
-13
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-19
SELECT DISTINCT + col0 * - col0 - + CAST( NULL AS SIGNED ) + 16 * 65 * - 91 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-19
SELECT DISTINCT + col0 * - col0 - + CAST ( NULL AS INTEGER ) + 16 * 65 * - 91 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT DISTINCT 8 * + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT 8 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72

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

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

query II rowsort
SELECT 33 AS col0, col2 FROM tab0 WHERE - - 18 / 28 * - ( + + col0 ) * - col1 + + 50 * col0 IS NULL
----

query I rowsort
SELECT - - 14 * - 33 FROM tab2 AS cor0
----
-462
-462
-462

query I rowsort
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
51
67
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT 63 * - COUNT( * ) * 35 AS col0 FROM tab1 cor0
----
-6615

skipif mysql # not compatible
query I rowsort label-26
SELECT 63 * - COUNT ( * ) * 35 AS col0 FROM tab1 cor0
----
-6615

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN - 70 AND + - col2
----

query I rowsort
SELECT + ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-30
SELECT + 29, 62 DIV - col1 AS col0 FROM tab2
----
29
-1
29
0
29
0

skipif mysql # not compatible
query II rowsort label-30
SELECT + 29, 62 / - col1 AS col0 FROM tab2
----
29
-1
29
0
29
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-32
SELECT COUNT( * ) AS col0, ( + - ( - 25 ) ) AS col1 FROM tab0
----
3
25

skipif mysql # not compatible
query II rowsort label-32
SELECT COUNT ( * ) AS col0, ( + - ( - 25 ) ) AS col1 FROM tab0
----
3
25

query I rowsort
SELECT DISTINCT - col0 * + 75 * + + 27 FROM tab2
----
-129600
-151875
-93150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-34
SELECT MIN( DISTINCT + CAST( col0 AS SIGNED ) ) FROM tab0
----
15

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT + col2 * col2 DIV - + col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-36
SELECT + col2 * col2 / - + col2 FROM tab0
----
-10
-47
-99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 49 AS col2, - 98 - - col0 + col1 col1 FROM tab2 cor0
----
-49
-1
-49
43
-49
44

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

query I rowsort
SELECT ALL 19 * - col1 FROM tab2 cor0
----
-1273
-1463
-969

query I rowsort
SELECT + 76 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-42
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif mysql # not compatible
query IIIIII rowsort label-42
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ( + - 70 ) * - 9 FROM tab1
----
630
630
630

query I rowsort
SELECT ALL - col0 * - + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT DISTINCT MIN( ALL 25 ) + - 89 AS col0 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT MIN ( ALL 25 ) + - 89 AS col0 FROM tab0 AS cor0
----
-64

query I rowsort
SELECT ALL - + col0 * + + col2 * + 58 / - + col2 * - - ( + - 96 ) * - col2 + col0 AS col0 FROM tab2 AS cor0 WHERE - 94 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL + 67 + + COUNT( + 2 ) * 4 AS col1 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL + 67 + + COUNT ( + 2 ) * 4 AS col1 FROM tab2 AS cor0
----
79

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

query I rowsort
SELECT - col2 * - - col0 + + col2 AS col0 FROM tab2
----
-1035
-2520
-4292

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-51
SELECT ALL col0 DIV - CAST( - - col1 AS SIGNED ) AS col1, 49 FROM tab2
----
-1
49
0
49
0
49

skipif mysql # not compatible
query II rowsort label-51
SELECT ALL col0 / - CAST ( - - col1 AS INTEGER ) AS col1, 49 FROM tab2
----
-1
49
0
49
0
49

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= ( - - ( + + 54 ) )
----

query I rowsort
SELECT ALL + - 72 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-4349
-497
-786

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-58
SELECT - MIN( ALL CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT - MIN ( ALL CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-59
SELECT 97 * + - COUNT( * ), COUNT( * ) AS col1 FROM tab1
----
-291
3

skipif mysql # not compatible
query II rowsort label-59
SELECT 97 * + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1
----
-291
3

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT 42 * + + 98 - + COUNT( - col0 ) AS col1 FROM tab2
----
4113

skipif mysql # not compatible
query I rowsort label-60
SELECT 42 * + + 98 - + COUNT ( - col0 ) AS col1 FROM tab2
----
4113

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT - + 8 DIV + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-61
SELECT - + 8 / + col2 FROM tab0 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-63
SELECT 34 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-63
SELECT 34 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 8 <> NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-67
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT IN ( CAST( NULL AS SIGNED ) * + col1 * col0, - 6, CAST( + 50 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-67
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT IN ( CAST ( NULL AS INTEGER ) * + col1 * col0, - 6, CAST ( + 50 AS INTEGER ) )
----

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE col0 * - 35 / - ( + - col1 ) BETWEEN NULL AND NULL
----

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

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

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

query I rowsort
SELECT ALL - + 56 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - 62 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-74
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - col1 * - col0 * + 40 * - + col2 + col2 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-74
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - col1 * - col0 * + 40 * - + col2 + col2 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT - col2 DIV - + 50 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-75
SELECT - col2 / - + 50 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT + - ( ( + col2 ) ) + - 59 AS col1 FROM tab1 cor0
----
-118
-127
-155

query I rowsort
SELECT - col2 + - - col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col1 + 65 + + + col0 FROM tab0 AS cor0
----
161
163
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT + - CAST( NULL AS SIGNED ) * + 10 - - - 2 FROM tab1 cor0 WHERE NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-79
SELECT + - CAST ( NULL AS INTEGER ) * + 10 - - - 2 FROM tab1 cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL + 45 * + COUNT( + col1 ) + - + 89 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL + 45 * + COUNT ( + col1 ) + - + 89 FROM tab2 AS cor0
----
46

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

query I rowsort
SELECT 12 - + col1 FROM tab2
----
-39
-55
-65

query I rowsort
SELECT ALL + + 29 * - col1 + + - ( - + col2 ) + + col2 + + col1 FROM tab0 AS cor0
----
-2174
-568
170

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT + COUNT( * ) + + 56 * - 23 AS col1 FROM tab1 AS cor0
----
-1285

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT + COUNT ( * ) + + 56 * - 23 AS col1 FROM tab1 AS cor0
----
-1285

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT - 1 + - 97 + - - COUNT( * ) + - 35 FROM tab2 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-85
SELECT - 1 + - 97 + - - COUNT ( * ) + - 35 FROM tab2 AS cor0
----
-130

query I rowsort
SELECT DISTINCT + col1 + + 32 AS col1 FROM tab1 AS cor0
----
37
46
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT DISTINCT 94 + 67 * + COUNT( * ) * - - 88 col0 FROM tab1
----
17782

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

query I rowsort
SELECT - col1 * + col1 * - 35 AS col2 FROM tab1
----
6860
77315
875

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT + 87 * + + 95 - - - 25 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8231

skipif mysql # not compatible
query I rowsort label-90
SELECT + 87 * + + 95 - - - 25 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8231

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 33 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT ALL - 9 + + COUNT( col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----
-9

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL - 9 + + COUNT ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 56 * - - col1 AS col2 FROM tab0 AS cor0
----
1176
4536
56

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 / - 74 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT + - 89 + - ( ( ( + + COUNT( * ) ) ) ) AS col0 FROM tab2 WHERE NOT + col2 / - - col1 IS NULL
----
-92

skipif mysql # not compatible
query I rowsort label-100
SELECT + - 89 + - ( ( ( + + COUNT ( * ) ) ) ) AS col0 FROM tab2 WHERE NOT + col2 / - - col1 IS NULL
----
-92

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-101
SELECT ALL MIN ( ALL + col2 ) col2 FROM tab1
----
59

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 43 + + 19 * - 74 >= NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 13 / col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col2 ) col1 FROM tab0
----
10
47
99

query I rowsort
SELECT + 38 * - col1 AS col0 FROM tab1 AS cor0
----
-1786
-190
-532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + - col1 col2 FROM tab2 AS cor0 WHERE NULL <> + 77
----

query I rowsort
SELECT ALL - col2 * ( - + col0 ) + 38 AS col0 FROM tab0 AS cor0
----
743
908
9641

query I rowsort
SELECT DISTINCT - - col2 + - + 34 FROM tab0 AS cor0
----
-24
13
65

query I rowsort
SELECT DISTINCT ( + - 78 ) + - + 94 AS col0 FROM tab0 AS cor0
----
-172

query II rowsort
SELECT col0 + + 29, 76 AS col0 FROM tab1
----
114
76
120
76
80
76

query I rowsort
SELECT - 17 + - + col0 FROM tab0
----
-104
-114
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT DISTINCT MAX( DISTINCT + - 57 ) col0 FROM tab1
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-114
SELECT DISTINCT MAX ( DISTINCT + - 57 ) col0 FROM tab1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * - col2 col0 FROM tab2
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT COUNT( * ) + - 83 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-116
SELECT COUNT ( * ) + - 83 FROM tab2
----
-80

query I rowsort
SELECT col1 + - + col2 AS col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 32 * col1 AS col1 FROM tab0
----
2592
32
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 98 / - 25 col1 FROM tab0 WHERE 58 NOT BETWEEN - 6 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT COUNT( * ) + - 31 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-120
SELECT COUNT ( * ) + - 31 FROM tab1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT 82 + - COUNT( * ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-121
SELECT 82 + - COUNT ( * ) FROM tab0
----
79

query III rowsort
SELECT * FROM tab1 WHERE + - 80 NOT BETWEEN + col2 AND - + col1 + + 84 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-123
SELECT DISTINCT - AVG ( ALL - - 84 ) FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN CAST( + col0 AS DECIMAL ) AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT - AVG ( ALL - - 84 ) FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN CAST ( + col0 AS REAL ) AND - col1
----
NULL

query I rowsort
SELECT ALL 30 * - - col2 AS col2 FROM tab1
----
1770
2040
2880

query I rowsort
SELECT - col1 * 20 AS col0 FROM tab0
----
-1620
-20
-420

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-128
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT 94 BETWEEN + CAST( + 74 AS SIGNED ) + - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT 94 BETWEEN + CAST ( + 74 AS INTEGER ) + - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + + 41, - col0 )
----

query I rowsort
SELECT DISTINCT - col0 * + ( + 96 ) FROM tab2 AS cor0
----
-4416
-6144
-7200

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NOT NULL = + 53
----

query II rowsort
SELECT - 22 + + col0 + + col0 + + 98, - 88 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-134
SELECT DISTINCT 30 DIV COUNT( ALL col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT 30 / COUNT ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - - col0 * - - 61 + 69 FROM tab2 AS cor0
----
2875
3973
4644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64 col0, col1 AS col1 FROM tab1
----
-64
14
-64
47
-64
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col1 * col0 col0 FROM tab0
----
-1
97
-21
1827
-81
1215

query I rowsort
SELECT 65 * - - 34 AS col1 FROM tab2
----
2210
2210
2210

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-139
SELECT ALL * FROM tab1 WHERE NOT + col1 * - CAST( + - 25 AS DECIMAL ) IN ( col2, col0, + 59, - col2 / col1, + - col2, col2 * - col0 * - col0 / + - col2, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-139
SELECT ALL * FROM tab1 WHERE NOT + col1 * - CAST ( + - 25 AS REAL ) IN ( col2, col0, + 59, - col2 / col1, + - col2, col2 * - col0 * - col0 / + - col2, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 AS col1, - ( - 67 ) AS col2 FROM tab0
----
-15
67
-87
67
-97
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 * + col2 * + 45 col0 FROM tab0
----
-200475
-20250
-95175

query I rowsort
SELECT DISTINCT - col1 - + col1 FROM tab2 WHERE col1 IS NOT NULL
----
-102
-134
-154

query I rowsort
SELECT DISTINCT - 95 * ( + - col2 ) FROM tab2
----
2185
3800
5510

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-144
SELECT - CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-144
SELECT - CAST ( NULL AS REAL ) AS col1, COUNT ( * ) FROM tab2 cor0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 13 IS NULL
----

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

query II rowsort
SELECT ALL + 10 AS col1, col0 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 3 * - 46 AS col0 FROM tab1 AS cor0
----
-138
-138
-138

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

onlyif mysql # DIV for integer division: 
query I rowsort label-150
SELECT 52 DIV - col1 + col1 FROM tab1
----
-5
11
46

skipif mysql # not compatible
query I rowsort label-150
SELECT 52 / - col1 + col1 FROM tab1
----
-5
11
46

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

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

query I rowsort
SELECT + + 21 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT DISTINCT 1 + - col2 AS col2 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT ALL + col0 - - - 80 FROM tab0 AS cor0
----
-65
17
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + 21
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT ALL + COUNT( * ) * + + MIN( DISTINCT - col1 ) AS col1 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL + COUNT ( * ) * + + MIN ( DISTINCT - col1 ) AS col1 FROM tab2
----
-231

query I rowsort
SELECT col0 * - - 96 * + + 27 FROM tab2
----
119232
165888
194400

query I rowsort
SELECT DISTINCT - col0 * - 37 - col1 - 87 FROM tab0
----
3111
3501
387

query I rowsort
SELECT ALL col0 - + + col1 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL + col1 - 9 FROM tab1
----
-4
38
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-162
SELECT ALL + CAST( + col2 AS SIGNED ) FROM tab0 WHERE ( NULL ) IS NULL AND NOT ( NULL ) <> col2
----

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL + CAST ( + col2 AS INTEGER ) FROM tab0 WHERE ( NULL ) IS NULL AND NOT ( NULL ) <> col2
----

query I rowsort
SELECT ALL 61 * - + 41 FROM tab0
----
-2501
-2501
-2501

query I rowsort
SELECT - 45 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL + 1 * - col0 * + + col2 AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + 66 * + col0 FROM tab1
----
3366
5610
6006

query I rowsort
SELECT + - 65 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT - col1 * 12 AS col0 FROM tab2 AS cor0
----
-612
-804
-924

query II rowsort
SELECT DISTINCT + col0 AS col0, 2 - + col1 AS col2 FROM tab2 AS cor0
----
46
-49
64
-75
75
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-171
SELECT ALL - CAST( - ( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL - CAST ( - ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL ( MIN( + col0 ) ) AS col2 FROM tab2 WHERE - col0 = - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL ( MIN ( + col0 ) ) AS col2 FROM tab2 WHERE - col0 = - + 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-173
SELECT 34 DIV + 53, - COUNT( * ) col0 FROM tab2
----
0
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-173
SELECT 34 / + 53, - COUNT ( * ) col0 FROM tab2
----
0
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-175
SELECT ALL - COUNT( * ) DIV - 98 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL - COUNT ( * ) / - 98 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT COUNT( * ) * 28 + + 79 FROM tab2
----
163

skipif mysql # not compatible
query I rowsort label-176
SELECT COUNT ( * ) * 28 + + 79 FROM tab2
----
163

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

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

query I rowsort
SELECT ALL + - col0 + - + 23 AS col1 FROM tab2 AS cor0
----
-69
-87
-98

query I rowsort
SELECT DISTINCT 44 * - + 31 * + 82 FROM tab2 AS cor0
----
-111848

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 69 >= + 1
----

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

query I rowsort
SELECT + col1 * + 24 - - col1 + + - col2 AS col1 FROM tab1 AS cor0
----
1107
254
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-184
SELECT DISTINCT - CAST( NULL AS SIGNED ), - col1 + col1 + - ( + ( 62 ) ) * col1 AS col0 FROM tab2 cor0
----
NULL
-3162
NULL
-4154
NULL
-4774

skipif mysql # not compatible
query II rowsort label-184
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - col1 + col1 + - ( + ( 62 ) ) * col1 AS col0 FROM tab2 cor0
----
NULL
-3162
NULL
-4154
NULL
-4774

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT + - CAST( - 19 AS SIGNED ) FROM tab0 WHERE + col0 * - 25 + + col0 / 6 > col0
----

skipif mysql # not compatible
query I rowsort label-188
SELECT + - CAST ( - 19 AS INTEGER ) FROM tab0 WHERE + col0 * - 25 + + col0 / 6 > col0
----

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

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL COUNT ( * ) - - COUNT ( * ) * 1 FROM tab0
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT SUM( + 9 ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-191
SELECT SUM ( + 9 ) AS col2 FROM tab1
----
27

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

skipif mysql # not compatible
query I rowsort label-192
SELECT SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
195

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

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT - col0 DIV ( + col0 ) * + col2 * + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-194
SELECT - col0 / ( + col0 ) * + col2 * + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col1 FROM tab2 cor0
----
3
3
3

query II rowsort
SELECT ALL ( col2 ) * col2 + - ( - col1 ), - col0 AS col2 FROM tab2
----
1677
-64
3431
-75
580
-46

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

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

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

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

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

query I rowsort
SELECT ALL - col2 + + col2 * col1 * + col1 * 70 FROM tab0 AS cor0
----
21585643
308690
6831

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61 * - col0 + - - col2 col2, + col0 FROM tab1 AS cor0
----
-3015
51
-5126
85
-5483
91

onlyif mysql # DIV for integer division: 
query I rowsort label-202
SELECT + + col0 DIV - ( + col1 ) FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-202
SELECT + + col0 / - ( + col1 ) FROM tab0 cor0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-203
SELECT ALL - col0 * ( + + col2 ) DIV - - col1 + - col2, col0 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1062
NULL
-199
NULL
-445
NULL

skipif mysql # not compatible
query II rowsort label-203
SELECT ALL - col0 * ( + + col2 ) / - - col1 + - col2, col0 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1062
NULL
-199
NULL
-445
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-204
SELECT ALL * FROM tab1 cor0 WHERE NOT + ( - + 70 ) BETWEEN NULL AND + CAST( + col0 AS SIGNED ) * - - 75 * - col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-204
SELECT ALL * FROM tab1 cor0 WHERE NOT + ( - + 70 ) BETWEEN NULL AND + CAST ( + col0 AS INTEGER ) * - - 75 * - col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 AS col1, 83 * + col1 FROM tab0 AS cor0
----
10
1743
47
6723
99
83

query I rowsort
SELECT + col2 * 77 AS col0 FROM tab2
----
1771
3080
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-207
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 WHERE NOT ( + - 62 / + col2 + - + col2 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 WHERE NOT ( + - 62 / + col2 + - + col2 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL COUNT( ALL - - col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-208
SELECT ALL COUNT ( ALL - - col0 ) col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 95 * - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-210
SELECT ALL col1 DIV 16, col2 + + 80 * - col1 AS col0 FROM tab2
----
3
-4057
4
-5302
4
-6120

skipif mysql # not compatible
query II rowsort label-210
SELECT ALL col1 / 16, col2 + + 80 * - col1 AS col0 FROM tab2
----
3
-4057
4
-5302
4
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-211
SELECT * FROM tab0 WHERE col2 + 5 - - CAST( col2 AS SIGNED ) / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-211
SELECT * FROM tab0 WHERE col2 + 5 - - CAST ( col2 AS INTEGER ) / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE + col0 < NULL
----

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

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

query I rowsort
SELECT ALL 15 + col1 AS col0 FROM tab2 AS cor0
----
66
82
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col1 FROM tab2 WHERE + col0 / + col0 IS NOT NULL
----
-78
-78
-78

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

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

query II rowsort
SELECT + + col0 AS col2, col1 FROM tab2 AS cor0 WHERE - 21 < + col1 + + + col2
----
46
51
64
77
75
67

query II rowsort
SELECT - ( + - 42 ) AS col1, - col1 AS col1 FROM tab1 AS cor0
----
42
-14
42
-47
42
-5

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

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

query II rowsort
SELECT DISTINCT + col2 + + - col0, - 91 * + 51 - + col0 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-23
-10920
-26
-9741
45
-9588

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - 35 ) IS NULL
----

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

skipif mysql # not compatible
query II rowsort label-225
SELECT + ( COUNT ( * ) ) AS col1, + 3 AS col0 FROM tab2, tab2 AS cor0
----
9
3

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - ( 43 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) col2 FROM tab1
----
-59
-68
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-229
SELECT DISTINCT - CAST( NULL AS SIGNED ), 22 AS col1 FROM tab0
----
NULL
22

skipif mysql # not compatible
query II rowsort label-229
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 22 AS col1 FROM tab0
----
NULL
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT - - ( - ( - - CAST( + + SUM( + + 53 ) AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-230
SELECT - - ( - ( - - CAST ( + + SUM ( + + 53 ) AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
-159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 31 * col0 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL MAX( ALL 43 ) FROM tab0 WHERE NOT ( 83 ) IS NULL
----
43

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL MAX ( ALL 43 ) FROM tab0 WHERE NOT ( 83 ) IS NULL
----
43

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE 68 <= + col0
----
10
99

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

query I rowsort
SELECT DISTINCT ( - 14 ) FROM tab0 WHERE ( - col1 * - col2 ) < ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT + 96 + - COUNT( DISTINCT + col1 + ( 35 ) ) * + 28 AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT + 96 + - COUNT ( DISTINCT + col1 + ( 35 ) ) * + 28 AS col2 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT SUM( ALL - 97 ) col2 FROM tab1
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-237
SELECT SUM ( ALL - 97 ) col2 FROM tab1
----
-291

query I rowsort
SELECT ALL - col1 - col2 AS col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT DISTINCT + 0 * 7 FROM tab1 WHERE col2 NOT IN ( - col0 + - col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col2 FROM tab2 WHERE ( - col2 / - 43 ) NOT IN ( 5 )
----
1058
2560
4350

query I rowsort
SELECT ALL col1 * 59 AS col0 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col0 FROM tab2
----
-2346
-4928
-5025

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

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

skipif mysql # not compatible
query I rowsort label-244
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 * 17 col0 FROM tab1
----
748

query I rowsort
SELECT DISTINCT col2 * + 79 AS col1 FROM tab0
----
3713
7821
790

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( col0 )
----

query I rowsort
SELECT ( col2 ) + 44 FROM tab0
----
143
54
91

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

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

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

query I rowsort
SELECT ALL - 75 * + col2 FROM tab2
----
-1725
-3000
-4350

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

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

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT 26 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-256
SELECT ALL - ( + COUNT( CAST( NULL AS SIGNED ) ) ) FROM tab1 WHERE + 67 * col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL - ( + COUNT ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 WHERE + 67 * col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 - + 21 FROM tab0
----
-20
0
60

query I rowsort
SELECT ALL + col0 + - 65 FROM tab0
----
-50
22
32

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT - 58 + + 37 * COUNT( * ) col1 FROM tab1
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-259
SELECT - 58 + + 37 * COUNT ( * ) col1 FROM tab1
----
53

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

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

query I rowsort
SELECT + 47 + ( 53 ) FROM tab0
----
100
100
100

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

skipif mysql # not compatible
query I rowsort label-262
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) + 39 FROM tab2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-264
SELECT - col1 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-264
SELECT - col1 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-196
-2209
-25

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

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

query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab1 AS cor0 WHERE col2 + 71 NOT IN ( - col1 * col0 )
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * col2 - 18 < NULL
----

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

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

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

query I rowsort
SELECT - 68 - col0 AS col0 FROM tab0 AS cor0
----
-155
-165
-83

query I rowsort
SELECT DISTINCT col0 + + col1 * 12 FROM tab1 cor0
----
145
219
655

query I rowsort
SELECT DISTINCT 28 + + col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----

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

query I rowsort
SELECT - - col0 + + ( - col2 ) FROM tab0 cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL - MAX( + col0 ) + 55 AS col2 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL - MAX ( + col0 ) + 55 AS col2 FROM tab2 AS cor0
----
-20

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1978
2752
3225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-278
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-278
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

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

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

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

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT - col2 / 85 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT - MIN( col1 ) AS col2 FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-282
SELECT - MIN ( col1 ) AS col2 FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col2 ) + + 27 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT + COUNT( + 94 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-284
SELECT + COUNT ( + 94 ) FROM tab2
----
3

query I rowsort
SELECT - ( - ( - 37 ) ) FROM tab0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT DISTINCT - SUM( DISTINCT + 72 ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT - SUM ( DISTINCT + 72 ) FROM tab0
----
-72

query I rowsort
SELECT - ( - 6 ) FROM tab1
----
6
6
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE - 32 * col1 NOT BETWEEN ( NULL ) AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - 32 * col1 NOT BETWEEN ( NULL ) AND + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col0 FROM tab0 WHERE NOT + col1 / col1 NOT IN ( + col2 )
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col0 NOT BETWEEN 83 AND ( + 75 )
----

query I rowsort
SELECT DISTINCT col1 - col1 FROM tab1 AS cor0 WHERE NOT - 83 BETWEEN 11 / col1 AND + 50
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-293
SELECT + col0 DIV + 84 - col2 * - col1 FROM tab0 AS cor0
----
100
211
3807

skipif mysql # not compatible
query I rowsort label-293
SELECT + col0 / + 84 - col2 * - col1 FROM tab0 AS cor0
----
100
211
3807

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN col1 AND col1
----

query I rowsort
SELECT ALL ( + 13 ) * - col2 + col0 AS col0 FROM tab1 WHERE NOT + col0 / - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-296
SELECT ALL + MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-298
SELECT DISTINCT 70 AS col0, MIN( - col1 ) FROM tab1 AS cor0
----
70
-47

skipif mysql # not compatible
query II rowsort label-298
SELECT DISTINCT 70 AS col0, MIN ( - col1 ) FROM tab1 AS cor0
----
70
-47

query I rowsort
SELECT + col1 + + 79 FROM tab1 cor0
----
126
84
93

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

query I rowsort
SELECT 10 * - col0 + + col0 * col0 + - 21 FROM tab2 AS cor0
----
1635
3435
4854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 AS cor0 WHERE col1 NOT IN ( - col0 )
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-303
SELECT ALL - + SUM( + CAST( NULL AS DECIMAL ) ) + + + 85 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - + SUM ( + CAST ( NULL AS REAL ) ) + + + 85 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT DISTINCT - + 95 + + + 11 + SUM( DISTINCT col0 ) * - 57 AS col0 FROM tab0 AS cor0
----
-11427

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT - + 95 + + + 11 + SUM ( DISTINCT col0 ) * - 57 AS col0 FROM tab0 AS cor0
----
-11427

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT + 54 * 36 IN ( + 74 )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-27
-27
-27

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + + col0 BETWEEN ( NULL ) AND 41 + col0
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT ALL col1 * 50 DIV - col2 FROM tab0
----
-105
-86
0

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL col1 * 50 / - col2 FROM tab0
----
-105
-86
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-310
SELECT + CAST( NULL AS SIGNED ) + - col1 * - 56 AS col1 FROM tab2 WHERE + + 95 >= NULL
----

skipif mysql # not compatible
query I rowsort label-310
SELECT + CAST ( NULL AS INTEGER ) + - col1 * - 56 AS col1 FROM tab2 WHERE + + 95 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL - COUNT( - - 57 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL - COUNT ( - - 57 ) FROM tab1
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE ( col0 ) NOT BETWEEN col1 AND ( NULL )
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT + col1 - col1 * - col1 DIV col1 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-315
SELECT + col1 - col1 * - col1 / col1 FROM tab2 AS cor0
----
102
134
154

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

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0 WHERE ( 86 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT - - ( - ( - SUM( + col1 ) ) ) + + 83 col2 FROM tab1 AS cor0
----
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-318
SELECT - - ( - ( - SUM ( + col1 ) ) ) + + 83 col2 FROM tab1 AS cor0
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT DISTINCT - - 91 + - - col2 + - col1 + CAST( + col0 AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
-1158
-1747
92

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT - - 91 + - - col2 + - col1 + CAST ( + col0 AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
-1158
-1747
92

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT + + col0 * + col0 + - col2 - col0 FROM tab1 AS cor0
----
2454
7081
8122

query I rowsort
SELECT 38 * ( col0 ) * + - ( - - 8 ) - col0 FROM tab0 AS cor0
----
-26535
-29585
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT - 8 * - COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-323
SELECT - 8 * - COUNT ( * ) FROM tab2 AS cor0
----
24

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

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

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

query I rowsort
SELECT ( - + col2 ) + + col2 * - 0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT - - 97 DIV + 13 AS col0 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-327
SELECT - - 97 / + 13 AS col0 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT ALL + col0 DIV 66 * - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
0

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL + col0 / 66 * - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
0

query I rowsort
SELECT DISTINCT + - 31 AS col1 FROM tab0 AS cor0
----
-31

query II rowsort
SELECT - ( 87 ) AS col0, 7 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 2 * 13 FROM tab1 cor0
----
26
26
26

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-333
SELECT ALL + 5 FROM tab1 WHERE + - 71 NOT IN ( - - 19 * - col2 * - col1 + + ( + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + 5 FROM tab1 WHERE + - 71 NOT IN ( - - 19 * - col2 * - col1 + + ( + CAST ( NULL AS REAL ) ) )
----

query I rowsort
SELECT col0 / - col1 AS col1 FROM tab0 WHERE NOT ( NULL IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - ( + 18 ) * + + col0 + - col0 / col2 ) NOT BETWEEN - col2 + col2 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT - col2 * 79 AS col0, - col0 FROM tab1
----
-4661
-85
-5372
-91
-7584
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL COUNT( ( col1 ) ) FROM tab2 WHERE ( + col0 >= ( + - col0 ) )
----
3

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL COUNT ( ( col1 ) ) FROM tab2 WHERE ( + col0 >= ( + - col0 ) )
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + + 77 / + 71
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, col0 + + + 99 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col2 * col1 * 16 ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 18 ) - + 49 NOT IN ( - + col1, + 94 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT ALL - col1 * + col1 + 9 DIV + 63 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - col1 * + col1 + 9 / + 63 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-344
SELECT ALL - SUM( + col0 ), 53 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-227
56

skipif mysql # not compatible
query II rowsort label-344
SELECT ALL - SUM ( + col0 ), 53 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-227
56

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

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT DISTINCT ( - COUNT( * ) ), ( + 38 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
114

skipif mysql # not compatible
query II rowsort label-346
SELECT DISTINCT ( - COUNT ( * ) ), ( + 38 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
114

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

query I rowsort
SELECT col1 + - + 55 FROM tab1
----
-41
-50
-8

query I rowsort
SELECT 73 FROM tab0 WHERE NULL <= NULL
----

query II rowsort
SELECT ALL - col1 AS col1, + col2 * - col1 * + 11 * - - col1 FROM tab2
----
-51
-658053
-67
-2863982
-77
-2608760

query I rowsort
SELECT + col0 + col0 FROM tab0 WHERE + 28 <> - 75
----
174
194
30

query I rowsort
SELECT 65 + col1 FROM tab1
----
112
70
79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-355
SELECT - COUNT( * ) FROM tab1 WHERE 36 BETWEEN ( NULL ) AND - 61 * col1 / + ( + CAST( NULL AS SIGNED ) ) OR NOT ( + 22 + - col1 ) <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-355
SELECT - COUNT ( * ) FROM tab1 WHERE 36 BETWEEN ( NULL ) AND - 61 * col1 / + ( + CAST ( NULL AS INTEGER ) ) OR NOT ( + 22 + - col1 ) <> - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-356
SELECT ALL + + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL <> - col0
----

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 * col2 col0 FROM tab1
----
1947
2244
3168

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

query II rowsort
SELECT DISTINCT + col2 + - + 56 * - col0, - col1 * + + col1 AS col0 FROM tab0 AS cor0
----
4882
-441
5531
-1
887
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-360
SELECT + - col1 - - CAST( + col1 AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-360
SELECT + - col1 - - CAST ( + col1 AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( - - ( + col0 ), ( + - col2 ) + + col2, + col0 + 35 + col0 * col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT + SUM( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE - 17 <= - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT + SUM ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE - 17 <= - + col0
----
NULL

query I rowsort
SELECT + 62 * + col1 FROM tab1 AS cor0
----
2914
310
868

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

skipif mysql # not compatible
query I rowsort label-365
SELECT - + 20 / + - 19 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-366
SELECT ALL - CAST( NULL AS SIGNED ) * - + COUNT( * ) * + 52 FROM tab1 AS cor0 WHERE NOT + 39 NOT BETWEEN - col1 AND ( CAST( NULL AS DECIMAL ) - - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + 52 FROM tab1 AS cor0 WHERE NOT + 39 NOT BETWEEN - col1 AND ( CAST ( NULL AS REAL ) - - - col2 )
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND + 24 - - 10
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * col2 + - col2 + col2 / + + 42 <> NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-372
SELECT DISTINCT + CAST( NULL AS SIGNED ), MIN( DISTINCT - col0 ) + 47 AS col2 FROM tab0
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-372
SELECT DISTINCT + CAST ( NULL AS INTEGER ), MIN ( DISTINCT - col0 ) + 47 AS col2 FROM tab0
----
NULL
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-373
SELECT ALL 6 DIV MIN( DISTINCT + ( 25 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL 6 / MIN ( DISTINCT + ( 25 ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT - 10 * MIN( ALL 71 ) col0 FROM tab0 WHERE NOT - col2 * + 23 / - 75 + - 44 + + - col2 - - col2 IS NULL
----
-710

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-374
SELECT - 10 * MIN ( ALL 71 ) col0 FROM tab0 WHERE NOT - col2 * + 23 / - 75 + - 44 + + - col2 - - col2 IS NULL
----
-710

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT DISTINCT 24 DIV - + 38 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT 24 / - + 38 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col0 * + - 59 + col1 - - - col1 AS col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3009
5015
5369

query II rowsort
SELECT + col0, col1 * + - 71 AS col1 FROM tab1 AS cor0
----
51
-994
85
-355
91
-3337

query I rowsort
SELECT - - 46 * + col1 FROM tab1 AS cor0
----
2162
230
644

onlyif mysql # DIV for integer division: 
query I rowsort label-379
SELECT - + col2 DIV + ( + 1 ) + - 36 col1 FROM tab0 AS cor0
----
-135
-46
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-379
SELECT - + col2 / + ( + 1 ) + - 36 col1 FROM tab0 AS cor0
----
-135
-46
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-380
SELECT DISTINCT - 6 * CAST( + 62 AS SIGNED ) FROM tab2 AS cor0
----
-372

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT - 6 * CAST ( + 62 AS INTEGER ) FROM tab2 AS cor0
----
-372

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - col2 + col1
----

query I rowsort
SELECT ALL - 57 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT + - COUNT( DISTINCT + 88 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-383
SELECT + - COUNT ( DISTINCT + 88 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

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

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

skipif mysql # not compatible
query III rowsort label-385
SELECT * FROM tab2 WHERE + - CAST ( - col0 AS INTEGER ) * + ( + - 45 ) IN ( - col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-387
SELECT ALL + col2 + + 95 AS col0, 75 + - col1 + - + CAST( NULL AS SIGNED ) + col1 + + ( col0 ) + - 62 / col1 col2 FROM tab1 AS cor0
----
154
NULL
163
NULL
191
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-387
SELECT ALL + col2 + + 95 AS col0, 75 + - col1 + - + CAST ( NULL AS INTEGER ) + col1 + + ( col0 ) + - 62 / col1 col2 FROM tab1 AS cor0
----
154
NULL
163
NULL
191
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + + col2 col0 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-389
SELECT - CAST( - col0 AS DECIMAL ) AS col1, 81 AS col0 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-389
SELECT - CAST ( - col0 AS REAL ) AS col1, 81 AS col0 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-391
SELECT ALL - ( - col1 ) - - CAST( - col1 AS SIGNED ) col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-391
SELECT ALL - ( - col1 ) - - CAST ( - col1 AS INTEGER ) col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE + ( 90 ) >= - 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT DISTINCT + MAX( DISTINCT col0 ) / - + MIN( - - col1 ) FROM tab2 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT + MAX ( DISTINCT col0 ) / - + MIN ( - - col1 ) FROM tab2 WHERE NOT ( NULL ) < NULL
----
NULL

query I rowsort
SELECT - col2 * - 2 - + col0 * + + col1 AS col1 FROM tab1
----
-307
-4141
-522

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

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

query I rowsort
SELECT col2 * 45 - + + col0 AS col1 FROM tab2
----
1736
2535
989

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT DISTINCT - 95 + - 68 AS col0, + MAX( - col1 ) FROM tab0 AS cor0
----
-163
-1

skipif mysql # not compatible
query II rowsort label-398
SELECT DISTINCT - 95 + - 68 AS col0, + MAX ( - col1 ) FROM tab0 AS cor0
----
-163
-1

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 cor0 WHERE NOT ( - col1 + + 19 ) > - 28 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT - COUNT( * ) + + - MIN( ALL - - col2 ) AS col2 FROM tab2 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-400
SELECT - COUNT ( * ) + + - MIN ( ALL - - col2 ) AS col2 FROM tab2 cor0
----
-26

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-402
SELECT * FROM tab1 WHERE NOT + - 86 * - 91 BETWEEN - - CAST( - + CAST( + + col1 AS SIGNED ) AS SIGNED ) AND ( - 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-402
SELECT * FROM tab1 WHERE NOT + - 86 * - 91 BETWEEN - - CAST ( - + CAST ( + + col1 AS INTEGER ) AS INTEGER ) AND ( - 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 62 + - - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - SUM( col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-404
SELECT - SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-405
SELECT DISTINCT + 0, + 99 * CAST( - 25 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
-2475

skipif mysql # not compatible
query II rowsort label-405
SELECT DISTINCT + 0, + 99 * CAST ( - 25 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
-2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT + CAST( - col1 AS SIGNED ) * - col0 * - - 11 FROM tab2 AS cor0
----
25806
54208
55275

skipif mysql # not compatible
query I rowsort label-406
SELECT + CAST ( - col1 AS INTEGER ) * - col0 * - - 11 FROM tab2 AS cor0
----
25806
54208
55275

onlyif mysql # DIV for integer division: 
query II rowsort label-407
SELECT ALL col2, + 67 DIV - - col0 FROM tab2 cor0
----
23
1
40
1
58
0

skipif mysql # not compatible
query II rowsort label-407
SELECT ALL col2, + 67 / - - col0 FROM tab2 cor0
----
23
1
40
1
58
0

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

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

query I rowsort
SELECT DISTINCT - 3 * - col0 * - col0 AS col2 FROM tab0
----
-22707
-28227
-675

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-412
SELECT * FROM tab2 AS cor0 WHERE NOT - 44 < 50 + + - CAST( 48 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-412
SELECT * FROM tab2 AS cor0 WHERE NOT - 44 < 50 + + - CAST ( 48 AS INTEGER )
----

query I rowsort
SELECT ALL + col1 * + - 68 * + + col1 FROM tab1 AS cor0
----
-13328
-150212
-1700

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-415
SELECT DISTINCT 8 FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT 8 FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT CAST ( NULL AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 col1 FROM tab2
----
-28
-37
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT ALL + 79 + MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + 79 + MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL - - COUNT( * ) + + 99 FROM tab1 cor0
----
102

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - - COUNT ( * ) + + 99 FROM tab1 cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT DISTINCT COUNT( * ) - + 52 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT COUNT ( * ) - + 52 FROM tab0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-421
SELECT * FROM tab2 WHERE + - col1 + + col0 + CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND + - CAST( 32 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-421
SELECT * FROM tab2 WHERE + - col1 + + col0 + CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND + - CAST ( 32 AS INTEGER )
----

query I rowsort
SELECT ALL - 70 - 63 AS col2 FROM tab2
----
-133
-133
-133

query I rowsort
SELECT ALL col0 - - 98 AS col0 FROM tab2
----
144
162
173

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 50 - col0 + + + col1 NOT IN ( - 86, + 57 )
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + + col2 IS NULL
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-428
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 44 <> 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-430
SELECT - col1 DIV - 48 * - + 77 DIV + - 69 col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-430
SELECT - col1 / - 48 * - + 77 / + - 69 col1 FROM tab0
----
0
0
1

query I rowsort
SELECT + ( + col1 ) * - 35 FROM tab2
----
-1785
-2345
-2695

query II rowsort
SELECT DISTINCT + ( + col0 ) * - 65, col1 FROM tab2
----
-2990
51
-4160
77
-4875
67

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

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

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

query I rowsort
SELECT + - ( + + col1 ) + - 78 AS col0 FROM tab2 AS cor0
----
-129
-145
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT SUM( - col0 ) * COUNT( * ) + + 71 FROM tab1
----
-610

skipif mysql # not compatible
query I rowsort label-436
SELECT SUM ( - col0 ) * COUNT ( * ) + + 71 FROM tab1
----
-610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-437
SELECT SUM( + col1 ) DIV + - COUNT( * ) + + 44 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-437
SELECT SUM ( + col1 ) / + - COUNT ( * ) + + 44 FROM tab2
----
-21

query II rowsort
SELECT DISTINCT + col0 + + + col1 AS col2, - col0 * - + col2 - - - 56 FROM tab1
----
138
6132
65
4840
90
4959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT ALL + 70 FROM tab1 WHERE NOT + - col0 + + 36 NOT BETWEEN + + 1 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL + 70 FROM tab1 WHERE NOT + - col0 + + 36 NOT BETWEEN + + 1 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - - 21 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
21

query II rowsort
SELECT ALL col2 AS col2, col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 * col2 AND ( NULL )
----

query I rowsort
SELECT ALL - + col2 * col0 * 33 + + + col2 + col0 AS col1 FROM tab2 AS cor0
----
-143417
-34845
-84376

onlyif mysql # aggregate syntax: 
query II rowsort label-443
SELECT ALL COUNT( * ), 37 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col2
----
0
37

skipif mysql # not compatible
query II rowsort label-443
SELECT ALL COUNT ( * ), 37 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col2
----
0
37

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT + COUNT( * ) * 47 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-444
SELECT + COUNT ( * ) * 47 FROM tab2 AS cor0
----
141

query I rowsort
SELECT 78 * - ( - col0 ) FROM tab1 AS cor0
----
3978
6630
7098

query I rowsort
SELECT ALL 42 FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN 49 AND NULL )
----

query I rowsort
SELECT ALL col2 * 67 * + 6 FROM tab1 AS cor0
----
23718
27336
38592

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT - CAST( + 46 AS SIGNED ) / - col1 AS col0 FROM tab2 AS cor0 WHERE - 43 IS NULL
----

skipif mysql # not compatible
query I rowsort label-449
SELECT - CAST ( + 46 AS INTEGER ) / - col1 AS col0 FROM tab2 AS cor0 WHERE - 43 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 91 )
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( - - col0 ) IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 18 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + + 54 FROM tab0
----
1134
4374
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT ALL + col2 DIV col0 - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL + col2 / col0 - col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT 0 + - col0 AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL 89 - 62 * 68 AS col0 FROM tab2
----
-4127
-4127
-4127

onlyif mysql # DIV for integer division: 
query I rowsort label-458
SELECT + 56 DIV - 25 col0 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-458
SELECT + 56 / - 25 col0 FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-459
SELECT ALL * FROM tab0 WHERE NOT NULL <> - + 95 / + - CAST( + 9 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-459
SELECT ALL * FROM tab0 WHERE NOT NULL <> - + 95 / + - CAST ( + 9 AS INTEGER )
----

query I rowsort
SELECT - 88 * col2 AS col2 FROM tab1 cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= - ( - + 37 )
----
0

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= - ( - + 37 )
----
0

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

query I rowsort
SELECT 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + - 92 * - - col0 FROM tab2 cor0
----
-4232
-5888
-6900

query I rowsort
SELECT ALL - - col2 * col0 + col0 * + ( - ( 13 ) ) - - 98 FROM tab1 AS cor0
----
4008
4331
5103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-467
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 66 col2 FROM tab2 AS cor0
----
NULL
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-467
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 66 col2 FROM tab2 AS cor0
----
NULL
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL + COUNT( col0 ) + - + ( COUNT( DISTINCT col0 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL + COUNT ( col0 ) + - + ( COUNT ( DISTINCT col0 ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT + 94 * - ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-470
SELECT + 94 * - ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-282

query I rowsort
SELECT DISTINCT col0 + + 54 + - col2 AS col0 FROM tab2 AS cor0
----
71
77
78

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

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

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

query I rowsort
SELECT - 95 * col2 FROM tab2
----
-2185
-3800
-5510

query I rowsort
SELECT DISTINCT - ( - 66 ) AS col0 FROM tab1
----
66

query I rowsort
SELECT 99 + + - ( col1 ) AS col0 FROM tab2
----
22
32
48

query I rowsort
SELECT col2 + - + col2 FROM tab0
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 54 + - col2 AS col0, + col0 col0 FROM tab1 AS cor0
----
-14
91
-42
51
-5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-480
SELECT DISTINCT ( - col1 ) DIV + - 4 + - col1 AS col1 FROM tab0 cor0
----
-1
-16
-61

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT ( - col1 ) / + - 4 + - col1 AS col1 FROM tab0 cor0
----
-1
-16
-61

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

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

query I rowsort
SELECT ( + col2 ) * + col0 + col1 AS col2 FROM tab2
----
1109
2637
4417

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-483
SELECT + col0 - + + col0 + + + CAST( NULL AS SIGNED ) AS col0, 70 FROM tab1
----
NULL
70
NULL
70
NULL
70

skipif mysql # not compatible
query II rowsort label-483
SELECT + col0 - + + col0 + + + CAST ( NULL AS INTEGER ) AS col0, 70 FROM tab1
----
NULL
70
NULL
70
NULL
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 47 IN ( - ( 85 ), 91 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-485
SELECT ALL + 39 + - 22 - - - COUNT( * ) + + COUNT( * ) * + MAX( ALL + col0 ) DIV - 15 + MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL + 39 + - 22 - - - COUNT ( * ) + + COUNT ( * ) * + MAX ( ALL + col0 ) / - 15 + MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT - 96 + - CAST( + 10 AS SIGNED ) AS col0 FROM tab2 cor0
----
-106
-106
-106

skipif mysql # not compatible
query I rowsort label-486
SELECT - 96 + - CAST ( + 10 AS INTEGER ) AS col0 FROM tab2 cor0
----
-106
-106
-106

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

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

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

skipif mysql # not compatible
query I rowsort label-488
SELECT - - COUNT ( * ) / + 41 + + 3 / - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT DISTINCT + col2 + + + col1 * + col0 - - - col1 AS col1, + 62 FROM tab0
----
1181
62
1816
62
195
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-490
SELECT + MAX( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT + MAX ( CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 WHERE NOT + 97 NOT BETWEEN NULL AND 17
----

query I rowsort
SELECT + 51 FROM tab0 WHERE NOT - 18 <= col2
----

query I rowsort
SELECT DISTINCT col1 * - 79 AS col2 FROM tab2
----
-4029
-5293
-6083

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + 44 + - col0 IN ( - + 61, + 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-496
SELECT ALL CAST( - ( + col1 ) AS SIGNED ) AS col0 FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) BETWEEN 49 - - + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL CAST ( - ( + col1 ) AS INTEGER ) AS col0 FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) BETWEEN 49 - - + col1 AND NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT DISTINCT - + MAX( - col2 ) DIV - 8 AS col1 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT - + MAX ( - col2 ) / - 8 AS col1 FROM tab1 AS cor0
----
-7

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-501
SELECT + - 7 / + COUNT ( * ) FROM tab0 cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-502
SELECT - - SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-502
SELECT - - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT ALL + MAX( ALL col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL + MAX ( ALL col2 ) FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - 59 / + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + col1 * + col1 NOT IN ( - 33 )
----

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

query I rowsort
SELECT col0 + - col1 * + - col2 FROM tab0 AS cor0
----
196
297
3822

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT + MIN( ALL 40 ) * + COUNT( + 52 ) AS col2 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-509
SELECT + MIN ( ALL 40 ) * + COUNT ( + 52 ) AS col2 FROM tab2 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL + COUNT( * ) + 19 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + COUNT ( * ) + 19 FROM tab2 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-511
SELECT DISTINCT - col2 DIV - 30 AS col2, col0 FROM tab0
----
0
87
1
15
3
97

skipif mysql # not compatible
query II rowsort label-511
SELECT DISTINCT - col2 / - 30 AS col2, col0 FROM tab0
----
0
87
1
15
3
97

query I rowsort
SELECT ALL + col1 * - ( + + col1 ) * col1 * - col2 AS col0 FROM tab1
----
263424
7059964
7375

query III rowsort
SELECT * FROM tab0 WHERE - - 83 NOT BETWEEN + + col2 AND + col0
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( - col2 ) col1 FROM tab1 AS cor0
----
3481
4624
9216

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT 52 DIV - 64 + - + 20 + - 4 * - col2 AS col2 FROM tab2 cor0
----
140
212
72

skipif mysql # not compatible
query I rowsort label-517
SELECT 52 / - 64 + - + 20 + - 4 * - col2 AS col2 FROM tab2 cor0
----
140
212
72

query I rowsort
SELECT - + ( + - col1 ) * - - col2 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

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

query I rowsort
SELECT + - 48 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-522
SELECT col0 * - col1, 81 DIV + 97 * 43 AS col0 FROM tab0
----
-1215
0
-1827
0
-97
0

skipif mysql # not compatible
query II rowsort label-522
SELECT col0 * - col1, 81 / + 97 * 43 AS col0 FROM tab0
----
-1215
0
-1827
0
-97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT COUNT( * ) DIV + MIN( + ( 44 ) ) * - 28 + 38 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-523
SELECT COUNT ( * ) / + MIN ( + ( 44 ) ) * - 28 + 38 FROM tab1 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT - col0 DIV - - col1 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-524
SELECT - col0 / - - col1 FROM tab0 cor0
----
-4
-97
0

query I rowsort
SELECT ALL + col2 * - - ( + + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 77 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-528
SELECT ALL + CAST( NULL AS DECIMAL ) * + - 16 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + CAST ( NULL AS REAL ) * + - 16 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT DISTINCT 11 * - + MIN( + col1 ) col2 FROM tab1
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-529
SELECT DISTINCT 11 * - + MIN ( + col1 ) col2 FROM tab1
----
-55

query I rowsort
SELECT - ( - ( + - 72 ) ) * + 17 AS col2 FROM tab1
----
-1224
-1224
-1224

onlyif mysql # DIV for integer division: 
query I rowsort label-531
SELECT ALL col0 DIV + + 66 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL col0 / + + 66 AS col1 FROM tab1
----
0
1
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT ALL 96 DIV 95 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL 96 / 95 AS col2 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 * col0 * + 37 * + 88 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-536
SELECT DISTINCT - 29 AS col0, + 92 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-536
SELECT DISTINCT - 29 AS col0, + 92 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-29
NULL

query I rowsort
SELECT DISTINCT - 54 * - + col1 FROM tab1
----
2538
270
756

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 32
----

query I rowsort
SELECT ALL - col0 * - 96 AS col0 FROM tab2
----
4416
6144
7200

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

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

query I rowsort
SELECT - ( - - 64 ) + + col0 AS col0 FROM tab0 WHERE NOT - col1 * + 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT - MAX( DISTINCT - 40 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-542
SELECT - MAX ( DISTINCT - 40 ) FROM tab0 AS cor0
----
40

query II rowsort
SELECT col2 AS col2, + col1 * 64 FROM tab1 AS cor0 WHERE NOT - 30 - - - col2 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + - 98 * - col2 + col2 AS col0 FROM tab2 cor0
----
2277
3960
5742

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

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

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL 48 + - - col0 AS col0 FROM tab2
----
112
123
94

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT DISTINCT + 31 DIV - 94 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT + 31 / - 94 FROM tab2
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-551
SELECT ALL col1, + col2 + - 91 + + - 71 * + col2 * + 17 * - col2 DIV + col2 AS col1 FROM tab1
----
14
115877
47
82053
5
71181

skipif mysql # not compatible
query II rowsort label-551
SELECT ALL col1, + col2 + - 91 + + - 71 * + col2 * + 17 * - col2 / + col2 AS col1 FROM tab1
----
14
115877
47
82053
5
71181

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

onlyif mysql # DIV for integer division: 
query II rowsort label-553
SELECT + col1 + + col2 + - col0 * col1 DIV - 81, - col1 AS col1 FROM tab1
----
118
-14
167
-47
69
-5

skipif mysql # not compatible
query II rowsort label-553
SELECT + col1 + + col2 + - col0 * col1 / - 81, - col1 AS col1 FROM tab1
----
118
-14
167
-47
69
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-554
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( - + 11 AS SIGNED ) = + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-554
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( - + 11 AS INTEGER ) = + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 99 + + + 13 FROM tab1
----
112
112
112

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL 47 + + - COUNT( * ) AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL 47 + + - COUNT ( * ) AS col2 FROM tab2
----
44

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT - COUNT( * ) - - 62 AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-562
SELECT - COUNT ( * ) - - 62 AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ALL + 8 - - COUNT( * ) AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL + 8 - - COUNT ( * ) AS col2 FROM tab2
----
11

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

query II rowsort
SELECT ALL - 76, col1 FROM tab0 AS cor0
----
-76
1
-76
21
-76
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-567
SELECT DISTINCT - col2, + col2 * + col0 * CAST( ( - + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-567
SELECT DISTINCT - col2, + col2 * + col0 * CAST ( ( - + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT - SUM( col0 ) AS col0 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-569
SELECT - SUM ( col0 ) AS col0 FROM tab1 cor0
----
-227

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

onlyif mysql # DIV for integer division: 
query I rowsort label-571
SELECT 82 DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-571
SELECT 82 / - col0 FROM tab2
----
-1
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT + - AVG ( col2 ) - - MAX( + - col0 ) + COUNT( * ) col1 FROM tab2 WHERE NOT 56 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-573
SELECT + - AVG ( col2 ) - - MAX ( + - col0 ) + COUNT ( * ) col1 FROM tab2 WHERE NOT 56 IS NOT NULL
----
NULL

query I rowsort
SELECT - 11 * - col2 + - - col0 - col0 * - col1 + + col1 AS col2 FROM tab0 AS cor0
----
1284
1828
2045

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT 58 DIV + col2 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-575
SELECT 58 / + col2 AS col0 FROM tab0
----
0
1
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-578
SELECT ALL + ( + col1 ), 18 / - col0 * + col1 * - + col1 + + col2 - - col2 + - + col2 + + + col0 / - + col1 * + + col2 * + - col2 AS col2, + 84 + - - CAST( 55 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query III rowsort label-578
SELECT ALL + ( + col1 ), 18 / - col0 * + col1 * - + col1 + + col2 - - col2 + - + col2 + + + col0 / - + col1 * + + col2 * + - col2 AS col2, + 84 + - - CAST ( 55 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT 71 + - + col2 FROM tab2 cor0
----
13
31
48

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

query I rowsort
SELECT DISTINCT 23 + col2 FROM tab2 AS cor0
----
46
63
81

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

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

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

query II rowsort
SELECT + 30 AS col2, col2 - col2 FROM tab2 AS cor0
----
30
0
30
0
30
0

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT 57 * + col1 * + 32 * - + col0 DIV col0 AS col0 FROM tab0 cor0
----
-147744
-1824
-38304

skipif mysql # not compatible
query I rowsort label-585
SELECT 57 * + col1 * + 32 * - + col0 / col0 AS col0 FROM tab0 cor0
----
-147744
-1824
-38304

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL SUM( ALL 40 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL SUM ( ALL 40 ) FROM tab2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT + + COUNT( * ) + + COUNT( * ) + + COUNT( * ) FROM tab2 WHERE - col0 / + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-588
SELECT + + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE - col0 / + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-589
SELECT ALL + MAX( DISTINCT + col2 ), + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
96
3

skipif mysql # not compatible
query II rowsort label-589
SELECT ALL + MAX ( DISTINCT + col2 ), + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
96
3

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

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

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

query I rowsort
SELECT - 22 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 * + col1 * + 93 + 8 AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT + MAX( ALL + 19 ) AS col1 FROM tab2 WHERE ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT + MAX ( ALL + 19 ) AS col1 FROM tab2 WHERE ( col0 ) IS NULL
----
NULL

query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab1 WHERE NOT + col1 + + col1 + - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-597
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 54 AS col0 FROM tab1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-597
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 54 AS col0 FROM tab1
----
NULL
54

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-598
SELECT - - COUNT ( * ) * + - 17 col0 FROM tab1 cor0
----
-51

query I rowsort
SELECT ALL - col0 * - - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-601
SELECT DISTINCT + MAX( DISTINCT - CAST( - ( + col0 ) AS SIGNED ) ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT + MAX ( DISTINCT - CAST ( - ( + col0 ) AS INTEGER ) ) AS col2 FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 WHERE NOT 42 + - 22 BETWEEN NULL AND 75
----
0

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 WHERE NOT 42 + - 22 BETWEEN NULL AND 75
----
0

query II rowsort
SELECT DISTINCT + + 34, - col0 + - - ( ( + col0 ) ) AS col1 FROM tab0 cor0
----
34
0

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-604
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 82 + - ( - ( - 68 ) ) IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 45 = + 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + 23 FROM tab1
----
1357
1564
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 31 col0 FROM tab1
----
14
-31
47
-31
5
-31

query I rowsort
SELECT ALL + + 76 + + col2 AS col1 FROM tab1 AS cor0
----
135
144
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 * - col0 col2 FROM tab2 AS cor0
----
-2070
-4032
-5550

query I rowsort
SELECT - - 58 + 84 AS col2 FROM tab1 cor0
----
142
142
142

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT - COUNT( * ) + SUM( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-613
SELECT - COUNT ( * ) + SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-198

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <> + col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT - + COUNT( DISTINCT - - col2 ) - 34 * 11 + + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-374

skipif mysql # not compatible
query I rowsort label-615
SELECT - + COUNT ( DISTINCT - - col2 ) - 34 * 11 + + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT DISTINCT - MAX( DISTINCT + col2 ) * - ( - COUNT( * ) ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT - MAX ( DISTINCT + col2 ) * - ( - COUNT ( * ) ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-617
SELECT ALL MAX( ALL + col2 ) AS col2, - 15 FROM tab0
----
99
-15

skipif mysql # not compatible
query II rowsort label-617
SELECT ALL MAX ( ALL + col2 ) AS col2, - 15 FROM tab0
----
99
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT DISTINCT COUNT( * ) * + 69 + + - COUNT( * ) + - - 83 + - + 38 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT COUNT ( * ) * + 69 + + - COUNT ( * ) + - - 83 + - + 38 FROM tab2 AS cor0
----
249

query I rowsort
SELECT ALL - - 97 * - - col2 * col2 + + - 86 + col2 * col2 * + col1 AS col1 FROM tab1 AS cor0
----
1022890
354976
665770

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 70 < - 53 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-623
SELECT + col2 + - CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-623
SELECT + col2 + - CAST ( NULL AS REAL ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 4 * + + 46 * + col0 AS col2 FROM tab2 AS cor0 WHERE NULL > + col1
----

query I rowsort
SELECT + ( 61 ) + - + 43 * + ( - col1 ) * - col1 + 13 FROM tab2
----
-111769
-192953
-254873

query I rowsort
SELECT col0 + + 85 FROM tab0
----
100
172
182

query I rowsort
SELECT 50 + - 30 AS col0 FROM tab1
----
20
20
20

query I rowsort
SELECT ALL - 36 - col0 * - - 7 * - + 81 * ( + + 4 ) FROM tab1
----
115632
192744
206352

query I rowsort
SELECT DISTINCT + col0 - + col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT + col0 + + + 57 FROM tab1
----
108
142
148

query II rowsort
SELECT DISTINCT ( - ( col2 ) ), - col2 AS col0 FROM tab2
----
-23
-23
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT - MAX( ALL + 24 ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-632
SELECT - MAX ( ALL + 24 ) FROM tab0
----
-24

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 39 * - col1 col0 FROM tab1 AS cor0
----
-1833
-195
-546

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT - MAX( 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT - MAX ( 88 ) FROM tab2
----
-88

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 27 * - - col2 - + col0 * - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-639
SELECT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

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

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

query I rowsort
SELECT - - ( col2 ) * 49 AS col0 FROM tab0 cor0
----
2303
4851
490

query I rowsort
SELECT DISTINCT + ( - 84 ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * - - col2 col1 FROM tab0
----
2773
5841
590

onlyif mysql # DIV for integer division: 
query I rowsort label-645
SELECT - col0 DIV - + 6 AS col1 FROM tab0
----
14
16
2

skipif mysql # not compatible
query I rowsort label-645
SELECT - col0 / - + 6 AS col1 FROM tab0
----
14
16
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * - col2 col1 FROM tab1
----
3540
4080
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT ALL MIN( ALL + col2 ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-647
SELECT ALL MIN ( ALL + col2 ) col0 FROM tab0
----
10

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-649
SELECT DISTINCT - - col0 AS col1, 11 DIV 30 FROM tab2 WHERE + - col0 IS NOT NULL
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-649
SELECT DISTINCT - - col0 AS col1, 11 / 30 FROM tab2 WHERE + - col0 IS NOT NULL
----
46
0
64
0
75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 33 AS col1, col1 col1 FROM tab2
----
33
51
33
67
33
77

query I rowsort
SELECT + 51 + - col2 AS col1 FROM tab0
----
-48
4
41

query I rowsort
SELECT - + 6 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + col1 col1, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 80 * 67 - + - col1 col0 FROM tab2 AS cor0
----
-5347
-5355
-5368

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT - MIN( DISTINCT - - 9 ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-656
SELECT - MIN ( DISTINCT - - 9 ) AS col1 FROM tab0 AS cor0
----
-9

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

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

query II rowsort
SELECT + + 34, 31 AS col1 FROM tab1 AS cor0
----
34
31
34
31
34
31

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL MAX( ALL + + col2 ) + + - COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL MAX ( ALL + + col2 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
93

query I rowsort
SELECT - col1 * col1 - col2 * - ( col2 ) FROM tab0 AS cor0
----
-341
-4352
9800

query I rowsort
SELECT + 18 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

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

query I rowsort
SELECT col0 FROM tab1 WHERE + 28 <> - col1 * + 85
----
51
85
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT 93 * COUNT( * ) FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-665
SELECT 93 * COUNT ( * ) FROM tab2 AS cor0
----
279

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT DISTINCT - col2 DIV 3 * ( - + col1 ) FROM tab0 AS cor0
----
1215
33
63

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT - col2 / 3 * ( - + col1 ) FROM tab0 AS cor0
----
1215
33
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - COUNT( col2 ) + - COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN 94 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-671
SELECT - COUNT ( col2 ) + - COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN 94 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT - 11 DIV - col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-672
SELECT - 11 / - col2 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT + 92 * 63 FROM tab1
----
5796

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT + 77 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-674
SELECT + 77 / + col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-675
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-676
SELECT + CAST( ( + 25 ) AS SIGNED ) + + - COUNT( * ) col1 FROM tab1
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-676
SELECT + CAST ( ( + 25 ) AS INTEGER ) + + - COUNT ( * ) col1 FROM tab1
----
22

query I rowsort
SELECT 51 + - - 3 AS col2 FROM tab0
----
54
54
54

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT DISTINCT + - COUNT( * ) + + COUNT( * ) FROM tab2 WHERE NOT + col2 = col1
----
0

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT + - COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE NOT + col2 = col1
----
0

query I rowsort
SELECT + col1 - + - 7 AS col2 FROM tab0 AS cor0
----
28
8
88

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT - + 39 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-684
SELECT - + 39 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT DISTINCT - col0 + 82 AS col2 FROM tab0 AS cor0
----
-15
-5
67

query I rowsort
SELECT DISTINCT col1 * 35 + 25 * - col0 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1164
2695
3834

query I rowsort
SELECT ALL 41 - - 61 AS col0 FROM tab1 AS cor0
----
102
102
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - 91 * col0 * col2 col1 FROM tab0 AS cor0
----
-64140
-79083
-873776

query III rowsort
SELECT DISTINCT col0, - 5, - + 33 AS col0 FROM tab0
----
9 values hashing to ec91ad3402a7b037b8ac6fa19bc24faa

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT + col2 DIV col0 + + col1 AS col2 FROM tab0
----
2
21
84

skipif mysql # not compatible
query I rowsort label-690
SELECT + col2 / col0 + + col1 AS col2 FROM tab0
----
2
21
84

query I rowsort
SELECT - col0 + - 73 AS col2 FROM tab1
----
-124
-158
-164

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

query II rowsort
SELECT col2 AS col2, - 87 + - col0 AS col1 FROM tab0
----
10
-174
47
-102
99
-184

query II rowsort
SELECT DISTINCT + col0, + 7 * col0 AS col1 FROM tab1
----
51
357
85
595
91
637

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT ALL 36 * - 20 * + SUM( ALL - - 32 ) - + 7 FROM tab2
----
-69127

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL 36 * - 20 * + SUM ( ALL - - 32 ) - + 7 FROM tab2
----
-69127

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

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

query I rowsort
SELECT ALL - col0 * + - 30 + - col0 FROM tab2 AS cor0
----
1334
1856
2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT ( - - 85 ) * col2 * 93 + + 85 + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
181854
316221
458500

skipif mysql # not compatible
query I rowsort label-698
SELECT ( - - 85 ) * col2 * 93 + + 85 + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
181854
316221
458500

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

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT SUM( + col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-700
SELECT SUM ( + col0 ) AS col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT col1 * ( + + 52 ) FROM tab0
----
1092
4212
52

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 42 / + ( + + col2 ) + 6 + - 90 IS NOT NULL
----

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT col2 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - - 71 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT ALL + 31 - - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + 86 NOT BETWEEN 64 AND - 71 * - + 1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT ALL - 7 + + COUNT( * ), - 15 AS col2 FROM tab2 AS cor0
----
-4
-15

skipif mysql # not compatible
query II rowsort label-706
SELECT ALL - 7 + + COUNT ( * ), - 15 AS col2 FROM tab2 AS cor0
----
-4
-15

query II rowsort
SELECT ALL + 88, col1 * - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND col1 + + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL COUNT( * ) * - ( - MIN( - + col0 ) ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL COUNT ( * ) * - ( - MIN ( - + col0 ) ) FROM tab1 AS cor0
----
-273

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

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

query I rowsort
SELECT col1 * - 17 FROM tab0
----
-1377
-17
-357

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

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + col0 / - - col2 FROM tab2
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT DISTINCT + COUNT( * ) + - 96 + + + COUNT( * ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT + COUNT ( * ) + - 96 + + + COUNT ( * ) FROM tab2
----
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / + 79 < NULL
----

query I rowsort
SELECT ALL - col2 + - + col0 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

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

skipif mysql # not compatible
query I rowsort label-715
SELECT + CAST ( NULL AS INTEGER ) / + + 23 + + CAST ( NULL AS INTEGER ) * - - ( - 83 ) + - - col2 + + - col1 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 44 + + col1 AS col0 FROM tab0 WHERE NOT - col0 + + ( 78 ) IS NULL
----
125
45
65

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT DISTINCT 82 DIV 80 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT 82 / 80 FROM tab1
----
1

query I rowsort
SELECT + 38 * + 35 FROM tab0
----
1330
1330
1330

onlyif mysql # DIV for integer division: 
query I rowsort label-720
SELECT - ( - col2 ) * ( - 69 DIV 21 ) AS col2 FROM tab0
----
-141
-297
-30

skipif mysql # not compatible
query I rowsort label-720
SELECT - ( - col2 ) * ( - 69 / 21 ) AS col2 FROM tab0
----
-141
-297
-30

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT ALL COUNT( DISTINCT col1 ) FROM tab1 WHERE NOT - col0 / - col2 - + col2 = - col0 - 3
----
3

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL COUNT ( DISTINCT col1 ) FROM tab1 WHERE NOT - col0 / - col2 - + col2 = - col0 - 3
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT CAST( col0 AS SIGNED ) col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-726
SELECT CAST ( col0 AS INTEGER ) col1 FROM tab2
----
46
64
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <> col0
----
0

skipif mysql # not compatible
query I rowsort label-728
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <> col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= 85
----

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

query I rowsort
SELECT 17 + - 79 * col0 AS col1 FROM tab1
----
-4012
-6698
-7172

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( 41 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-733
SELECT - 21 DIV + col0 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-733
SELECT - 21 / + col0 AS col2 FROM tab0
----
-1
0
0

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

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

query I rowsort
SELECT ALL ( 45 ) AS col0 FROM tab2
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT ALL - 74 DIV - 11 + - col2 * - 87 AS col2 FROM tab1
----
5139
5922
8358

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL - 74 / - 11 + - col2 * - 87 AS col2 FROM tab1
----
5139
5922
8358

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-737
SELECT * FROM tab0 WHERE ( ( + 99 ) * CAST( col1 + 97 * col2 AS SIGNED ) ) IN ( 83 * col2 )
----

skipif mysql # not compatible
query III rowsort label-737
SELECT * FROM tab0 WHERE ( ( + 99 ) * CAST ( col1 + 97 * col2 AS INTEGER ) ) IN ( 83 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT + 45 + - MAX( DISTINCT + 82 ) AS col2 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-738
SELECT + 45 + - MAX ( DISTINCT + 82 ) AS col2 FROM tab2
----
-37

query I rowsort
SELECT + 36 FROM tab1 WHERE NOT NULL BETWEEN ( + 56 ) AND NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col2 + 64 FROM tab2
----
104
122
87

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

query I rowsort
SELECT - 91 + col0 AS col0 FROM tab2
----
-16
-27
-45

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 24 * - col0 NOT IN ( + col0 )
----

query I rowsort
SELECT ALL + col2 * 79 FROM tab2 AS cor0
----
1817
3160
4582

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 29
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT + COUNT( * ) + - MIN( ALL 24 ) * + 39 FROM tab2 AS cor0 CROSS JOIN tab2
----
-927

skipif mysql # not compatible
query I rowsort label-750
SELECT + COUNT ( * ) + - MIN ( ALL 24 ) * + 39 FROM tab2 AS cor0 CROSS JOIN tab2
----
-927

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 IN ( col2 )
----

query I rowsort
SELECT DISTINCT - 71 * 8 + col0 AS col1 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
-477
-483
-517

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

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

skipif mysql # not compatible
query I rowsort label-754
SELECT - COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT MAX( + 78 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT MAX ( + 78 ) FROM tab2 AS cor0
----
78

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT DISTINCT col0 DIV - col0 + + col2 AS col1 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT col0 / - col0 + + col2 AS col1 FROM tab1 AS cor0
----
58
67
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 <= 60 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + MAX ( ALL - col1 ) * MIN ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-2346

query I rowsort
SELECT ALL + col2 * col1 + 80 FROM tab0 cor0
----
179
290
3887

query I rowsort
SELECT DISTINCT + + col1 + + 70 * 61 AS col0 FROM tab2 AS cor0
----
4321
4337
4347

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT - COUNT( ALL 85 ) FROM tab1 AS cor0 WHERE 44 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-766
SELECT - COUNT ( ALL 85 ) FROM tab1 AS cor0 WHERE 44 IS NOT NULL
----
-3

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE 97 IS NULL
----

query I rowsort
SELECT - col2 * 13 + col1 AS col0 FROM tab0
----
-109
-1286
-530

query I rowsort
SELECT 84 + + + col1 * + col2 AS col2 FROM tab0
----
183
294
3891

query I rowsort
SELECT ALL 81 * col1 FROM tab2 WHERE NULL <= + 62
----

query I rowsort
SELECT col1 * 36 + - 35 AS col1 FROM tab2
----
1801
2377
2737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-772
SELECT 25 + - + 95 * ( CAST( NULL AS SIGNED ) * col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-772
SELECT 25 + - + 95 * ( CAST ( NULL AS INTEGER ) * col0 ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT 43 * + + MIN( DISTINCT - col0 ) + 50 * 90 AS col2 FROM tab2
----
1275

skipif mysql # not compatible
query I rowsort label-774
SELECT 43 * + + MIN ( DISTINCT - col0 ) + 50 * 90 AS col2 FROM tab2
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT + COUNT( * ) FROM tab0 WHERE - 40 <= col1
----
3

skipif mysql # not compatible
query I rowsort label-775
SELECT + COUNT ( * ) FROM tab0 WHERE - 40 <= col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + COUNT( * ) * + + MIN( 32 ) * COUNT( * ) + + SUM( DISTINCT - col0 ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-776
SELECT + COUNT ( * ) * + + MIN ( 32 ) * COUNT ( * ) + + SUM ( DISTINCT - col0 ) FROM tab1
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT ( COUNT( * ) ) FROM tab2 AS cor0 WHERE + ( - col1 ) NOT BETWEEN col2 * col1 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-778
SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE + ( - col1 ) NOT BETWEEN col2 * col1 AND NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT ALL - - ( + - col2 ) - + col1 DIV 60 FROM tab2 AS cor0
----
-23
-41
-59

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - - ( + - col2 ) - + col1 / 60 FROM tab2 AS cor0
----
-23
-41
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-780
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT + col2 - - col1 + col0 AS col2 FROM tab0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT COUNT( * ) - - COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-783
SELECT COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab2
----
6

query I rowsort
SELECT - 35 + - + col1 FROM tab1
----
-40
-49
-82

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

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

query I rowsort
SELECT 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT 62 + + + col2 * ( - col1 ) DIV + col2 AS col0 FROM tab2 AS cor0
----
-15
-5
11

skipif mysql # not compatible
query I rowsort label-787
SELECT 62 + + + col2 * ( - col1 ) / + col2 AS col0 FROM tab2 AS cor0
----
-15
-5
11

query I rowsort
SELECT DISTINCT + - col2 + col2 * 21 * 32 - + col1 * col2 AS col0 FROM tab0 cor0
----
27730
6500
66330

query I rowsort
SELECT DISTINCT + col0 * - 4 * ( col1 ) AS col1 FROM tab2 AS cor0
----
-19712
-20100
-9384

query I rowsort
SELECT - col1 * - 11 FROM tab2 AS cor0
----
561
737
847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-791
SELECT + col1 * + CAST( - 25 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1275
-1675
-1925

skipif mysql # not compatible
query I rowsort label-791
SELECT + col1 * + CAST ( - 25 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1275
-1675
-1925

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 cor0 WHERE - ( + col2 ) * 51 < - col0
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-793
SELECT MIN ( DISTINCT - col0 ) AS col0 FROM tab1
----
-91

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

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

skipif mysql # not compatible
query I rowsort label-795
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - 69 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - 45 FROM tab2 WHERE NOT + col0 * - - 20 BETWEEN 38 AND NULL
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 27 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-805
SELECT DISTINCT - COUNT( DISTINCT col1 ) col1, - 98 col0 FROM tab2 AS cor0
----
-3
-98

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-806
SELECT ALL - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) + + COUNT( * ) * 52 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
468

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * 52 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
468

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - col0 * + 94 * - + ( 8 ) * col2 + + 97 IN ( 96 )
----

query I rowsort
SELECT - col2 * - 19 FROM tab2 cor0 WHERE NOT NULL <> - col2 + + - 26
----

query I rowsort
SELECT DISTINCT - col1 + - - col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-810
SELECT - CAST( NULL AS DECIMAL ) + + - ( + - col0 ) * + 7 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-810
SELECT - CAST ( NULL AS REAL ) + + - ( + - col0 ) * + 7 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 91, + col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-813
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, 67 AS col1 FROM tab1 cor0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-813
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, 67 AS col1 FROM tab1 cor0
----
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT MAX( 68 ) AS col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-814
SELECT MAX ( 68 ) AS col2 FROM tab0 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT ALL + col1 + - 5 + + col0 * + 64 + - col1 + col2 DIV - col1 FROM tab2 AS cor0
----
2939
4091
4795

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + col1 + - 5 + + col0 * + 64 + - col1 + col2 / - col1 FROM tab2 AS cor0
----
2939
4091
4795

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 8 + 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 20 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL + col0 * - col2 * + col1 + - col0 * + col0 AS col0 FROM tab0 WHERE NOT - col1 * - - 13 IS NULL
----
-19012
-25839
-57330

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT - COUNT( * ) + + ( - 60 ) + + - 54 FROM tab1 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-821
SELECT - COUNT ( * ) + + ( - 60 ) + + - 54 FROM tab1 cor0
----
-117

query I rowsort
SELECT ALL col0 + + + col1 AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + 44 + + - 99 * - - ( + + col2 ) + 10 * + 31 FROM tab1 AS cor0
----
-5487
-6378
-9150

query I rowsort
SELECT - col0 * + - col0 * + + col0 + + + col2 - - - col1 AS col0 FROM tab1 AS cor0
----
132733
614179
753592

query I rowsort
SELECT ALL 29 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT ALL col0 DIV 81 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL col0 / 81 AS col0 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL + col2 * col0 - ( - col1 ) FROM tab1
----
4910
5020
6235

query I rowsort
SELECT + 4 * + ( - col2 ) * + + col1 FROM tab1 AS cor0
----
-1180
-12784
-5376

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT DISTINCT 81 DIV ( + 62 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT 81 / ( + 62 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-830
SELECT COUNT( * ) / ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT COUNT ( * ) / ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-831
SELECT MIN( + 76 ) DIV + 46 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-831
SELECT MIN ( + 76 ) / + 46 FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT MIN( DISTINCT + - 37 ) col2 FROM tab2
----
-37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT - col0 DIV + - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-834
SELECT - col0 / + - col0 FROM tab0
----
1
1
1

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

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

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

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

query II rowsort
SELECT col1, - 22 - + ( - 34 ) FROM tab2
----
51
12
67
12
77
12

onlyif mysql # aggregate syntax: 
query II rowsort label-838
SELECT - 73 AS col0, MAX( DISTINCT - 35 ) FROM tab2 AS cor0
----
-73
-35

skipif mysql # not compatible
query II rowsort label-838
SELECT - 73 AS col0, MAX ( DISTINCT - 35 ) FROM tab2 AS cor0
----
-73
-35

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-847
SELECT 13 AS col2, + SUM( DISTINCT + 45 ) col1 FROM tab2 AS cor0 WHERE ( + col2 - - 16 ) IS NULL
----
13
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-847
SELECT 13 AS col2, + SUM ( DISTINCT + 45 ) col1 FROM tab2 AS cor0 WHERE ( + col2 - - 16 ) IS NULL
----
13
NULL

query II rowsort
SELECT ALL col2, - 96 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

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

skipif mysql # not compatible
query II rowsort label-851
SELECT DISTINCT ( + MIN ( DISTINCT - 29 ) ), - COUNT ( * ) AS col0 FROM tab2
----
-29
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-852
SELECT CAST( NULL AS SIGNED ) + + col2 * + col1 * col2 - - - 3 AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-852
SELECT CAST ( NULL AS INTEGER ) + + col2 * + col1 * col2 - - - 3 AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT + 57 + - + 22 AS col1 FROM tab1
----
35
35
35

query II rowsort
SELECT DISTINCT + 59, + 85 AS col0 FROM tab2
----
59
85

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT COUNT( - - col1 ) + MAX( DISTINCT + col0 ) AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-855
SELECT COUNT ( - - col1 ) + MAX ( DISTINCT + col0 ) AS col1 FROM tab2
----
78

query I rowsort
SELECT - col1 + - - col2 FROM tab1
----
21
54
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL COUNT( * ) * 12 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL COUNT ( * ) * 12 FROM tab0
----
36

query II rowsort
SELECT + 16 AS col0, 80 / col0 AS col0 FROM tab0 AS cor0 WHERE ( + 90 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL SUM( - + 18 ) + - - MIN( - 74 ) AS col1 FROM tab0 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL SUM ( - + 18 ) + - - MIN ( - 74 ) AS col1 FROM tab0 AS cor0
----
-128

query I rowsort
SELECT DISTINCT 58 - + 0 - - col1 FROM tab1
----
105
63
72

query I rowsort
SELECT DISTINCT 56 * - col1 - + 65 FROM tab0
----
-121
-1241
-4601

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

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

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

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

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + 64 IS NULL
----
51
67
77

query II rowsort
SELECT ALL + col0 AS col0, ( + col2 ) AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + COUNT( * ) * - + 35 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-868
SELECT + COUNT ( * ) * - + 35 FROM tab1 AS cor0
----
-105

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT DISTINCT col2 * - col1 * + - col1 + - col0 - col0 + + col2 DIV + col0 * - col0 AS col1 FROM tab2 AS cor0
----
237032
260212
59731

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT col2 * - col1 * + - col1 + - col0 - col0 + + col2 / + col0 * - col0 AS col1 FROM tab2 AS cor0
----
237032
260212
59731

query I rowsort
SELECT + ( + 96 ) FROM tab1, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL ( + col0 ) * + 76 * + col0 AS col1 FROM tab1
----
197676
549100
629356

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-874
SELECT col0 DIV - col1 AS col2, 62 - + 44 * CAST( col2 AS SIGNED ) FROM tab0
----
-4
-378
-97
-4294
0
-2006

skipif mysql # not compatible
query II rowsort label-874
SELECT col0 / - col1 AS col2, 62 - + 44 * CAST ( col2 AS INTEGER ) FROM tab0
----
-4
-378
-97
-4294
0
-2006

onlyif mysql # DIV for integer division: 
query II rowsort label-875
SELECT DISTINCT col0 DIV col0, ( - + 17 ) AS col0 FROM tab0
----
1
-17

skipif mysql # not compatible
query II rowsort label-875
SELECT DISTINCT col0 / col0, ( - + 17 ) AS col0 FROM tab0
----
1
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT COUNT( DISTINCT + 10 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-876
SELECT COUNT ( DISTINCT + 10 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-879
SELECT ALL + col2 * col0 + + - col2 + + 49 + col0 DIV - - col0 + + - 77 FROM tab2 AS cor0
----
1008
2493
4265

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL + col2 * col0 + + - col2 + + 49 + col0 / - - col0 + + - 77 FROM tab2 AS cor0
----
1008
2493
4265

query I rowsort
SELECT + + 4 * - ( - 43 ) AS col2 FROM tab0 cor0
----
172
172
172

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT 52 * COUNT( * ) AS col0 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-882
SELECT 52 * COUNT ( * ) AS col0 FROM tab2
----
156

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

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT COUNT ( * ) / 63 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT DISTINCT MAX( col1 ) * + 63 * - 3 AS col2 FROM tab2
----
-14553

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT MAX ( col1 ) * + 63 * - 3 AS col2 FROM tab2
----
-14553

query II rowsort
SELECT - 51, col1 + - 29 - + col2 + + 10 - - col1 - 86 AS col1 FROM tab1 AS cor0
----
-51
-154
-51
-173
-51
-79

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

query I rowsort
SELECT ALL - col0 + - col2 + - col1 + col1 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-888
SELECT DISTINCT * FROM tab0 cor0 WHERE ( ( CAST( NULL AS SIGNED ) - - + col2 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-888
SELECT DISTINCT * FROM tab0 cor0 WHERE ( ( CAST ( NULL AS INTEGER ) - - + col2 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT + + 58 * COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + + 58 * COUNT ( * ) FROM tab2 AS cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-890
SELECT col1 * - + 99 + + + 49 + + - CAST( + col0 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
-21
-327
-623

skipif mysql # not compatible
query I rowsort label-890
SELECT col1 * - + 99 + + + 49 + + - CAST ( + col0 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
-21
-327
-623

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

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

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + + ( col1 ) - + col0 * 42 FROM tab1 AS cor0
----
-2128
-3565
-3775

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT + 98 + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL = + col1
----
98

skipif mysql # not compatible
query I rowsort label-894
SELECT + 98 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = + col1
----
98

query I rowsort
SELECT ( + ( + + col1 ) ) FROM tab2
----
51
67
77

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 >= - col2 + - col2
----

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab1 WHERE ( 98 * + + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT - 88 * + col0 FROM tab0
----
-1320
-7656
-8536

query I rowsort
SELECT + 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 87 col1 FROM tab1 AS cor0
----
5133
5916
8352

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

query I rowsort
SELECT + + ( col2 ) * + 34 + - 72 FROM tab0 AS cor0
----
1526
268
3294

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * - + COUNT( - col1 ) AS col0 FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-906
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * - + COUNT ( - col1 ) AS col0 FROM tab0 cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT ALL ( + col2 ) * 74 + + 87 DIV - 86 col0 FROM tab2
----
1701
2959
4291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-907
SELECT ALL ( + col2 ) * 74 + + 87 / - 86 col0 FROM tab2
----
1701
2959
4291

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

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT - 34 / col2 FROM tab2
----
-1
0

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 AS col2, 29 FROM tab0
----
15
29
87
29
97
29

query I rowsort
SELECT - + col0 AS col2 FROM tab0 WHERE NOT - col0 + - col1 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-913
SELECT col0 + + - ( CAST( - 37 AS SIGNED ) ) FROM tab2 AS cor0
----
101
112
83

skipif mysql # not compatible
query I rowsort label-913
SELECT col0 + + - ( CAST ( - 37 AS INTEGER ) ) FROM tab2 AS cor0
----
101
112
83

query I rowsort
SELECT ALL col0 * + 4 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 = ( - 46 ) )
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-917
SELECT ALL col0 DIV + col0, + 60 + + - col0 AS col0 FROM tab0
----
1
-27
1
-37
1
45

skipif mysql # not compatible
query II rowsort label-917
SELECT ALL col0 / + col0, + 60 + + - col0 AS col0 FROM tab0
----
1
-27
1
-37
1
45

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT ( - col2 ) DIV + col1 col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-918
SELECT ( - col2 ) / + col1 col1 FROM tab0
----
-99
0
0

query I rowsort
SELECT - 45 * + + 92 FROM tab2
----
-4140
-4140
-4140

query II rowsort
SELECT DISTINCT col2 + col0 AS col0, col0 + 72 FROM tab1 AS cor0
----
144
157
147
123
159
163

query I rowsort
SELECT ALL + 87 + - - col2 + - ( ( - + ( + - 75 ) ) ) + col1 - + 33 + + col1 FROM tab1 AS cor0
----
103
141
48

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT 7 + - COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-922
SELECT 7 + - COUNT ( * ) FROM tab0
----
4

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

skipif mysql # not compatible
query I rowsort label-923
SELECT MIN ( - col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT ALL - COUNT( - - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL - COUNT ( - - col0 ) FROM tab2
----
-3

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

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

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

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

query I rowsort
SELECT + col2 - + 34 FROM tab2 AS cor0 WHERE NOT 78 > + 44 / + - col2
----

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

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

query I rowsort
SELECT + - col2 + + + col0 FROM tab2 cor0 WHERE NOT ( NOT col0 + 77 IS NOT NULL )
----
17
23
24

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > col2 * + - 2 + - - col0 - col2 * + col1 * + col2
----

query I rowsort
SELECT ALL 99 * + col2 * + col0 FROM tab0 AS cor0
----
69795
86130
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT ALL + - 53 * COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL + - 53 * COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-159

query I rowsort
SELECT ALL + col1 * - + 77 + 30 + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 2 + - col2 = + col0
----

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

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

query I rowsort
SELECT + col1 + - 47 AS col0 FROM tab2
----
20
30
4

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-940
SELECT ALL + CAST( NULL AS SIGNED ) * 28 * - + col0 + - + 86 * - col2 * + col2 * - 18 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL + CAST ( NULL AS INTEGER ) * 28 * - + col0 + - + 86 * - col2 * + col2 * - 18 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 10 AS col0, - 41 * - + col2 * + + col2 AS col1 FROM tab0 AS cor0
----
10
401841
10
4100
10
90569

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-942
SELECT DISTINCT col1 * + 83 + + CAST( + col2 AS SIGNED ) * + 43 + - col0, 76 + 80 * - + col0 AS col1 FROM tab1 AS cor0
----
2867
-6724
5239
-4004
6734
-7204

skipif mysql # not compatible
query II rowsort label-942
SELECT DISTINCT col1 * + 83 + + CAST ( + col2 AS INTEGER ) * + 43 + - col0, 76 + 80 * - + col0 AS col1 FROM tab1 AS cor0
----
2867
-6724
5239
-4004
6734
-7204

query I rowsort
SELECT 97 FROM tab2 AS cor0 WHERE - col2 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-944
SELECT - 22 DIV ( + SUM( DISTINCT + col1 ) ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-944
SELECT - 22 / ( + SUM ( DISTINCT + col1 ) ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-945
SELECT + col0, col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-945
SELECT + col0, col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT - 1, col1 AS col2 FROM tab0 AS cor0
----
-1
1
-1
21
-1
81

query II rowsort
SELECT + 65, + col1 * - + 42 AS col0 FROM tab1 AS cor0
----
65
-1974
65
-210
65
-588

query I rowsort
SELECT DISTINCT + col2 - - - 54 AS col2 FROM tab2 AS cor0
----
-14
-31
4

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

query II rowsort
SELECT 77 - - col2, col1 * + + 38 AS col1 FROM tab1
----
136
190
145
1786
173
532

query I rowsort
SELECT ALL 72 * + col0 - - col2 FROM tab0
----
1127
6274
7083

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT ALL + col1 - + col2 * - col1 * + 0 DIV + 16 * col1 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + col1 - + col2 * - col1 * + 0 / + 16 * col1 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT 81 - + col1 FROM tab2
----
14
30
4

query I rowsort
SELECT col2 * 67 AS col2 FROM tab2
----
1541
2680
3886

query I rowsort
SELECT DISTINCT - col2 * + 19 * col0 FROM tab1
----
-117572
-93024
-95285

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-956
SELECT COUNT ( * ) / - 32 / - COUNT ( * ) col0 FROM tab1
----
0

query II rowsort
SELECT col0 * + col2 AS col0, col2 AS col1 FROM tab0 AS cor0
----
705
47
870
10
9603
99

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-959
SELECT ALL - col2, CAST( NULL AS SIGNED ) * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-959
SELECT ALL - col2, CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-962
SELECT ALL + col1, col0 + + CAST( - 15 AS SIGNED ) + - col0 FROM tab1
----
14
-15
47
-15
5
-15

skipif mysql # not compatible
query II rowsort label-962
SELECT ALL + col1, col0 + + CAST ( - 15 AS INTEGER ) + - col0 FROM tab1
----
14
-15
47
-15
5
-15

query I rowsort
SELECT DISTINCT + - 11 AS col1 FROM tab0 AS cor0
----
-11

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-965
SELECT 41 + - col0 * + + ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT 41 + - col0 * + + ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

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

query I rowsort
SELECT 67 * - ( col1 ) FROM tab0
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT DISTINCT ( + COUNT( * ) ) FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab1, tab0 cor0
----
9

query I rowsort
SELECT + col1 * 5 + - col2 * - col2 + + col0 FROM tab2
----
2049
3774
830

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

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT ( + - COUNT( DISTINCT + 75 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT ( + - COUNT ( DISTINCT + 75 ) ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ALL - COUNT( * ) * - 10 * + - 4 * - - COUNT( * ) FROM tab1 WHERE col0 BETWEEN + 12 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL - COUNT ( * ) * - 10 * + - 4 * - - COUNT ( * ) FROM tab1 WHERE col0 BETWEEN + 12 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-973
SELECT + ( CAST( COUNT( * ) AS SIGNED ) ) + - - COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-973
SELECT + ( CAST ( COUNT ( * ) AS INTEGER ) ) + - - COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT ALL - col1 * - 17 AS col0 FROM tab2
----
1139
1309
867

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-975
SELECT - 55 + - col1 AS col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-136
NULL
-56
NULL
-76
NULL

skipif mysql # not compatible
query II rowsort label-975
SELECT - 55 + - col1 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-136
NULL
-56
NULL
-76
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT DISTINCT + - col0 * col2 DIV col1 AS col2 FROM tab0 cor0
----
-41
-8
-9603

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT + - col0 * col2 / col1 AS col2 FROM tab0 cor0
----
-41
-8
-9603

query I rowsort
SELECT + 63 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
63
63
63

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-979
SELECT DISTINCT + 41, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
41
NULL

skipif mysql # not compatible
query II rowsort label-979
SELECT DISTINCT + 41, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
41
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 col1 FROM tab2 WHERE NOT 23 <> NULL
----

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

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

query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab1 WHERE + col1 * + col0 < - + col1
----

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

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

query I rowsort
SELECT ALL - + ( - col0 ) * + + col2 - 27 FROM tab0 AS cor0
----
678
843
9576

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

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

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT col2 / - + col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 2 - - 92 IS NOT NULL
----

query I rowsort
SELECT col0 + - 53 - + col2 AS col0 FROM tab1 AS cor0
----
-27
-30
-98

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * - - 86 IN ( + col1, + ( 64 ) * 60 * + col1 )
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT ALL - col1 + col2 DIV + 64 FROM tab0 AS cor0
----
-21
-81
0

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - col1 + col2 / + 64 FROM tab0 AS cor0
----
-21
-81
0

query I rowsort
SELECT ALL - col1 * + 12 AS col2 FROM tab1 AS cor0
----
-168
-564
-60

query I rowsort
SELECT - + col2 * 15 + - - col1 AS col2 FROM tab0 AS cor0
----
-129
-1484
-624

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 * col0 * + 45 BETWEEN NULL AND 26 + 92 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2, col0 AS col0 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT col1 FROM tab0 WHERE NULL <= - + 41 * - 25
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= + 48 * 44
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, - col0 * 26 col2 FROM tab1
----
51
-1326
85
-2210
91
-2366

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL COUNT( * ) * + - 63 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL COUNT ( * ) * + - 63 FROM tab1
----
-189

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT + col2 DIV 16 + + - col1 col0 FROM tab1 cor0
----
-2
-43
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1003
SELECT + col2 / 16 + + - col1 col0 FROM tab1 cor0
----
-2
-43
-8

query I rowsort
SELECT 90 * + + col1 * col2 + + col0 + + col2 FROM tab1 AS cor0
----
121107
26694
287799

query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab0 AS cor0 WHERE + col1 - col2 + - col1 * + col2 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col0 FROM tab1 WHERE NOT 72 >= NULL
----

query I rowsort
SELECT ALL - ( - 63 ) - + col2 AS col0 FROM tab1
----
-33
-5
4

query I rowsort
SELECT + 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT + - col2 FROM tab1 WHERE - 2 + - - 91 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1010
SELECT - COUNT( - col0 ) AS col2, 77 AS col0 FROM tab2 AS cor0
----
-3
77

skipif mysql # not compatible
query II rowsort label-1010
SELECT - COUNT ( - col0 ) AS col2, 77 AS col0 FROM tab2 AS cor0
----
-3
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1011
SELECT - + COUNT( ALL col2 ) DIV - 86 - + + COUNT( * ) * - 85 AS col2 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-1011
SELECT - + COUNT ( ALL col2 ) / - 86 - + + COUNT ( * ) * - 85 AS col2 FROM tab0 AS cor0
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-1012
SELECT - col0 DIV + + col2 + + 68 AS col1 FROM tab0 AS cor0
----
60
68
68

skipif mysql # not compatible
query I rowsort label-1012
SELECT - col0 / + + col2 + + 68 AS col1 FROM tab0 AS cor0
----
60
68
68

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

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

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

query I rowsort
SELECT 23 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT - MIN( ALL - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1016
SELECT - MIN ( ALL - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1017
SELECT - - SUM( DISTINCT - col1 ) DIV SUM( - 50 ) - + 71 AS col2, + 29 AS col2 FROM tab0 AS cor0
----
-71
29

skipif mysql # not compatible
query II rowsort label-1017
SELECT - - SUM ( DISTINCT - col1 ) / SUM ( - 50 ) - + 71 AS col2, + 29 AS col2 FROM tab0 AS cor0
----
-71
29

query I rowsort
SELECT ALL 21 * 97 FROM tab1
----
2037
2037
2037

query I rowsort
SELECT ALL + col1 * - 39 FROM tab1
----
-1833
-195
-546

query I rowsort
SELECT - col1 * - 16 AS col1 FROM tab2
----
1072
1232
816

onlyif mysql # aggregate syntax: 
query II rowsort label-1021
SELECT 46, - COUNT( * ) AS col2 FROM tab1
----
46
-3

skipif mysql # not compatible
query II rowsort label-1021
SELECT 46, - COUNT ( * ) AS col2 FROM tab1
----
46
-3

query I rowsort
SELECT + 63 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL 67 * + + col1 FROM tab2
----
3417
4489
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL - COUNT( * ) + 18 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - COUNT ( * ) + 18 FROM tab1
----
15

query I rowsort
SELECT ALL 55 + - 34 + + col2 * - 74 AS col2 FROM tab1 AS cor0
----
-4345
-5011
-7083

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1028
SELECT DISTINCT CAST( AVG ( - 91 ) AS SIGNED ) AS col1 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT CAST ( AVG ( - 91 ) AS INTEGER ) AS col1 FROM tab2
----
-91

query I rowsort
SELECT - 11 + + - 59 + - 2 FROM tab0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT SUM( - ( + col2 ) ) + + 91 AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1030
SELECT SUM ( - ( + col2 ) ) + + 91 AS col0 FROM tab2
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 + - + 46 col1 FROM tab2
----
-7
-7
-7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1033
SELECT ALL + COUNT( + 96 ) / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL + COUNT ( + 96 ) / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col0 ) - + 71 + + 50 - + 38 * + col2 * - col2 - col2 col0, 14 FROM tab2 cor0
----
127678
14
20012
14
60675
14

query I rowsort
SELECT - 37 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
-1841
-2404
-2785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT DISTINCT - - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT - - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, col1 col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

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

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

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

query I rowsort
SELECT DISTINCT - 23 * + - col2 AS col1 FROM tab1
----
1357
1564
2208

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

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT COUNT ( * ) * - 93 FROM tab1
----
-279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + col0 ) AS col0, + col0 col2 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT MAX( DISTINCT ( + 49 ) ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT MAX ( DISTINCT ( + 49 ) ) FROM tab2
----
49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - 37 col2 FROM tab1 AS cor0
----
2183
2516
3552

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

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

query I rowsort
SELECT - - col0 * - 83 AS col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

onlyif mysql # DIV for integer division: 
query II rowsort label-1050
SELECT + col0 * - col0, - 21 DIV - 37 * col2 AS col1 FROM tab2 AS cor0
----
-2116
0
-4096
0
-5625
0

skipif mysql # not compatible
query II rowsort label-1050
SELECT + col0 * - col0, - 21 / - 37 * col2 AS col1 FROM tab2 AS cor0
----
-2116
0
-4096
0
-5625
0

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

query I rowsort
SELECT ALL + 89 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-616
-781
-9514

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) * - col2 + 27 FROM tab0 AS cor0
----
-183
-3780
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT ALL col2 DIV 49 + - col2 + 53 AS col2 FROM tab0 AS cor0
----
-44
43
6

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL col2 / 49 + - col2 + 53 AS col2 FROM tab0 AS cor0
----
-44
43
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 90 + - col0 col1 FROM tab2 AS cor0
----
15
26
44

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

query I rowsort
SELECT + - col0 * + + 20 * ( col1 ) * - col0 AS col2 FROM tab1 AS cor0
----
722500
728280
7784140

query I rowsort
SELECT ALL - + col2 + - col1 * - + col0 FROM tab1 AS cor0
----
366
4209
618

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT ALL + col0 DIV col2 - + + 39 FROM tab0 AS cor0
----
-31
-39
-39

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL + col0 / col2 - + + 39 FROM tab0 AS cor0
----
-31
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 71 col2 FROM tab0
----
-10
50
70

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - 40
----

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

query I rowsort
SELECT col2 - 6 AS col2 FROM tab0
----
4
41
93

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

query I rowsort
SELECT DISTINCT + 93 AS col1 FROM tab2 cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT DISTINCT - col2 + col0 DIV + 68 AS col1 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT - col2 + col0 / + 68 AS col1 FROM tab1 AS cor0
----
-58
-67
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= - + ( - 69 )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1070
SELECT + - col2 * - - 71, col2 + col2 DIV + + col0 AS col0 FROM tab0 cor0
----
-3337
50
-7029
100
-710
10

skipif mysql # not compatible
query II rowsort label-1070
SELECT + - col2 * - - 71, col2 + col2 / + + col0 AS col0 FROM tab0 cor0
----
-3337
50
-7029
100
-710
10

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) >= ( NULL ) )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1075
SELECT DISTINCT - - 62 + CAST( col1 AS DECIMAL ), + ( + col0 ) + - ( + + col0 ) * col2 * - col1 FROM tab0 AS cor0 WHERE ( - 90 < NULL )
----

skipif mysql # not compatible
query II rowsort label-1075
SELECT DISTINCT - - 62 + CAST ( col1 AS REAL ), + ( + col0 ) + - ( + + col0 ) * col2 * - col1 FROM tab0 AS cor0 WHERE ( - 90 < NULL )
----

query I rowsort
SELECT 78 AS col0 FROM tab0 cor0 WHERE NOT + 75 IN ( + - col0, 29 + + 39, - 50 )
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 64 * - col0 AS col2, col0 * - - col1 - + + col0 col2 FROM tab0 AS cor0
----
5568
1740
6208
0
960
1200

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1081
SELECT DISTINCT - col2 AS col1, + col1 - CAST( + col1 AS SIGNED ) FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-1081
SELECT DISTINCT - col2 AS col1, + col1 - CAST ( + col1 AS INTEGER ) FROM tab1
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1082
SELECT SUM( ALL 92 ) DIV 34 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-1082
SELECT SUM ( ALL 92 ) / 34 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT COUNT( + 99 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1083
SELECT COUNT ( + 99 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 15 * col0 * - col2 FROM tab0 AS cor0
----
-10575
-13050
-144045

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT - - COUNT( * ) + - MAX( col1 ) + + + COUNT( * ) AS col2 FROM tab1 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1085
SELECT - - COUNT ( * ) + - MAX ( col1 ) + + + COUNT ( * ) AS col2 FROM tab1 cor0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT ALL - col1 DIV - - ( - col2 ) FROM tab0 AS cor0 WHERE NOT - 44 IN ( + - col2, 74 * col2 )
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL - col1 / - - ( - col2 ) FROM tab0 AS cor0 WHERE NOT - 44 IN ( + - col2, 74 * col2 )
----
0
1
2

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 34 < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL - COUNT( * ) FROM tab0 WHERE ( NULL IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL - COUNT ( * ) FROM tab0 WHERE ( NULL IS NULL )
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 / + + 85 AND - 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT + 32 + COUNT( * ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT + 32 + COUNT ( * ) FROM tab1 AS cor0
----
35

query I rowsort
SELECT - + ( + - col0 ) * + 92 / 35 / + 23 AS col1 FROM tab1 AS cor0 WHERE - col1 = NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <> - col1 OR NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 + - ( - - col1 ) col1 FROM tab0 AS cor0
----
-7
53
73

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 WHERE NOT 20 + + col0 * + - 32 / col2 BETWEEN - - col2 AND - col2
----
59
68
96

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1101
SELECT - col2 DIV col0 + - + col0, 47 * + + col0 * - 35 col1 FROM tab2
----
-46
-75670
-64
-105280
-75
-123375

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1101
SELECT - col2 / col0 + - + col0, 47 * + + col0 * - 35 col1 FROM tab2
----
-46
-75670
-64
-105280
-75
-123375

query I rowsort
SELECT - col0 * - 15 * - 95 + - col2 AS col2 FROM tab0
----
-123985
-138324
-21422

query I rowsort
SELECT + col2 FROM tab0 WHERE - 50 IS NULL
----

query I rowsort
SELECT + col1 * ( + 29 ) AS col0 FROM tab2
----
1479
1943
2233

query I rowsort
SELECT col0 * + + ( + col1 ) FROM tab0
----
1215
1827
97

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

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

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

query I rowsort
SELECT ALL - col0 + + 90 AS col0 FROM tab1
----
-1
39
5

query I rowsort
SELECT DISTINCT + 84 * + + ( col1 ) FROM tab1
----
1176
3948
420

query I rowsort
SELECT ALL + 2 + - col1 AS col2 FROM tab2 cor0
----
-49
-65
-75

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

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

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE - 78 * - col1 * - col0 > + col0
----

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

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

query I rowsort
SELECT - - 88 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT - - col0 DIV col1 FROM tab1 cor0 WHERE NOT 16 NOT BETWEEN col1 AND + 86
----
17
3

skipif mysql # not compatible
query I rowsort label-1115
SELECT - - col0 / col1 FROM tab1 cor0 WHERE NOT 16 NOT BETWEEN col1 AND + 86
----
17
3

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

query I rowsort
SELECT DISTINCT ( + 63 ) FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT - - COUNT( * ) col2 FROM tab2 WHERE NOT + + ( + col1 ) <= - 5
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1118
SELECT - - COUNT ( * ) col2 FROM tab2 WHERE NOT + + ( + col1 ) <= - 5
----
3

query I rowsort
SELECT - 23 + + + col2 + + 57 * + + col1 FROM tab0
----
1184
133
4641

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

query I rowsort
SELECT DISTINCT + col0 * + 98 AS col1 FROM tab1 AS cor0
----
4998
8330
8918

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - col2 * + 10 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + + col0 FROM tab0 cor0
----
174
194
30

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT + - MIN( + + col0 ) + + SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT + - MIN ( + + col0 ) + + SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-117

query I rowsort
SELECT - col0 * col2 - - col0 + 81 AS col1 FROM tab1
----
-4764
-4849
-6016

query I rowsort
SELECT 18 - + - col1 AS col0 FROM tab0
----
19
39
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT DISTINCT col0 DIV + 94 - col0 AS col0 FROM tab0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT col0 / + 94 - col0 AS col0 FROM tab0
----
-15
-87
-96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1133
SELECT ALL + COUNT ( * ) * 59 col1 FROM tab2
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT DISTINCT col2 DIV + 68 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT col2 / + 68 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE + 21 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT - + ( + 8 ) DIV 57 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1136
SELECT - + ( + 8 ) / 57 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT + 84 * col0 IS NULL
----
10
47
99

query I rowsort
SELECT 0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT col2 + + col1 * - col1 FROM tab0 WHERE NULL NOT BETWEEN + - 49 AND NULL
----

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

skipif mysql # not compatible
query II rowsort label-1140
SELECT - col2 AS col2, + col2 / + col1 FROM tab0
----
-10
0
-47
0
-99
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT + + MIN( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1142
SELECT + + MIN ( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
10

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

query II rowsort
SELECT col0, + col0 * - col0 FROM tab1 AS cor0
----
51
-2601
85
-7225
91
-8281

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 * - col1 > 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - 77 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1155
-6699
-7469

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT DISTINCT - 98 * - + COUNT( * ) AS col2 FROM tab2 cor0
----
294

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT - 98 * - + COUNT ( * ) AS col2 FROM tab2 cor0
----
294

query II rowsort
SELECT ALL + col0 AS col2, 13 FROM tab1
----
51
13
85
13
91
13

query II rowsort
SELECT + col2, - 42 FROM tab1
----
59
-42
68
-42
96
-42

query I rowsort
SELECT + 82 + - col0 AS col2 FROM tab2
----
18
36
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT DISTINCT + 57 + 52 * + COUNT( * ) FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT + 57 + 52 * + COUNT ( * ) FROM tab0 AS cor0
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1153
SELECT DISTINCT + 96, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-1153
SELECT DISTINCT + 96, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT + 1 + - MIN( DISTINCT + col1 ) AS col0 FROM tab2 WHERE 42 - + 83 <> + col1 + + col1
----
-50

skipif mysql # not compatible
query I rowsort label-1154
SELECT + 1 + - MIN ( DISTINCT + col1 ) AS col0 FROM tab2 WHERE 42 - + 83 <> + col1 + + col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT CAST( - col1 AS SIGNED ) - - col0 AS col2 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-1155
SELECT CAST ( - col1 AS INTEGER ) - - col0 AS col2 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT - 39 - - + COUNT( * ) AS col0 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-1156
SELECT - 39 - - + COUNT ( * ) AS col0 FROM tab1
----
-36

query II rowsort
SELECT col1 - + - 73, - col0 AS col2 FROM tab0
----
154
-15
74
-97
94
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT DISTINCT - COUNT( * ) * + ( - + 22 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT - COUNT ( * ) * + ( - + 22 ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1160
SELECT ALL CAST( + 38 AS SIGNED ) + - 78 col2 FROM tab0 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1160
SELECT ALL CAST ( + 38 AS INTEGER ) + - 78 col2 FROM tab0 AS cor0
----
-40
-40
-40

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

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

query I rowsort
SELECT - col0 * - col1 + - col2 FROM tab2 AS cor0
----
2323
4888
4967

query I rowsort
SELECT ALL - 84 - - col2 AS col1 FROM tab0
----
-37
-74
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col2 + 27 + - - col2, + col0 col2 FROM tab2 WHERE - - col1 >= - col2
----
1223
46
3147
64
3971
75

query I rowsort
SELECT ALL 26 * + 75 * + 23 * col1 FROM tab2
----
2287350
3004950
3453450

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1167
SELECT DISTINCT - 39, col0 DIV + ( + 10 ) AS col0 FROM tab0
----
-39
1
-39
8
-39
9

skipif mysql # not compatible
query II rowsort label-1167
SELECT DISTINCT - 39, col0 / + ( + 10 ) AS col0 FROM tab0
----
-39
1
-39
8
-39
9

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

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

query II rowsort
SELECT - col2 AS col2, - 49 * + 42 * 65 FROM tab2 AS cor0
----
-23
-133770
-40
-133770
-58
-133770

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1170
SELECT DISTINCT - 13, - col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 35 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1170
SELECT DISTINCT - 13, - col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 35 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT + - 55 DIV 42 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1171
SELECT + - 55 / 42 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE - 66 + + 32 > ( - col1 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1175
SELECT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND ( + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1175
SELECT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND ( + CAST ( + col0 AS INTEGER ) )
----

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

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

query I rowsort
SELECT DISTINCT + 48 + 50 AS col1 FROM tab2
----
98

query I rowsort
SELECT ALL + 56 + + col0 FROM tab1
----
107
141
147

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 57 / - col0 BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1180
SELECT - col1 DIV + col2 + col1 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1180
SELECT - col1 / + col2 + col1 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
14
47
5

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

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

query I rowsort
SELECT 71 + + col2 * col1 AS col0 FROM tab1
----
1415
3267
366

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1185
SELECT ALL * FROM tab0 WHERE NOT + col0 * ( col2 ) NOT BETWEEN CAST( NULL AS DECIMAL ) AND - col0 - - col0
----

skipif mysql # not compatible
query III rowsort label-1185
SELECT ALL * FROM tab0 WHERE NOT + col0 * ( col2 ) NOT BETWEEN CAST ( NULL AS REAL ) AND - col0 - - col0
----

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

skipif mysql # not compatible
query I rowsort label-1186
SELECT ( SUM ( col2 ) ) AS col1 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT col1 DIV 99 + col2 * + 2 AS col1 FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-1187
SELECT col1 / 99 + col2 * + 2 AS col1 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT + 64 + col2 * - col2 FROM tab1 AS cor0
----
-3417
-4560
-9152

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL MAX( DISTINCT col2 ) * 9 FROM tab1 AS cor0
----
864

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL MAX ( DISTINCT col2 ) * 9 FROM tab1 AS cor0
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT - 31 + COUNT( * ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1190
SELECT - 31 + COUNT ( * ) FROM tab1 AS cor0
----
-28

query I rowsort
SELECT - 95 AS col1 FROM tab0 AS cor0 WHERE NULL <= ( + 94 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 11 * + 44 ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN ( 61 ) AND - 43
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT col1 DIV + 9 AS col0 FROM tab1 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-1194
SELECT col1 / + 9 AS col0 FROM tab1 AS cor0
----
0
1
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1195
SELECT 1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT 1 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - 94 FROM tab1 AS cor0
----
-26
-35
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1199
SELECT 56 * 59 - - col1 DIV col0 FROM tab1 cor0
----
3304
3304
3304

skipif mysql # not compatible
query I rowsort label-1199
SELECT 56 * 59 - - col1 / col0 FROM tab1 cor0
----
3304
3304
3304

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT DISTINCT ( + COUNT( * ) ) + - 37 AS col2 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT ( + COUNT ( * ) ) + - 37 AS col2 FROM tab0 AS cor0
----
-34

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

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

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

query I rowsort
SELECT 52 - 79 FROM tab0 AS cor0
----
-27
-27
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1204
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col1 + + col0 IN ( + col1 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 + + col0 IN ( + col1 + col2 )
----
0

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( - 16 )
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + col2 + - 10 IN ( col1 )
----
23
40
58

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT - COUNT( ALL - + 30 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1210
SELECT - COUNT ( ALL - + 30 ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * - col1 IN ( - 23 - col0 )
----

query I rowsort
SELECT + 56 * col1 * col1 FROM tab1
----
10976
123704
1400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT - MAX( + 56 ) * COUNT( * ) col2 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1214
SELECT - MAX ( + 56 ) * COUNT ( * ) col2 FROM tab2 AS cor0
----
-168

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 25 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - 2 * + 98 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 13 - - 25 AS col2 FROM tab0 AS cor0
----
1
38
21
38
81
38

query I rowsort
SELECT ALL + col0 + - + 84 * - col0 FROM tab1 AS cor0
----
4335
7225
7735

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

query I rowsort
SELECT ALL 22 * + col2 - - col0 FROM tab0 AS cor0
----
1049
2275
307

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT DISTINCT - + 1 + + - 70 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT - + 1 + + - 70 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT ALL 29 * - 32 * - col2 AS col2 FROM tab2 AS cor0
----
21344
37120
53824

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT ALL + - col1 DIV - + 12 + + 94 + 50 * - col1 FROM tab2 cor0
----
-2452
-3251
-3750

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL + - col1 / - + 12 + + 94 + 50 * - col1 FROM tab2 cor0
----
-2452
-3251
-3750

query I rowsort
SELECT col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE - col1 NOT IN ( - col2 * 22 )
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-1227
SELECT ALL - 93 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL - 93 / col1 AS col1 FROM tab1 AS cor0
----
-1
-18
-6

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

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1230
SELECT - col0 * + 18 * + CAST( + col2 AS SIGNED ) + 58 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT - col0 * + 18 * + CAST ( + col2 AS INTEGER ) + 58 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1231
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN 74 AND + CAST( NULL AS DECIMAL ) + + 21 / + col2
----

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN 74 AND + CAST ( NULL AS REAL ) + + 21 / + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 30 BETWEEN + col1 AND + col0 * ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab2 WHERE NOT ( - col0 ) <= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT ALL col1 DIV + - col0 + - col2 * col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1059
-2561
-4350

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL col1 / + - col0 + - col2 * col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1059
-2561
-4350

query I rowsort
SELECT DISTINCT ( 89 ) * - col0 AS col0 FROM tab0
----
-1335
-7743
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT MAX( DISTINCT - - col0 ) * - 75 * + 37 + COUNT( * ) col1 FROM tab0
----
-269172

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1237
SELECT MAX ( DISTINCT - - col0 ) * - 75 * + 37 + COUNT ( * ) col1 FROM tab0
----
-269172

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT DISTINCT + MAX( - 18 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT + MAX ( - 18 ) FROM tab2
----
-18

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1240
SELECT + COUNT( * ) * + CAST( COUNT( * ) AS SIGNED ) + + SUM( col1 ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1240
SELECT + COUNT ( * ) * + CAST ( COUNT ( * ) AS INTEGER ) + + SUM ( col1 ) FROM tab1
----
75

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

skipif mysql # not compatible
query I rowsort label-1241
SELECT CAST ( - + ( + 66 ) AS INTEGER ) FROM tab1
----
-66
-66
-66

query III rowsort
SELECT * FROM tab1 WHERE NULL > - col2 / col1 + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1243
SELECT - - COUNT( * ) * + 83 DIV - 26 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1243
SELECT - - COUNT ( * ) * + 83 / - 26 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 65 col1 FROM tab1 AS cor0
----
-124
-133
-161

query I rowsort
SELECT DISTINCT col1 + ( - 0 ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1246
SELECT ALL 0, + MAX( ALL - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1246
SELECT ALL 0, + MAX ( ALL - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT ( - col1 ) - 29 DIV + col0 + + col2 AS col2 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-1247
SELECT ( - col1 ) - 29 / + col0 + + col2 AS col2 FROM tab1
----
21
54
82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 95 <> NULL
----

query I rowsort
SELECT - 56 * col2 + - + col2 FROM tab2
----
-1311
-2280
-3306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT ALL col2 - + CAST( 43 AS SIGNED ) + + 31 - col0 * 30 FROM tab0
----
-2612
-2823
-415

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL col2 - + CAST ( 43 AS INTEGER ) + + 31 - col0 * 30 FROM tab0
----
-2612
-2823
-415

query I rowsort
SELECT ( - col2 ) + - col2 + + 40 * col2 - - 26 * + col1 FROM tab2
----
2200
3522
3946

query I rowsort
SELECT DISTINCT 97 * + 52 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query II rowsort label-1253
SELECT ALL + COUNT ( * ), ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1255
SELECT * FROM tab0 cor0 WHERE NOT col1 * - CAST( NULL AS SIGNED ) / - 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1255
SELECT * FROM tab0 cor0 WHERE NOT col1 * - CAST ( NULL AS INTEGER ) / - 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL + + ( 8 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
2

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT + COUNT( * ) AS col1, 65 FROM tab2
----
3
65

skipif mysql # not compatible
query II rowsort label-1258
SELECT + COUNT ( * ) AS col1, 65 FROM tab2
----
3
65

query II rowsort
SELECT DISTINCT + col0 AS col0, - col2 * 0 AS col2 FROM tab2
----
46
0
64
0
75
0

query II rowsort
SELECT DISTINCT - + col1 AS col1, col0 FROM tab2 WHERE + col0 IS NULL
----

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

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

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

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

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

query II rowsort
SELECT + ( - 72 ) AS col2, 1 AS col2 FROM tab0 AS cor0
----
-72
1
-72
1
-72
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1266
SELECT + CAST( + - col0 AS SIGNED ) AS col2, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
query II rowsort label-1266
SELECT + CAST ( + - col0 AS INTEGER ) AS col2, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1267
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - 68 col0 FROM tab1 AS cor0
----
NULL

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - col1 / + col1 + col0 * - col1 + - col1 ) IN ( - 48 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL + COUNT( DISTINCT 86 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + COUNT ( DISTINCT 86 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT ALL COUNT( * ) + - 79 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL COUNT ( * ) + - 79 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 43 col2 FROM tab2
----
1978
2752
3225

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT ALL + + col0 + + 87 + + ( - col2 ) + - col0 DIV - 30 FROM tab0 AS cor0
----
166
55
88

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL + + col0 + + 87 + + ( - col2 ) + - col0 / - 30 FROM tab0 AS cor0
----
166
55
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT COUNT( * ) + 32 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1275
SELECT COUNT ( * ) + 32 FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1276
SELECT ALL col2 + - + col1 + - - ( 52 ) DIV - CAST( + col0 AS SIGNED ) + col0 FROM tab2 AS cor0
----
17
27
66

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL col2 + - + col1 + - - ( 52 ) / - CAST ( + col0 AS INTEGER ) + col0 FROM tab2 AS cor0
----
17
27
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1277
SELECT COUNT( * ) + + - CAST( + AVG ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1277
SELECT COUNT ( * ) + + - CAST ( + AVG ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-62

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

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

query I rowsort
SELECT DISTINCT col2 * + col0 * + 61 FROM tab0
----
43005
53070
585783

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND + + 20
----

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

query I rowsort
SELECT - + 17 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
391
680
986

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1284
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + 43 - - 28 * + 99, + CAST( col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1284
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + 43 - - 28 * + 99, + CAST ( col1 AS REAL ) )
----

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

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col2 BETWEEN - - 59 AND - 57 - col0
----
-46
-64
-75

query I rowsort
SELECT ( - 83 ) AS col0 FROM tab1
----
-83
-83
-83

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

query II rowsort
SELECT col1, + col2 AS col2 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT DISTINCT 29 AS col2, col1 FROM tab0
----
29
1
29
21
29
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1291
SELECT DISTINCT - col1 FROM tab0 WHERE NOT + + ( + 64 ) BETWEEN + 51 + col2 + + CAST( NULL AS SIGNED ) AND - + col0 * + col1 * + 95
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT - col1 FROM tab0 WHERE NOT + + ( + 64 ) BETWEEN + 51 + col2 + + CAST ( NULL AS INTEGER ) AND - + col0 * + col1 * + 95
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT - 15 * 13 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT - 15 * 13 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 69 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

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

query I rowsort
SELECT + ( 28 ) FROM tab2 cor0
----
28
28
28

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

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

query I rowsort
SELECT - - 6 * - - col0 FROM tab2 AS cor0 WHERE - col1 * - - 87 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1298
SELECT DISTINCT + col2 DIV - 23 + col0 DIV col2 AS col2, col2 FROM tab1 AS cor0
----
-1
59
-1
68
-4
96

skipif mysql # not compatible
query II rowsort label-1298
SELECT DISTINCT + col2 / - 23 + col0 / col2 AS col2, col2 FROM tab1 AS cor0
----
-1
59
-1
68
-4
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1300
SELECT - 43 + 79 + + MIN( DISTINCT col2 ) + COUNT( * ) - MIN( CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1300
SELECT - 43 + 79 + + MIN ( DISTINCT col2 ) + COUNT ( * ) - MIN ( CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + col2 * 70 + - col2 FROM tab0
----
3243
6831
690

query I rowsort
SELECT DISTINCT + ( - + 6 ) - + col0 FROM tab2
----
-52
-70
-81

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

query I rowsort
SELECT DISTINCT 34 * + 64 AS col2 FROM tab1
----
2176

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

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

query II rowsort
SELECT ( - 95 ), col1 FROM tab1
----
-95
14
-95
47
-95
5

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

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

query II rowsort
SELECT ALL - col1, - 46 * - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col1 / + col2 - + 75 AND - - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT + COUNT( + + col0 ) - 27 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1311
SELECT + COUNT ( + + col0 ) - 27 FROM tab0 AS cor0
----
-24

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

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

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT ( - + COUNT( * ) ) * + - SUM( ALL + 92 ) col1 FROM tab0 AS cor0
----
828

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1315
SELECT ( - + COUNT ( * ) ) * + - SUM ( ALL + 92 ) col1 FROM tab0 AS cor0
----
828

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT IN ( - - col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT + COUNT( * ) * + 87 + - MIN( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-1319
SELECT + COUNT ( * ) * + 87 + - MIN ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1320
SELECT COUNT( * ) * 27 + + - COUNT( * ) DIV - - 98 AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1320
SELECT COUNT ( * ) * 27 + + - COUNT ( * ) / - - 98 AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT COUNT( * ) * - 8 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-1321
SELECT COUNT ( * ) * - 8 FROM tab2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT DISTINCT - 47 DIV col1 DIV col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT - 47 / col1 / col0 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1323
SELECT SUM( + col1 ) * - COUNT( * ) + - 36, COUNT( * ) AS col1 FROM tab1
----
-234
3

skipif mysql # not compatible
query II rowsort label-1323
SELECT SUM ( + col1 ) * - COUNT ( * ) + - 36, COUNT ( * ) AS col1 FROM tab1
----
-234
3

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 28 IN ( + col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT - - ( + - SUM( ALL + - col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1328
SELECT - - ( + - SUM ( ALL + - col2 ) ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-1329
SELECT ALL - MAX( DISTINCT - col2 ) AS col2, 36 AS col2 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----
NULL
36

skipif mysql # not compatible
query II rowsort label-1329
SELECT ALL - MAX ( DISTINCT - col2 ) AS col2, 36 AS col2 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----
NULL
36

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL + 41 + COUNT( * ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL + 41 + COUNT ( * ) FROM tab2
----
44

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN ( 17 ) AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT DISTINCT col2 + - + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT col2 + - + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-23
-26
45

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT DISTINCT col0 * + + col0 + col2 * + + 0 DIV 78 FROM tab1 AS cor0
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT col0 * + + col0 + col2 * + + 0 / 78 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT DISTINCT - 86 + + COUNT( * ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT - 86 + + COUNT ( * ) FROM tab0 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT - MIN( DISTINCT + 22 ) FROM tab0 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1341
SELECT - MIN ( DISTINCT + 22 ) FROM tab0 cor0
----
-22

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

query I rowsort
SELECT ALL - col0 + - col1 + + col2 * col2 FROM tab2 AS cor0
----
1459
3222
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT ALL + CAST( - col1 AS SIGNED ) - - col0 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL + CAST ( - col1 AS INTEGER ) - - col0 FROM tab0
----
-66
66
96

query II rowsort
SELECT ALL - col1 - - col2 AS col0, ( - - 33 ) FROM tab2
----
-28
33
-37
33
-9
33

query II rowsort
SELECT ALL + col1, 99 FROM tab1
----
14
99
47
99
5
99

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE ( NOT - col1 IS NOT NULL )
----

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

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

query II rowsort
SELECT col2 * + 35 AS col0, 18 FROM tab1
----
2065
18
2380
18
3360
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT + 21 * + MIN( + 64 ) AS col1 FROM tab2 AS cor0
----
1344

skipif mysql # not compatible
query I rowsort label-1350
SELECT + 21 * + MIN ( + 64 ) AS col1 FROM tab2 AS cor0
----
1344

query I rowsort
SELECT - col2 * + 55 - + col1 FROM tab2 AS cor0
----
-1316
-2277
-3257

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

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > col0 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT + - 6 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 * 52, CAST( + col1 AS SIGNED ) * - col2 + - + col1, 46 )
----

skipif mysql # not compatible
query I rowsort label-1354
SELECT + - 6 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 * 52, CAST ( + col1 AS INTEGER ) * - col2 + - + col1, 46 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT DISTINCT - 36 DIV + col1 col1 FROM tab2
----
0

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

query I rowsort
SELECT DISTINCT col0 * + col0 * - + 62 * - col2 * + 7 FROM tab0
----
32849460
404267094
4589550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1357
SELECT DISTINCT COUNT( * ) * - 12 DIV + - 72 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT COUNT ( * ) * - 12 / + - 72 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT ALL - 17 * - 27 * - COUNT( * ) AS col0, 29 * - MIN( ALL - ( col1 ) ) AS col2 FROM tab2
----
-1377
2233

skipif mysql # not compatible
query II rowsort label-1358
SELECT ALL - 17 * - 27 * - COUNT ( * ) AS col0, 29 * - MIN ( ALL - ( col1 ) ) AS col2 FROM tab2
----
-1377
2233

query I rowsort
SELECT col1 + - + col2 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1360
SELECT DISTINCT 36 * SUM( DISTINCT + col1 ) * + - 17 AS col2, COUNT( * ) AS col2 FROM tab1
----
-40392
3

skipif mysql # not compatible
query II rowsort label-1360
SELECT DISTINCT 36 * SUM ( DISTINCT + col1 ) * + - 17 AS col2, COUNT ( * ) AS col2 FROM tab1
----
-40392
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT ALL - 91 DIV + col1 AS col1 FROM tab0
----
-1
-4
-91

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL - 91 / + col1 AS col1 FROM tab0
----
-1
-4
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT - 2 + - - 21 * + col0 + + + 96 * CAST( ( + col2 ) AS SIGNED ) + col2 + - - 57 * - 63 - + col1 FROM tab1
----
3910
4867
6776

skipif mysql # not compatible
query I rowsort label-1362
SELECT - 2 + - - 21 * + col0 + + + 96 * CAST ( ( + col2 ) AS INTEGER ) + col2 + - - 57 * - 63 - + col1 FROM tab1
----
3910
4867
6776

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= + 93
----

query I rowsort
SELECT DISTINCT - 40 * - - 8 FROM tab1 AS cor0
----
-320

onlyif mysql # aggregate syntax: 
query II rowsort label-1365
SELECT DISTINCT 28 * + 61 + 51 AS col1, - MAX( ALL - 59 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1759
59

skipif mysql # not compatible
query II rowsort label-1365
SELECT DISTINCT 28 * + 61 + 51 AS col1, - MAX ( ALL - 59 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1759
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT + col1 DIV + - 46 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1366
SELECT + col1 / + - 46 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1367
SELECT ALL col1 DIV + col1 AS col2, 44 FROM tab0
----
1
44
1
44
1
44

skipif mysql # not compatible
query II rowsort label-1367
SELECT ALL col1 / + col1 AS col2, 44 FROM tab0
----
1
44
1
44
1
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1368
SELECT + SUM( - CAST( - col1 AS SIGNED ) ) - + 41 AS col2 FROM tab2
----
154

skipif mysql # not compatible
query I rowsort label-1368
SELECT + SUM ( - CAST ( - col1 AS INTEGER ) ) - + 41 AS col2 FROM tab2
----
154

query I rowsort
SELECT ALL - 36 * + 87 + - 8 AS col0 FROM tab2 AS cor0
----
-3140
-3140
-3140

onlyif mysql # DIV for integer division: 
query I rowsort label-1370
SELECT - 43 DIV + col1 + - 29 FROM tab0 AS cor0
----
-29
-31
-72

skipif mysql # not compatible
query I rowsort label-1370
SELECT - 43 / + col1 + - 29 FROM tab0 AS cor0
----
-29
-31
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 46 < - col1 * - 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + col0 ) - - 5 AS col1 FROM tab0 AS cor0
----
102
20
92

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 67 + + 8 NOT IN ( - 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 18 * - + col2 * + col1 AS col0, - col1 FROM tab1 AS cor0 WHERE ( NULL ) > - + 70 + + - col2
----

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

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT ALL ( - col1 ) - - col2 - 21 + - + col0 * col2 FROM tab1
----
-4835
-4982
-6188

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

query I rowsort
SELECT DISTINCT - 84 - + col2 FROM tab1
----
-143
-152
-180

query I rowsort
SELECT ( ( - col0 ) ) * + 28 AS col2 FROM tab0
----
-2436
-2716
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col1 col0 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1382
SELECT - COUNT( * ), - 91 AS col1 FROM tab1
----
-3
-91

skipif mysql # not compatible
query II rowsort label-1382
SELECT - COUNT ( * ), - 91 AS col1 FROM tab1
----
-3
-91

query II rowsort
SELECT ALL 27 - col1 * - col1, + 79 AS col1 FROM tab0
----
28
79
468
79
6588
79

query I rowsort
SELECT + 89 * - + col1 AS col1 FROM tab0
----
-1869
-7209
-89

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT ( - col0 ) DIV + + col1 + 79 + + 66 FROM tab0
----
141
145
48

skipif mysql # not compatible
query I rowsort label-1387
SELECT ( - col0 ) / + + col1 + 79 + + 66 FROM tab0
----
141
145
48

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1388
SELECT MIN ( ALL col2 ) col0 FROM tab2
----
23

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

query I rowsort
SELECT DISTINCT - ( + - col0 ) FROM tab2 cor0
----
46
64
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT + 86 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-1392
SELECT + 86 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-6

query I rowsort
SELECT DISTINCT + + 10 * - + 54 AS col2 FROM tab0 AS cor0
----
-540

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND NULL OR NOT - col1 <= + + col1 AND - col1 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT DISTINCT - MIN( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0 WHERE + col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT - MIN ( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0 WHERE + col1 < NULL
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1397
SELECT ALL - 86 DIV + 21, ( - + MIN( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
-4
-51

skipif mysql # not compatible
query II rowsort label-1397
SELECT ALL - 86 / + 21, ( - + MIN ( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
-4
-51

query I rowsort
SELECT - - col0 * 91 * + 55 AS col0 FROM tab0 AS cor0
----
435435
485485
75075

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

query I rowsort
SELECT DISTINCT - col1 * - 13 * - 91 FROM tab2 AS cor0
----
-60333
-79261
-91091

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, col0 col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT + col2, + 18 * + 88 + + col2 + 97 FROM tab1 cor0
----
59
1740
68
1749
96
1777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1403
SELECT CAST( + SUM( - 28 ) AS SIGNED ) AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-1403
SELECT CAST ( + SUM ( - 28 ) AS INTEGER ) AS col1 FROM tab2
----
-84

query I rowsort
SELECT - 12 * ( + 66 ) * - + col2 * + col0 + + 97 FROM tab1
----
3877729
3971977
4900993

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1405
SELECT + CAST( + CAST( 14 AS SIGNED ) AS SIGNED ) col1, 17 + col1 * - + col0 col1 FROM tab1
----
14
-408
14
-4260
14
-697

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1405
SELECT + CAST ( + CAST ( 14 AS INTEGER ) AS INTEGER ) col1, 17 + col1 * - + col0 col1 FROM tab1
----
14
-408
14
-4260
14
-697

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1406
SELECT - CAST( - + 99 AS SIGNED ) AS col2, + ( - col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
99
-1
99
-441
99
-6561

skipif mysql # not compatible
query II rowsort label-1406
SELECT - CAST ( - + 99 AS INTEGER ) AS col2, + ( - col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
99
-1
99
-441
99
-6561

query I rowsort
SELECT col1 + + + col0 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + col0 + + 6 FROM tab1 cor0
----
57
91
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT + COUNT( * ) + + COUNT( * ) DIV 34 + - - COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1409
SELECT + COUNT ( * ) + + COUNT ( * ) / 34 + - - COUNT ( * ) FROM tab1 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT ALL + 22 + - + MAX( DISTINCT + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL + 22 + - + MAX ( DISTINCT + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-59

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

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 cor0 WHERE NOT 27 IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, 79 col0 FROM tab2 AS cor0 WHERE + 37 <= NULL
----

query I rowsort
SELECT DISTINCT 18 + - 12 AS col2 FROM tab0 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1415
SELECT - 85 DIV - 18 col2 FROM tab1 cor0
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1415
SELECT - 85 / - 18 col2 FROM tab1 cor0
----
4
4
4

query I rowsort
SELECT DISTINCT col1 * + - ( col2 ) + - - 23 AS col0 FROM tab0 AS cor0
----
-187
-3784
-76

query II rowsort
SELECT DISTINCT + 42 + - + ( + col2 ) * col1 AS col0, 25 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
-168
46
-3765
106
-57
26

query I rowsort
SELECT DISTINCT + - 75 - + + col2 + + - col2 * 67 AS col0 FROM tab1 AS cor0
----
-4087
-4699
-6603

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT col2 - col2 DIV + 47 FROM tab0 AS cor0
----
10
46
97

skipif mysql # not compatible
query I rowsort label-1419
SELECT col2 - col2 / + 47 FROM tab0 AS cor0
----
10
46
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT - COUNT( * ) - + 92 col0 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1421
SELECT - COUNT ( * ) - + 92 col0 FROM tab2 AS cor0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1422
SELECT ALL col1 * ( - col2 ) DIV 10 AS col2 FROM tab2
----
-117
-308
-388

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL col1 * ( - col2 ) / 10 AS col2 FROM tab2
----
-117
-308
-388

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + 92
----

query I rowsort
SELECT col0 * + 35 FROM tab2 AS cor0
----
1610
2240
2625

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + - col0 * col2 - 58 AS col1 FROM tab1 AS cor0
----
-4954
-5073
-6246

query I rowsort
SELECT ALL 81 * - col0 * + + 80 FROM tab2 AS cor0
----
-298080
-414720
-486000

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

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

query I rowsort
SELECT - - 42 + + 94 FROM tab1 AS cor0 WHERE NOT col1 + + col1 * + + col2 IS NULL
----
136
136
136

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

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

query II rowsort
SELECT ALL col1, - 70 AS col2 FROM tab1
----
14
-70
47
-70
5
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT ALL + COUNT( * ) + - 54 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL + COUNT ( * ) + - 54 FROM tab1 AS cor0
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT DISTINCT 72 * COUNT( * ) FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT 72 * COUNT ( * ) FROM tab0 AS cor0
----
216

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

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

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

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - col2 * - col1 - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 2 IS NULL
----

query I rowsort
SELECT DISTINCT - + 52 + + 22 + - - col1 FROM tab0 AS cor0
----
-29
-9
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + col0 ) + + col1 >= + 35
----

query II rowsort
SELECT ALL - col1 + col1 AS col0, + col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

query I rowsort
SELECT ALL + col2 - col2 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT ALL - col0 AS col2, col1 + - col0 FROM tab1
----
-51
-37
-85
-80
-91
-44

query I rowsort
SELECT DISTINCT + col2 * 53 * + + 32 AS col0 FROM tab0
----
167904
16960
79712

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 14 * - col1 / - + col0 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL COUNT( * ) * + 16 * + + ( 86 ) FROM tab1
----
4128

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL COUNT ( * ) * + 16 * + + ( 86 ) FROM tab1
----
4128

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1447
SELECT ALL + + COUNT ( * ) / + + COUNT ( * ) + COUNT ( + col1 ) col1 FROM tab0 AS cor0
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1450
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 * CAST( NULL AS DECIMAL ) * + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1450
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 * CAST ( NULL AS REAL ) * + col1 ) IS NOT NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-1451
SELECT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + 79 * - - col0 AS col0 FROM tab2
----
3634
5056
5925

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + 55 + + - 78 + 28 IN ( col2 )
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1454
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT + 85 * - 51 * - ( - 16 ) AS col1, ( - + col1 ) * + col2 FROM tab1
----
-69360
-1344
-69360
-295
-69360
-3196

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT DISTINCT - + ( - col1 ) DIV - 84 * - + col2 FROM tab0 AS cor0 WHERE col1 * 66 <> - ( - ( - + ( + - col0 ) ) ) - + - 76
----
0

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT - + ( - col1 ) / - 84 * - + col2 FROM tab0 AS cor0 WHERE col1 * 66 <> - ( - ( - + ( + - col0 ) ) ) - + - 76
----
0

query I rowsort
SELECT ALL - + 54 AS col2 FROM tab2 cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT + - col0 * - col1 + - + col0 AS col2 FROM tab0 cor0
----
0
1200
1740

query I rowsort
SELECT DISTINCT + 68 FROM tab2 AS cor0 WHERE col2 = col0
----

query I rowsort
SELECT DISTINCT - 28 + - col1 FROM tab1 AS cor0
----
-33
-42
-75

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

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

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

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - - col2 * - col1 + + col2 AS col1 FROM tab0 AS cor0
----
-200
-3760
0

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

query I rowsort
SELECT ALL + 18 + + col1 + + + 62 AS col2 FROM tab0 AS cor0
----
101
161
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1468
SELECT DISTINCT + col2 * - col0 - + CAST( col1 AS SIGNED ) + + 84 FROM tab1
----
-4826
-4936
-6151

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT + col2 * - col0 - + CAST ( col1 AS INTEGER ) + + 84 FROM tab1
----
-4826
-4936
-6151

query I rowsort
SELECT + 56 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL col1 * ( - col0 ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + - 11 * col2 AS col1 FROM tab1 AS cor0
----
-1056
-649
-748

query I rowsort
SELECT ALL + col2 + 64 AS col0 FROM tab0 AS cor0
----
111
163
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1474
SELECT - CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

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

query II rowsort
SELECT + col1 AS col0, - 21 FROM tab2 cor0
----
51
-21
67
-21
77
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL - SUM( DISTINCT - ( + ( + col0 ) ) ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL - SUM ( DISTINCT - ( + ( + col0 ) ) ) AS col1 FROM tab1 AS cor0
----
227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT DISTINCT - 34 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT - 34 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, + col1 * 95 * - - col1 * col1 col2 FROM tab2 AS cor0
----
-23
12601845
-40
43370635
-58
28572485

query I rowsort
SELECT ALL - col0 + - col1 AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT ALL + 65 DIV + col1 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + 65 / + col1 FROM tab1
----
1
13
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 50 / + 48 * - col1 / 36 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 50 / + 48 * - col1 / 36 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1483
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
NULL

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

query I rowsort
SELECT ALL + 52 * - col1 AS col0 FROM tab0
----
-1092
-4212
-52

query I rowsort
SELECT ( - 11 ) AS col2 FROM tab2
----
-11
-11
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT ALL - col0 DIV + col1 col0 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1487
SELECT ALL - col0 / + col1 col0 FROM tab1 AS cor0
----
-1
-17
-3

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1490
SELECT ALL - + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <> + 16 * CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1492
SELECT + AVG ( - CAST( NULL AS SIGNED ) ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT ( NOT + 53 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1492
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT ( NOT + 53 IS NULL )
----
NULL

query I rowsort
SELECT ALL - + col0 + + - 93 + - 86 + - col1 * ( - 78 ) AS col0 FROM tab2 AS cor0
----
3753
4972
5763

query I rowsort
SELECT DISTINCT - col2 + - + 60 AS col0 FROM tab2 AS cor0
----
-100
-118
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT - 29 + - - COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT - 29 + - - COUNT ( * ) FROM tab0 AS cor0
----
-26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1497
SELECT + COUNT( * ) DIV 9 + + 99 FROM tab2 AS cor0
----
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT COUNT( * ) + - - 42 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-1499
SELECT COUNT ( * ) + - - 42 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL - 46 * + COUNT( * ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - 46 * + COUNT ( * ) FROM tab0
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT - 80 * + COUNT( * ) + CAST( - + ( - + ( COUNT( * ) ) ) AS SIGNED ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-1501
SELECT - 80 * + COUNT ( * ) + CAST ( - + ( - + ( COUNT ( * ) ) ) AS INTEGER ) FROM tab1
----
-237

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

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT - ( + - COUNT ( * ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT DISTINCT + - COUNT( * ) + SUM( - col2 ) AS col2 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT + - COUNT ( * ) + SUM ( - col2 ) AS col2 FROM tab0 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT DISTINCT + 96 - SUM( + 84 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT + 96 - SUM ( + 84 ) AS col0 FROM tab0 cor0
----
-156

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1506
SELECT - col1 + - col0 + 1 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-120
-181
-200

skipif mysql # not compatible
query I rowsort label-1506
SELECT - col1 + - col0 + 1 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-120
-181
-200

query I rowsort
SELECT - 21 + col1 * + col1 AS col1 FROM tab1
----
175
2188
4

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

skipif mysql # not compatible
query I rowsort label-1508
SELECT MIN ( - 81 ) AS col1 FROM tab1 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <> col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1510
SELECT ALL 80 AS col1, COUNT( * ) AS col1 FROM tab0
----
80
3

skipif mysql # not compatible
query II rowsort label-1510
SELECT ALL 80 AS col1, COUNT ( * ) AS col1 FROM tab0
----
80
3

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

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

query II rowsort
SELECT ALL + col2 AS col2, col1 - + + 68 AS col1 FROM tab1
----
59
-63
68
-21
96
-54

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

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

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

query I rowsort
SELECT + + 52 * - + 19 + + col1 FROM tab2 AS cor0
----
-911
-921
-937

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL - MIN( - col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - MIN ( - col2 ) FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT - - SUM( ALL - + col0 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-1517
SELECT - - SUM ( ALL - + col0 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-597

query I rowsort
SELECT - 93 + - 92 * + 86 + - col2 AS col1 FROM tab0
----
-8015
-8052
-8104

query I rowsort
SELECT DISTINCT - + 49 + + 61 - + + 96 * + col0 * + - col0 * - + 38 AS col1 FROM tab0 AS cor0
----
-27611700
-34324020
-820788

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1520
SELECT ALL CAST ( NULL AS INTEGER ) + col2 - + CAST ( NULL AS INTEGER ) - - 65 + + col0 col1, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT - - col1 + + 56 AS col0 FROM tab2 AS cor0
----
107
123
133

query I rowsort
SELECT - 70 AS col1 FROM tab2 cor0
----
-70
-70
-70

query II rowsort
SELECT ALL + 3 + - col1 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
-11
14
-2
5
-44
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1524
SELECT DISTINCT + ( + - 92 ) * + col2 * - col0 * + - ( - ( - CAST( - - col0 AS SIGNED ) ) ) + - col2 AS col0 FROM tab1 AS cor0
----
-22972128
-39217359
-51806004

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT + ( + - 92 ) * + col2 * - col0 * + - ( - ( - CAST ( - - col0 AS INTEGER ) ) ) + - col2 AS col0 FROM tab1 AS cor0
----
-22972128
-39217359
-51806004

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT SUM( col2 ) * COUNT( * ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-1525
SELECT SUM ( col2 ) * COUNT ( * ) FROM tab0
----
468

query I rowsort
SELECT DISTINCT - 85 + + col0 AS col0 FROM tab0
----
-70
12
2

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 WHERE + 25 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 50 > NULL
----

query I rowsort
SELECT ALL - 70 + 57 FROM tab1
----
-13
-13
-13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - 62
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 81 * ( + 11 ) + - col2 * - + 6 - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT ALL SUM( ALL - 89 ) AS col2 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL SUM ( ALL - 89 ) AS col2 FROM tab0
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT - 19 DIV + 40 + + + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1537
SELECT - 19 / + 40 + + + col1 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT + col2 DIV - 48 + 31 FROM tab1
----
29
30
30

skipif mysql # not compatible
query I rowsort label-1538
SELECT + col2 / - 48 + 31 FROM tab1
----
29
30
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT ALL COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 <> col2 )
----
3
3

skipif mysql # not compatible
query II rowsort label-1539
SELECT ALL COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 <> col2 )
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 32, - col0 - + col0 + col1 + + col1 col0 FROM tab2 AS cor0
----
-32
-16
-32
10
-32
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1541
SELECT DISTINCT + col0 * + CAST( NULL AS DECIMAL ) + + 97 - - col1 * 92 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1541
SELECT DISTINCT + col0 * + CAST ( NULL AS REAL ) + + 97 - - col1 * 92 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 81 * col1 AS col0 FROM tab1 cor0
----
1134
3807
405

query I rowsort
SELECT ALL - 15 * - + col2 AS col0 FROM tab1 AS cor0
----
1020
1440
885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT DISTINCT - COUNT( * ) DIV - 36 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - COUNT ( * ) / - 36 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 96 * + 17 + - + 25 + - + 73 AS col1 FROM tab1 AS cor0
----
-1730

query I rowsort
SELECT col2 + + 38 - - - 32 AS col1 FROM tab0 cor0
----
105
16
53

query I rowsort
SELECT ALL - + ( + + col1 ) - + col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL col0 + + + 9 AS col0 FROM tab2 AS cor0
----
55
73
84

query I rowsort
SELECT 5 * + col1 * + col1 FROM tab1
----
11045
125
980

query II rowsort
SELECT DISTINCT col1 * + - col0 AS col1, + 38 - + - 98 FROM tab1
----
-425
136
-4277
136
-714
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT ALL + COUNT( * ) * - COUNT( * ) * - 36 * + COUNT( * ) FROM tab1
----
972

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - 36 * + COUNT ( * ) FROM tab1
----
972

query III rowsort
SELECT * FROM tab2 WHERE - 39 > - 92 * + col1 * - 30 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 * + 17 + - col0 * col1 + - 34 AS col2, ( + 10 ) col1 FROM tab2 AS cor0
----
-3247
10
-6198
10
-6271
10

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 cor0 WHERE - 45 * col1 <= 78
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 11 + - - col1 col2, col1 AS col0 FROM tab1 AS cor0
----
-6
5
3
14
36
47

query II rowsort
SELECT ALL - 21 AS col0, 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 351cad50d7de4bfbe1f1eb91a244209a

query I rowsort
SELECT ALL - 49 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT ALL - col0 DIV + 33 - col0 FROM tab2 AS cor0
----
-47
-65
-77

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL - col0 / + 33 - col0 FROM tab2 AS cor0
----
-47
-65
-77

query I rowsort
SELECT - - ( - col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT ALL - 44 AS col2 FROM tab0 cor0
----
-44
-44
-44

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1564
SELECT + 62 DIV - + 41 AS col1, + col1 + + - col2 + - + 52 FROM tab0
----
-1
-150
-1
-18
-1
-41

skipif mysql # not compatible
query II rowsort label-1564
SELECT + 62 / - + 41 AS col1, + col1 + + - col2 + - + 52 FROM tab0
----
-1
-150
-1
-18
-1
-41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 68 BETWEEN + col0 AND - 68 * + col1 * - 58 + + 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1566
SELECT DISTINCT - CAST( 6 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT - CAST ( 6 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-6

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

query I rowsort
SELECT ALL - 75 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1569
SELECT * FROM tab1 WHERE ( - 71 * - 55 * - CAST( NULL AS DECIMAL ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-1569
SELECT * FROM tab1 WHERE ( - 71 * - 55 * - CAST ( NULL AS REAL ) IS NOT NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1571
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1571
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT ALL + COUNT( + 37 ) + - 41 AS col2 FROM tab2 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + COUNT ( + 37 ) + - 41 AS col2 FROM tab2 cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1573
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

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

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

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

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

query I rowsort
SELECT - 65 * 1 AS col2 FROM tab2 AS cor0
----
-65
-65
-65

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

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL - col1 * ( - ( + col2 ) ) - + + CAST ( NULL AS INTEGER ) * 22 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 60 * + col2 - 30 FROM tab1
----
3510
4050
5730

query I rowsort
SELECT ALL col0 - - + 95 FROM tab0
----
110
182
192

query I rowsort
SELECT DISTINCT 52 * 77 AS col1 FROM tab2
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL + COUNT( * ) * 22 * - 75 col2 FROM tab1
----
-4950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1582
SELECT ALL + COUNT ( * ) * 22 * - 75 col2 FROM tab1
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT + COUNT( * ) + 24 AS col2 FROM tab0 WHERE NOT + 35 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-1583
SELECT + COUNT ( * ) + 24 AS col2 FROM tab0 WHERE NOT + 35 IS NOT NULL
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT COUNT( * ) * + - MIN( DISTINCT + 8 ) AS col1 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT COUNT ( * ) * + - MIN ( DISTINCT + 8 ) AS col1 FROM tab2
----
-24

query I rowsort
SELECT DISTINCT + 75 * - + col0 FROM tab1
----
-3825
-6375
-6825

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 98 col2 FROM tab2
----
-4998
-6566
-7546

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

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

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

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT - 69 / + col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT - MAX( + ( + + col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1591
SELECT - MAX ( + ( + + col2 ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL + MIN( ( col1 ) ) AS col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL + MIN ( ( col1 ) ) AS col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1596
SELECT ALL 25 * - ( - + 32 ) AS col1, COUNT( * ) * - CAST( NULL AS SIGNED ) col1 FROM tab2
----
800
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1596
SELECT ALL 25 * - ( - + 32 ) AS col1, COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
800
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT + 78 + - + SUM( + - col2 ) AS col0 FROM tab1
----
301

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 78 + - + SUM ( + - col2 ) AS col0 FROM tab1
----
301

onlyif mysql # aggregate syntax: 
query II rowsort label-1598
SELECT ALL 73, - COUNT( * ) col2 FROM tab2
----
73
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL + MAX( ALL + - col2 ) + - 19 * + 8 AS col0 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL + MAX ( ALL + - col2 ) + - 19 * + 8 AS col0 FROM tab0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL + 74 * + COUNT( * ) + - ( - 18 ) * - + 30 AS col1 FROM tab2
----
-318

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + 74 * + COUNT ( * ) + - ( - 18 ) * - + 30 AS col1 FROM tab2
----
-318

query II rowsort
SELECT + - col0 AS col2, - 4 * + + 68 * - col1 FROM tab2 AS cor0
----
-46
13872
-64
20944
-75
18224

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT - SUM( - - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1602
SELECT - SUM ( - - col0 ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1603
SELECT + 1 * + 39 / - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT + 1 * + 39 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + 65 FROM tab2 cor0
----
-12
-2
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE + col2 + - col1 * + 14 NOT BETWEEN NULL AND - col0
----
1

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE + col2 + - col1 * + 14 NOT BETWEEN NULL AND - col0
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT 48 DIV col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1607
SELECT 48 / col0 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1608
SELECT col0 DIV - 57 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1608
SELECT col0 / - 57 FROM tab0
----
-1
-1
0

query I rowsort
SELECT col2 FROM tab2 WHERE 54 IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 / + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - col2 + 15 IS NULL
----

query I rowsort
SELECT col1 * - 65 FROM tab0
----
-1365
-5265
-65

query I rowsort
SELECT 60 - col2 AS col1 FROM tab2
----
2
20
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE NOT + ( - 29 ) + - 22 >= ( - 35 * col0 )
----

query I rowsort
SELECT DISTINCT 81 * 69 AS col0 FROM tab0
----
5589

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

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

query I rowsort
SELECT - 60 * 35 FROM tab1
----
-2100
-2100
-2100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1618
SELECT + ( - 77 ) DIV - 87 + SUM( DISTINCT + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1618
SELECT + ( - 77 ) / - 87 + SUM ( DISTINCT + col2 ) AS col2 FROM tab1
----
223

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

query I rowsort
SELECT ALL 94 * col1 FROM tab1
----
1316
4418
470

query I rowsort
SELECT ALL ( 22 ) * col2 AS col0 FROM tab1
----
1298
1496
2112

query I rowsort
SELECT col0 - col0 FROM tab2 WHERE NOT + col1 / col2 - - col2 BETWEEN + 44 AND ( NULL )
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT ALL - col2 DIV - 48 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL - col2 / - 48 AS col2 FROM tab0
----
0
0
2

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

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

query I rowsort
SELECT 42 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 9 + col1 AS col2 FROM tab0
----
-8
12
72

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

query I rowsort
SELECT DISTINCT col2 * 82 AS col1 FROM tab2 cor0
----
1886
3280
4756

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT col2 DIV - 98 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1630
SELECT col2 / - 98 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col1 * - 55 AS col0 FROM tab0 AS cor0
----
1155
4455
55

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 57 + + 26 NOT IN ( - 44 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT SUM( DISTINCT col1 ) col0 FROM tab1
----
66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT DISTINCT - col1 DIV 44 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT - col1 / 44 FROM tab2
----
-1

query I rowsort
SELECT + 40 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL - - col1 * 36 FROM tab1 AS cor0
----
1692
180
504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT DISTINCT CAST( - 3 AS SIGNED ) + 35 AS col0 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT CAST ( - 3 AS INTEGER ) + 35 AS col0 FROM tab2 AS cor0
----
32

query I rowsort
SELECT DISTINCT + + 48 + col2 FROM tab1 AS cor0
----
107
116
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT DISTINCT - MIN( col1 ) * + 54 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT - MIN ( col1 ) * + 54 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL - col0 + - ( 26 + col0 * + col1 ) AS col2 FROM tab1 AS cor0
----
-4394
-536
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 52 * col0 col1 FROM tab0 AS cor0
----
4524
5044
780

query I rowsort
SELECT - - 38 * 18 FROM tab1 AS cor0
----
684
684
684

query I rowsort
SELECT - ( col1 ) * 55 FROM tab0 AS cor0
----
-1155
-4455
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1646
SELECT DISTINCT col0 + + col1 AS col1 FROM tab2 WHERE NOT ( col0 + CAST( NULL AS SIGNED ) * - col0 ) IS NOT NULL
----
141
142
97

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT col0 + + col1 AS col1 FROM tab2 WHERE NOT ( col0 + CAST ( NULL AS INTEGER ) * - col0 ) IS NOT NULL
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT ( - col2 ) DIV + col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT ( - col2 ) / + col0 FROM tab0
----
-1
-3
0

query I rowsort
SELECT + 23 * + 50 AS col2 FROM tab2 WHERE ( + col2 ) = col2
----
1150
1150
1150

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

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 74 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1651
SELECT ALL + COUNT( * ) DIV SUM( ALL col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + COUNT ( * ) / SUM ( ALL col2 ) FROM tab0
----
0

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

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

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

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE + ( col2 ) <= ( 47 )
----
46
64

query I rowsort
SELECT DISTINCT + col1 + - - col0 + + col0 * - col1 FROM tab2
----
-2249
-4787
-4883

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT + COUNT( * ) * - MIN( ALL col1 ) + - COUNT( * ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1657
SELECT + COUNT ( * ) * - MIN ( ALL col1 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-18

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1661
SELECT + COUNT( * ), CAST( NULL AS SIGNED ) / 64 AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1661
SELECT + COUNT ( * ), CAST ( NULL AS INTEGER ) / 64 AS col0 FROM tab2
----
3
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1662
SELECT ALL + col2 - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) NOT IN ( + + col1 / + col2 )
----

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + col2 - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT IN ( + + col1 / + col2 )
----

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 = - + 4
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 84 col0 FROM tab1 AS cor0
----
-37
-70
-79

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1667
SELECT ( - 85 ) DIV - + col0 - CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-1667
SELECT ( - 85 ) / - + col0 - CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
20
87
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1668
SELECT DISTINCT + MIN ( ALL 36 ) col2 FROM tab1 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1669
SELECT - 96 - - CAST( - + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-101
-110
-143

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 96 - - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-101
-110
-143

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

query I rowsort
SELECT DISTINCT 34 FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( NULL )
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 88 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 0 col2 FROM tab2 AS cor0 WHERE NOT - 98 = ( - col1 )
----
46
64
75

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col2 FROM tab2
----
4

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT IN ( - col1 / + 39 )
----

query I rowsort
SELECT + col1 * 63 + col0 AS col1 FROM tab0 WHERE NOT - ( + - 60 ) IS NULL
----
1410
160
5118

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( - col0 * + + 68 ) < - col2
----
0

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( - col0 * + + 68 ) < - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1682
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 >= - CAST( CAST( col2 AS SIGNED ) AS SIGNED ) + - 70
----

skipif mysql # not compatible
query III rowsort label-1682
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 >= - CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) + - 70
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * - + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1686
SELECT 12 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + + CAST( + 65 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1686
SELECT 12 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + + CAST ( + 65 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 24 - 39 AS col0 FROM tab2 AS cor0 WHERE NOT + ( + - col1 ) IS NULL
----
-15

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

skipif mysql # not compatible
query II rowsort label-1688
SELECT - ( + - COUNT ( DISTINCT col0 ) ) AS col0, 51 AS col0 FROM tab1
----
3
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL - COUNT( * ) + - 63 AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - COUNT ( * ) + - 63 AS col1 FROM tab1
----
-66

query II rowsort
SELECT - 79 AS col1, + col2 * 16 - - - 96 AS col0 FROM tab2 AS cor0
----
-79
272
-79
544
-79
832

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 < - col2
----
87
21
10

query II rowsort
SELECT DISTINCT - col1, + col1 FROM tab1 cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) * + col0 + - + col2 FROM tab0 AS cor0
----
-272
-7579
-9508

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) * + col0 + - + col2 FROM tab0 AS cor0
----
-272
-7579
-9508

onlyif mysql # DIV for integer division: 
query II rowsort label-1694
SELECT ALL - col2 * - + col1 - col0 AS col2, - 19 * 1 DIV 18 FROM tab2 AS cor0
----
1127
-1
3016
-1
3811
-1

skipif mysql # not compatible
query II rowsort label-1694
SELECT ALL - col2 * - + col1 - col0 AS col2, - 19 * 1 / 18 FROM tab2 AS cor0
----
1127
-1
3016
-1
3811
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <> ( 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL + + col2 * + 60 + col0 AS col0 FROM tab2 AS cor0
----
1426
2464
3555

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * 70 IN ( + 4 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT DISTINCT COUNT( * ) * COUNT( * ) * 44 AS col1 FROM tab2 AS cor0 WHERE - ( - - 16 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * 44 AS col1 FROM tab2 AS cor0 WHERE - ( - - 16 ) IS NULL
----
0

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

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

query I rowsort
SELECT ALL + - col1 * - col2 AS col2 FROM tab1 cor0
----
1344
295
3196

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

query I rowsort
SELECT + col1 + - 72 FROM tab1
----
-25
-58
-67

query I rowsort
SELECT 59 * - col1 * - col2 + - 22 * col1 - col0 + col1 * 90 AS col2 FROM tab1
----
17660
191669
80197

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT ALL 86 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL 86 / + col1 FROM tab2
----
1
1
1

query II rowsort
SELECT col1 + col1 AS col1, col0 FROM tab0
----
162
15
2
97
42
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1709
SELECT ALL col2 AS col0, CAST( 96 AS SIGNED ) AS col1 FROM tab0
----
10
96
47
96
99
96

skipif mysql # not compatible
query II rowsort label-1709
SELECT ALL col2 AS col0, CAST ( 96 AS INTEGER ) AS col1 FROM tab0
----
10
96
47
96
99
96

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( col0 / + col1 IN ( + col1 ) )
----

query II rowsort
SELECT col0 AS col2, - 8 * + col1 FROM tab0 cor0
----
15
-648
87
-168
97
-8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * col1 NOT BETWEEN NULL AND col2 * + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1717
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( - + 71 ) * - CAST( NULL AS SIGNED ) > - 93
----

skipif mysql # not compatible
query IIIIII rowsort label-1717
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( - + 71 ) * - CAST ( NULL AS INTEGER ) > - 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 + - 9 AS col0 FROM tab1 WHERE NOT - 58 + + 11 + + + col0 >= + 0
----

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 + - 9 AS col0 FROM tab1 WHERE NOT - 58 + + 11 + + + col0 >= + 0
----

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

query II rowsort
SELECT ALL + 7 * + + 79, - col2 AS col1 FROM tab1 AS cor0
----
553
-59
553
-68
553
-96

query I rowsort
SELECT 5 * 30 * col2 AS col2 FROM tab0 cor0
----
14850
1500
7050

onlyif mysql # DIV for integer division: 
query II rowsort label-1722
SELECT ALL 7, 63 DIV - - col2 AS col0 FROM tab0
----
7
0
7
1
7
6

skipif mysql # not compatible
query II rowsort label-1722
SELECT ALL 7, 63 / - - col2 AS col0 FROM tab0
----
7
0
7
1
7
6

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

query I rowsort
SELECT + 80 AS col0 FROM tab2
----
80
80
80

query I rowsort
SELECT col0 * + 91 * + ( col0 ) AS col2 FROM tab1
----
236691
657475
753571

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1727
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - + col2 NOT IN ( col2 * + col0 + + col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + col2 NOT IN ( col2 * + col0 + + col2 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT MAX( ALL col2 ) * - + SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
21792

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT MAX ( ALL col2 ) * - + SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
21792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1729
SELECT DISTINCT + ( ( - - col0 ) ) + - 98 + 41 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> - 74
----

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT + ( ( - - col0 ) ) + - 98 + 41 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> - 74
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1730
SELECT + CAST( + + SUM( - col1 ) AS SIGNED ) * + CAST( NULL AS SIGNED ), COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1730
SELECT + CAST ( + + SUM ( - col1 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ), COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1731
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - ( - col2 ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
3481
NULL
4624
NULL
9216

skipif mysql # not compatible
query II rowsort label-1731
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - ( - col2 ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
3481
NULL
4624
NULL
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL - + MIN( DISTINCT + col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL - + MIN ( DISTINCT + col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT - SUM( - col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1733
SELECT - SUM ( - col1 ) col0 FROM tab2 AS cor0
----
195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1735
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL 41 + - + 80 AS col1 FROM tab1
----
-39
-39
-39

query II rowsort
SELECT + col1, col1 + + - ( - + col2 ) FROM tab0 WHERE - 79 IN ( - + col0 )
----

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

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

query I rowsort
SELECT DISTINCT - 45 + + - 45 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, + 46 col1 FROM tab1 AS cor0
----
51
46
85
46
91
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1742
SELECT ALL - + COUNT( * ) AS col1, - MAX( - col0 ) FROM tab0 AS cor0
----
-3
15

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL - + COUNT ( * ) AS col1, - MAX ( - col0 ) FROM tab0 AS cor0
----
-3
15

query I rowsort
SELECT - + 79 * + col2 FROM tab1 AS cor0
----
-4661
-5372
-7584

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ALL - COUNT( * ) * + 56 + - + 25 FROM tab0 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL - COUNT ( * ) * + 56 + - + 25 FROM tab0 AS cor0
----
-193

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1746
SELECT CAST( NULL AS SIGNED ), col1 + + col1 AS col1 FROM tab0 AS cor0
----
NULL
162
NULL
2
NULL
42

skipif mysql # not compatible
query II rowsort label-1746
SELECT CAST ( NULL AS INTEGER ), col1 + + col1 AS col1 FROM tab0 AS cor0
----
NULL
162
NULL
2
NULL
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1747
SELECT - + col0 AS col1, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-1747
SELECT - + col0 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 80, + col1 col0 FROM tab1 AS cor0
----
80
14
80
47
80
5

query II rowsort
SELECT ALL - + 70 AS col2, col0 * - col2 AS col1 FROM tab1 AS cor0
----
-70
-4896
-70
-5015
-70
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
-9

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - col1
----

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

query I rowsort
SELECT col2 * + 65 AS col1 FROM tab0
----
3055
6435
650

query I rowsort
SELECT ALL - + 19 - + col2 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT - col1 * col1 AS col0 FROM tab0 AS cor0 WHERE col2 + - + col1 * - 20 NOT IN ( - col2 )
----
-1
-441
-6561

query II rowsort
SELECT - col2 + - - col2 + - col2 AS col0, - 93 * - 36 * col2 * - + col1 AS col2 FROM tab1 AS cor0
----
-59
-987660
-68
-10700208
-96
-4499712

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

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

query I rowsort
SELECT + col2 + + - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT DISTINCT 61 + SUM( - + col1 ) AS col0 FROM tab2 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT 61 + SUM ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT - 24 * col0 + - col2 * + col1 FROM tab2 cor0 WHERE CAST( + + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1762
SELECT - 24 * col0 + - col2 * + col1 FROM tab2 cor0 WHERE CAST ( + + col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT DISTINCT + - MIN( - col1 ) + 41 AS col2 FROM tab0 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT + - MIN ( - col1 ) + 41 AS col2 FROM tab0 AS cor0
----
122

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 5 * - + col2 col1, col0 AS col1 FROM tab1
----
-295
85
-340
91
-480
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1766
SELECT CAST( - - 70 AS SIGNED ) * + - col2 AS col2 FROM tab1
----
-4130
-4760
-6720

skipif mysql # not compatible
query I rowsort label-1766
SELECT CAST ( - - 70 AS INTEGER ) * + - col2 AS col2 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT DISTINCT col0 * 54 FROM tab1
----
2754
4590
4914

onlyif mysql # DIV for integer division: 
query I rowsort label-1768
SELECT + col2 DIV + 2 AS col0 FROM tab0
----
23
49
5

skipif mysql # not compatible
query I rowsort label-1768
SELECT + col2 / + 2 AS col0 FROM tab0
----
23
49
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1769
SELECT - col1 FROM tab1 WHERE col1 * col0 + + + 81 + - + col2 NOT BETWEEN ( + col0 * - col0 * - - CAST( + 41 AS DECIMAL ) + + col2 + - col2 * + + col0 ) AND col0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1769
SELECT - col1 FROM tab1 WHERE col1 * col0 + + + 81 + - + col2 NOT BETWEEN ( + col0 * - col0 * - - CAST ( + 41 AS REAL ) + + col2 + - col2 * + + col0 ) AND col0
----
-14
-47
-5

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

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

query I rowsort
SELECT ALL - 36 * - col0 * - col0 FROM tab1 cor0
----
-260100
-298116
-93636

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1772
SELECT + - col0 AS col2, CAST( NULL AS SIGNED ) - col2 FROM tab1 AS cor0 WHERE + col0 - + + col1 IS NOT NULL
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-1772
SELECT + - col0 AS col2, CAST ( NULL AS INTEGER ) - col2 FROM tab1 AS cor0 WHERE + col0 - + + col1 IS NOT NULL
----
-51
NULL
-85
NULL
-91
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT 57 * + 98 * - - col0 FROM tab2
----
256956
357504
418950

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT DISTINCT col0 DIV + + 62 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT col0 / + + 62 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT - + ( 71 ) FROM tab2 AS cor0 WHERE NOT 64 * - + col1 + + col0 + - col2 IS NULL
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1778
SELECT - SUM( DISTINCT + col1 ) * + 39 + - AVG ( ALL - ( + + col0 ) ) col0 FROM tab1 AS cor0 WHERE NOT col0 * col1 + col1 NOT IN ( - + col2 - + + CAST( - 8 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1778
SELECT - SUM ( DISTINCT + col1 ) * + 39 + - AVG ( ALL - ( + + col0 ) ) col0 FROM tab1 AS cor0 WHERE NOT col0 * col1 + col1 NOT IN ( - + col2 - + + CAST ( - 8 AS INTEGER ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN - 93 AND col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT + + ( - - 37 ) * - 78 + - COUNT( * ) FROM tab1 AS cor0
----
-2889

skipif mysql # not compatible
query I rowsort label-1781
SELECT + + ( - - 37 ) * - 78 + - COUNT ( * ) FROM tab1 AS cor0
----
-2889

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 74 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT 30 * - MIN( col0 ) AS col0 FROM tab0
----
-450

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT 30 * - MIN ( col0 ) AS col0 FROM tab0
----
-450

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

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

query I rowsort
SELECT ALL + ( - 97 ) * + + 11 FROM tab0
----
-1067
-1067
-1067

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT col0 DIV + 29 col2 FROM tab0
----
0
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1789
SELECT col0 / + 29 col2 FROM tab0
----
0
3
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col2 NOT IN ( + + col0, + 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT ( col1 ) DIV - 85 + + col2 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT ( col1 ) / - 85 + + col2 AS col0 FROM tab1
----
59
68
96

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

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

query I rowsort
SELECT - 60 + - + 4 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT - COUNT( - 81 ) + 83 AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - COUNT ( - 81 ) + 83 AS col0 FROM tab2 AS cor0
----
80

query I rowsort
SELECT ALL col1 + - 18 * + + col0 * col0 AS col2 FROM tab1 AS cor0
----
-130045
-149011
-46804

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

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

query I rowsort
SELECT - 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1799
SELECT DISTINCT - COUNT( + 68 ) DIV + 6 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT - COUNT ( + 68 ) / + 6 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT - 18 + + SUM( - - col1 ) * + 98 FROM tab1 AS cor0
----
6450

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT - 18 + + SUM ( - - col1 ) * + 98 FROM tab1 AS cor0
----
6450

query I rowsort
SELECT ALL - + 91 + - col0 * - col1 + + col1 AS col0 FROM tab0 AS cor0
----
1205
1757
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 83 >= col1
----

query I rowsort
SELECT ALL 97 * - col0 * - col0 + - + col0 AS col0 FROM tab0 AS cor0
----
21810
734106
912576

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT - SUM( 15 ) - - - SUM( ALL - col1 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1805
SELECT - SUM ( 15 ) - - - SUM ( ALL - col1 ) FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL - 0 - + + col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col1 - - + 24 AS col0 FROM tab0
----
105
25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL + ( + COUNT( * ) ) - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + ( + COUNT ( * ) ) - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL - 46 FROM tab2 WHERE NOT NULL IN ( col0, + col1 * + 1 * col0, + 86, + col2 )
----

query I rowsort
SELECT 18 + - + col2 + - 18 * - col1 FROM tab0
----
-63
1429
386

query II rowsort
SELECT DISTINCT - 31, col0 + + 74 AS col2 FROM tab2 AS cor0
----
-31
120
-31
138
-31
149

query I rowsort
SELECT - - col0 * + + ( - 52 ) FROM tab0 AS cor0
----
-4524
-5044
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + COUNT( * ) * - - 52 AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1814
SELECT + COUNT ( * ) * - - 52 AS col0 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query III rowsort label-1815
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 DIV + 52 NOT IN ( + col1, 7 + 79, col2, - col2 DIV + + col2 )
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-1815
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / + 52 NOT IN ( + col1, 7 + 79, col2, - col2 / + + col2 )
----
64
77
40
75
67
58

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

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

query I rowsort
SELECT 33 * col0 AS col0 FROM tab1 AS cor0
----
1683
2805
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT - - 85 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-1818
SELECT - - 85 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-255

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT SUM( - + 28 ) * 22 + - COUNT( + 98 ) FROM tab1 cor0 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT SUM ( - + 28 ) * 22 + - COUNT ( + 98 ) FROM tab1 cor0 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT col1 BETWEEN 71 + - - col2 + - col2 AND + col0 )
----

query I rowsort
SELECT 84 * + col1 AS col2 FROM tab2 AS cor0
----
4284
5628
6468

query I rowsort
SELECT ALL - 75 * 37 * + + 89 AS col1 FROM tab2
----
-246975
-246975
-246975

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + 31 / + 73 * col0 * - - col0, + 13, - col1 )
----

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

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

query I rowsort
SELECT DISTINCT col0 * - 83 FROM tab1
----
-4233
-7055
-7553

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

query I rowsort
SELECT ( col2 ) * col0 + + 90 + - 16 AS col2 FROM tab0
----
779
944
9677

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL + ( - + COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL + ( - + COUNT ( * ) ) FROM tab2
----
-3

query I rowsort
SELECT col2 + + + 31 * - col2 FROM tab1
----
-1770
-2040
-2880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 35 col2 FROM tab2
----
-16
-32
-42

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

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

query I rowsort
SELECT ALL - 2 + col1 + col1 + - ( - 92 ) FROM tab2 AS cor0
----
192
224
244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, 61 AS col2 FROM tab0
----
1
61
21
61
81
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT + 80 * COUNT( * ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-1837
SELECT + 80 * COUNT ( * ) FROM tab0
----
240

query I rowsort
SELECT + 47 * - - 73 AS col1 FROM tab1
----
3431
3431
3431

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT DISTINCT col0 DIV - 18 col0 FROM tab1
----
-2
-4
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1839
SELECT DISTINCT col0 / - 18 col0 FROM tab1
----
-2
-4
-5

query II rowsort
SELECT DISTINCT - + 80, - col1 FROM tab0 AS cor0 WHERE NOT NULL > - ( - + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1841
SELECT + ( - + COUNT( * ) ) DIV - COUNT( * ) + 86 AS col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1841
SELECT + ( - + COUNT ( * ) ) / - COUNT ( * ) + 86 AS col1 FROM tab0 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 + col0 col1 FROM tab1 AS cor0
----
109
143
149

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

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

query I rowsort
SELECT ALL + col2 + col1 * col2 - ( 35 ) AS col0 FROM tab2 AS cor0
----
1161
3085
3909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - 92 * - - col2 + col2 col2 FROM tab2 AS cor0
----
2185
3784
5469

query I rowsort
SELECT ALL - 42 - - + col0 AS col1 FROM tab1
----
43
49
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT + + 40 * col2 - + + col2 DIV - + ( + 85 ) FROM tab1 WHERE - 99 IS NOT NULL
----
2360
2720
3841

skipif mysql # not compatible
query I rowsort label-1847
SELECT + + 40 * col2 - + + col2 / - + ( + 85 ) FROM tab1 WHERE - 99 IS NOT NULL
----
2360
2720
3841

query I rowsort
SELECT ALL col0 - - - 56 AS col2 FROM tab0
----
-41
31
41

query I rowsort
SELECT - ( 13 ) FROM tab2
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT col2 * - + CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-1850
SELECT col2 * - + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1851
SELECT - ( + 66 ) DIV + col2 - - col0 FROM tab0
----
14
81
97

skipif mysql # not compatible
query I rowsort label-1851
SELECT - ( + 66 ) / + col2 - - col0 FROM tab0
----
14
81
97

query II rowsort
SELECT ALL - ( + col1 ) AS col2, 62 AS col0 FROM tab2
----
-51
62
-67
62
-77
62

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE NOT + col0 * 16 * 98 * - col2 IS NOT NULL
----

query I rowsort
SELECT - 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT ALL - ( - + 42 ) AS col2 FROM tab1 AS cor0
----
42
42
42

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 97 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, - col2 AS col0 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col1, 58 col0 FROM tab2 AS cor0
----
-51
58
-67
58
-77
58

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND - 13 / - col2 + col2 * + + 63 / + col1 AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT 92 * - col0 * + + col0 AS col1 FROM tab0 cor0
----
-20700
-696348
-865628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1865
SELECT ALL + CAST( - 6 AS SIGNED ) * + col1 FROM tab1
----
-282
-30
-84

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + CAST ( - 6 AS INTEGER ) * + col1 FROM tab1
----
-282
-30
-84

query I rowsort
SELECT ALL + 65 * + col1 FROM tab0
----
1365
5265
65

query I rowsort
SELECT - col0 * + + col0 * - col0 FROM tab2
----
262144
421875
97336

query I rowsort
SELECT DISTINCT + col0 * - 31 FROM tab0
----
-2697
-3007
-465

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT DISTINCT - 98 DIV - col0 + + - col0 * - col2 FROM tab0 WHERE col1 <= - 96 + + col0 * + col1
----
711
871
9604

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT - 98 / - col0 + + - col0 * - col2 FROM tab0 WHERE col1 <= - 96 + + col0 * + col1
----
711
871
9604

query I rowsort
SELECT + - col2 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT col2 + + col1 + 73 + + + col1 * col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1527
3384
432

query I rowsort
SELECT ALL - - 51 + + - col1 FROM tab2 AS cor0
----
-16
-26
0

query I rowsort
SELECT DISTINCT + 78 - - col0 FROM tab1
----
129
163
169

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1875
SELECT + col0, 45 * + col0 DIV + col0 col1 FROM tab0
----
15
45
87
45
97
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1875
SELECT + col0, 45 * + col0 / + col0 col1 FROM tab0
----
15
45
87
45
97
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 < + - col1
----
97
1
99

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT DISTINCT + ( CAST( 46 AS SIGNED ) ) + col1 FROM tab2 AS cor0
----
113
123
97

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT + ( CAST ( 46 AS INTEGER ) ) + col1 FROM tab2 AS cor0
----
113
123
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col0 + col2 col1 FROM tab2 AS cor0
----
2369
4968
5083

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + + MIN( ALL + col0 ) - - SUM( 46 ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-1883
SELECT + + MIN ( ALL + col0 ) - - SUM ( 46 ) FROM tab1 AS cor0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + + ( 89 ) * - ( + COUNT( * ) ) - - 77 + + COUNT( * ) FROM tab2 cor0
----
-187

skipif mysql # not compatible
query I rowsort label-1884
SELECT + + ( 89 ) * - ( + COUNT ( * ) ) - - 77 + + COUNT ( * ) FROM tab2 cor0
----
-187

query I rowsort
SELECT DISTINCT + 90 + col1 + - col2 AS col2 FROM tab1 AS cor0
----
36
69
8

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 / 82 IS NOT NULL )
----

query II rowsort
SELECT ALL - - col0 * - col0 + - - col1 + + 6 + + col2, col1 FROM tab1 AS cor0
----
-2485
14
-7155
5
-8160
47

query I rowsort
SELECT DISTINCT + col1 - 88 FROM tab0 AS cor0
----
-67
-7
-87

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT ALL - COUNT( * ) 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-1892
SELECT ALL - COUNT ( * ) col0, - ( COUNT ( * ) ) AS col2 FROM tab2
----
-3
-3

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

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

query I rowsort
SELECT - 95 * - - col0 AS col0 FROM tab2
----
-4370
-6080
-7125

query II rowsort
SELECT ALL col2, col1 + - 47 FROM tab0
----
10
-26
47
34
99
-46

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE + 87 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - + col0 * col1 * - - col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

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

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

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

query II rowsort
SELECT col2 AS col1, + 36 AS col0 FROM tab1 AS cor0
----
59
36
68
36
96
36

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 * col2 col0 FROM tab2
----
12167
195112
64000

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 42 * + col0 + - col0 + col1 IS NULL
----

query I rowsort
SELECT - 0 FROM tab2 WHERE NULL > - col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1910
SELECT ALL + COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL + COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1911
SELECT - SUM( DISTINCT col1 ) DIV + 16 + - - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1911
SELECT - SUM ( DISTINCT col1 ) / + 16 + - - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT + col2 DIV + + 89 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1912
SELECT + col2 / + + 89 AS col1 FROM tab0
----
0
0
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT - 48 DIV ( - + col1 ) FROM tab1
----
1
3
9

skipif mysql # not compatible
query I rowsort label-1914
SELECT - 48 / ( - + col1 ) FROM tab1
----
1
3
9

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

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

query I rowsort
SELECT DISTINCT - ( - - ( + col0 ) ) + col1 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT + + col0 - col0 + col1 * - 50 - - - col0 AS col2 FROM tab0 AS cor0
----
-1137
-147
-4065

query I rowsort
SELECT DISTINCT 20 - - - col2 + - 3 + - col2 - ( col2 ) + + - col2 AS col2 FROM tab0
----
-171
-23
-379

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col1 FROM tab1
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-1921
SELECT 82 DIV + + col2 - 95 + 71 - - ( + + ( + col2 ) ) - + ( + 7 ), col1 FROM tab1
----
29
5
38
47
65
14

skipif mysql # not compatible
query II rowsort label-1921
SELECT 82 / + + col2 - 95 + 71 - - ( + + ( + col2 ) ) - + ( + 7 ), col1 FROM tab1
----
29
5
38
47
65
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL - MIN( ALL + - 89 ) * MAX( DISTINCT - ( - col1 ) ) AS col1 FROM tab0
----
7209

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL - MIN ( ALL + - 89 ) * MAX ( DISTINCT - ( - col1 ) ) AS col1 FROM tab0
----
7209

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

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

query I rowsort
SELECT ALL - + col0 * + col1 * + col2 FROM tab1 cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT - 33 * + - 68 AS col0 FROM tab0
----
2244

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT 46 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 66
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT CAST( - MAX( DISTINCT - 67 ) AS SIGNED ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-1932
SELECT CAST ( - MAX ( DISTINCT - 67 ) AS INTEGER ) FROM tab0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 91 col2, 44 AS col1, - col0 FROM tab2
----
9 values hashing to 9bbfa322034546adf22b5539e2968246

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT - ( - COUNT( 27 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT - ( - COUNT ( 27 ) ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT col1 DIV + col2 + + 26 * col0 AS col2 FROM tab0
----
2264
2522
391

skipif mysql # not compatible
query I rowsort label-1936
SELECT col1 / + col2 + + 26 * col0 AS col2 FROM tab0
----
2264
2522
391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT + 82 + - CAST( - 0 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif mysql # not compatible
query I rowsort label-1937
SELECT + 82 + - CAST ( - 0 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 55 * + col2 <> NULL
----

query I rowsort
SELECT + 88 - - 47 + 77 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, 96 * - ( col2 ) )
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1941
SELECT + MAX( ALL - 49 ) col0 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1941
SELECT + MAX ( ALL - 49 ) col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = col1
----

query II rowsort
SELECT - 28 AS col2, + col2 * - col1 - col0 FROM tab0 AS cor0
----
-28
-196
-28
-297
-28
-3822

query I rowsort
SELECT ALL + + col2 + - 1 + + - col0 AS col1 FROM tab1 AS cor0
----
-24
-27
44

query II rowsort
SELECT ALL col0, - col2 * + col0 FROM tab0 AS cor0
----
15
-705
87
-870
97
-9603

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

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

query I rowsort
SELECT - 44 * - + ( col1 ) FROM tab2
----
2244
2948
3388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 98 col2 FROM tab0
----
1470
8526
9506

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL BETWEEN - 55 AND - 56
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 / 67 + col0 + + - col0 BETWEEN + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT + 49 + MAX( DISTINCT + - col0 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-1952
SELECT + 49 + MAX ( DISTINCT + - col0 ) FROM tab1
----
-2

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
15
87
97

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

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

query I rowsort
SELECT - 42 * - - ( - col2 ) AS col2 FROM tab2 AS cor0
----
1680
2436
966

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1958
SELECT - CAST( MAX( DISTINCT + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1958
SELECT - CAST ( MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT + - 77 / - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - - col2 + + col2 + + 47 * - - 30 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT + - 77 / - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - - col2 + + col2 + + 47 * - - 30 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( ( - 56 ) ) FROM tab1
----
-56
-56
-56

query I rowsort
SELECT ALL col1 * - col0 * col1 AS col0 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT - col2 * - - 82 FROM tab2
----
-1886
-3280
-4756

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

query I rowsort
SELECT 62 * + col0 * col1 - + 25 + + - col2 * - col2 * - col2 * - 22 FROM tab0 AS cor0
----
135249
21352567
2359411

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

query II rowsort
SELECT + col0 AS col2, ( - col1 ) FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT ALL 18 + - + col1 DIV - col0 col1 FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1969
SELECT ALL 18 + - + col1 / - col0 col1 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + col2 + + 24 + - 36 AS col0 FROM tab1 AS cor0
----
47
56
84

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

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT + MAX ( - + col1 ) FROM tab2 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col0 FROM tab2 AS cor0 WHERE NULL = 47
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 = ( col2 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT + COUNT( * ) + 60 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + COUNT ( * ) + 60 FROM tab1 AS cor0
----
63

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

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

query I rowsort
SELECT ALL col0 + + 60 FROM tab1
----
111
145
151

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL - COUNT( + 95 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL - COUNT ( + 95 ) FROM tab1
----
-3

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1982
SELECT ALL - COUNT( * ) * 80 + + COUNT( ALL CAST( NULL AS SIGNED ) ) + + CAST( COUNT( * ) AS SIGNED ) col0 FROM tab2 cor0
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1982
SELECT ALL - COUNT ( * ) * 80 + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) + + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2 cor0
----
-237

query I rowsort
SELECT 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT - + SUM( ALL + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT - + SUM ( ALL + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT ( col2 + - col1 ) >= ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-1986
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT ( col2 + - col1 ) >= ( NULL ) )
----
0

query I rowsort
SELECT ALL + + ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 76 AND - col2 - - col1 - + - col1 + - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1988
SELECT + col1 * 66 FROM tab2 AS cor0 WHERE NOT ( NOT - + col1 = + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1988
SELECT + col1 * 66 FROM tab2 AS cor0 WHERE NOT ( NOT - + col1 = + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ( col1 ), 54 AS col0 FROM tab2 AS cor0
----
51
54
67
54
77
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + - 64 * - col0 col0, - col0 FROM tab2
----
163840
-64
278400
-75
67712
-46

query II rowsort
SELECT col0, col0 * col2 * + - 45 * - - 81 FROM tab1
----
51
-17845920
85
-18279675
91
-22555260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1992
SELECT + MAX( DISTINCT - - 27 ) - - - 85 AS col0 FROM tab1 WHERE NOT + col0 / + - col2 + - CAST( NULL AS SIGNED ) - + - 19 + + 26 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT + MAX ( DISTINCT - - 27 ) - - - 85 AS col0 FROM tab1 WHERE NOT + col0 / + - col2 + - CAST ( NULL AS INTEGER ) - + - 19 + + 26 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1993
SELECT 62 * - ( + + COUNT( * ) ) DIV - - COUNT( * ) AS col0 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-1993
SELECT 62 * - ( + + COUNT ( * ) ) / - - COUNT ( * ) AS col0 FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL - COUNT( 50 ) * - 75 + - 5 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL - COUNT ( 50 ) * - 75 + - 5 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= 62
----

query I rowsort
SELECT DISTINCT 21 * - + col2 AS col0 FROM tab2 AS cor0
----
-1218
-483
-840

query I rowsort
SELECT 85 * - - col0 AS col1 FROM tab1 AS cor0
----
4335
7225
7735

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

skipif mysql # not compatible
query I rowsort label-1998
SELECT - - 45 + + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
42

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2000
SELECT col2 + col1 + + col1 DIV + + col1, + col0 AS col1 FROM tab2
----
118
64
126
75
75
46

skipif mysql # not compatible
query II rowsort label-2000
SELECT col2 + col1 + + col1 / + + col1, + col0 AS col1 FROM tab2
----
118
64
126
75
75
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= + col2 / + col2
----
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= + col2 / + col2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT DISTINCT + col1 DIV + - ( col2 ) FROM tab1 AS cor0 WHERE + 15 NOT BETWEEN col2 AND - 38
----
0

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT + col1 / + - ( col2 ) FROM tab1 AS cor0 WHERE + 15 NOT BETWEEN col2 AND - 38
----
0

query II rowsort
SELECT - col2 * + - col2, ( + col0 ) AS col2 FROM tab1 AS cor0
----
3481
85
4624
91
9216
51

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NULL AND NOT NULL = col2
----

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

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

query I rowsort
SELECT ALL 19 * - + col2 + - col0 AS col1 FROM tab2
----
-1177
-483
-824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2009
SELECT 91 + + - CAST( + - COUNT( * ) AS SIGNED ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-2009
SELECT 91 + + - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2010
SELECT DISTINCT 74 * + 10 + + 1 + CAST( NULL AS DECIMAL ) / + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT 74 * + 10 + + 1 + CAST ( NULL AS REAL ) / + - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col0 + col2 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT + COUNT( * ) + ( - SUM( col0 ) ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-2012
SELECT + COUNT ( * ) + ( - SUM ( col0 ) ) FROM tab0 AS cor0
----
-196

query I rowsort
SELECT + 20 + ( ( - - col1 ) ) AS col1 FROM tab1 AS cor0 WHERE col0 >= - + col0 + - 80
----
25
34
67

onlyif mysql # DIV for integer division: 
query II rowsort label-2014
SELECT - + 6 * + col1 + col2 col1, ( - 40 ) DIV - col2 AS col0 FROM tab0 AS cor0
----
-116
4
-439
0
93
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2014
SELECT - + 6 * + col1 + col2 col1, ( - 40 ) / - col2 AS col0 FROM tab0 AS cor0
----
-116
4
-439
0
93
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT DISTINCT 22 + - + CAST( 83 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
-10
16
6

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT 22 + - + CAST ( 83 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
-10
16
6

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

query II rowsort
SELECT - col2 AS col2, - 80 + + - col0 * + 99 * + col0 FROM tab2
----
-23
-209564
-40
-405584
-58
-556955

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2019
SELECT ALL 4, COUNT( * ) + - ( - COUNT( + + 93 ) ) AS col1 FROM tab2
----
4
6

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL 4, COUNT ( * ) + - ( - COUNT ( + + 93 ) ) AS col1 FROM tab2
----
4
6

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1, col2 * - + col1 * - col0 col0 FROM tab0 AS cor0
----
-1
9603
-21
18270
-81
57105

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

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

query I rowsort
SELECT DISTINCT + ( col2 ) * - ( - col1 ) + - + 26 FROM tab0 AS cor0
----
184
3781
73

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

skipif mysql # not compatible
query I rowsort label-2024
SELECT + COUNT ( col2 ) FROM tab2 cor0
----
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2025
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
14
47
5

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

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

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

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

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 3 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT COUNT( * ) + 23 * - MIN( DISTINCT + 66 ) * + 41 - + + MAX( DISTINCT - 44 ) AS col0 FROM tab2 cor0
----
-62191

skipif mysql # not compatible
query I rowsort label-2031
SELECT COUNT ( * ) + 23 * - MIN ( DISTINCT + 66 ) * + 41 - + + MAX ( DISTINCT - 44 ) AS col0 FROM tab2 cor0
----
-62191

query II rowsort
SELECT DISTINCT - col0 + - 52 + + + 19, col1 AS col2 FROM tab2 AS cor0
----
-108
67
-79
51
-97
77

query I rowsort
SELECT + col2 + + + col2 AS col1 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 >= col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2035
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2035
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT - + MIN( - col2 ) AS col2 FROM tab1 cor0 WHERE + col0 * 29 * + + ( + - col2 ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-2036
SELECT - + MIN ( - col2 ) AS col2 FROM tab1 cor0 WHERE + col0 * 29 * + + ( + - col2 ) IS NOT NULL
----
96

query I rowsort
SELECT col2 * - col2 + - - ( + col0 ) + - col2 + + col0 FROM tab2 AS cor0
----
-1512
-3272
-460

query I rowsort
SELECT ALL col0 + 19 AS col0 FROM tab1 AS cor0
----
104
110
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT SUM( ALL - 47 ) * - SUM( - col2 ) AS col0 FROM tab0
----
-21996

skipif mysql # not compatible
query I rowsort label-2039
SELECT SUM ( ALL - 47 ) * - SUM ( - col2 ) AS col0 FROM tab0
----
-21996

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT COUNT( * ) * + + 62 AS col0 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-2040
SELECT COUNT ( * ) * + + 62 AS col0 FROM tab1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT ALL 94 DIV col0 - - - col1 + - 12 * + 11 AS col0 FROM tab2 AS cor0
----
-181
-198
-208

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL 94 / col0 - - - col1 + - 12 * + 11 AS col0 FROM tab2 AS cor0
----
-181
-198
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT + MIN( DISTINCT + 50 ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-2044
SELECT + MIN ( DISTINCT + 50 ) FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT + MAX( - 39 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-39

skipif mysql # not compatible
query I rowsort label-2045
SELECT + MAX ( - 39 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-39

query I rowsort
SELECT + col2 * + col2 * + col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col0 * - - col1 + + col2 + + + col2 AS col2 FROM tab1 AS cor0
----
-307
-4141
-522

query I rowsort
SELECT + ( 46 ) * - + col0 FROM tab2
----
-2116
-2944
-3450

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT 44 DIV + col1 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-2049
SELECT 44 / + col1 FROM tab1
----
0
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT + COUNT( ALL 83 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2050
SELECT + COUNT ( ALL 83 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT - MIN( DISTINCT - 26 ) * 56 AS col0 FROM tab2
----
1456

skipif mysql # not compatible
query I rowsort label-2051
SELECT - MIN ( DISTINCT - 26 ) * 56 AS col0 FROM tab2
----
1456

query II rowsort
SELECT DISTINCT col1 AS col1, + 68 * - col0 FROM tab0
----
1
-6596
21
-5916
81
-1020

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col2 FROM tab0
----
59

query I rowsort
SELECT ALL - 66 + - - col0 FROM tab2
----
-2
-20
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2056
SELECT COUNT( * ) AS col1, + COUNT( * ) * MAX( - ( + ( - 15 ) ) ) FROM tab1
----
3
45

skipif mysql # not compatible
query II rowsort label-2056
SELECT COUNT ( * ) AS col1, + COUNT ( * ) * MAX ( - ( + ( - 15 ) ) ) FROM tab1
----
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 18 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 18 IS NULL
----
0

query I rowsort
SELECT col0 + + - col2 FROM tab1
----
-45
23
26

query II rowsort
SELECT DISTINCT ( 98 ), col0 FROM tab1
----
98
51
98
85
98
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT + 89 * + COUNT( * ) + + COUNT( * ) - - COUNT( * ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT + 89 * + COUNT ( * ) + + COUNT ( * ) - - COUNT ( * ) FROM tab0
----
273

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE - 47 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT + + 30 DIV - 42 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2062
SELECT + + 30 / - 42 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 31 AS col2 FROM tab1 cor0
----
-31
-31
-31

query I rowsort
SELECT ALL 26 + 0 + + 24 AS col0 FROM tab1 AS cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 + - - ( + + col2 ) col1 FROM tab0 AS cor0
----
106
143
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT ALL - - 35 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - - 35 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 57 + - - col0 + + + col1 AS col0 FROM tab2 AS cor0
----
154
198
199

query I rowsort
SELECT + 11 - + col2 - - col0 AS col2 FROM tab0 AS cor0
----
-21
88
9

query I rowsort
SELECT - + col0 * + col1 - - 39 FROM tab1 AS cor0
----
-386
-4238
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT ALL - COUNT( * ) - + 97 AS col0 FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL - COUNT ( * ) - + 97 AS col0 FROM tab1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL COUNT( * ) * 63 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL COUNT ( * ) * 63 FROM tab1
----
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2072
SELECT 50 col0, 34 + CAST( + SUM( + ( - + 11 ) ) AS SIGNED ) * + COUNT( * ) FROM tab2
----
50
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2072
SELECT 50 col0, 34 + CAST ( + SUM ( + ( - + 11 ) ) AS INTEGER ) * + COUNT ( * ) FROM tab2
----
50
-65

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT + col1 * + 28 * col1 AS col2 FROM tab0 AS cor0
----
12348
183708
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2075
SELECT ALL - col1, col0 * + 91 + + + col1 + + CAST( NULL AS SIGNED ) - - col2 * + ( 71 ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-2075
SELECT ALL - col1, col0 * + 91 + + + col1 + + CAST ( NULL AS INTEGER ) - - col2 * + ( 71 ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2076
SELECT CAST( CAST( col2 AS DECIMAL ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2076
SELECT CAST ( CAST ( col2 AS REAL ) AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT ALL CAST( NULL AS SIGNED ) + ( col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL CAST ( NULL AS INTEGER ) + ( col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 19 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col0 FROM tab0 WHERE ( NULL ) <= 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL 33 + - COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL 33 + - COUNT ( * ) FROM tab1
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * col1 col2 FROM tab1 WHERE NULL NOT BETWEEN ( col2 * - col2 ) AND 3 / 91 + - col0
----

query I rowsort
SELECT DISTINCT 96 FROM tab0 WHERE col2 * col1 BETWEEN col0 AND col2 + + col2
----
96

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col1 * 21 AND col0 * col1
----

query I rowsort
SELECT ALL - 70 + col2 FROM tab2
----
-12
-30
-47

query I rowsort
SELECT ALL 67 + - 38 AS col0 FROM tab2
----
29
29
29

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 71 + col1 * + col2 ) IN ( col2 / col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * ( + col0 ) + 78 * col2 FROM tab0 WHERE + col2 * ( - ( col0 ) / - 68 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( - ( + 67 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT + SUM( col1 ) AS col0 FROM tab2 WHERE - 81 * col1 IN ( col2 - + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT + SUM ( col1 ) AS col0 FROM tab2 WHERE - 81 * col1 IN ( col2 - + 50 )
----
NULL

query I rowsort
SELECT ALL 41 + col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 58 + col1 col1 FROM tab1
----
-2679
-285
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL - ( MIN( + col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - ( MIN ( + col2 ) ) FROM tab0
----
-10

query I rowsort
SELECT ALL + 23 * 14 AS col1 FROM tab2
----
322
322
322

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT + 1 BETWEEN 42 + + col0 AND ( NULL )
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE + 6 NOT IN ( + ( - 61 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 19 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT MAX( + col0 ) * MIN( DISTINCT + ( 86 ) ) FROM tab2
----
6450

skipif mysql # not compatible
query I rowsort label-2098
SELECT MAX ( + col0 ) * MIN ( DISTINCT + ( 86 ) ) FROM tab2
----
6450

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 85 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT COUNT( * ) * + 8 AS col1 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2100
SELECT COUNT ( * ) * + 8 AS col1 FROM tab1
----
24

query I rowsort
SELECT 87 * col0 AS col1 FROM tab2
----
4002
5568
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT ( 14 ) - SUM( ALL - 77 ) AS col1 FROM tab1 WHERE col0 * col0 + + 66 IS NOT NULL
----
245

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT ( 14 ) - SUM ( ALL - 77 ) AS col1 FROM tab1 WHERE col0 * col0 + + 66 IS NOT NULL
----
245

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 - - 71 / + col0 = - 8
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 13 + + ( - col1 - col1 ) * - col0
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT COUNT( * ) * COUNT( * ) + 17 AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + 17 AS col0 FROM tab1
----
26

query III rowsort
SELECT * FROM tab2 WHERE 89 <= + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT - ( COUNT( * ) ) + + SUM( ALL - 48 + + col0 ) col1 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2108
SELECT DISTINCT - ( COUNT ( * ) ) + + SUM ( ALL - 48 + + col0 ) col1 FROM tab0 AS cor0
----
52

query I rowsort
SELECT ALL - col1 + - 57 AS col2 FROM tab0 cor0
----
-138
-58
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2110
SELECT ALL * FROM tab0 WHERE NOT col2 BETWEEN ( 82 ) AND + ( CAST( NULL AS SIGNED ) )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-2110
SELECT ALL * FROM tab0 WHERE NOT col2 BETWEEN ( 82 ) AND + ( CAST ( NULL AS INTEGER ) )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2111
SELECT DISTINCT - 85 AS col0 FROM tab1 WHERE 28 / + col1 NOT BETWEEN ( CAST( - col0 AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT - 85 AS col0 FROM tab1 WHERE 28 / + col1 NOT BETWEEN ( CAST ( - col0 AS REAL ) ) AND NULL
----

query I rowsort
SELECT - 34 + 41 AS col1 FROM tab1
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT + col2 AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) / col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2113
SELECT + col2 AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT COUNT( * ) + - 2 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2114
SELECT COUNT ( * ) + - 2 AS col2 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * 79 AS col2 FROM tab0 AS cor0
----
-1659
-6399
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2117
SELECT - + COUNT( * ) DIV 79 + - 60 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2117
SELECT - + COUNT ( * ) / 79 + - 60 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT ALL + + col1 + - col0 * 92 FROM tab2 cor0
----
-4181
-5811
-6833

query I rowsort
SELECT DISTINCT + + col0 * col2 + col2 AS col1 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT MAX( 24 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT MAX ( 24 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2121
SELECT DISTINCT + - col1 + col2 DIV col2 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT + - col1 + col2 / col2 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT ALL col1 * - col0 + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-510
-957
9506

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 45 ) BETWEEN ( NULL ) AND - col0 + 54
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( col2 ) ) > NULL
----

query I rowsort
SELECT DISTINCT col2 * + col2 * ( ( 30 ) ) AS col0 FROM tab0
----
294030
3000
66270

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col2 AND - 21
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2127
SELECT DISTINCT - CAST( - ( ( - col1 ) ) AS SIGNED ) DIV - col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT - CAST ( - ( ( - col1 ) ) AS INTEGER ) / - col0 FROM tab2
----
0
1

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL + COUNT( - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + COUNT ( - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 77 * + 3 FROM tab1 AS cor0
----
231
231
231

query I rowsort
SELECT - col2 + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 74 * - col0
----

query I rowsort
SELECT - 60 * 74 * + 19 AS col0 FROM tab1 AS cor0
----
-84360
-84360
-84360

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 5 NOT BETWEEN + col2 * col1 AND 44 / col1 - col2 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT + + ( - + 39 ) DIV + col2 AS col2 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2135
SELECT + + ( - + 39 ) / + col2 AS col2 FROM tab0 cor0
----
-3
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <= col1 + - 33 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2137
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2137
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT - COUNT( * ) * - 94 AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - COUNT ( * ) * - 94 AS col1 FROM tab1
----
282

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT DISTINCT + COUNT( * ) DIV SUM( DISTINCT + 1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + COUNT ( * ) / SUM ( DISTINCT + 1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 6 * col1 + + 36 * col0 AS col0 FROM tab1 AS cor0
----
1920
3090
3558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2142
SELECT + + CAST( - col2 AS SIGNED ) col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2142
SELECT + + CAST ( - col2 AS INTEGER ) col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT 97 - + - col0 > - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2144
SELECT ALL - - SUM( CAST( + + ( 97 ) AS SIGNED ) ) AS col1 FROM tab0 cor0
----
291

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - - SUM ( CAST ( + + ( 97 ) AS INTEGER ) ) AS col1 FROM tab0 cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT ALL + 61 * - + COUNT( * ) FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL + 61 * - + COUNT ( * ) FROM tab2 AS cor0
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-2146
SELECT + col0 DIV col0 + + col1 + - col1 col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2146
SELECT + col0 / col0 + + col1 + - col1 col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT DISTINCT 70 + - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 18 + + col2 + - col0 * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT 70 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 18 + + col2 + - col0 * col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT - col1 DIV 98 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2148
SELECT - col1 / 98 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT COUNT( * ) * + 3 AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT COUNT ( * ) * + 3 AS col0 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL + col0 * + 68 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + col0 * + 68 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( + 25 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL + COUNT( * ) + + 26 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2152
SELECT ALL + COUNT ( * ) + + 26 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 74 col1 FROM tab0
----
3478
7326
740

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 = ( col2 * 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + MIN( + col1 ) * + + SUM( DISTINCT col1 ) FROM tab2
----
9945

skipif mysql # not compatible
query I rowsort label-2155
SELECT + MIN ( + col1 ) * + + SUM ( DISTINCT col1 ) FROM tab2
----
9945

query I rowsort
SELECT DISTINCT ( col0 ) + col2 * 44 - - 83 FROM tab1
----
2764
3166
4358

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL - SUM( DISTINCT - - col1 ) + + + 18 FROM tab2 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL - SUM ( DISTINCT - - col1 ) + + + 18 FROM tab2 cor0
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT - 29 DIV + col1 + + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2159
SELECT - 29 / + col1 + + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT SUM( DISTINCT - 78 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT SUM ( DISTINCT - 78 ) FROM tab2
----
-78

query I rowsort
SELECT ALL + col1 * 42 FROM tab0 WHERE NOT 63 = ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 65 FROM tab2 AS cor0 WHERE NULL IN ( - col1 ) AND ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL + SUM( ALL 41 ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL + SUM ( ALL 41 ) FROM tab0 AS cor0
----
123

query I rowsort
SELECT ALL ( 32 ) FROM tab1 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2167
SELECT ALL - CAST( NULL AS SIGNED ), ( + 17 ) AS col2 FROM tab0 AS cor0
----
NULL
17
NULL
17
NULL
17

skipif mysql # not compatible
query II rowsort label-2167
SELECT ALL - CAST ( NULL AS INTEGER ), ( + 17 ) AS col2 FROM tab0 AS cor0
----
NULL
17
NULL
17
NULL
17

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 + - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - COUNT( * ) * + 33 FROM tab2, tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2169
SELECT - COUNT ( * ) * + 33 FROM tab2, tab2 AS cor0
----
-297

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 83 + + 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL 90 AS col1 FROM tab0 WHERE - 58 * + + CAST( - col0 AS SIGNED ) <> col2 + + col0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL 90 AS col1 FROM tab0 WHERE - 58 * + + CAST ( - col0 AS INTEGER ) <> col2 + + col0
----
90
90
90

query I rowsort
SELECT ALL col0 * - + col1 AS col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT COUNT( * ) * - 0 AS col1 FROM tab0, tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2173
SELECT COUNT ( * ) * - 0 AS col1 FROM tab0, tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + ( + col0 ) ) col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 / 18 FROM tab0 WHERE ( col1 - + col0 ) BETWEEN col2 * col2 AND 26 * + 25
----

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 col2 FROM tab2 AS cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 * - col2 * + ( - col2 ) + + 38 + + col0 + 19 col1 FROM tab2 AS cor0
----
-140679
-295900
-46449

query I rowsort
SELECT ALL + - 43 * col0 * + col0 FROM tab2 cor0
----
-176128
-241875
-90988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT ALL 23 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL 23 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2182
SELECT 5 + + + 63, - SUM( + - 97 ) AS col0 FROM tab1 cor0
----
68
291

skipif mysql # not compatible
query II rowsort label-2182
SELECT 5 + + + 63, - SUM ( + - 97 ) AS col0 FROM tab1 cor0
----
68
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT DISTINCT col0 + + 24 * + col2 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
12742
38464
80811

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT col0 + + 24 * + col2 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
12742
38464
80811

query II rowsort
SELECT DISTINCT col0 * + - 35 AS col2, col2 FROM tab0 AS cor0
----
-3045
10
-3395
99
-525
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT col1 AS col2 FROM tab0 WHERE - - CAST( NULL AS SIGNED ) * - - 79 * col2 + col1 + - 4 * - - CAST( NULL AS SIGNED ) + 94 IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2185
SELECT col1 AS col2 FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) * - - 79 * col2 + col1 + - 4 * - - CAST ( NULL AS INTEGER ) + 94 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT DISTINCT - col1 DIV - - 72 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT - col1 / - - 72 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2187
SELECT CAST( + 10 AS SIGNED ) * - MIN( ALL - ( + + col1 ) ) FROM tab0
----
810

skipif mysql # not compatible
query I rowsort label-2187
SELECT CAST ( + 10 AS INTEGER ) * - MIN ( ALL - ( + + col1 ) ) FROM tab0
----
810

query II rowsort
SELECT DISTINCT - col2, ( col1 ) AS col2 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab2 WHERE - + ( - - col2 ) - + - 63 * col0 * + + col2 >= - col1 - col1 * col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT - COUNT( - - col2 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2190
SELECT - COUNT ( - - col2 ) col1 FROM tab0
----
-3

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT col1 AS col0, - col0 - + col0 FROM tab0 AS cor0
----
1
-194
21
-174
81
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT DISTINCT + ( - col2 ) * - 72 - - 92 * + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT + ( - col2 ) * - 72 - - 92 * + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT COUNT( DISTINCT + col2 ) - + COUNT( * ) + + ( - + 79 ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2194
SELECT COUNT ( DISTINCT + col2 ) - + COUNT ( * ) + + ( - + 79 ) FROM tab0 AS cor0
----
-79

query I rowsort
SELECT col1 - - - col0 FROM tab0 WHERE - col2 + col2 * - col1 + + col1 IN ( col0 )
----

query I rowsort
SELECT - 42 + col1 AS col1 FROM tab2
----
25
35
9

query I rowsort
SELECT ALL 39 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT - ( - COUNT( * ) ) * 48 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-2198
SELECT - ( - COUNT ( * ) ) * 48 FROM tab1 AS cor0
----
144

query I rowsort
SELECT DISTINCT - AVG ( - - 69 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 48 * - + ( + col0 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2200
SELECT DISTINCT + + COUNT( * ) DIV - + 50 * + 88 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT + + COUNT ( * ) / - + 50 * + 88 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 25 * - col0 NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2204
SELECT DISTINCT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, - 49 col1 FROM tab1 AS cor0
----
NULL
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2204
SELECT DISTINCT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - 49 col1 FROM tab1 AS cor0
----
NULL
-49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <> 91 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT + CAST( + ( - + col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2206
SELECT + CAST ( + ( - + col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col0 + - col1 AS col0 FROM tab0 AS cor0 WHERE + 26 + + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + - 90 * ( + + col1 ) + + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 48 * - + 35 AS col0 FROM tab2
----
-1680
-1680
-1680

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 38 + col1 * col0 / - - col0 )
----

query I rowsort
SELECT - col0 * - 76 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE col2 = - col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT - COUNT( ALL - - 54 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT - COUNT ( ALL - - 54 ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT ALL + + col0 AS col2, + col1 FROM tab0 cor0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + 1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT CAST( col2 AS SIGNED ) + - 65 AS col2 FROM tab1
----
-6
3
31

skipif mysql # not compatible
query I rowsort label-2217
SELECT CAST ( col2 AS INTEGER ) + - 65 AS col2 FROM tab1
----
-6
3
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL - SUM( - col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - SUM ( - col1 ) AS col1 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2219
SELECT col2 AS col2, col2 * col1 * + - CAST( NULL AS SIGNED ) + - 79 AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2219
SELECT col2 AS col2, col2 * col1 * + - CAST ( NULL AS INTEGER ) + - 79 AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2220
SELECT 52, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
52
3

skipif mysql # not compatible
query II rowsort label-2220
SELECT 52, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
52
3

query II rowsort
SELECT DISTINCT + col2 + - col0, - col2 AS col0 FROM tab0 AS cor0
----
-77
-10
2
-99
32
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 18 * + - col1, col2 * - - col2 col1 FROM tab2 AS cor0
----
-1206
3364
-1386
1600
-918
529

query I rowsort
SELECT + 45 * + col0 FROM tab2 AS cor0
----
2070
2880
3375

query II rowsort
SELECT 77 * - - col1, + 21 AS col1 FROM tab1
----
1078
21
3619
21
385
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2225
SELECT col1 - 29 * + ( + col0 ) * + CAST( col1 AS SIGNED ) * + 14 FROM tab1
----
-172545
-1736415
-289870

skipif mysql # not compatible
query I rowsort label-2225
SELECT col1 - 29 * + ( + col0 ) * + CAST ( col1 AS INTEGER ) * + 14 FROM tab1
----
-172545
-1736415
-289870

query I rowsort
SELECT - 94 + 17 - + 85 AS col2 FROM tab1 AS cor0
----
-162
-162
-162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2227
SELECT ALL + + CAST( NULL AS DECIMAL ) * + + ( 1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL + + CAST ( NULL AS REAL ) * + + ( 1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 71 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT ALL + 71 * col1 DIV 84 - - col2 AS col0 FROM tab1
----
107
107
63

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + 71 * col1 / 84 - - col2 AS col0 FROM tab1
----
107
107
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT 24 - + - COUNT( * ) col2 FROM tab1
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2230
SELECT DISTINCT 24 - + - COUNT ( * ) col2 FROM tab1
----
27

query I rowsort
SELECT col1 * + col2 * + + col1 + + col2 FROM tab2 AS cor0
----
237200
260420
59846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2232
SELECT - COUNT( * ) DIV MAX( - - col0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT - COUNT ( * ) / MAX ( - - col0 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2233
SELECT + - COUNT( * ) / + + CAST( NULL AS SIGNED ) * + - SUM( DISTINCT - CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT + - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) * + - SUM ( DISTINCT - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL > - 96 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2235
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col2 * + - col0 - + + col0 AS col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL - SUM( col1 ) * + + COUNT( * ) FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - SUM ( col1 ) * + + COUNT ( * ) FROM tab0 AS cor0
----
-309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT - + ( - COUNT( * ) ) DIV + 80 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT - + ( - COUNT ( * ) ) / + 80 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 17 NOT BETWEEN - col1 - 3 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT COUNT( * ) * 91 AS col0 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2240
SELECT COUNT ( * ) * 91 AS col0 FROM tab0 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL + - SUM( DISTINCT + + col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + - SUM ( DISTINCT + + col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT 71 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT + - 91 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - + col1 AND - CAST( - + 97 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2243
SELECT + - 91 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - + col1 AND - CAST ( - + 97 AS INTEGER )
----

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 + + + 29 AS col1 FROM tab0
----
-58
-68
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 1 - + 94 col0 FROM tab0 AS cor0
----
-48
-85
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT - 28 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT - 28 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT MAX( + col2 ) / + - 69 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT MAX ( + col2 ) / + - 69 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - ( col0 ) + + 94 * 26 FROM tab0 AS cor0
----
2347
2357
2429

query I rowsort
SELECT ALL - + col1 + - 68 AS col2 FROM tab0 cor0
----
-149
-69
-89

query III rowsort
SELECT * FROM tab0 WHERE 27 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * col2 - - 84 + + + col2 FROM tab2
----
1165
2684
4492

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT - COUNT( * ) * + 39 col2 FROM tab0
----
-117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2253
SELECT - COUNT ( * ) * + 39 col2 FROM tab0
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN - col0 + 61 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN - col0 + 61 AND ( NULL )
----

query I rowsort
SELECT + col0 * - 33 FROM tab1
----
-1683
-2805
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT DISTINCT - 67 * ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - 67 * ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + col2 IS NULL
----

query II rowsort
SELECT - col2 AS col0, - col0 - + + 75 - col2 FROM tab0 AS cor0
----
-10
-172
-47
-137
-99
-271

onlyif mysql # aggregate syntax: 
query II rowsort label-2259
SELECT COUNT( * ) AS col1, 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
70

skipif mysql # not compatible
query II rowsort label-2259
SELECT COUNT ( * ) AS col1, 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
70

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - 66 AND + 60 + col0 + - ( + col2 ) / - + col2
----

query I rowsort
SELECT ALL + ( col2 ) * - 17 AS col0 FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT DISTINCT + col1 * + ( + - col2 ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT DISTINCT col0 DIV + 37 AS col0 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT col0 / + 37 AS col0 FROM tab1 AS cor0
----
1
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + col2
----

query I rowsort
SELECT - 6 * + - 95 FROM tab1 AS cor0
----
570
570
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT 12 * + col2 * col2 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) <= col1
----

skipif mysql # not compatible
query I rowsort label-2266
SELECT 12 * + col2 * col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * - + col1 col0 FROM tab0
----
-1470
-5670
-70

query II rowsort
SELECT ALL + col1 AS col1, col2 AS col1 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2269
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 57 * - + 8 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT CAST ( NULL AS REAL ) * + 57 * - + 8 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 61 * - 20 * col1 FROM tab2
----
-62220
-81740
-93940

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT - 67 DIV + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT - 67 / + col0 FROM tab1
----
-1
0
0

query II rowsort
SELECT ALL + col1 * col1 + col0, col1 FROM tab0
----
528
21
6576
81
98
1

query I rowsort
SELECT ALL col2 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL SUM( + - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL SUM ( + - col1 ) FROM tab0
----
-103

query II rowsort
SELECT + - 13 AS col2, 16 + + 38 * + col2 FROM tab1 AS cor0
----
-13
2258
-13
2600
-13
3664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT 12 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
12
12
12

skipif mysql # not compatible
query I rowsort label-2276
SELECT 12 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT + + col1 DIV - col2 + 90 FROM tab2 AS cor0
----
88
89
89

skipif mysql # not compatible
query I rowsort label-2277
SELECT + + col1 / - col2 + 90 FROM tab2 AS cor0
----
88
89
89

query I rowsort
SELECT 11 + - col1 * - + col2 FROM tab2 cor0
----
1184
3091
3897

query I rowsort
SELECT ALL col1 + - - col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT + + MAX( - 84 ) FROM tab2 cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT + + MAX ( - 84 ) FROM tab2 cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT + COUNT( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + COUNT ( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 72 AND col1
----

query I rowsort
SELECT ALL + 68 FROM tab2 AS cor0 WHERE - col1 * + - 69 * - - col2 NOT IN ( - - col0, col0, - 2, col0 + + 15 * + 32 )
----
68
68
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2284
SELECT ALL - CAST( NULL AS DECIMAL ) + - - MAX( + + col2 ) - + 44 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - CAST ( NULL AS REAL ) + - - MAX ( + + col2 ) - + 44 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL COUNT( * ) + 86 AS col0 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL COUNT ( * ) + 86 AS col0 FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL - - 12 AS col1 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT - col1 * - col1 * - + col0 AS col1 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT DISTINCT - COUNT( * ) - SUM( + CAST( + + 94 AS SIGNED ) ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT - COUNT ( * ) - SUM ( + CAST ( + + 94 AS INTEGER ) ) FROM tab2
----
-285

query I rowsort
SELECT ALL col1 * + - col0 - 42 AS col1 FROM tab1
----
-4319
-467
-756

query II rowsort
SELECT ALL - col1 * + 33 * - 8 AS col1, 53 - + col2 + - col2 * col1 FROM tab0
----
21384
-3801
264
-145
5544
-167

query I rowsort
SELECT ALL 28 * - + 87 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-2436
-2436
-2436

query III rowsort
SELECT DISTINCT + - 68 AS col1, + 95 + 90 AS col2, col0 AS col2 FROM tab1 AS cor0
----
9 values hashing to 13382bf971ba1f96710837a0c8f9775e

query II rowsort
SELECT + + 9, + 37 * + 73 AS col2 FROM tab1 cor0
----
9
2701
9
2701
9
2701

query II rowsort
SELECT + col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL col1 * + 59 AS col2 FROM tab1
----
2773
295
826

query II rowsort
SELECT DISTINCT + 19, + col2 FROM tab2
----
19
23
19
40
19
58

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2297
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IN ( - 8 / - + CAST( NULL AS SIGNED ) * 24 )
----

skipif mysql # not compatible
query IIIIII rowsort label-2297
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IN ( - 8 / - + CAST ( NULL AS INTEGER ) * 24 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2298
SELECT ALL + 67 DIV + COUNT( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + 67 / + COUNT ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT - - CAST( NULL AS SIGNED ) * + col0 * + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT - - CAST ( NULL AS INTEGER ) * + col0 * + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - 84 * - COUNT( col0 ) FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-2300
SELECT - 84 * - COUNT ( col0 ) FROM tab1 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT DISTINCT + MIN( - 64 ) FROM tab1 AS cor0 WHERE NOT col0 * + ( - ( - col0 ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + MIN ( - 64 ) FROM tab1 AS cor0 WHERE NOT col0 * + ( - ( - col0 ) ) IS NOT NULL
----
NULL

query I rowsort
SELECT 11 * - 32 * col0 AS col1 FROM tab2 AS cor0
----
-16192
-22528
-26400

query II rowsort
SELECT ALL col1, - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 0 * + 52 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT COUNT( * ) * - + 97 AS col0 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT COUNT ( * ) * - + 97 AS col0 FROM tab2
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT ALL - col0 * - 45 * col1 + + 80 AS col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) * col2 * - 87 - - 11 <= + col0
----

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - col0 * - 45 * col1 + + 80 AS col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * col2 * - 87 - - 11 <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT + CAST( - col1 AS SIGNED ) + - 37 - 23 FROM tab1
----
-107
-65
-74

skipif mysql # not compatible
query I rowsort label-2307
SELECT + CAST ( - col1 AS INTEGER ) + - 37 - 23 FROM tab1
----
-107
-65
-74

query III rowsort
SELECT * FROM tab2 WHERE NOT + 39 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 27 * 89 * + 14 * - - 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - 43 + col0 FROM tab0
----
-3654
-4074
-630

query I rowsort
SELECT col2 * - 45 + col2 AS col2 FROM tab2
----
-1012
-1760
-2552

query I rowsort
SELECT ALL + ( 5 ) + + + 82 FROM tab0 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT 54 * - COUNT( * ) * + + MIN( ALL - col2 ) FROM tab2
----
9396

skipif mysql # not compatible
query I rowsort label-2313
SELECT 54 * - COUNT ( * ) * + + MIN ( ALL - col2 ) FROM tab2
----
9396

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT COUNT( * ) + - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2314
SELECT COUNT ( * ) + - + COUNT ( * ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT col2 DIV - 84 + - + 66 AS col1 FROM tab1 AS cor0
----
-66
-66
-67

skipif mysql # not compatible
query I rowsort label-2315
SELECT col2 / - 84 + - + 66 AS col1 FROM tab1 AS cor0
----
-66
-66
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2316
SELECT ALL - col1 / - col0 + CAST( NULL AS SIGNED ), ( - ( + + col0 ) ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif mysql # not compatible
query II rowsort label-2316
SELECT ALL - col1 / - col0 + CAST ( NULL AS INTEGER ), ( - ( + + col0 ) ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

query I rowsort
SELECT ALL + col2 + col0 * - + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT 56 + - - COUNT( * ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2318
SELECT 56 + - - COUNT ( * ) FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL + MIN( 56 ) AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL + MIN ( 56 ) AS col0 FROM tab2 AS cor0
----
56

query I rowsort
SELECT + col1 * - col0 + + - col1 AS col0 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT - ( - + COUNT( * ) ) + 1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT - ( - + COUNT ( * ) ) + 1 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - MIN( ALL col1 ) FROM tab2 AS cor0 WHERE NULL = + col0 + - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT - MIN ( ALL col1 ) FROM tab2 AS cor0 WHERE NULL = + col0 + - - 30
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2324
SELECT ALL ( - - col0 ) - - + 63 + - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL ( - - col0 ) - - + 63 + - + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 21 * - + ( + 55 ) FROM tab1, tab0 AS cor0
----
9 values hashing to a6d6bf1a6a024b08cc1a7df15770b2c8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT + SUM( + + 97 ) / + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT + SUM ( + + 97 ) / + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2327
SELECT ALL * FROM tab0 WHERE + - col0 * + - CAST( NULL AS SIGNED ) * - 52 / - col2 - + + col2 + - col1 = + + 83
----

skipif mysql # not compatible
query III rowsort label-2327
SELECT ALL * FROM tab0 WHERE + - col0 * + - CAST ( NULL AS INTEGER ) * - 52 / - col2 - + + col2 + - col1 = + + 83
----

query II rowsort
SELECT ALL + - col0 + + col1 AS col1, col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - col1 * + 83 * + + col0 FROM tab2
----
-16360960
-24190350
-4478514

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT - + col2 * - + col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 41
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - 92 * - - col2, - col0 - - 40, col2 * - col1 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2334
SELECT ALL + CAST( - col1 AS SIGNED ) * - col1 AS col2 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL + CAST ( - col1 AS INTEGER ) * - col1 AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT + col2 + - 53 + - - 75 FROM tab2 AS cor0
----
45
62
80

query I rowsort
SELECT ALL - + col0 * - 90 + 21 + + - col0 - - col0 FROM tab1 AS cor0
----
4611
7671
8211

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL = col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT DISTINCT - col2 * CAST( - CAST( - 21 AS SIGNED ) AS SIGNED ) * + - 45 * - - col1 + col0 AS col0 FROM tab0 AS cor0
----
198537
3597630
93652

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - col2 * CAST ( - CAST ( - 21 AS INTEGER ) AS INTEGER ) * + - 45 * - - col1 + col0 AS col0 FROM tab0 AS cor0
----
198537
3597630
93652

query I rowsort
SELECT - 47 * - 40 AS col1 FROM tab2 AS cor0
----
1880
1880
1880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2340
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( 61 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) + - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( 61 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + - 89 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + col0 + + col2 NOT IN ( + col2, 8 * - - ( + ( col0 ) ) + + + col1 - - + col2 * + - col1 * - + 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT ALL COUNT( * ) AS col1, 69 AS col0 FROM tab1
----
3
69

skipif mysql # not compatible
query II rowsort label-2342
SELECT ALL COUNT ( * ) AS col1, 69 AS col0 FROM tab1
----
3
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT DISTINCT + - COUNT( DISTINCT + + col0 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2344
SELECT DISTINCT + - COUNT ( DISTINCT + + col0 ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + - col0 + + 74 - - col2 AS col0 FROM tab0 AS cor0
----
-3
106
76

query I rowsort
SELECT - - 58 + - + col1 AS col2 FROM tab1 AS cor0
----
11
44
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2347
SELECT COUNT( * ) + COUNT( * ) DIV 4 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2347
SELECT COUNT ( * ) + COUNT ( * ) / 4 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT ALL ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT - - 52 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col2 <> ( 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE - 13 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query II rowsort
SELECT - col1 - - - 26, 56 AS col0 FROM tab1 AS cor0
----
-31
56
-40
56
-73
56

query I rowsort
SELECT ALL - col1 + + - col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT col0 + + col0 - col0 DIV + col1 AS col1 FROM tab0 cor0
----
170
30
97

skipif mysql # not compatible
query I rowsort label-2355
SELECT col0 + + col0 - col0 / + col1 AS col1 FROM tab0 cor0
----
170
30
97

query I rowsort
SELECT - + col0 + - 54 + + 20 AS col1 FROM tab2 AS cor0
----
-109
-80
-98

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE - + ( col2 ) >= - 13 * + ( - 62 ) * - + 65 * - col0 + + col1
----

query II rowsort
SELECT DISTINCT col1, ( - - col2 ) * 30 - + - 26 AS col0 FROM tab2
----
51
716
67
1766
77
1226

query I rowsort
SELECT DISTINCT + col1 + + col2 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - col1 + - - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2360
SELECT ALL COUNT( * ), 75 AS col1 FROM tab2
----
3
75

skipif mysql # not compatible
query II rowsort label-2360
SELECT ALL COUNT ( * ), 75 AS col1 FROM tab2
----
3
75

query I rowsort
SELECT - + ( - 57 ) FROM tab0 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT col1 * col0 * 63 AS col2 FROM tab1
----
26775
269451
44982

query II rowsort
SELECT col1 AS col1, 42 AS col1 FROM tab0 AS cor0
----
1
42
21
42
81
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT COUNT( * ) * + MAX( - col2 ) + COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT COUNT ( * ) * + MAX ( - col2 ) + COUNT ( * ) FROM tab0
----
-27

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab0 cor1 ON NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + ( - - COUNT( - + 87 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2368
SELECT + ( - - COUNT ( - + 87 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT DISTINCT + + COUNT( * ) + + - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT + + COUNT ( * ) + + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT CAST( + 79 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-2370
SELECT CAST ( + 79 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT - - col2 * - 43 * + + col1 FROM tab2 cor0
----
-132440
-167098
-50439

query I rowsort
SELECT - col1 + - 49 AS col2 FROM tab0 AS cor0
----
-130
-50
-70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + 18
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT DISTINCT - 80 * col1 DIV - 70 + - col2 AS col0 FROM tab2 cor0
----
18
35
48

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - 80 * col1 / - 70 + - col2 AS col0 FROM tab2 cor0
----
18
35
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col1 FROM tab1, tab2 AS cor0
----
56

query I rowsort
SELECT ALL 71 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query II rowsort
SELECT ALL 22 AS col0, col0 * + col0 FROM tab2
----
22
2116
22
4096
22
5625

onlyif mysql # aggregate syntax: 
query II rowsort label-2378
SELECT DISTINCT + 6, + SUM( DISTINCT 35 ) AS col1 FROM tab0
----
6
35

skipif mysql # not compatible
query II rowsort label-2378
SELECT DISTINCT + 6, + SUM ( DISTINCT 35 ) AS col1 FROM tab0
----
6
35

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 16 + + + col1 BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col0 + - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT 23 * + + 25 * - - col1 + + col0 FROM tab2 AS cor0
----
29371
38600
44339

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2382
SELECT * FROM tab0 AS cor0 WHERE CAST( - 23 AS SIGNED ) / + 32 * 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2382
SELECT * FROM tab0 AS cor0 WHERE CAST ( - 23 AS INTEGER ) / + 32 * 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 81 * + col0 + col2 AS col2 FROM tab2
----
-3703
-5144
-6017

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2385
SELECT - col0 + + + 39 DIV 8 + + CAST( + + col2 AS SIGNED ) AS col1 FROM tab0
----
-73
36
6

skipif mysql # not compatible
query I rowsort label-2385
SELECT - col0 + + + 39 / 8 + + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0
----
-73
36
6

query II rowsort
SELECT ALL + 59 AS col0, 51 AS col2 FROM tab2
----
59
51
59
51
59
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT ALL COUNT( * ) DIV + 46 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL COUNT ( * ) / + 46 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

query I rowsort
SELECT DISTINCT + - col2 * - + 2 AS col2 FROM tab2 AS cor0
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 1 * + ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT SUM( col0 ) col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2390
SELECT SUM ( col0 ) col1 FROM tab2 cor0
----
185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + - col1 + - - 75 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT - 31 DIV + col0 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2392
SELECT - 31 / + col0 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT - SUM( + ( - col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT - SUM ( + ( - col2 ) ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2394
SELECT - 50 * CAST( MAX( ALL 59 ) AS DECIMAL ) / + COUNT( * ) + CAST( NULL AS SIGNED ), + 35 * + 24 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
840

skipif mysql # not compatible
query II rowsort label-2394
SELECT - 50 * CAST ( MAX ( ALL 59 ) AS REAL ) / + COUNT ( * ) + CAST ( NULL AS INTEGER ), + 35 * + 24 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
840

onlyif mysql # DIV for integer division: 
query II rowsort label-2395
SELECT ALL + 34, col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
34
0
34
1
34
1

skipif mysql # not compatible
query II rowsort label-2395
SELECT ALL + 34, col1 / + col0 AS col2 FROM tab2 AS cor0
----
34
0
34
1
34
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

query II rowsort
SELECT DISTINCT - + 11, + col2 FROM tab1 AS cor0
----
-11
59
-11
68
-11
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT + COUNT( - - ( - col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT + COUNT ( - - ( - col0 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2399
SELECT - CAST( + MIN( ALL + 92 ) AS SIGNED ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-2399
SELECT - CAST ( + MIN ( ALL + 92 ) AS INTEGER ) FROM tab2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2400
SELECT ALL * FROM tab0 WHERE - + 44 <> + ( - CAST( col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2400
SELECT ALL * FROM tab0 WHERE - + 44 <> + ( - CAST ( col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT - SUM( - 32 ) * - 81 FROM tab0
----
-7776

skipif mysql # not compatible
query I rowsort label-2401
SELECT - SUM ( - 32 ) * - 81 FROM tab0
----
-7776

onlyif mysql # aggregate syntax: 
query II rowsort label-2402
SELECT + SUM( - col1 ) AS col1, + 43 FROM tab0
----
-103
43

skipif mysql # not compatible
query II rowsort label-2402
SELECT + SUM ( - col1 ) AS col1, + 43 FROM tab0
----
-103
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT 38 * - + SUM( ALL + 64 ) FROM tab2
----
-7296

skipif mysql # not compatible
query I rowsort label-2403
SELECT 38 * - + SUM ( ALL + 64 ) FROM tab2
----
-7296

query I rowsort
SELECT DISTINCT ( - ( - 22 ) ) FROM tab0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT col0 * CAST( 97 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1455
8439
9409

skipif mysql # not compatible
query I rowsort label-2405
SELECT col0 * CAST ( 97 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1455
8439
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT ALL - - CAST( + 81 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL - - CAST ( + 81 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT 85 * + col1 + - col2 FROM tab2
----
4312
5637
6505

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) <= + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2409
SELECT + 53 AS col1, COUNT( + 88 ) AS col2 FROM tab1 AS cor0
----
53
3

skipif mysql # not compatible
query II rowsort label-2409
SELECT + 53 AS col1, COUNT ( + 88 ) AS col2 FROM tab1 AS cor0
----
53
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT COUNT( - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2410
SELECT COUNT ( - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col0 + + - col0 col0, col2 FROM tab0 AS cor0
----
690
47
783
10
9506
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 52 col1, - col1 FROM tab0 AS cor0
----
52
-1
52
-21
52
-81

query I rowsort
SELECT DISTINCT + - col0 + 89 FROM tab0 AS cor0
----
-8
2
74

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + col1 >= col2 + - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT + MAX( DISTINCT - 25 ) AS col2 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + MAX ( DISTINCT - 25 ) AS col2 FROM tab0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT ALL AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT 65 + 8 FROM tab0 cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT DISTINCT - COUNT( * ) + COUNT( * ) - SUM( DISTINCT + 52 ) AS col2 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) - SUM ( DISTINCT + 52 ) AS col2 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE ( NOT + - col1 <= + 80 )
----

query I rowsort
SELECT - - 21 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT + 52 AS col2, col0 AS col1 FROM tab1
----
52
51
52
85
52
91

query I rowsort
SELECT ALL - ( - col0 ) - + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL + SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL + SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - - col0 * 48 FROM tab2 AS cor0
----
2208
3072
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT 4 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2425
SELECT 4 / + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT col2 DIV - 19 AS col2 FROM tab1 AS cor0
----
-3
-3
-5

skipif mysql # not compatible
query I rowsort label-2426
SELECT col2 / - 19 AS col2 FROM tab1 AS cor0
----
-3
-3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + + 4 * - + MAX( DISTINCT col0 ) FROM tab2 AS cor0
----
-300

skipif mysql # not compatible
query I rowsort label-2427
SELECT + + 4 * - + MAX ( DISTINCT col0 ) FROM tab2 AS cor0
----
-300

query I rowsort
SELECT ALL - col1 * - 86 AS col1 FROM tab2 AS cor0
----
4386
5762
6622

query II rowsort
SELECT - - 20, + 85 AS col2 FROM tab0 AS cor0
----
20
85
20
85
20
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT 99 DIV - + col0 col2 FROM tab0
----
-1
-1
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2430
SELECT 99 / - + col0 col2 FROM tab0
----
-1
-1
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2431
SELECT DISTINCT CAST( + col1 AS SIGNED ) * 27 AS col1 FROM tab1
----
1269
135
378

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * 27 AS col1 FROM tab1
----
1269
135
378

query I rowsort
SELECT DISTINCT + 79 * + col0 FROM tab0
----
1185
6873
7663

query I rowsort
SELECT ALL + 35 * + col1 AS col0 FROM tab0
----
2835
35
735

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / - + 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT + + MAX( - - 93 ) col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2435
SELECT + + MAX ( - - 93 ) col0 FROM tab0 AS cor0
----
93

query II rowsort
SELECT DISTINCT col0 AS col2, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + col1 col2 FROM tab1 AS cor0
----
-182
-20
-2162

query I rowsort
SELECT + 71 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT - - COUNT( * ) * 57 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-2439
SELECT - - COUNT ( * ) * 57 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
174

query I rowsort
SELECT - + ( - - col1 ) * + + 88 + + 10 AS col2 FROM tab1 cor0
----
-1222
-4126
-430

query I rowsort
SELECT ALL - col0 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
-430
-4324
-728

query I rowsort
SELECT ALL 93 FROM tab2 cor0 WHERE NOT NULL <= ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2443
SELECT DISTINCT - 73 DIV - 37 + - col0 AS col2 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT - 73 / - 37 + - col0 AS col2 FROM tab0 AS cor0
----
-14
-86
-96

query II rowsort
SELECT ALL - col0 * 41 AS col2, - 51 AS col1 FROM tab1 cor0
----
-2091
-51
-3485
-51
-3731
-51

query I rowsort
SELECT ALL + + 34 - - 84 FROM tab1 AS cor0
----
118
118
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2446
SELECT ALL COUNT( * ) + - + MIN( DISTINCT - 74 ) + - COUNT( * ) * + MAX( 94 ), COUNT( DISTINCT + 77 ) AS col0 FROM tab1
----
-205
1

skipif mysql # not compatible
query II rowsort label-2446
SELECT ALL COUNT ( * ) + - + MIN ( DISTINCT - 74 ) + - COUNT ( * ) * + MAX ( 94 ), COUNT ( DISTINCT + 77 ) AS col0 FROM tab1
----
-205
1

query II rowsort
SELECT ALL 27, col0 + + col1 AS col0 FROM tab0
----
27
108
27
96
27
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT - col0 / - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2448
SELECT - col0 / - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE 28 BETWEEN NULL AND + 33 * - col1
----

skipif mysql # not compatible
query I rowsort label-2449
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE 28 BETWEEN NULL AND + 33 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2450
SELECT COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE + 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - + col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2453
SELECT + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 91 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2455
SELECT ALL - - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL - - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL ( + + col1 ) * - + col1 AS col0 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT 93 FROM tab0 cor0
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT 69 DIV 26 * - 74 FROM tab0
----
-148
-148
-148

skipif mysql # not compatible
query I rowsort label-2458
SELECT 69 / 26 * - 74 FROM tab0
----
-148
-148
-148

onlyif mysql # DIV for integer division: 
query III rowsort label-2459
SELECT ALL * FROM tab0 WHERE 80 DIV col0 IN ( + col2, 5, + + 93 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-2459
SELECT ALL * FROM tab0 WHERE 80 / col0 IN ( + col2, 5, + + 93 )
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT ALL 36 DIV - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL 36 / - col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 15 * - 0 = + + 90 + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT MIN( ALL + 44 ) + - MAX( ALL - col1 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2462
SELECT MIN ( ALL + 44 ) + - MAX ( ALL - col1 ) FROM tab0 AS cor0
----
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + ( - + col2 ) + + col0 + + 54 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT + 29 * - MIN( col0 ) AS col2 FROM tab0
----
-435

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + 29 * - MIN ( col0 ) AS col2 FROM tab0
----
-435

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2465
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif mysql # not compatible
query IIIIII rowsort label-2465
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL - - COUNT( * ) + 12 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - - COUNT ( * ) + 12 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2467
SELECT 36 DIV col1 * - 46 FROM tab1 AS cor0
----
-322
-92
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT 36 / col1 * - 46 FROM tab1 AS cor0
----
-322
-92
0

query I rowsort
SELECT ALL - + col1 + - 82 FROM tab1 AS cor0
----
-129
-87
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT DISTINCT - COUNT( * ) DIV + 77 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - COUNT ( * ) / + 77 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT + COUNT( * ) * + + 90 AS col2 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-2470
SELECT + COUNT ( * ) * + + 90 AS col2 FROM tab0 AS cor0
----
270

query I rowsort
SELECT ALL - + col1 + + 78 AS col0 FROM tab0 AS cor0
----
-3
57
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT col2 - + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-2472
SELECT col2 - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT - 47 - - + 61 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT + col2 - + ( - - col0 ) FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2475
SELECT CAST( NULL AS SIGNED ) - ( - col0 ) * col0 * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT CAST ( NULL AS INTEGER ) - ( - col0 ) * col0 * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE col1 IN ( - col2 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col0 FROM tab2 WHERE + 47 * 90 IS NOT NULL
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT DISTINCT - MAX( DISTINCT + 41 ) col0 FROM tab1
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2478
SELECT DISTINCT - MAX ( DISTINCT + 41 ) col0 FROM tab1
----
-41

query I rowsort
SELECT DISTINCT + col2 + col2 + col0 + - - col2 + col0 FROM tab0
----
171
204
491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT - + 58 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT - + 58 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL + - COUNT( ALL + 54 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL + - COUNT ( ALL + 54 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2482
SELECT + col1 DIV 69 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2482
SELECT + col1 / 69 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( - + 58 ) FROM tab1
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT - ( + COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT - ( + COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT + SUM( + 47 ) FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT + SUM ( + 47 ) FROM tab2
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 23 AS col0 FROM tab2 cor0
----
23
23
40
23
58
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 85 * - + 90 col0 FROM tab2 AS cor0
----
-7650
-7650
-7650

query II rowsort
SELECT col2 AS col0, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 95 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 50 BETWEEN NULL AND col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + col2 + + - col1 + + 6 FROM tab2 WHERE NULL = + 85
----

query I rowsort
SELECT + 53 + + col2 * 91 + + ( - 2 ) AS col1 FROM tab1
----
5420
6239
8787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT - CAST( col0 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2494
SELECT - CAST ( col0 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT - MIN( ALL 11 ) + - 4 AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT - MIN ( ALL 11 ) + - 4 AS col0 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab1 WHERE NOT + 37 + - col0 = + 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2498
SELECT DISTINCT - 40 DIV + MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT - 40 / + MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 30 * - col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 30 * - col0 FROM tab2 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / + 49 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col1 + - col0 - + 76 AS col0, 49 FROM tab2 AS cor0
----
-63
49
-71
49
-84
49

query I rowsort
SELECT + 6 AS col1 FROM tab1 AS cor0 WHERE col2 * - + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT + MIN( - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2503
SELECT + MIN ( - col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE - 27 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * + + col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2507
SELECT + CAST( + + AVG ( 79 ) AS SIGNED ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-2507
SELECT + CAST ( + + AVG ( 79 ) AS INTEGER ) FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT COUNT( * ) * 46 AS col2 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT COUNT ( * ) * 46 AS col2 FROM tab0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT - CAST( + + col2 AS SIGNED ) * + 51 FROM tab1
----
-3009
-3468
-4896

skipif mysql # not compatible
query I rowsort label-2509
SELECT - CAST ( + + col2 AS INTEGER ) * + 51 FROM tab1
----
-3009
-3468
-4896

query II rowsort
SELECT ALL - 72 AS col2, col2 FROM tab1
----
-72
59
-72
68
-72
96

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab1 cor0 WHERE NOT NULL >= 68
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2512
SELECT + - COUNT( * ) col1, CAST( NULL AS SIGNED ) + 37 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2512
SELECT + - COUNT ( * ) col1, CAST ( NULL AS INTEGER ) + 37 FROM tab2 AS cor0
----
-3
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - 37 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( 69 ) * + 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT MAX( col0 ) * 32 AS col2 FROM tab0 AS cor0
----
3104

skipif mysql # not compatible
query I rowsort label-2515
SELECT MAX ( col0 ) * 32 AS col2 FROM tab0 AS cor0
----
3104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2516
SELECT ALL ( - - col2 ) col0, + 25 - CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2516
SELECT ALL ( - - col2 ) col0, + 25 - CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT DISTINCT ( + - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT ( + - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2
----
-51
-67
-77

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NOT - 68 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL - MAX( ALL + + ( + col2 ) ) * + - 83 FROM tab0 AS cor0 WHERE + col1 / - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - MAX ( ALL + + ( + col2 ) ) * + - 83 FROM tab0 AS cor0 WHERE + col1 / - col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + col0 IS NOT NULL
----

query I rowsort
SELECT - - 0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( + - col1 ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT - - col1 <= - 65
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NOT - 47 >= + col2 * - 32
----

query II rowsort
SELECT ALL + 27, col2 AS col0 FROM tab2
----
27
23
27
40
27
58

query I rowsort
SELECT DISTINCT + - col2 + - col0 + - ( 69 ) AS col0 FROM tab2 AS cor0
----
-138
-173
-202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * + 36 col1 FROM tab0
----
3456

query I rowsort
SELECT ALL 83 AS col2 FROM tab0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col0 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2530
SELECT 14 DIV + CAST( col0 AS SIGNED ) + - col1 * col1 AS col2 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-2530
SELECT 14 / + CAST ( col0 AS INTEGER ) + - col1 * col1 AS col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL 51 AS col0 FROM tab2 WHERE NOT ( col1 + - ( 78 ) ) >= ( - 84 + ( col0 ) * + col1 )
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2532
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) - col1 * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2532
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) - col1 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT + 48 + SUM( DISTINCT + 42 ) FROM tab1 WHERE NOT ( 77 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT + 48 + SUM ( DISTINCT + 42 ) FROM tab1 WHERE NOT ( 77 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT + ( SUM( ALL col1 ) ) / + 7 FROM tab2 WHERE 18 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT + ( SUM ( ALL col1 ) ) / + 7 FROM tab2 WHERE 18 >= NULL
----
NULL

query I rowsort
SELECT DISTINCT ( 23 ) + + col2 AS col2 FROM tab1
----
119
82
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT + 34 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT + 34 / - col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT - col2 DIV 54 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2537
SELECT - col2 / 54 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT MIN( + 35 ) DIV - 66 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2538
SELECT MIN ( + 35 ) / - 66 AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ALL 69 + COUNT( * ) AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL 69 + COUNT ( * ) AS col2 FROM tab1
----
72

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT MIN( + 81 ) + - 92 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-2542
SELECT MIN ( + 81 ) + - 92 FROM tab1
----
-11

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT MAX( + 74 ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT MAX ( + 74 ) AS col2 FROM tab1
----
74

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( + 40 ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT + COUNT( DISTINCT - 45 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + 89 ) BETWEEN ( 66 * + 39 ) AND NULL
----
1

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + COUNT ( DISTINCT - 45 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + 89 ) BETWEEN ( 66 * + 39 ) AND NULL
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT + ( MIN( DISTINCT 14 ) ) AS col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT + ( MIN ( DISTINCT 14 ) ) AS col0 FROM tab0 AS cor0
----
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * col2 <= - 1 + 6
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 18 * col2 FROM tab0
----
-1782
-180
-846

query I rowsort
SELECT 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + ( col0 * + col2 ) NOT BETWEEN ( 37 ) AND - col1 * 89
----

query I rowsort
SELECT DISTINCT - 64 + 81 FROM tab0 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL + MIN( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + MIN ( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT DISTINCT - ( COUNT( ALL + col2 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT - ( COUNT ( ALL + col2 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-3

query I rowsort
SELECT ALL - col2 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT COUNT( + 80 ) * + ( - COUNT( * ) ) col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 + 70 AND + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2560
SELECT DISTINCT COUNT ( + 80 ) * + ( - COUNT ( * ) ) col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 + 70 AND + col2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 8 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT 52 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT 52 >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 + - - col1 - 79 AS col2 FROM tab1
----
-51
-69
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT 30 * MAX( DISTINCT col2 ) AS col1 FROM tab0
----
2970

skipif mysql # not compatible
query I rowsort label-2565
SELECT 30 * MAX ( DISTINCT col2 ) AS col1 FROM tab0
----
2970

query I rowsort
SELECT + col2 - + 71 FROM tab2 AS cor0 WHERE 6 IS NOT NULL
----
-13
-31
-48

query I rowsort
SELECT + - 12 AS col1 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 cor0 WHERE ( NULL ) > ( - col1 / + col0 )
----

query I rowsort
SELECT - + 93 FROM tab2 cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT DISTINCT - + COUNT( - 27 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - + COUNT ( - 27 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2571
SELECT + 30 DIV - 53 - - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2571
SELECT + 30 / - 53 - - COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2572
SELECT + SUM( - col1 ) + + 14 / - ( - CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2572
SELECT + SUM ( - col1 ) + + 14 / - ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 + - - 90 - 16 FROM tab2 AS cor0
----
-1
10
28

query I rowsort
SELECT - - col1 * col0 + - - col2 + col1 * 35 AS col1 FROM tab0 AS cor0
----
231
2572
4097

query I rowsort
SELECT DISTINCT col0 + + + 87 FROM tab1 AS cor0
----
138
172
178

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( ( + - col1 ) + - col2 ) AND ( NULL )
----

query I rowsort
SELECT - + 51 AS col0 FROM tab1 cor0
----
-51
-51
-51

query I rowsort
SELECT ALL + + col1 * 83 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2579
SELECT - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2579
SELECT - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT DISTINCT - - ( + CAST( + col1 AS SIGNED ) ) - CAST( - 76 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
127
143
153

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT - - ( + CAST ( + col1 AS INTEGER ) ) - CAST ( - 76 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
127
143
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + 14 * - 9 + - col0 FROM tab2 AS cor0
----
-23
-172
-40
-190
-58
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT 3 * - SUM( + ( - col1 ) ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-2582
SELECT 3 * - SUM ( + ( - col1 ) ) FROM tab2
----
585

query II rowsort
SELECT DISTINCT + col2 * col1, col2 + col1 AS col1 FROM tab0
----
210
31
3807
128
99
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT 44 * - - MAX( DISTINCT - col2 ) FROM tab2
----
-1012

skipif mysql # not compatible
query I rowsort label-2584
SELECT 44 * - - MAX ( DISTINCT - col2 ) FROM tab2
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL - SUM( + col1 ) + - COUNT( * ) FROM tab2 WHERE NOT NULL IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL - SUM ( + col1 ) + - COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( + col2 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN - 49 AND - 30 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL 18 * + - MIN( - col2 ) FROM tab1
----
1728

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 18 * + - MIN ( - col2 ) FROM tab1
----
1728

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 * + col2 - 37 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT 32 - - col2 IS NULL )
----

query I rowsort
SELECT DISTINCT + col1 * - 25 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT ALL - MAX( DISTINCT - + 69 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - MAX ( DISTINCT - + 69 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL COUNT( * ) + - 41 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL COUNT ( * ) + - 41 FROM tab0
----
-38

query I rowsort
SELECT DISTINCT + - col2 + col2 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT - - 43 AS col1 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT + 72 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 63 + + col1 AND 81
----

query I rowsort
SELECT ALL - - 39 + col2 FROM tab0 AS cor0
----
138
49
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT DISTINCT 73 + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT 73 + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
70

query II rowsort
SELECT DISTINCT col1, + col0 * 51 FROM tab1 AS cor0
----
14
2601
47
4641
5
4335

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT + 83 * - COUNT( * ) FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-2601
SELECT + 83 * - COUNT ( * ) FROM tab0
----
-249

query III rowsort
SELECT * FROM tab0 WHERE NULL = ( + 15 * col1 / ( - col0 ) + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2603
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2604
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + CAST( ( + - col2 ) AS DECIMAL ) > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2604
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + CAST ( ( + - col2 ) AS REAL ) > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col0 ) * - col0 AS col0 FROM tab0
----
-225
-7569
-9409

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( - - ( + col2 ) ) < 42 )
----
15
81
47
97
1
99

query II rowsort
SELECT ALL - col2 + + ( col0 ) + - col0 AS col2, col2 + 52 AS col1 FROM tab0
----
-10
62
-47
99
-99
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2609
SELECT DISTINCT + ( CAST( - 23 AS SIGNED ) ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT + ( CAST ( - 23 AS INTEGER ) ) FROM tab1
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / + col1 + + col0 + + col0 * + 29 + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > col1
----

query I rowsort
SELECT + - 17 FROM tab0 cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT ALL CAST( NULL AS SIGNED ) - - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL CAST ( NULL AS INTEGER ) - - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 64 * + + col0 AS col2 FROM tab2
----
-2944
-4096
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( - col0 ) + - col0, + col2 * + - col0 + + + ( + col0 ) * - col2 col2 FROM tab0 AS cor0
----
0
-1410
0
-1740
0
-19206

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT SUM( ALL - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2616
SELECT SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 24 col0 FROM tab0 AS cor0
----
24
24
24

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL >= + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT - 7 IS NOT NULL ) )
----

query I rowsort
SELECT + col0 * - + 39 + - col0 FROM tab0 AS cor0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT SUM( - 70 ) AS col1 FROM tab1 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-2621
SELECT SUM ( - 70 ) AS col1 FROM tab1 cor0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + col0 * 76 AS col0 FROM tab0 AS cor0
----
1140
6612
7372

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2624
SELECT DISTINCT col1 * - 54 * - + 60 AS col2, - 35 * + col1 + - + CAST( col0 AS SIGNED ) FROM tab2
----
165240
-1831
217080
-2420
249480
-2759

skipif mysql # not compatible
query II rowsort label-2624
SELECT DISTINCT col1 * - 54 * - + 60 AS col2, - 35 * + col1 + - + CAST ( col0 AS INTEGER ) FROM tab2
----
165240
-1831
217080
-2420
249480
-2759

query III rowsort
SELECT ALL * FROM tab0 WHERE + 35 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2626
SELECT DISTINCT col0 FROM tab2 WHERE 62 * + ( - - CAST( NULL AS DECIMAL ) ) * + col2 = - + col1
----

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT col0 FROM tab2 WHERE 62 * + ( - - CAST ( NULL AS REAL ) ) * + col2 = - + col1
----

query I rowsort
SELECT + 44 FROM tab1 WHERE NOT NULL > ( + col0 + + 71 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT IN ( col1 )
----

query I rowsort
SELECT - ( - 87 ) AS col2 FROM tab1
----
87
87
87

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT - MIN( ALL - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2631
SELECT - MIN ( ALL - col1 ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2632
SELECT DISTINCT + - 9 AS col0, COUNT( * ) FROM tab1 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-2632
SELECT DISTINCT + - 9 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-9
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT ALL + col1 DIV - + 60 + 42 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
42
42
42

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL + col1 / - + 60 + 42 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT col1 * + - col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - 96 * + + col2 FROM tab1 cor0
----
-5664
-6528
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - 92 col1 FROM tab0
----
1380
8004
8924

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2638
SELECT DISTINCT + - 98 - + 75 + + 34 * - 30 DIV + + COUNT( * ) AS col1, MAX( DISTINCT col1 ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-513
77

skipif mysql # not compatible
query II rowsort label-2638
SELECT DISTINCT + - 98 - + 75 + + 34 * - 30 / + + COUNT ( * ) AS col1, MAX ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-513
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL - - MAX( - col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL - - MAX ( - col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT - 64 + 63 * col0 AS col2 FROM tab2 AS cor0
----
2834
3968
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT DISTINCT - + col1 * - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT - + col1 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT - col2 + - 38 AS col1 FROM tab0 AS cor0
----
-137
-48
-85

query III rowsort
SELECT * FROM tab0 WHERE - + col2 * col2 + - col0 IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT - ( COUNT( * ) ) * - MIN( col2 ) + + + COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-2646
SELECT - ( COUNT ( * ) ) * - MIN ( col2 ) + + + COUNT ( * ) FROM tab1
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2647
SELECT DISTINCT 86 * - CAST( - SUM( ALL - 49 ) AS SIGNED ) FROM tab1
----
-12642

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT 86 * - CAST ( - SUM ( ALL - 49 ) AS INTEGER ) FROM tab1
----
-12642

onlyif mysql # DIV for integer division: 
query I rowsort label-2648
SELECT - 34 DIV - col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-2648
SELECT - 34 / - col1 FROM tab1
----
0
2
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2649
SELECT + col2 DIV + col0 AS col0 FROM tab0 WHERE - - 71 - - col2 NOT IN ( col1 )
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2649
SELECT + col2 / + col0 AS col0 FROM tab0 WHERE - - 71 - - col2 NOT IN ( col1 )
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL + COUNT( + - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL + COUNT ( + - col0 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT ALL col2 * 54 + - 24 AS col0, col1 AS col2 FROM tab1
----
3162
5
3648
47
5160
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2652
SELECT DISTINCT 79 + + col1, col2 + - - CAST( NULL AS SIGNED ) + 98 FROM tab0 AS cor0 WHERE col0 = col2
----

skipif mysql # not compatible
query II rowsort label-2652
SELECT DISTINCT 79 + + col1, col2 + - - CAST ( NULL AS INTEGER ) + 98 FROM tab0 AS cor0 WHERE col0 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT + - COUNT( + col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2653
SELECT + - COUNT ( + col0 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - col2 + - col2 * + 13 AS col1 FROM tab2 AS cor0
----
-322
-560
-812

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 0 < - 47 * ( + col0 ) + + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 + - col2 * + - 88 col2 FROM tab1 AS cor0
----
5362
6166
8550

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 <= NULL
----

query I rowsort
SELECT col2 * - + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL 65 * + MAX( DISTINCT - 42 ) FROM tab2
----
-2730

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL 65 * + MAX ( DISTINCT - 42 ) FROM tab2
----
-2730

query II rowsort
SELECT ALL 30, col2 * - ( + + 31 ) AS col0 FROM tab1 AS cor0
----
30
-1829
30
-2108
30
-2976

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT + COUNT( * ), 41 col1 FROM tab0 AS cor0
----
3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2661
SELECT + COUNT ( * ), 41 col1 FROM tab0 AS cor0
----
3
41

query II rowsort
SELECT DISTINCT + col1, - col0 - + col2 FROM tab2 cor0
----
51
-69
67
-133
77
-104

query II rowsort
SELECT col0, + col0 + col2 + + col0 AS col1 FROM tab1 AS cor0
----
51
198
85
229
91
250

query I rowsort
SELECT ALL - 93 FROM tab0 WHERE NULL IS NULL
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT MAX( DISTINCT col1 ) FROM tab2 WHERE NOT col1 + col2 + + 71 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT MAX ( DISTINCT col1 ) FROM tab2 WHERE NOT col1 + col2 + + 71 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT + COUNT( + col2 ), 23 AS col2 FROM tab0
----
3
23

skipif mysql # not compatible
query II rowsort label-2666
SELECT + COUNT ( + col2 ), 23 AS col2 FROM tab0
----
3
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2667
SELECT + MAX( CAST( - 75 AS SIGNED ) ) AS col2 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2667
SELECT + MAX ( CAST ( - 75 AS INTEGER ) ) AS col2 FROM tab1
----
-75

query I rowsort
SELECT col1 - + 75 FROM tab1 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col2 + + 28 * col0 * + col2 AS col2 FROM tab0
----
19787
24370
268983

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 24 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2671
SELECT ALL COUNT( * ) + + + 12 + + CAST( + + MAX( + 61 ) AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NULL < col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2671
SELECT ALL COUNT ( * ) + + + 12 + + CAST ( + + MAX ( + 61 ) AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NULL < col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2672
SELECT ALL - 18 DIV - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL - 18 / - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT + + col2 * - + 31 FROM tab2 AS cor0
----
-1240
-1798
-713

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT - col0 DIV + - 15 AS col1 FROM tab1 AS cor0
----
3
5
6

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - col0 / + - 15 AS col1 FROM tab1 AS cor0
----
3
5
6

query I rowsort
SELECT 94 - - ( - + ( - ( - - col0 ) ) ) * - col1 FROM tab0
----
-1121
-1733
-3

query I rowsort
SELECT col1 * + col1 + + - col2 FROM tab1
----
-34
100
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL MAX( DISTINCT + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL MAX ( DISTINCT + col2 ) FROM tab1
----
96

query I rowsort
SELECT ALL 97 * 99 * - 95 AS col2 FROM tab0
----
-912285
-912285
-912285

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 - - col1 + - + col0 * + col2 >= - col2
----

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT NULL <= - - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2682
SELECT ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - ( col2 ) * - - 29 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 * + 71 ) NOT IN ( 76 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT 39 + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT 39 + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT - - COUNT( * ) * + + 62 AS col1 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-2685
SELECT - - COUNT ( * ) * + + 62 AS col1 FROM tab0 AS cor0
----
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 96 col1 FROM tab0 cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL + - SUM( - 77 ) AS col1 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL + - SUM ( - 77 ) AS col1 FROM tab2 AS cor0
----
231

query II rowsort
SELECT DISTINCT col0, col0 - 20 FROM tab1
----
51
31
85
65
91
71

query II rowsort
SELECT ALL + col0, - col0 AS col1 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT DISTINCT + col2 + + 37 FROM tab1
----
105
133
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2691
SELECT DISTINCT CAST( 30 AS SIGNED ) AS col2, + SUM( - col2 ) col0 FROM tab2
----
30
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2691
SELECT DISTINCT CAST ( 30 AS INTEGER ) AS col2, + SUM ( - col2 ) col0 FROM tab2
----
30
-121

query I rowsort
SELECT ALL col1 - + col2 * + col0 + + ( - 10 ) AS col1 FROM tab1 WHERE NOT - col0 NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2693
SELECT * FROM tab0 WHERE NOT - 68 + col0 = CAST( - + col2 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2693
SELECT * FROM tab0 WHERE NOT - 68 + col0 = CAST ( - + col2 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2695
SELECT DISTINCT + + 51 * + MIN( DISTINCT 28 ) + - - 38 + MIN( ALL CAST( - - 95 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
1561

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT + + 51 * + MIN ( DISTINCT 28 ) + - - 38 + MIN ( ALL CAST ( - - 95 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
1561

query I rowsort
SELECT + ( - + ( + - ( + col2 ) ) ) FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT col2 AS col1, 45 FROM tab1 AS cor0
----
59
45
68
45
96
45

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT COUNT( - ( - 93 ) ) * + 6 AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-2699
SELECT COUNT ( - ( - 93 ) ) * + 6 AS col0 FROM tab2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT DISTINCT AVG ( + col1 ) / CAST( NULL AS SIGNED ) + + 47 + SUM( + col2 ) FROM tab0 WHERE 71 BETWEEN NULL AND - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT AVG ( + col1 ) / CAST ( NULL AS INTEGER ) + + 47 + SUM ( + col2 ) FROM tab0 WHERE 71 BETWEEN NULL AND - + col2
----
NULL

query I rowsort
SELECT DISTINCT col0 + - - 76 + - - col0 + + col2 FROM tab2
----
191
244
284

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT + COUNT( * ) + + - MAX( DISTINCT ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2702
SELECT + COUNT ( * ) + + - MAX ( DISTINCT ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT ALL MIN( ALL - + 7 ) + - + 55 AS col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL MIN ( ALL - + 7 ) + - + 55 AS col1 FROM tab2 AS cor0
----
-62

query II rowsort
SELECT - 20 + + - col0 AS col2, col2 FROM tab1 AS cor0
----
-105
59
-111
68
-71
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT - ( MIN( ALL 60 ) ) + - - 69 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2705
SELECT - ( MIN ( ALL 60 ) ) + - - 69 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-2706
SELECT DISTINCT - 51 + col1 AS col0, + col1 DIV col1 FROM tab1 AS cor0
----
-37
1
-4
1
-46
1

skipif mysql # not compatible
query II rowsort label-2706
SELECT DISTINCT - 51 + col1 AS col0, + col1 / col1 FROM tab1 AS cor0
----
-37
1
-4
1
-46
1

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE 17 + + + 64 IS NULL
----

query I rowsort
SELECT ALL + 12 + - col0 - col2 + + + col1 * - + 11 FROM tab0 AS cor0
----
-195
-316
-941

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE ( - + 18 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT + MIN( DISTINCT - - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + MIN ( DISTINCT - - col1 ) FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2712
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2712
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2713
SELECT ALL - + col1 FROM tab0 WHERE NOT NULL BETWEEN ( 44 ) AND - CAST( + + col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL - + col1 FROM tab0 WHERE NOT NULL BETWEEN ( 44 ) AND - CAST ( + + col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT ALL + 87 * - col2 * + + 80 * - col0 - - ( col1 ) FROM tab0
----
4906881
6055221
66836881

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT + MAX( col0 ) - - COUNT( col1 ) AS col2 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-2716
SELECT + MAX ( col0 ) - - COUNT ( col1 ) AS col2 FROM tab1
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-2717
SELECT ALL col1 * + 94 * - + 24 AS col2, col1 - + col1 DIV - col1 FROM tab1
----
-106032
48
-11280
6
-31584
15

skipif mysql # not compatible
query II rowsort label-2717
SELECT ALL col1 * + 94 * - + 24 AS col2, col1 - + col1 / - col1 FROM tab1
----
-106032
48
-11280
6
-31584
15

query I rowsort
SELECT ALL + + col1 + - 70 - - col0 - - 59 AS col1 FROM tab2 cor0
----
130
131
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2719
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + col1 AS SIGNED ) * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2719
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + col1 AS INTEGER ) * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 61 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2721
SELECT MAX( ALL - + col0 ) AS col1, + CAST( + 96 AS SIGNED ) col1 FROM tab2 cor0
----
-46
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2721
SELECT MAX ( ALL - + col0 ) AS col1, + CAST ( + 96 AS INTEGER ) col1 FROM tab2 cor0
----
-46
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT MIN( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT MIN ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT col0 * 24 DIV + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 42 + + + 89 IN ( + ( + - 32 ) )
----
408
46
87

skipif mysql # not compatible
query I rowsort label-2723
SELECT col0 * 24 / + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 42 + + + 89 IN ( + ( + - 32 ) )
----
408
46
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT ALL - + ( col0 ) + - CAST( - - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 >= col0
----

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - + ( col0 ) + - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 >= col0
----

query II rowsort
SELECT DISTINCT + ( + 2 ) AS col0, - col2 FROM tab1 AS cor0
----
2
-59
2
-68
2
-96

query I rowsort
SELECT + col2 + - col1 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL col0 * - 79 FROM tab0 AS cor0
----
-1185
-6873
-7663

query I rowsort
SELECT + - col2 * col0 * + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN NULL AND + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT DISTINCT + MIN( ALL col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + MIN ( ALL col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT + 46 DIV + 19 col1 FROM tab2 WHERE NOT + 63 <= ( - ( col0 ) )
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2731
SELECT + 46 / + 19 col1 FROM tab2 WHERE NOT + 63 <= ( - ( col0 ) )
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL COUNT( * ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2732
SELECT ALL COUNT ( * ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL col1 * + col2 FROM tab1 WHERE + - col2 IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT + 34 AS col2 FROM tab1 WHERE NOT NULL <> + col0
----

query II rowsort
SELECT 77, col2 FROM tab0
----
77
10
77
47
77
99

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT + ( 81 ) * - COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + ( 81 ) * - COUNT ( * ) FROM tab0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + ( + + 50 ), col1 col0 FROM tab2 AS cor0
----
101
51
117
67
127
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT ALL + col0 DIV + 95 col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2739
SELECT ALL + col0 / + 95 col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT DISTINCT 68 + - - MAX( + 28 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT 68 + - - MAX ( + 28 ) FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT SUM( ALL - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT SUM ( ALL - col2 ) FROM tab1
----
-223

query I rowsort
SELECT - 46 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT COUNT( * ) * - + 30, COUNT( DISTINCT 28 ) * 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-270
49

skipif mysql # not compatible
query II rowsort label-2743
SELECT COUNT ( * ) * - + 30, COUNT ( DISTINCT 28 ) * 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-270
49

query I rowsort
SELECT - 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE + 38 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 40 BETWEEN + col2 AND + 63
----
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2747
SELECT DISTINCT - 53 / + + ( + col1 ) + - ( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT - 53 / + + ( + col1 ) + - ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - col0 ) FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND - 49
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT + + COUNT( - 61 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2749
SELECT + + COUNT ( - 61 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 * - - col0 * + - col2 + - col1 * - ( col1 ) + + col2 col1 FROM tab2 AS cor0
----
-203951
-352153
-84132

query I rowsort
SELECT ALL - col0 * - col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 - + + ( - col2 ) AS col1 FROM tab2 cor0
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col2 FROM tab0 cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2754
SELECT + - col2 - + - ( - CAST( - col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-2754
SELECT + - col2 - + - ( - CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 - - col1 col0 FROM tab2
----
25
35
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT + ( + + 23 ) DIV - - 10 AS col1 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2757
SELECT + ( + + 23 ) / - - 10 AS col1 FROM tab1 AS cor0
----
2
2
2

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <= - + col2 + col2
----

query I rowsort
SELECT ALL + ( + 89 ) AS col0 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT 40 * + col2 - - - col1 + col1 AS col2 FROM tab0 AS cor0
----
1880
3960
400

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL + + SUM( ALL + + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + + SUM ( ALL + + col1 ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL + MIN( ALL col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + MIN ( ALL col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - col2 * - + 54 AS col2 FROM tab1 cor0
----
3186
3672
5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT 91 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT 91 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT - MIN( + - ( + + 10 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + + ( - + col2 ) < col2
----
10

skipif mysql # not compatible
query I rowsort label-2765
SELECT - MIN ( + - ( + + 10 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + + ( - + col2 ) < col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT DISTINCT 73 * + ( 13 ) + - col0 DIV + + ( + col1 ) + - col0 FROM tab2 AS cor0
----
873
885
903

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT 73 * + ( 13 ) + - col0 / + + ( + col1 ) + - col0 FROM tab2 AS cor0
----
873
885
903

query I rowsort
SELECT + 40 * col0 AS col1 FROM tab1 AS cor0
----
2040
3400
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + COUNT( * ) + + + 31 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2768
SELECT + COUNT ( * ) + + + 31 FROM tab2 AS cor0
----
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL AND ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 68 + + col2 + + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT - COUNT( * ) * + COUNT( * ) + + + 85 AS col0 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-2771
SELECT - COUNT ( * ) * + COUNT ( * ) + + + 85 AS col0 FROM tab2
----
76

query III rowsort
SELECT * FROM tab0 WHERE NOT 37 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT COUNT( - 52 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2773
SELECT COUNT ( - 52 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT DISTINCT - 63 * + + COUNT( ALL - col0 ) AS col2 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT - 63 * + + COUNT ( ALL - col0 ) AS col2 FROM tab2
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT col2 DIV + 5 AS col1 FROM tab1
----
11
13
19

skipif mysql # not compatible
query I rowsort label-2775
SELECT col2 / + 5 AS col1 FROM tab1
----
11
13
19

query I rowsort
SELECT ALL + col2 * - col0 + - + 28 FROM tab0 AS cor0 WHERE NOT col1 + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT + - col1 * - col2 + col0 + + col1 AS col2, col0 AS col0, col2 FROM tab1 AS cor0
----
9 values hashing to 46b49edd807f98fd0e0f52ed0b1da39a

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL - COUNT( * ) * - 87 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
783

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - COUNT ( * ) * - 87 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
783

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT + col2 + - - col2 * 67 DIV - 86 FROM tab2
----
13
6
9

skipif mysql # not compatible
query I rowsort label-2779
SELECT + col2 + - - col2 * 67 / - 86 FROM tab2
----
13
6
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT 58 + + ( + COUNT( * ) ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2780
SELECT 58 + + ( + COUNT ( * ) ) FROM tab2
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + col2 col1 FROM tab0 cor0
----
150
61
98

query I rowsort
SELECT 36 + - 32 FROM tab1 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 33 col0 FROM tab2 AS cor0
----
-100
-110
-84

query I rowsort
SELECT ALL + 73 + - col2 + col1 FROM tab1 cor0
----
-9
19
52

query I rowsort
SELECT col1 - + - 80 AS col0 FROM tab2
----
131
147
157

query I rowsort
SELECT ALL + 54 - - col0 AS col1 FROM tab0
----
141
151
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2787
SELECT ALL COUNT( * ), ( - COUNT( * ) ) DIV + 26 AS col0, + COUNT( * ) FROM tab1
----
3
0
3

skipif mysql # not compatible
query III rowsort label-2787
SELECT ALL COUNT ( * ), ( - COUNT ( * ) ) / + 26 AS col0, + COUNT ( * ) FROM tab1
----
3
0
3

query I rowsort
SELECT + ( - 54 ) AS col1 FROM tab0 WHERE NOT - + col0 IS NULL
----
-54
-54
-54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col0 * ( col1 ) / - col2 * - col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 74 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query II rowsort
SELECT ALL 20 * - - col2, - 66 + 20 AS col0 FROM tab0
----
1980
-46
200
-46
940
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 77 col2 FROM tab1 cor0
----
-77
-77
-77

query I rowsort
SELECT col1 * + col1 * 43 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL COUNT( ALL col1 ) * + ( - 66 ) AS col2 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL COUNT ( ALL col1 ) * + ( - 66 ) AS col2 FROM tab1 AS cor0
----
-198

query II rowsort
SELECT ALL + - col2 * col1 AS col2, col0 * + - col0 + - ( + + 34 ) FROM tab0 AS cor0
----
-210
-7603
-3807
-259
-99
-9443

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 < + col2 + col1
----

query I rowsort
SELECT ALL + col1 * - - 11 AS col2 FROM tab1
----
154
517
55

query I rowsort
SELECT col0 * - 15 * - - col2 AS col2 FROM tab0
----
-10575
-13050
-144045

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT ALL + 53 DIV - 79 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + 53 / - 79 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * + 17 * - + 47 * col2 + + col0 AS col1 FROM tab0
----
-563280
-695043
-7672700

query I rowsort
SELECT DISTINCT - col1 + + 47 AS col1 FROM tab2 cor0
----
-20
-30
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2802
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - 62 * + col2 / + col0 / - col2
----

query I rowsort
SELECT + col1 + + col0 + - col2 FROM tab0 AS cor0
----
-1
49
98

query I rowsort
SELECT ALL col0 * + 70 + col2 + + + col2 FROM tab2 AS cor0
----
3266
4560
5366

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2806
SELECT CAST( NULL AS DECIMAL ) * + 61 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT CAST ( NULL AS REAL ) * + 61 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 = col2 + ( col2 )
----

query I rowsort
SELECT ( - - col2 ) - - - col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2809
SELECT ALL - 47 DIV col0 * - + col2 * + - col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL - 47 / col0 * - + col2 * + - col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT 85 FROM tab1 WHERE NOT - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - - MAX( ALL + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2812
SELECT - - MAX ( ALL + col1 ) FROM tab2 cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 19 col2, col0 FROM tab2 AS cor0
----
19
46
19
64
19
75

query II rowsort
SELECT ALL col1, col0 * + col1 + - col1 * + col0 * col0 FROM tab1
----
14
-35700
47
-384930
5
-35700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * + + col1 + - col2 col1 FROM tab2
----
2527
3292
3810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - + col1 + + col0 = NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 49 * + 64 * + col0 FROM tab0 AS cor0
----
-2210880
-2728320
-30115008

query I rowsort
SELECT ALL - 62 * - - col1 * + 47 FROM tab2 AS cor0
----
-148614
-195238
-224378

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT DISTINCT + + ( COUNT( + ( - 37 ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT + + ( COUNT ( + ( - 37 ) ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 <= + col2 * + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2822
SELECT DISTINCT - col2 DIV + 91 + + col0 * + 43 AS col0, - 74 AS col1 FROM tab1 cor0
----
2192
-74
3655
-74
3913
-74

skipif mysql # not compatible
query II rowsort label-2822
SELECT DISTINCT - col2 / + 91 + + col0 * + 43 AS col0, - 74 AS col1 FROM tab1 cor0
----
2192
-74
3655
-74
3913
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 99 * col2 col1 FROM tab1
----
-344619
-457776
-912384

query I rowsort
SELECT ALL - - col0 * - 17 + - col0 AS col0 FROM tab2 WHERE NOT - ( col2 ) + 79 + - col2 BETWEEN + col2 AND - col1
----
-1152
-1350
-828

query I rowsort
SELECT - col0 * + 39 FROM tab1
----
-1989
-3315
-3549

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT ( - - ( + COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT ( - - ( + COUNT ( * ) ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE 43 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT ( NULL ) = NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT col2 * - CAST( col0 AS SIGNED ) col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2829
SELECT col2 * - CAST ( col0 AS INTEGER ) col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-2830
SELECT + 82 DIV - + col1 FROM tab1
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-2830
SELECT + 82 / - + col1 FROM tab1
----
-1
-16
-5

query I rowsort
SELECT ALL col0 + + col0 + + 65 * - col2 * + - 80 AS col2 FROM tab2
----
119692
208128
301750

query II rowsort
SELECT ALL + - col1 + col2 AS col2, - col2 FROM tab2 AS cor0
----
-28
-23
-37
-40
-9
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT DISTINCT - COUNT( * ) + - - SUM( DISTINCT 96 ) + COUNT( DISTINCT 31 ) AS col2 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT - COUNT ( * ) + - - SUM ( DISTINCT 96 ) + COUNT ( DISTINCT 31 ) AS col2 FROM tab2
----
94

query I rowsort
SELECT ALL + 82 - - + col2 + + 66 - - col2 FROM tab2
----
194
228
264

query I rowsort
SELECT - col1 * - ( - + col1 ) * col1 + 0 FROM tab1
----
-103823
-125
-2744

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + 8 * + - col0 FROM tab2
----
-368
-512
-600

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ( + col1 ) * - - 94 * - - col2 + - ( 59 ) AS col2 FROM tab0 cor0
----
19681
357799
9247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2840
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + - CAST( NULL AS SIGNED ) - - + col0
----
0

skipif mysql # not compatible
query I rowsort label-2840
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + - CAST ( NULL AS INTEGER ) - - + col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT + 92, - COUNT( * ) AS col1 FROM tab1 cor0
----
92
-3

skipif mysql # not compatible
query II rowsort label-2841
SELECT + 92, - COUNT ( * ) AS col1 FROM tab1 cor0
----
92
-3

query II rowsort
SELECT ALL - 28 AS col2, + 26 * + col2 * + 63 FROM tab0 AS cor0
----
-28
162162
-28
16380
-28
76986

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + col0, - col0, 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL + + SUM( DISTINCT - ( - + ( - col1 ) ) ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL + + SUM ( DISTINCT - ( - + ( - col1 ) ) ) AS col1 FROM tab2 AS cor0
----
-195

query II rowsort
SELECT DISTINCT col0, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT + ( 15 ) * + - col0 + + col1 * + 33 / - col2 FROM tab0 AS cor0 WHERE - col0 < NULL
----

query I rowsort
SELECT ALL + 47 * + 36 FROM tab2
----
1692
1692
1692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 WHERE NULL >= + + ( + col1 ) * 44
----

query I rowsort
SELECT ALL + - col1 FROM tab1 WHERE - 72 <= + col0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT DISTINCT - ( - + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT - ( - + COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT ALL + ( + CAST( + MIN( DISTINCT + 19 ) AS SIGNED ) ) AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + ( + CAST ( + MIN ( DISTINCT + 19 ) AS INTEGER ) ) AS col1 FROM tab2
----
19

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT - 61 * - - 99 FROM tab2 AS cor0
----
-6039
-6039
-6039

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) + col1 - - col0 = NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col0 / - + col2 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - col1 + + - col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL ( ( + + 36 ) ) FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT + - 22 AS col1 FROM tab0 AS cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 3, - 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT + SUM( DISTINCT - + 57 ) + + COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + SUM ( DISTINCT - + 57 ) + + COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-54

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 AS cor0 WHERE col1 * + 53 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT ALL CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT - col0 * - 42 + + - col2 + col2 + + - 65 AS col1, - col0 FROM tab1 AS cor0
----
2077
-51
3505
-85
3757
-91

query II rowsort
SELECT DISTINCT col1 AS col1, 14 FROM tab1
----
14
14
47
14
5
14

query I rowsort
SELECT ALL 24 * - col2 AS col0 FROM tab2
----
-1392
-552
-960

query I rowsort
SELECT ALL - AVG ( + - col2 ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT DISTINCT - COUNT( + + col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT - COUNT ( + + col0 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 19 + col2 * - col0 AS col2 FROM tab1
----
-4877
-4996
-6169

query I rowsort
SELECT ALL col2 + - col0 + + ( - col0 ) AS col1 FROM tab1
----
-111
-114
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT DISTINCT + col2 - 35 DIV - - col1 FROM tab0 AS cor0
----
47
64
9

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT + col2 - 35 / - - col1 FROM tab0 AS cor0
----
47
64
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL - COUNT( * ) * - 18 AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL - COUNT ( * ) * - 18 AS col0 FROM tab2
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 70
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2877
SELECT + - col2 DIV + - col0 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2877
SELECT + - col2 / + - col0 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL + + ( + - SUM( + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL + + ( + - SUM ( + col2 ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT col1 * + 8 * + ( + 34 ) FROM tab1 AS cor0
----
12784
1360
3808

query I rowsort
SELECT DISTINCT col1 + - col1 + + + col1 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2881
SELECT ALL MAX( ALL - col1 ), 17 + + COUNT( * ) col1 FROM tab2 cor0
----
-51
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2881
SELECT ALL MAX ( ALL - col1 ), 17 + + COUNT ( * ) col1 FROM tab2 cor0
----
-51
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT ALL + col1 * CAST( - 40 AS SIGNED ) AS col0 FROM tab0
----
-3240
-40
-840

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL + col1 * CAST ( - 40 AS INTEGER ) AS col0 FROM tab0
----
-3240
-40
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL - - COUNT( * ) FROM tab0 WHERE - col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE - col2 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2884
SELECT 78, + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1
----
78
NULL
78
NULL
78
NULL

skipif mysql # not compatible
query II rowsort label-2884
SELECT 78, + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1
----
78
NULL
78
NULL
78
NULL

query II rowsort
SELECT col2 AS col0, 38 + + col0 AS col0 FROM tab1
----
59
123
68
129
96
89

query I rowsort
SELECT DISTINCT 4 * - col0 FROM tab0
----
-348
-388
-60

query I rowsort
SELECT 24 * + + 16 FROM tab2 AS cor0
----
384
384
384

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + col0 / - - 91
----

query I rowsort
SELECT - col1 * - 27 FROM tab2 AS cor0
----
1377
1809
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT DISTINCT ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT - + MIN( 47 ) AS col1 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2891
SELECT - + MIN ( 47 ) AS col1 FROM tab2 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - MIN( DISTINCT 91 ) FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2892
SELECT - MIN ( DISTINCT 91 ) FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT ALL 12, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
12
3

skipif mysql # not compatible
query II rowsort label-2893
SELECT ALL 12, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL COUNT( 80 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL COUNT ( 80 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT MAX( DISTINCT + 28 ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT MAX ( DISTINCT + 28 ) FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT - COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2896
SELECT - COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query II rowsort
SELECT ( - col0 ) * + col2 * + 35 + + ( ( + col1 ) ) AS col1, + col0 FROM tab1 AS cor0
----
-171346
51
-175520
85
-216533
91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 40 = NULL
----

query I rowsort
SELECT col2 * - col2 + 66 FROM tab1 AS cor0
----
-3415
-4558
-9150

query I rowsort
SELECT - ( + 73 ) + - + col0 FROM tab0 AS cor0
----
-160
-170
-88

query I rowsort
SELECT + col2 * - col0 + + + 57 FROM tab0 AS cor0
----
-648
-813
-9546

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2902
SELECT ALL + + col0 + + + col0 - - CAST( + 18 AS SIGNED ) DIV - - col0 AS col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + + col0 + + + col0 - - CAST ( + 18 AS INTEGER ) / - - col0 AS col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT col1 + + + 64 AS col1 FROM tab1 cor0
----
111
69
78

query I rowsort
SELECT ALL + 64 + col1 FROM tab1 AS cor0
----
111
69
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT DISTINCT col0 * + + CAST( NULL AS SIGNED ) * + - col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) * + - col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + 76 * - col0 FROM tab1
----
-3876
-6460
-6916

query I rowsort
SELECT + 43 * col2 FROM tab1
----
2537
2924
4128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT COUNT( * ) DIV + 78 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2908
SELECT COUNT ( * ) / + 78 AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE col0 * - 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 70 * + col2 AS col0 FROM tab2
----
-1610
-2800
-4060

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT COUNT( * ) - SUM( - ( + + col2 ) ) FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-2911
SELECT COUNT ( * ) - SUM ( - ( + + col2 ) ) FROM tab2 AS cor0
----
124

query I rowsort
SELECT ALL - 93 + - + col2 AS col1 FROM tab1 cor0
----
-152
-161
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2913
SELECT DISTINCT 6 * - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT 6 * - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * 16 * + 90 AS col2 FROM tab2
----
110880
73440
96480

query I rowsort
SELECT - 99 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT ALL 28 * ( 1 ) FROM tab2
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2920
SELECT CAST( + 1 AS DECIMAL ) col1 FROM tab1 AS cor0 WHERE NOT + 47 + - - col2 - + col1 + col2 * col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2920
SELECT CAST ( + 1 AS REAL ) col1 FROM tab1 AS cor0 WHERE NOT + 47 + - - col2 - + col1 + col2 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2921
SELECT + CAST( - 17 AS SIGNED ), col2 FROM tab2 AS cor0
----
-17
23
-17
40
-17
58

skipif mysql # not compatible
query II rowsort label-2921
SELECT + CAST ( - 17 AS INTEGER ), col2 FROM tab2 AS cor0
----
-17
23
-17
40
-17
58

query I rowsort
SELECT ALL - 50 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * + col2 * col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, - 16 + 26 FROM tab2 AS cor0
----
51
10
67
10
77
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT DISTINCT + ( + 88 ) AS col1 FROM tab1 AS cor0
----
88

query II rowsort
SELECT ALL + col0, - col1 * + col1 + - - 89 + - 7 FROM tab0 AS cor0
----
15
-6479
87
-359
97
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + col1 ) - + - ( col2 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 6 AS col2, + 50 col1 FROM tab0 AS cor0
----
6
50
6
50
6
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2929
SELECT DISTINCT col0 DIV + - col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT col0 / + - col0 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - col2 * + col0 * - - 12 * 25 AS col1 FROM tab1
----
-1468800
-1504500
-1856400

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT - col2 <= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * + - col0 * - col1 col0 FROM tab0
----
3977
49815
74907

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2933
SELECT DISTINCT - CAST( - 98 AS SIGNED ) AS col1, 83 FROM tab2
----
98
83

skipif mysql # not compatible
query II rowsort label-2933
SELECT DISTINCT - CAST ( - 98 AS INTEGER ) AS col1, 83 FROM tab2
----
98
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT + + COUNT( * ) AS col2 FROM tab2 WHERE NOT - 77 NOT IN ( col1, + 8 * - - 83, - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 77 NOT IN ( col1, + 8 * - - 83, - 71 )
----
0

query I rowsort
SELECT ALL + 76 + + - col1 AS col2 FROM tab1
----
29
62
71

query I rowsort
SELECT - 7 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-7
-7
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2937
SELECT ( - ( - + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2937
SELECT ( - ( - + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col1 - + col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-100
-128
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 - + - col2 col1 FROM tab0
----
-56
113
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2940
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) col0 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2940
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) col0 FROM tab2
----
-1

query II rowsort
SELECT DISTINCT + col0 AS col1, - col0 AS col2 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2942
SELECT DISTINCT + COUNT( * ), + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2942
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT + col0 * - 76 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT - - col1 * - col0 + + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col0 + - 57 + - col2 FROM tab2 cor0
----
-126
-161
-190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2947
SELECT * FROM tab1 AS cor0 WHERE - col2 >= - + CAST( NULL AS SIGNED ) * col1 / + col1
----

skipif mysql # not compatible
query III rowsort label-2947
SELECT * FROM tab1 AS cor0 WHERE - col2 >= - + CAST ( NULL AS INTEGER ) * col1 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL COUNT( * ) + 4 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL COUNT ( * ) + 4 FROM tab1 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT ALL - - 12 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - - 12 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 - - col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT + + COUNT( + 14 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2951
SELECT + + COUNT ( + 14 ) FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT ALL + - col2 DIV + col2 + + - col0 - - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + - col2 / + col2 + + - col0 - - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 - 78 * + col2 AS col2 FROM tab2 AS cor0
----
-1840
-3184
-4599

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL + + COUNT( + 59 ) + + SUM( + 89 ) FROM tab0 AS cor0 WHERE + col0 / col2 + + 77 / + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL + + COUNT ( + 59 ) + + SUM ( + 89 ) FROM tab0 AS cor0 WHERE + col0 / col2 + + 77 / + - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2955
SELECT + + COUNT( col0 ) + + + CAST( NULL AS DECIMAL ) / - MIN( ALL - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 18 AND - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT + + COUNT ( col0 ) + + + CAST ( NULL AS REAL ) / - MIN ( ALL - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 18 AND - 33
----
NULL

query I rowsort
SELECT DISTINCT + + ( + col2 ) - 69 AS col0 FROM tab2 AS cor0
----
-11
-29
-46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 + 75 <= NULL
----

query I rowsort
SELECT + + col2 - - 27 FROM tab0 AS cor0
----
126
37
74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 4 AND NULL
----

query I rowsort
SELECT 69 + - + col2 FROM tab0
----
-30
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT COUNT( ALL - col1 ) + 43 + COUNT( * ) + 76 FROM tab1
----
125

skipif mysql # not compatible
query I rowsort label-2961
SELECT COUNT ( ALL - col1 ) + 43 + COUNT ( * ) + 76 FROM tab1
----
125

query I rowsort
SELECT ALL + ( - + col1 ) FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2963
SELECT + - ( + + 15 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2963
SELECT + - ( + + 15 ) / - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * 53 * - col2 FROM tab1 AS cor0
----
259488
265795
327964

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL MIN( + 94 ) + - COUNT( col2 ) AS col2 FROM tab2 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL MIN ( + 94 ) + - COUNT ( col2 ) AS col2 FROM tab2 WHERE NOT NULL > NULL
----
NULL

query I rowsort
SELECT ALL 54 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT ALL + + 52 FROM tab1 WHERE NOT + - col0 / - + col2 + col2 * + col2 - + col0 < - col1
----
52
52
52

query I rowsort
SELECT - ( 45 ) AS col1 FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT - 54 DIV - + col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2969
SELECT - 54 / - + col2 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2970
SELECT + CAST( + col1 AS SIGNED ) DIV - + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-47
-65
-75

skipif mysql # not compatible
query I rowsort label-2970
SELECT + CAST ( + col1 AS INTEGER ) / - + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-47
-65
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL - COUNT( ( 39 ) ) * + COUNT( DISTINCT ( - + 92 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - COUNT ( ( 39 ) ) * + COUNT ( DISTINCT ( - + 92 ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL - 22 * + + COUNT( * ) col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2972
SELECT ALL - 22 * + + COUNT ( * ) col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT - MAX( - 20 ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2973
SELECT - MAX ( - 20 ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL + 53 * - 9 FROM tab0 AS cor0
----
-477
-477
-477

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT col2 + col1 - - col2 + - - 69 AS col1 FROM tab1
----
192
252
275

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 / + 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT + 20 / + + MIN( + col2 ) AS col1 FROM tab2 WHERE + 97 + 89 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT + 20 / + + MIN ( + col2 ) AS col1 FROM tab2 WHERE + 97 + 89 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) + col1 IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 AS col2, col0 AS col1 FROM tab1
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NOT - ( + col0 ) IS NULL
----
1
21
81

query I rowsort
SELECT ALL + col0 * 70 AS col1 FROM tab2 AS cor0
----
3220
4480
5250

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 < NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT + col2 = NULL ) )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT + + 93 IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT col0 + 7 FROM tab0
----
104
22
94

query I rowsort
SELECT ALL + col2 + - + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 37 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 37 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - - - col2 AS col0 FROM tab2
----
28
37
9

query I rowsort
SELECT 28 - - 22 FROM tab1
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT + 68 * CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT + 68 * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2993
SELECT - col0 - col1 * col0 * col1 AS col1, col0 DIV - col1 + - - col1 AS col1 FROM tab2
----
-119692
51
-336750
66
-379520
77

skipif mysql # not compatible
query II rowsort label-2993
SELECT - col0 - col1 * col0 * col1 AS col1, col0 / - col1 + - - col1 AS col1 FROM tab2
----
-119692
51
-336750
66
-379520
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2994
SELECT - + CAST( NULL AS DECIMAL ) / 48 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT - + CAST ( NULL AS REAL ) / 48 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 23, col1 FROM tab1 AS cor0
----
23
14
23
47
23
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 15 BETWEEN - 3 - 84 AND + col2
----
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) <= col0
----

query I rowsort
SELECT - col2 - col1 * - col0 AS col0 FROM tab2
----
2323
4888
4967

query I rowsort
SELECT col2 * 74 - col0 AS col2 FROM tab0
----
3463
653
7229

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT MIN( DISTINCT + 64 ) AS col0 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-3000
SELECT MIN ( DISTINCT + 64 ) AS col0 FROM tab1
----
64

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab1 WHERE 92 <= 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT DISTINCT + MIN( - 57 ) AS col2 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT + MIN ( - 57 ) AS col2 FROM tab0
----
-57

query I rowsort
SELECT - 42 AS col2 FROM tab2 WHERE NOT - col2 NOT BETWEEN ( + 5 ) AND + col1 + - col1
----

query I rowsort
SELECT ALL - col1 * + col0 + - 75 * + col0 AS col2 FROM tab2
----
-10650
-5796
-9728

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE ( col2 / - 1 ) NOT BETWEEN - col2 AND 61
----

query I rowsort
SELECT + 67 * col0 - col1 * + col0 AS col1 FROM tab1
----
1820
2703
5270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) > col2
----

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) > col2
----

query III rowsort
SELECT * FROM tab2 WHERE 59 / 34 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 10 + - 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 - 63 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 81 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + COUNT( ALL col0 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3012
SELECT + COUNT ( ALL col0 ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL 86 + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL >= NULL
----
86

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL 86 + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL >= NULL
----
86

query I rowsort
SELECT DISTINCT col1 * col2 + col0 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT + col1 + + 7 FROM tab1 AS cor0
----
12
21
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT COUNT( * ) + 54 AS col0 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3016
SELECT COUNT ( * ) + 54 AS col0 FROM tab2 AS cor0
----
57

query I rowsort
SELECT col1 * + 4 AS col0 FROM tab2
----
204
268
308

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT 13 * COUNT( * ) AS col2 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3018
SELECT 13 * COUNT ( * ) AS col2 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL + MIN( + col0 ) + - 38 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL + MIN ( + col0 ) + - 38 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ALL COUNT( * ) + + MIN( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 + + col2 NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL COUNT ( * ) + + MIN ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 + + col2 NOT IN ( - col0 )
----
NULL

query I rowsort
SELECT 73 - col1 * + col2 FROM tab2 AS cor0
----
-1100
-3007
-3813

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col2 ) >= 10 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col2 col2 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 67 + - ( col1 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 48 * + 48 + - col1 AS col2 FROM tab2 AS cor0
----
2227
2237
2253

query I rowsort
SELECT ALL + 27 - - col0 AS col0 FROM tab1 AS cor0
----
112
118
78

query I rowsort
SELECT col2 - col1 AS col1 FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
-28
-37
-9

query I rowsort
SELECT + ( - 6 ) + - 15 AS col2 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + col2 + - 90 FROM tab1 AS cor0
----
-22
-31
6

query I rowsort
SELECT ALL col0 - 9 AS col2 FROM tab0 AS cor0
----
6
78
88

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + col1
----

query I rowsort
SELECT ALL + ( - + 63 ) + - col2 FROM tab1
----
-122
-131
-159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3033
SELECT 60 * col0 * CAST( NULL AS DECIMAL ) + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT 60 * col0 * CAST ( NULL AS REAL ) + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - ( col2 ) ) IS NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT NULL <> ( col2 * + 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL COUNT( * ) * - 46 AS col0 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL COUNT ( * ) * - 46 AS col0 FROM tab2
----
-138

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT ( col2 ) > col0 * - 47 + - col2 / col2
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( 56 + 64 ) IS NOT NULL
----

query I rowsort
SELECT - 53 * - col2 AS col2 FROM tab2 WHERE NOT ( NULL ) >= ( 27 )
----

query I rowsort
SELECT DISTINCT - col2 / 89 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND col2 * col2 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT ALL + + col0 * - col2 + + col0 DIV 81 AS col2 FROM tab0 AS cor0
----
-705
-869
-9602

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + + col0 * - col2 + + col0 / 81 AS col2 FROM tab0 AS cor0
----
-705
-869
-9602

query I rowsort
SELECT DISTINCT - 86 * col2 * - ( + 58 ) FROM tab2 AS cor0
----
114724
199520
289304

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( col2 )
----

query I rowsort
SELECT DISTINCT col2 * - col2 * - col2 FROM tab2 AS cor0
----
12167
195112
64000

onlyif mysql # DIV for integer division: 
query I rowsort label-3045
SELECT - 53 * col0 + 97 DIV col0 AS col0 FROM tab1 AS cor0
----
-2702
-4504
-4822

skipif mysql # not compatible
query I rowsort label-3045
SELECT - 53 * col0 + 97 / col0 AS col0 FROM tab1 AS cor0
----
-2702
-4504
-4822

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT DISTINCT - 64 + - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3047
SELECT DISTINCT - 64 + - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

query III rowsort
SELECT * FROM tab0 WHERE NOT + 62 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col2 FROM tab2 cor0
----
31
31
31

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col0 * + 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT - 87 * + + COUNT( * ) FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3051
SELECT - 87 * + + COUNT ( * ) FROM tab2 AS cor0
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL OR col2 + - 88 * - col0 IS NULL
----

query I rowsort
SELECT ( + 96 ) AS col0 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ALL col1 + + - col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL col1 + + + col2 * + - col0 AS col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT - + MIN( ALL col2 ) col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3056
SELECT DISTINCT - + MIN ( ALL col2 ) col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - COUNT( * ) + - + MAX( - + 53 ) + 93 * 13 FROM tab0 cor0
----
1259

skipif mysql # not compatible
query I rowsort label-3057
SELECT - COUNT ( * ) + - + MAX ( - + 53 ) + 93 * 13 FROM tab0 cor0
----
1259

query I rowsort
SELECT ALL + - 82 AS col1 FROM tab2 cor0
----
-82
-82
-82

query II rowsort
SELECT DISTINCT col1, - col0 AS col2 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IN ( - + col2 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) FROM tab0 WHERE col1 * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) FROM tab0 WHERE col1 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> col1 * - 65
----

query I rowsort
SELECT - col0 * - 28 FROM tab0
----
2436
2716
420

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + col2 AND - col1 + col1
----

query I rowsort
SELECT + col2 * col1 * 35 FROM tab1
----
10325
111860
47040

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 * 22 / + col1 + - col1 ) NOT BETWEEN + col2 * ( + col1 ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE 59 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + 76 - - MIN( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE + 46 BETWEEN ( 61 ) AND ( col2 * - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3068
SELECT + 76 - - MIN ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE + 46 BETWEEN ( 61 ) AND ( col2 * - col2 )
----
NULL

query I rowsort
SELECT DISTINCT col1 + - 52 * + col1 + + 6 AS col1 FROM tab0 AS cor0
----
-1065
-4125
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3070
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT MIN( ALL + + col2 ) + - - MAX( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-3071
SELECT MIN ( ALL + + col2 ) + - - MAX ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3072
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3073
SELECT - CAST( COUNT( * ) AS SIGNED ) + ( 93 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-3073
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + ( 93 ) FROM tab2
----
90

query I rowsort
SELECT ALL + col2 * - 59 + + - 79 AS col2 FROM tab0 AS cor0
----
-2852
-5920
-669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT ALL - 23 + - CAST( col0 AS SIGNED ) * + col2 FROM tab2 AS cor0 WHERE ( - col2 ) = ( 36 - + + ( - col1 ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL - 23 + - CAST ( col0 AS INTEGER ) * + col2 FROM tab2 AS cor0 WHERE ( - col2 ) = ( 36 - + + ( - col1 ) * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT + col1 DIV - ( + - col2 ) + ( - col1 ) * - 62 AS col2 FROM tab0 AS cor0
----
1304
5023
62

skipif mysql # not compatible
query I rowsort label-3076
SELECT + col1 / - ( + - col2 ) + ( - col1 ) * - 62 AS col2 FROM tab0 AS cor0
----
1304
5023
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT DISTINCT + col1 DIV - + 63 - + col1 + col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + col1 / - + 63 - + col1 + col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL col0 + - 62 FROM tab1 AS cor0
----
-11
23
29

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT + CAST( + 64 AS SIGNED ) * col1 + + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
1554
163
8991

skipif mysql # not compatible
query I rowsort label-3080
SELECT + CAST ( + 64 AS INTEGER ) * col1 + + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
1554
163
8991

query II rowsort
SELECT 12 AS col0, 39 FROM tab1 cor0 WHERE ( + 78 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT + CAST( + col2 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-3082
SELECT + CAST ( + col2 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT ALL + col1 + + + 47 FROM tab1 cor0
----
52
61
94

query I rowsort
SELECT ALL + col2 - + col0 + - col0 * + col0 * - col0 FROM tab0 AS cor0
----
3407
658426
912675

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col1 * + col2 = - 91
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3086
SELECT DISTINCT * FROM tab1 WHERE ( + col0 * - CAST( NULL AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3086
SELECT DISTINCT * FROM tab1 WHERE ( + col0 * - CAST ( NULL AS INTEGER ) ) = NULL
----

query I rowsort
SELECT DISTINCT 93 FROM tab0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT DISTINCT col0 DIV col0 col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3089
SELECT DISTINCT col0 / col0 col1 FROM tab2
----
1

query I rowsort
SELECT - col2 * - 68 * col1 AS col2 FROM tab0
----
14280
258876
6732

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT IN ( + + ( + col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 28 * - 94, + ( + col0 ) FROM tab2
----
-2632
46
-2632
64
-2632
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT DISTINCT + - COUNT( * ) FROM tab0 WHERE ( col0 * col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT + - COUNT ( * ) FROM tab0 WHERE ( col0 * col1 IS NULL )
----
0

query I rowsort
SELECT DISTINCT + col2 * 83 AS col1 FROM tab2
----
1909
3320
4814

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3095
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3095
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT DISTINCT - 39 DIV + 41 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT - 39 / + 41 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT col0 + - 87 AS col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) <> ( - 99 )
----

skipif mysql # not compatible
query I rowsort label-3098
SELECT col0 + - 87 AS col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) <> ( - 99 )
----

query I rowsort
SELECT DISTINCT + - 42 + col1 FROM tab2 AS cor0
----
25
35
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * - + col2 + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT SUM( - + col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-3102
SELECT SUM ( - + col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 33 NOT BETWEEN NULL AND col1 * - 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * - + ( + col0 ) * - 73 FROM tab2 AS cor0 WHERE NOT NULL > ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3105
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 76 - - - 90 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 18 ) + col0 AS col0 FROM tab1 AS cor0
----
33
67
73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( + 22 / - col0 + + + 71 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT SUM( ALL - + 85 ) FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-3109
SELECT SUM ( ALL - + 85 ) FROM tab0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT - col1 + + + 6 * - + col1 * col0 DIV - col1 col0 FROM tab1
----
292
499
505

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3110
SELECT - col1 + + + 6 * - + col1 * col0 / - col1 col0 FROM tab1
----
292
499
505

query III rowsort
SELECT * FROM tab0 WHERE + + ( + + col0 ) * + col1 IS NULL
----

query I rowsort
SELECT + 75 + + + 90 AS col2 FROM tab0
----
165
165
165

query III rowsort
SELECT * FROM tab0 WHERE col1 - + col0 IN ( + 54 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 - 87 >= - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + - 79 ) AS col2 FROM tab0 WHERE NOT ( col2 ) IS NOT NULL OR NOT NULL IS NOT NULL
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT COUNT( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3116
SELECT COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + - ( + col0 ) * + 8 + + col1 FROM tab0 AS cor0
----
-39
-675
-775

query I rowsort
SELECT - 88 * - + 22 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3119
SELECT + 93 DIV - COUNT( * ) col0 FROM tab1
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3119
SELECT + 93 / - COUNT ( * ) col0 FROM tab1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT ALL + + MIN( + CAST( - 4 AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL + + MIN ( + CAST ( - 4 AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 99 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - col0 col2, 67 FROM tab2 AS cor0
----
-2346
67
-4928
67
-5025
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3124
SELECT COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 99 AS col2 FROM tab2 cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT - SUM( ALL 36 ) AS col0 FROM tab1 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-3126
SELECT - SUM ( ALL 36 ) AS col0 FROM tab1 cor0
----
-108

query II rowsort
SELECT ALL + + col2 * + col1 AS col1, 39 FROM tab2 AS cor0
----
1173
39
3080
39
3886
39

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col0 + - col1, + col1 * - + 82 )
----

query II rowsort
SELECT ALL col1, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 IN ( - col2, 96, - 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT + 16 * MAX( 83 ) + - SUM( DISTINCT col1 ) FROM tab2 WHERE NOT - + ( + col0 ) NOT IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT + 16 * MAX ( 83 ) + - SUM ( DISTINCT col1 ) FROM tab2 WHERE NOT - + ( + col0 ) NOT IN ( + col1 )
----
NULL

query I rowsort
SELECT DISTINCT 31 * - 73 FROM tab0
----
-2263

query II rowsort
SELECT - col1 AS col1, col1 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT ALL col0 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL col0 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * - col1 + - col1 FROM tab0 cor0
----
-2
-462
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT - - SUM( DISTINCT + - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - - SUM ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - - col2 * - - col0 AS col0 FROM tab0 cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT + col0 DIV col1 + - col1 col1 FROM tab1 AS cor0
----
-11
-46
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3138
SELECT + col0 / col1 + - col1 col1 FROM tab1 AS cor0
----
-11
-46
12

query I rowsort
SELECT ALL - col1 * - - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + 14 * 98 * + 22 - + 12 - 24 * - col1 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 - + + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT MIN( DISTINCT 45 ) + - 83 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-3145
SELECT MIN ( DISTINCT 45 ) + - 83 FROM tab1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - COUNT( * ) + 8 AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3146
SELECT - COUNT ( * ) + 8 AS col0 FROM tab2 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3147
SELECT + col2 DIV + 38 AS col2, col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
21
1
81
2
1

skipif mysql # not compatible
query II rowsort label-3147
SELECT + col2 / + 38 AS col2, col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
21
1
81
2
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT - 71 DIV + ( - 43 ) + + - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-143
-146
-158

skipif mysql # not compatible
query I rowsort label-3148
SELECT - 71 / + ( - 43 ) + + - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-143
-146
-158

query I rowsort
SELECT DISTINCT + 16 * + col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
1072
1232
816

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT 68 * 38 + - 48 + - + COUNT( * ) * + - 1 AS col0 FROM tab0 AS cor0
----
2539

skipif mysql # not compatible
query I rowsort label-3150
SELECT 68 * 38 + - 48 + - + COUNT ( * ) * + - 1 AS col0 FROM tab0 AS cor0
----
2539

query I rowsort
SELECT + 27 + + 39 FROM tab2 AS cor0
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3152
SELECT ALL + 31 / - + CAST( NULL AS SIGNED ) - + + 84 * - + 21 + col0 + - 2 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + 31 / - + CAST ( NULL AS INTEGER ) - + + 84 * - + 21 + col0 + - 2 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) NOT BETWEEN + 44 - - col1 AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT - + 1 * + 59 FROM tab0 WHERE NOT NULL < - - col0 * + col0 * + - 64
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT 80 * + 81 AS col2 FROM tab0
----
6480
6480
6480

query II rowsort
SELECT - - col2 * - 98 AS col0, + col0 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-2254
46
-3920
64
-5684
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT + col1 DIV - + col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT + col1 / - + col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL 83 col0 FROM tab1 AS cor0 WHERE NOT col2 + - CAST( 41 AS SIGNED ) = 5 + - col1 * col2
----
83
83
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3160
SELECT ALL 83 col0 FROM tab1 AS cor0 WHERE NOT col2 + - CAST ( 41 AS INTEGER ) = 5 + - col1 * col2
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT DISTINCT - + COUNT( * ) * - 85 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT - + COUNT ( * ) * - 85 FROM tab1 AS cor0
----
255

query I rowsort
SELECT ALL 13 * 47 AS col1 FROM tab2 cor0
----
611
611
611

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL COUNT( DISTINCT + - 80 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL COUNT ( DISTINCT + - 80 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col2 FROM tab1
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT - COUNT( DISTINCT - + col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3165
SELECT - COUNT ( DISTINCT - + col0 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT + 83 * - + MAX( - 48 ) * - - 87 FROM tab2
----
346608

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT + 83 * - + MAX ( - 48 ) * - - 87 FROM tab2
----
346608

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT DISTINCT col1 DIV col1 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT col1 / col1 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( + 60 + col1 + - 72 ) AND + ( + col2 ) + + - col0 * 17
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3169
SELECT ALL + - 20 / - - 72 * + - col1 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + - 20 / - - 72 * + - col1 + + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL + SUM( + ( 37 ) ) AS col2 FROM tab2 cor0
----
111

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL + SUM ( + ( 37 ) ) AS col2 FROM tab2 cor0
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 * + + ( + - col0 ) col0 FROM tab2 AS cor0
----
3772
5248
6150

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT - 86 + - - MIN( ALL + 90 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-3172
SELECT - 86 + - - MIN ( ALL + 90 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
4

query I rowsort
SELECT 32 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 28 IS NULL
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + 95 )
----

query I rowsort
SELECT DISTINCT - col2 + col1 * - col1 + col1 FROM tab2 AS cor0
----
-2573
-4480
-5892

query I rowsort
SELECT col1 + - + col2 * - + 48 - - col2 FROM tab2 AS cor0
----
1178
2037
2909

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - 20 + + - 9 * COUNT( * ) + + COUNT( * ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-3178
SELECT - 20 + + - 9 * COUNT ( * ) + + COUNT ( * ) FROM tab2
----
-44

query III rowsort
SELECT * FROM tab2 WHERE col2 + + 71 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 - 56 AS col0 FROM tab0
----
-41
31
41

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * - + 87 * - 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3182
SELECT * FROM tab2 WHERE - col1 + + CAST( NULL AS SIGNED ) + - col1 / 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3182
SELECT * FROM tab2 WHERE - col1 + + CAST ( NULL AS INTEGER ) + - col1 / 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 36 * + 88 BETWEEN - - col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 8 col1, - col2 AS col1 FROM tab0
----
-8
-10
-8
-47
-8
-99

query I rowsort
SELECT ALL - 86 * 60 FROM tab2 AS cor0
----
-5160
-5160
-5160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3186
SELECT ALL - 17 - CAST( + + col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-63
-81
-92

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - 17 - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-63
-81
-92

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 25 + col1 / + + 98 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL - COUNT( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + col0 <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 39 BETWEEN ( - col1 ) AND + col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT ALL - + 68 DIV + + COUNT( * ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - + 68 / + + COUNT ( * ) FROM tab1 AS cor0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col0 FROM tab2 AS cor0
----
-50
-50
-50

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 > - 26 / + + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 > + 4
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

query I rowsort
SELECT + - col2 * - 93 FROM tab1 AS cor0
----
5487
6324
8928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT - ( CAST( 26 AS SIGNED ) ) + + col1 + + 66 FROM tab2
----
107
117
91

skipif mysql # not compatible
query I rowsort label-3199
SELECT - ( CAST ( 26 AS INTEGER ) ) + + col1 + + 66 FROM tab2
----
107
117
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL SUM( + + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL SUM ( + + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT 50 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3201
SELECT 50 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
53

query I rowsort
SELECT + 15 + + 63 + col2 FROM tab0 AS cor0
----
125
177
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT col2 + - ( CAST( - + col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-3203
SELECT col2 + - ( CAST ( - + col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT + col1 + + 69 * - col1 AS col0 FROM tab1 AS cor0
----
-3196
-340
-952

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 87
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( 68 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) + col1 + + 23 - 99 AS col2 FROM tab1 cor0
----
-1406
-3225
-366

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 70 >= - col2 + + 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3210
SELECT ALL CAST( - + col0 AS SIGNED ) + - + col2, - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-3210
SELECT ALL CAST ( - + col0 AS INTEGER ) + - + col2, - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 - + 41 FROM tab1
----
-46
-55
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3212
SELECT 64 * col2 + ( CAST( NULL AS SIGNED ) ) * + 93 DIV ( + + col0 ) AS col1, ( + 42 ) DIV - 24 + - 78 col0 FROM tab0 WHERE - col0 + col2 NOT BETWEEN + col2 AND + + col2 DIV col2 + col0
----
NULL
-79
NULL
-79
NULL
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3212
SELECT 64 * col2 + ( CAST ( NULL AS INTEGER ) ) * + 93 / ( + + col0 ) AS col1, ( + 42 ) / - 24 + - 78 col0 FROM tab0 WHERE - col0 + col2 NOT BETWEEN + col2 AND + + col2 / col2 + col0
----
NULL
-79
NULL
-79
NULL
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + ( col2 ) + 82 * - 52 col0 FROM tab2
----
-4264
-4264
-4264

query I rowsort
SELECT ALL + 82 * 64 AS col1 FROM tab0
----
5248
5248
5248

query I rowsort
SELECT DISTINCT ( col1 ) + 4 AS col1 FROM tab0
----
25
5
85

query II rowsort
SELECT - col0 - + + col0 + - 88 AS col2, 66 * col0 FROM tab1
----
-190
3366
-258
5610
-270
6006

query I rowsort
SELECT - - col0 - col1 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT ALL + ( col0 ) * + 5 + + ( col0 ) FROM tab2 AS cor0
----
276
384
450

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 76 ) IS NULL
----

query I rowsort
SELECT - 92 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT 36 * + 45 <= + CAST( ( + col2 ) AS SIGNED )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT 36 * + 45 <= + CAST ( ( + col2 ) AS INTEGER )
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 57 IS NOT NULL
----

query I rowsort
SELECT ALL + 83 + - 67 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 46, col0, 90 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT DISTINCT + col2 DIV - col0 * + - col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT + col2 / - col0 * + - col0 FROM tab2 cor0
----
0

query II rowsort
SELECT ALL col0 AS col2, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT - 78 * + col0 AS col2 FROM tab2 AS cor0
----
-3588
-4992
-5850

query I rowsort
SELECT + col1 * + 20 * + + ( + - col2 ) - - 50 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1930
-4150
-76090

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + 25 ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT DISTINCT - MIN( ALL + ( - - col1 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT - MIN ( ALL + ( - - col1 ) ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT + ( - - 10 ) FROM tab1
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3232
SELECT * FROM tab0 WHERE NOT - 9 * - CAST( NULL AS SIGNED ) + col0 <> ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3232
SELECT * FROM tab0 WHERE NOT - 9 * - CAST ( NULL AS INTEGER ) + col0 <> ( - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ( + col1 ), col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT MAX( ALL 90 ) AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3234
SELECT MAX ( ALL 90 ) AS col2 FROM tab0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3235
SELECT MAX( ( col0 ) ) + - 35 AS col0 FROM tab0 WHERE NOT + 63 BETWEEN + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AND col1 * - - col2 + + 46 * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT MAX ( ( col0 ) ) + - 35 AS col0 FROM tab0 WHERE NOT + 63 BETWEEN + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AND col1 * - - col2 + + 46 * 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL + 99 + - SUM( DISTINCT - - col1 ) + + COUNT( * ) AS col0 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL + 99 + - SUM ( DISTINCT - - col1 ) + + COUNT ( * ) AS col0 FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT COUNT( * ) * + 62 * + 42 FROM tab1
----
7812

skipif mysql # not compatible
query I rowsort label-3237
SELECT COUNT ( * ) * + 62 * + 42 FROM tab1
----
7812

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 42 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, + col2 * - col0 col1 FROM tab0 cor0
----
15
-705
87
-870
97
-9603

query I rowsort
SELECT DISTINCT col0 + + - 88 + + - ( + 25 ) FROM tab2 AS cor0
----
-38
-49
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL + + COUNT( * ) + + - 97 + - COUNT( * ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL + + COUNT ( * ) + + - 97 + - COUNT ( * ) FROM tab2 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT MIN( - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT MIN ( - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 73 - - col2 AS col0 FROM tab0 AS cor0
----
120
172
83

query I rowsort
SELECT col1 * - col2 + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-221
-3841

query I rowsort
SELECT + col2 + + col0 + + + col1 AS col0 FROM tab0
----
118
143
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22 + - + ( col2 ) * + col0 col0, col2 * 55 * col0 col1 FROM tab1
----
-4874
269280
-4993
275825
-6166
340340

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 - - + 60 * + 63 FROM tab1
----
3831
3865
3871

onlyif mysql # aggregate syntax: 
query II rowsort label-3249
SELECT ALL SUM( - + 0 ) AS col1, + 43 FROM tab0
----
0
43

skipif mysql # not compatible
query II rowsort label-3249
SELECT ALL SUM ( - + 0 ) AS col1, + 43 FROM tab0
----
0
43

query I rowsort
SELECT - ( col1 ) * + - col0 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3251
SELECT * FROM tab0 AS cor0 WHERE NOT + 2 * + CAST( col2 AS DECIMAL ) * + col1 - + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3251
SELECT * FROM tab0 AS cor0 WHERE NOT + 2 * + CAST ( col2 AS REAL ) * + col1 - + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3253
SELECT + 19 DIV + col1 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3253
SELECT + 19 / + col1 + + col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 60 IS NOT NULL
----

query I rowsort
SELECT ALL - 44 * - + 67 AS col2 FROM tab2
----
2948
2948
2948

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + col0 * - 43 AS col2 FROM tab2 AS cor0
----
110080
187050
45494

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - 51 * COUNT( * ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3258
SELECT - 51 * COUNT ( * ) FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3259
SELECT - 61 DIV - 62 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT - 61 / - 62 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 = - + col1 - + 74 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT - col0 + + col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-3261
SELECT - col0 + + col0 / - col1 AS col1 FROM tab0 AS cor0
----
-15
-194
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3262
SELECT DISTINCT COUNT( * ), MAX( - - CAST( CAST( col0 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab1
----
3
91

skipif mysql # not compatible
query II rowsort label-3262
SELECT DISTINCT COUNT ( * ), MAX ( - - CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1
----
3
91

query I rowsort
SELECT ALL col0 * + + 26 AS col2 FROM tab0
----
2262
2522
390

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab2 WHERE + 28 * + ( + col1 ) * col2 < - 55
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3265
SELECT col0 DIV CAST( - 67 AS SIGNED ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT col0 / CAST ( - 67 AS INTEGER ) FROM tab2
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3267
SELECT DISTINCT - 39 + COUNT( * ) DIV - MAX( - + ( 62 ) ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT - 39 + COUNT ( * ) / - MAX ( - + ( 62 ) ) FROM tab1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT MIN( DISTINCT - col2 ) col2 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3268
SELECT MIN ( DISTINCT - col2 ) col2 FROM tab1
----
-96

query II rowsort
SELECT col2 AS col1, col1 AS col2 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT - - 20 + col2 AS col0 FROM tab2 AS cor0
----
43
60
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3271
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3272
SELECT - 95 DIV + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-3272
SELECT - 95 / + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT - col1 + + + 30 + - 39 DIV + - col2 AS col0 FROM tab1
----
-17
16
25

skipif mysql # not compatible
query I rowsort label-3273
SELECT - col1 + + + 30 + - 39 / + - col2 AS col0 FROM tab1
----
-17
16
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3274
SELECT COUNT( * ), COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-3274
SELECT COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3275
SELECT ALL * FROM tab1 AS cor0 WHERE + 47 + + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3275
SELECT ALL * FROM tab1 AS cor0 WHERE + 47 + + CAST ( NULL AS REAL ) IS NOT NULL
----

query II rowsort
SELECT + + 94, col2 FROM tab0 WHERE NOT - + 22 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT COUNT( + 39 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3277
SELECT COUNT ( + 39 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 33 AS col1, - col1 FROM tab2
----
33
-51
33
-67
33
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT - CAST( NULL AS SIGNED ) / col0 * + col1 * + col0 FROM tab2 WHERE NOT + + col2 + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3279
SELECT - CAST ( NULL AS INTEGER ) / col0 * + col1 * + col0 FROM tab2 WHERE NOT + + col2 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT - ( - - COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL - col0 * + 56 AS col0 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT COUNT( * ) * + + ( + COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT COUNT ( * ) * + + ( + COUNT ( * ) ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col0 + + col0 + - 80 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3283
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col0 + + col0 + - 80 IS NULL
----
-3

query I rowsort
SELECT DISTINCT ( + 4 ) AS col1 FROM tab2
----
4

query I rowsort
SELECT - col0 * 8 * - + 59 FROM tab1 AS cor0
----
24072
40120
42952

query I rowsort
SELECT + 40 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( + col0 + - col1 ) IS NOT NULL )
----
40
40
40

query II rowsort
SELECT ALL - 66 AS col0, + 11 AS col1 FROM tab2 AS cor0
----
-66
11
-66
11
-66
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT + - COUNT( * ) col1 FROM tab0 WHERE NOT + - 0 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3288
SELECT + - COUNT ( * ) col1 FROM tab0 WHERE NOT + - 0 IS NULL
----
-3

query I rowsort
SELECT DISTINCT 55 + - - col1 FROM tab0
----
136
56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL - MIN( ALL + + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - MIN ( ALL + + col1 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * col2 IS NOT NULL
----

query I rowsort
SELECT + + ( - col1 ) * + col2 + - - 78 * 69 AS col2 FROM tab0 AS cor0
----
1575
5172
5283

query I rowsort
SELECT DISTINCT - - col1 * - 68 + - 69 FROM tab0 AS cor0
----
-137
-1497
-5577

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ALL + MIN( DISTINCT - + col2 ) + - + 69 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + MIN ( DISTINCT - + col2 ) + - + 69 FROM tab1 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3296
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 2 + + + CAST( NULL AS SIGNED ) * col2 NOT BETWEEN NULL AND - - col0
----

skipif mysql # not compatible
query III rowsort label-3296
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 2 + + + CAST ( NULL AS INTEGER ) * col2 NOT BETWEEN NULL AND - - col0
----

query I rowsort
SELECT DISTINCT + col1 * + col2 * col2 AS col0 FROM tab2 cor0
----
123200
225388
26979

query I rowsort
SELECT col2 FROM tab1 WHERE ( NULL >= NULL )
----

query II rowsort
SELECT col2, - ( + + 29 ) FROM tab0
----
10
-29
47
-29
99
-29

query I rowsort
SELECT ALL ( - + col0 ) * col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT DISTINCT + COUNT( * ) DIV - 32 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3301
SELECT DISTINCT + COUNT ( * ) / - 32 col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3302
SELECT ALL - col2 DIV ( + 68 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - col2 / ( + 68 ) FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT 25 + + + COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3303
SELECT 25 + + + COUNT ( * ) FROM tab0
----
28

query I rowsort
SELECT ALL col0 * + - col0 + col1 AS col1 FROM tab2
----
-2065
-4019
-5558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3305
SELECT - 53 AS col1 FROM tab0 WHERE + CAST( + ( ( - col2 ) ) AS SIGNED ) IS NOT NULL
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-3305
SELECT - 53 AS col1 FROM tab0 WHERE + CAST ( + ( ( - col2 ) ) AS INTEGER ) IS NOT NULL
----
-53
-53
-53

query I rowsort
SELECT ALL col1 + + + col0 AS col0 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + col1 ) > - col2
----
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 79 * - - col2 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 IS NOT NULL AND NULL IN ( + 31 - col1 + - + col1 * - col1, + 85, + - 46 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL - - SUM( - 41 ) FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL - - SUM ( - 41 ) FROM tab1 AS cor0
----
-123

query I rowsort
SELECT - ( - col0 ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3314
SELECT - col0 AS col0, - col1 DIV CAST( - 26 AS SIGNED ) FROM tab0 AS cor0
----
-15
3
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-3314
SELECT - col0 AS col0, - col1 / CAST ( - 26 AS INTEGER ) FROM tab0 AS cor0
----
-15
3
-87
0
-97
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 54 NOT IN ( - 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT - 94 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3316
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 94 IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 13 * - col0 / col2 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT 72 * - - MIN( DISTINCT - 91 ) FROM tab1
----
-6552

skipif mysql # not compatible
query I rowsort label-3318
SELECT 72 * - - MIN ( DISTINCT - 91 ) FROM tab1
----
-6552

onlyif mysql # DIV for integer division: 
query I rowsort label-3319
SELECT - - col2 DIV - col1 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3319
SELECT - - col2 / - col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 25 * - 85 AS col0 FROM tab0 AS cor0
----
2125

query I rowsort
SELECT 18 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 73 + - + 47 IS NOT NULL
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT + col2 + + 80 FROM tab0 cor0
----
127
179
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL - SUM( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - SUM ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 58 ) + - col2 + + - col1 col0 FROM tab2 AS cor0 WHERE NULL IN ( - col2, - col2, + - col2 + + 1, - col2, col2 + - 91, - ( col2 ) )
----

query I rowsort
SELECT + 18 AS col0 FROM tab1 cor0 WHERE col1 - - + col2 * + + col0 / 7 IS NULL
----

query II rowsort
SELECT ALL - col1 AS col0, col2 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 34 IS NULL
----
-1
196
-21
97
-81
62

query I rowsort
SELECT - col1 + - col2 AS col2 FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT DISTINCT - col2 * - - col1 + + col0 AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3329
SELECT * FROM tab0 WHERE - - col2 / - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3329
SELECT * FROM tab0 WHERE - - col2 / - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 57 col0 FROM tab0
----
-4959
-5529
-855

query II rowsort
SELECT DISTINCT + 42, - col2 * + + col1 * col0 FROM tab0 WHERE NOT + 65 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - 68 AS col0 FROM tab2 WHERE NOT 97 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3333
SELECT + 73 DIV + col2 AS col0, 48 AS col2 FROM tab2
----
1
48
1
48
3
48

skipif mysql # not compatible
query II rowsort label-3333
SELECT + 73 / + col2 AS col0, 48 AS col2 FROM tab2
----
1
48
1
48
3
48

query I rowsort
SELECT DISTINCT 93 + + - col1 - - col2 + + col2 * col2 FROM tab2
----
1656
3448
594

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + 61 * + col2 * - + col0 AS col1 FROM tab1 AS cor0
----
-298656
-305915
-377468

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 + + col1 + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 + + col1 + - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3338
SELECT 15 - + CAST( - - COUNT( * ) AS SIGNED ) * + - 73 AS col1, + 13 FROM tab0 AS cor0
----
234
13

skipif mysql # not compatible
query II rowsort label-3338
SELECT 15 - + CAST ( - - COUNT ( * ) AS INTEGER ) * + - 73 AS col1, + 13 FROM tab0 AS cor0
----
234
13

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT 25 - - COUNT( * ) col1 FROM tab1
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3340
SELECT DISTINCT 25 - - COUNT ( * ) col1 FROM tab1
----
28

query I rowsort
SELECT 32 + + col1 AS col2 FROM tab0
----
113
33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT COUNT( ALL ( + 91 ) ) * - 46 * - ( COUNT( * ) ) FROM tab2 AS cor0
----
414

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT COUNT ( ALL ( + 91 ) ) * - 46 * - ( COUNT ( * ) ) FROM tab2 AS cor0
----
414

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT ALL + ( + - 83 ) DIV - col2 AS col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + ( + - 83 ) / - col2 AS col2 FROM tab1 cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT - CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab2 cor0 WHERE NOT ( col2 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT - CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab2 cor0 WHERE NOT ( col2 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3345
SELECT col0 DIV col1 * - ( 70 ) - - 17 + - - ( col1 ) * - 58 * 38 + - col2 AS col0, + 64 FROM tab2 AS cor0
----
-112410
64
-147779
64
-169731
64

skipif mysql # not compatible
query II rowsort label-3345
SELECT col0 / col1 * - ( 70 ) - - 17 + - - ( col1 ) * - 58 * 38 + - col2 AS col0, + 64 FROM tab2 AS cor0
----
-112410
64
-147779
64
-169731
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT + 65 col2, + 30 * - COUNT( * ) AS col2 FROM tab1
----
65
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3346
SELECT + 65 col2, + 30 * - COUNT ( * ) AS col2 FROM tab1
----
65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 + + - col1 col2 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
-148
-209
-218

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE - + col2 / col0 IS NULL
----

query II rowsort
SELECT DISTINCT 61 AS col0, col1 FROM tab1
----
61
14
61
47
61
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3350
SELECT - COUNT( * ) col0, COUNT( * ) + + 34 + + CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3350
SELECT - COUNT ( * ) col0, COUNT ( * ) + + 34 + + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab0
----
-3
NULL

query I rowsort
SELECT 92 * - + col1 * - 29 * - 41 AS col1 FROM tab2
----
-5578788
-7328996
-8422876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT ALL ( - MIN( - ( - + 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-3352
SELECT ALL ( - MIN ( - ( - + CAST ( NULL AS INTEGER ) ) ) ) col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT + CAST( ( - COUNT( * ) ) AS SIGNED ) + - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3355
SELECT + CAST ( ( - COUNT ( * ) ) AS INTEGER ) + - COUNT ( * ) FROM tab2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT DISTINCT + + 33 + + 92 + + col2 DIV + col1 FROM tab2 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT + + 33 + + 92 + + col2 / + col1 FROM tab2 AS cor0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL + ( + 51 ) + + - COUNT( * ) FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + ( + 51 ) + + - COUNT ( * ) FROM tab1 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT + SUM( DISTINCT ( col1 ) ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3358
SELECT + SUM ( DISTINCT ( col1 ) ) AS col1 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - 79 * + - col0 AS col0 FROM tab1 AS cor0
----
4029
6715
7189

query I rowsort
SELECT col2 * - 75 + + col0 AS col0 FROM tab1
----
-4340
-5009
-7149

query I rowsort
SELECT DISTINCT + col1 * col0 * 7 - + - 51 + + col1 - - col1 * 20 AS col0 FROM tab2
----
17544
36164
36633

query I rowsort
SELECT ALL 50 * + - 20 AS col0 FROM tab0
----
-1000
-1000
-1000

query I rowsort
SELECT col2 * - + col0 + - col1 * col2 FROM tab2
----
-2231
-5640
-8236

query III rowsort
SELECT * FROM tab0 WHERE + col0 = col1
----

query III rowsort
SELECT * FROM tab2 WHERE - 63 >= col1
----

query II rowsort
SELECT DISTINCT + 7 AS col0, - col0 AS col0 FROM tab2
----
7
-46
7
-64
7
-75

query I rowsort
SELECT ALL ( + - 93 ) + + - col0 AS col1 FROM tab1
----
-144
-178
-184

query I rowsort
SELECT + col0 FROM tab2 WHERE - col2 / + col0 < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT - - COUNT( * ) * ( - COUNT( * ) ) * - + 96 AS col0 FROM tab1 AS cor0
----
864

skipif mysql # not compatible
query I rowsort label-3370
SELECT - - COUNT ( * ) * ( - COUNT ( * ) ) * - + 96 AS col0 FROM tab1 AS cor0
----
864

query I rowsort
SELECT ALL - 63 * + + col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3372
SELECT col2 DIV + ( - col2 ) - + col0 * + 3 AS col1 FROM tab0
----
-262
-292
-46

skipif mysql # not compatible
query I rowsort label-3372
SELECT col2 / + ( - col2 ) - + col0 * + 3 AS col1 FROM tab0
----
-262
-292
-46

query I rowsort
SELECT + - 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3374
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col0, 13 + - COUNT( * ) + + - COUNT( * ) FROM tab1
----
-3
7

skipif mysql # not compatible
query II rowsort label-3374
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 13 + - COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
-3
7

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 33 * + + col0 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT + COUNT( + col1 ) * - - ( - - 55 ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + COUNT ( + col1 ) * - - ( - - 55 ) FROM tab2 AS cor0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT DISTINCT 90 * + COUNT( + + col2 ) + - 99 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT 90 * + COUNT ( + + col2 ) + - 99 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
237

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 79 + col1 * 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3380
SELECT - - COUNT( * ) DIV 1 AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3380
SELECT - - COUNT ( * ) / 1 AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3381
SELECT 97 DIV + - col1 AS col1 FROM tab1 AS cor0
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-3381
SELECT 97 / + - col1 AS col1 FROM tab1 AS cor0
----
-19
-2
-6

query I rowsort
SELECT ALL - 94 * + col2 AS col2 FROM tab1
----
-5546
-6392
-9024

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT - 49 * + COUNT( * ) AS col0 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT - 49 * + COUNT ( * ) AS col0 FROM tab2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT ALL - COUNT( ALL + - col0 ) * + + ( - COUNT( * ) ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - COUNT ( ALL + - col0 ) * + + ( - COUNT ( * ) ) AS col2 FROM tab1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 + 81 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3386
SELECT - 30 - + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) BETWEEN + col2 AND - CAST( NULL AS DECIMAL )
----
-30

skipif mysql # not compatible
query I rowsort label-3386
SELECT - 30 - + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) BETWEEN + col2 AND - CAST ( NULL AS REAL )
----
-30

query II rowsort
SELECT - 12 * + 18 + - - 74, col0 AS col1 FROM tab1 cor0
----
-142
51
-142
85
-142
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT - COUNT( - 72 ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT - COUNT ( - 72 ) col1 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - - MIN( ALL + - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3389
SELECT - - MIN ( ALL + - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 NOT BETWEEN + col0 AND + col2 - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT DISTINCT + col0 + + col2 * + col1 + CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT + col0 + + col2 * + col1 + CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col1 AND + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + col0 NOT IN ( - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + col2 + + 39 + + 50 AS col0 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT + + 33 * - col0 + - col0 FROM tab0 AS cor0
----
-2958
-3298
-510

onlyif mysql # DIV for integer division: 
query II rowsort label-3397
SELECT ALL 63 DIV - + col2 + 59 * + 14, col1 col1 FROM tab2 AS cor0
----
824
51
825
67
825
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3397
SELECT ALL 63 / - + col2 + 59 * + 14, col1 col1 FROM tab2 AS cor0
----
824
51
825
67
825
77

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3399
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * col1 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - 5 * + 9 * + 98 AS col1 FROM tab0 cor0
----
15
-4410
87
-4410
97
-4410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT col1 FROM tab2 AS cor0 WHERE - col0 <= + - CAST( NULL AS SIGNED ) + + col2 * - col0
----

skipif mysql # not compatible
query I rowsort label-3402
SELECT col1 FROM tab2 AS cor0 WHERE - col0 <= + - CAST ( NULL AS INTEGER ) + + col2 * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 43 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3404
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) > - + 0
----

skipif mysql # not compatible
query III rowsort label-3404
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) > - + 0
----

query I rowsort
SELECT ALL 45 * col0 - + 51 + + col1 AS col1 FROM tab2
----
2070
2906
3391

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3406
SELECT ALL * FROM tab0 WHERE NOT + col0 < + CAST( NULL AS SIGNED ) / + col1
----

skipif mysql # not compatible
query III rowsort label-3406
SELECT ALL * FROM tab0 WHERE NOT + col0 < + CAST ( NULL AS INTEGER ) / + col1
----

query I rowsort
SELECT + 79 - + col2 * 54 AS col1 FROM tab2
----
-1163
-2081
-3053

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT DISTINCT - MAX( ALL ( - col0 ) ) * + + COUNT( * ) AS col2 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT - MAX ( ALL ( - col0 ) ) * + + COUNT ( * ) AS col2 FROM tab2
----
138

query I rowsort
SELECT 12 - + 50 * col1 * + col2 FROM tab0
----
-10488
-190338
-4938

query I rowsort
SELECT DISTINCT col1 + + ( + col0 ) * + 70 FROM tab0 AS cor0
----
1131
6111
6791

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL - 35 + + - COUNT( * ) AS col2 FROM tab0 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL - 35 + + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3412
SELECT ALL + 51 + + CAST( - COUNT( * ) AS SIGNED ) col2, 96 * - 39 - COUNT( - - 29 ) * + COUNT( * ) FROM tab2 AS cor0
----
48
-3753

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3412
SELECT ALL + 51 + + CAST ( - COUNT ( * ) AS INTEGER ) col2, 96 * - 39 - COUNT ( - - 29 ) * + COUNT ( * ) FROM tab2 AS cor0
----
48
-3753

query I rowsort
SELECT DISTINCT + - col1 * + ( + 41 ) + + - 92 FROM tab0 AS cor0
----
-133
-3413
-953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 WHERE NOT + - 76 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * + col2 col1 FROM tab2
----
1978
3440
4988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3416
SELECT DISTINCT + - COUNT( * ) * 4 DIV - + COUNT( col0 ) AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT + - COUNT ( * ) * 4 / - + COUNT ( col0 ) AS col1 FROM tab2 AS cor0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 42 FROM tab1 AS cor0 WHERE NOT col0 * 32 - - + 53 + + - 23 - col1 BETWEEN - - col2 * + 40 AND + + col0 + + + 5 + - - ( 19 ) * + 42
----
42

query I rowsort
SELECT DISTINCT ( + + 10 ) * - + ( + 82 ) AS col2 FROM tab0 AS cor0
----
-820

onlyif mysql # DIV for integer division: 
query I rowsort label-3420
SELECT - col1 DIV + 87 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3420
SELECT - col1 / + 87 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT + 49 DIV col1 * - 18 * ( - 86 ) DIV - - 26 * + col1 + - + 57 AS col0 FROM tab2 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-3421
SELECT + 49 / col1 * - 18 * ( - 86 ) / - - 26 * + col1 + - + 57 AS col0 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab0 WHERE NULL < - col0 - + col0 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL 51 * - COUNT( * ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL 51 * - COUNT ( * ) FROM tab0
----
-153

query I rowsort
SELECT ALL col2 * + 39 AS col2 FROM tab1
----
2301
2652
3744

query I rowsort
SELECT ALL - 39 * + col1 AS col2 FROM tab0
----
-3159
-39
-819

query I rowsort
SELECT ALL + + 26 + col0 FROM tab0 AS cor0
----
113
123
41

query I rowsort
SELECT - col2 * + col2 + + col1 + - col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT + COUNT( - - 65 ) * + 28 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT + COUNT ( - - 65 ) * + 28 FROM tab1 AS cor0
----
84

query I rowsort
SELECT ALL - col2 * + - col2 + - col0 FROM tab0 AS cor0
----
13
2194
9704

query I rowsort
SELECT + col0 * col0 * 35 AS col2 FROM tab2
----
143360
196875
74060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3431
SELECT 79 DIV COUNT( * ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-3431
SELECT 79 / COUNT ( * ) AS col2 FROM tab1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3432
SELECT + + col2 col0, + col0 + - 79 / + 27 * + CAST( + col0 AS SIGNED ) * + + CAST( NULL AS SIGNED ) * + ( - 41 ) AS col0 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3432
SELECT + + col2 col0, + col0 + - 79 / + 27 * + CAST ( + col0 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * + ( - 41 ) AS col0 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT + - col2 + + ( - col1 ) * - + col1 FROM tab0 cor0
----
-98
431
6514

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL COUNT( * ) + 76 AS col0 FROM tab0 AS cor0 WHERE - col2 + + 52 NOT BETWEEN NULL AND ( + col1 ) + + 79
----
76

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL COUNT ( * ) + 76 AS col0 FROM tab0 AS cor0 WHERE - col2 + + 52 NOT BETWEEN NULL AND ( + col1 ) + + 79
----
76

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE - col1 * + col2 * - 69 IS NULL
----

query I rowsort
SELECT - 16 + - - 72 FROM tab2 cor0
----
56
56
56

query II rowsort
SELECT ALL ( + col2 ) * col1 - - col2 + + - col1, ( col1 ) AS col1 FROM tab1 AS cor0
----
1426
14
3217
47
349
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT + MAX( DISTINCT - - col2 ) + - 35 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-3438
SELECT + MAX ( DISTINCT - - col2 ) + - 35 FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT - SUM( + + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - SUM ( + + col2 ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT ALL - ( col2 ) + - + ( - - 21 ) - 97 AS col2 FROM tab0
----
-128
-165
-217

query II rowsort
SELECT + col1, 26 * col1 AS col2 FROM tab2 WHERE col0 + + ( - + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col2 * + col1 col1 FROM tab0
----
18270
57105
9603

query II rowsort
SELECT DISTINCT + col1, + 66 FROM tab0 AS cor0
----
1
66
21
66
81
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT DISTINCT + 32 AS col0, 61 + - MAX( ALL - 74 ) AS col0 FROM tab0 AS cor0
----
32
135

skipif mysql # not compatible
query II rowsort label-3444
SELECT DISTINCT + 32 AS col0, 61 + - MAX ( ALL - 74 ) AS col0 FROM tab0 AS cor0
----
32
135

onlyif mysql # DIV for integer division: 
query II rowsort label-3445
SELECT - 30, - col1 DIV + col1 col0 FROM tab1 AS cor0
----
-30
-1
-30
-1
-30
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3445
SELECT - 30, - col1 / + col1 col0 FROM tab1 AS cor0
----
-30
-1
-30
-1
-30
-1

query I rowsort
SELECT - 24 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT col0 * - 27 * + col0 FROM tab0
----
-204363
-254043
-6075

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 59 <= + col2 * - - 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT ALL col0 * - 91 FROM tab2
----
-4186
-5824
-6825

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 IN ( ( - - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL + COUNT( - col2 ) + - + 91 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + COUNT ( - col2 ) + - + 91 FROM tab1 AS cor0
----
-88

query II rowsort
SELECT - 95 AS col2, + 21 FROM tab2 AS cor0
----
-95
21
-95
21
-95
21

query I rowsort
SELECT DISTINCT 62 + - col1 AS col2 FROM tab2 cor0
----
-15
-5
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT ALL + 1 DIV + ( + col0 ) AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + 1 / + ( + col0 ) AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3456
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3456
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 70 + 32 AS col1 FROM tab2
----
102
102
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT COUNT( * ) + + 97 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * 23 + col0 IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-3459
SELECT COUNT ( * ) + + 97 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * 23 + col0 IS NULL
----
97

query I rowsort
SELECT + col2 * + 20 AS col1 FROM tab0
----
1980
200
940

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT - col0 * + ( + col2 DIV col1 ) FROM tab0
----
-9603
0
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT - col0 * + ( + col2 / col1 ) FROM tab0
----
-9603
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL - MAX( 63 ) * 59 col1 FROM tab1
----
-3717

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3462
SELECT ALL - MAX ( 63 ) * 59 col1 FROM tab1
----
-3717

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT 36 * MAX( - 7 ) AS col2 FROM tab1 WHERE NOT ( NULL ) > - col0 + 48 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT 36 * MAX ( - 7 ) AS col2 FROM tab1 WHERE NOT ( NULL ) > - col0 + 48 * + 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT ALL col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT ALL + 64 * col0 AS col1 FROM tab2 WHERE NOT 48 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL + 64 * col0 AS col1 FROM tab2 WHERE NOT 48 + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - ( - col1 ) * col1 AS col0 FROM tab1
----
196
2209
25

query I rowsort
SELECT + col2 * - 54 FROM tab0
----
-2538
-5346
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL 96 * - MAX( + col2 ) FROM tab1 WHERE NOT - ( col2 ) BETWEEN - 57 AND col2
----
-9216

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL 96 * - MAX ( + col2 ) FROM tab1 WHERE NOT - ( col2 ) BETWEEN - 57 AND col2
----
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT - ( + CAST( NULL AS SIGNED ) ) col0 FROM tab0 WHERE col1 * 66 BETWEEN NULL AND 16
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3469
SELECT - ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 WHERE col1 * 66 BETWEEN NULL AND 16
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT col1 + + col0 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT DISTINCT 52 DIV + col0 AS col0 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT 52 / + col0 AS col0 FROM tab0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT DISTINCT col2 - 76 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( CAST( - 40 AS SIGNED ) + col0 / - col2 )
----

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT col2 - 76 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( CAST ( - 40 AS INTEGER ) + col0 / - col2 )
----

query I rowsort
SELECT ALL - col2 * 39 FROM tab0
----
-1833
-3861
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT + COUNT( CAST( col1 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3474
SELECT + COUNT ( CAST ( col1 AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT + col2 * - col1 FROM tab0 WHERE + ( + col2 ) / col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3476
SELECT MAX( 63 ) DIV - 66 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3476
SELECT MAX ( 63 ) / - 66 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3478
SELECT DISTINCT - 96 DIV col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT - 96 / col2 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ( + COUNT( ALL + col0 ) ) + + 40 AS col1 FROM tab1 WHERE ( col1 * - col1 ) IN ( col1 )
----
40

skipif mysql # not compatible
query I rowsort label-3480
SELECT ( + COUNT ( ALL + col0 ) ) + + 40 AS col1 FROM tab1 WHERE ( col1 * - col1 ) IN ( col1 )
----
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + ( col2 + col2 ) * - 4 IN ( 95 * ( col1 ) )
----

query I rowsort
SELECT DISTINCT - 34 + col0 FROM tab1
----
17
51
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 38 < + col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT + SUM( ALL 19 ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + SUM ( ALL 19 ) FROM tab2 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3485
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - col0 AS SIGNED ) + - col0 NOT IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-3485
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) + - col0 NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * 48 + 64 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3487
SELECT DISTINCT CAST( 41 AS SIGNED ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT CAST ( 41 AS INTEGER ) FROM tab1
----
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 14 <= ( NULL )
----

query I rowsort
SELECT 8 AS col0 FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN ( + 81 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN ( NULL ) AND ( + 46 + - 2 )
----
-68

skipif mysql # not compatible
query I rowsort label-3490
SELECT SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN ( NULL ) AND ( + 46 + - 2 )
----
-68

query I rowsort
SELECT ALL + col2 * + col1 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT - 68 * col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN 47 AND col1 * ( + 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT + + 73 * COUNT( * ) + 98 AS col1 FROM tab0 cor0
----
317

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT + + 73 * COUNT ( * ) + 98 AS col1 FROM tab0 cor0
----
317

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT - col2 / col2 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 83 * col1 + col1 * - col2 <= ( NULL )
----

query I rowsort
SELECT - 79 * 51 AS col2 FROM tab0 AS cor0
----
-4029
-4029
-4029

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 8 <> col2 * 74 + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT COUNT( * ) * + 57 AS col1 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-3499
SELECT COUNT ( * ) * + 57 AS col1 FROM tab1
----
171

query I rowsort
SELECT col2 * + 4 AS col2 FROM tab1
----
236
272
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT - ( CAST( + col1 AS SIGNED ) ) col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3501
SELECT - ( CAST ( + col1 AS INTEGER ) ) col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - ( + + col2 ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 8 * + 70 * + col1 AS col0 FROM tab1
----
26320
2800
7840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT DISTINCT CAST( + 99 AS SIGNED ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT CAST ( + 99 AS INTEGER ) AS col2 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT MAX( DISTINCT + - 22 ) + - MIN( col2 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-3505
SELECT MAX ( DISTINCT + - 22 ) + - MIN ( col2 ) FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ALL - COUNT( * ) + 80 * 78 FROM tab0
----
6237

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL - COUNT ( * ) + 80 * 78 FROM tab0
----
6237

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * col2 IN ( + 85 )
----

query I rowsort
SELECT - - col0 + - 93 FROM tab0 AS cor0
----
-6
-78
4

query I rowsort
SELECT + col2 * + col0 FROM tab0 AS cor0 WHERE 85 <> ( - col0 + - col0 )
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT - - 34 * ( + col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT - - 34 * ( + col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - - 23 AS col2 FROM tab0 AS cor0
----
1863
23
483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 77 col1, col0 * col1 FROM tab2
----
77
2346
77
4928
77
5025

query I rowsort
SELECT DISTINCT + ( - - col0 ) - + 4 FROM tab1
----
47
81
87

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE 75 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3515
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( + 76 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3515
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( + 76 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( col0 BETWEEN - col0 AND ( - 81 * - col1 ) )
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 NOT BETWEEN 97 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT ALL - CAST( - 94 AS SIGNED ) AS col1 FROM tab1 WHERE NOT - col2 + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - CAST ( - 94 AS INTEGER ) AS col1 FROM tab1 WHERE NOT - col2 + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 26 <= NULL
----

query I rowsort
SELECT DISTINCT - 58 + col1 + - 96 AS col2 FROM tab2 AS cor0
----
-103
-77
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT + col2 - - col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3521
SELECT + col2 - - col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + - col0 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-60
145
2118

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + COUNT( ALL + + col1 ) * - - COUNT( * ) + - 3 AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3523
SELECT + COUNT ( ALL + + col1 ) * - - COUNT ( * ) + - 3 AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT col1 + + col0 AS col2 FROM tab1 AS cor0 WHERE col0 > NULL
----

query I rowsort
SELECT DISTINCT - + 2 + + - 47 AS col1 FROM tab0 cor0
----
-49

query III rowsort
SELECT * FROM tab2 WHERE NOT - 30 * - 67 * + col0 + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT BETWEEN ( col2 * - col1 ) AND col1 + 34 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab2 WHERE NULL >= + + col2 + + + col0 * - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 36 + - - col0 * - col1 ) >= - col0 + 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - + col2, + 18 col0 FROM tab0
----
-705
18
-870
18
-9603
18

query II rowsort
SELECT + - 98 * + - 79, - col1 AS col0 FROM tab0 AS cor0
----
7742
-1
7742
-21
7742
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col0 ) AS col0, 57 + + 56 col2 FROM tab2 AS cor0
----
46
113
64
113
75
113

query I rowsort
SELECT + - col1 * col1 * - 7 AS col1 FROM tab1 AS cor0
----
1372
15463
175

query I rowsort
SELECT ALL - + ( + 53 ) AS col2 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL + col2 + + + 74 FROM tab2 cor0 WHERE NOT - 29 IS NOT NULL
----

query I rowsort
SELECT ALL 5 - - + 95 FROM tab2 AS cor0 WHERE NULL IS NULL
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT 43 + - COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3537
SELECT 43 + - COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT COUNT( * ) + + 42 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3538
SELECT COUNT ( * ) + + 42 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL 46 * 79 * + + 50 + COUNT( * ) FROM tab2 AS cor0
----
181703

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL 46 * 79 * + + 50 + COUNT ( * ) FROM tab2 AS cor0
----
181703

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT DISTINCT + CAST( + 81 AS SIGNED ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + CAST ( + 81 AS INTEGER ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT + col2 + + col0 - - - col0 * - col2 * + - col1 AS col1 FROM tab1 AS cor0
----
-24931
-290677
-68397

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3543
SELECT DISTINCT + 76 + + + col1 * - 66 / + + col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT + 76 + + + col1 * - 66 / + + col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < 95 * + col1
----

query II rowsort
SELECT ALL - 94, col2 AS col1 FROM tab2 AS cor0
----
-94
23
-94
40
-94
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 82 > ( - col1 * - ( + col2 ) ) AND 0 + + col0 IS NOT NULL
----

query I rowsort
SELECT col2 * + col0 * - col1 AS col0 FROM tab2
----
-197120
-291450
-53958

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + 7, col0 * + + col0 )
----

query II rowsort
SELECT ALL 9, - ( - col2 ) AS col1 FROM tab0
----
9
10
9
47
9
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT MAX( - + 99 ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-3550
SELECT MAX ( - + 99 ) FROM tab2
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + col1 AS col0 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab1 WHERE - 90 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) FROM tab1
----
-6

query II rowsort
SELECT 20 AS col1, - 42 FROM tab0
----
20
-42
20
-42
20
-42

query I rowsort
SELECT ALL col1 * + - col2 AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT + COUNT( * ) AS col2, + COUNT( * ) col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3556
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) col1 FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT ALL - col1 + + CAST( - 1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-118
-126
-75

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL - col1 + + CAST ( - 1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-118
-126
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT DISTINCT - MIN( - col2 ) + - + COUNT( col2 ) AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
55
3

skipif mysql # not compatible
query II rowsort label-3558
SELECT DISTINCT - MIN ( - col2 ) + - + COUNT ( col2 ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
55
3

query I rowsort
SELECT - col0 + + - col1 AS col2 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT - col2 + + ( + col0 ) * + 77 AS col0 FROM tab0
----
1108
6689
7370

query II rowsort
SELECT - 48 * - - col0 AS col1, col2 FROM tab1 AS cor0
----
-2448
96
-4080
59
-4368
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 59 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT ( NOT - col2 NOT BETWEEN ( NULL ) AND ( + 92 * - col2 ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN col2 * + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT MAX( 54 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3565
SELECT MAX ( 54 ) AS col2 FROM tab0
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( col2 ) IS NULL
----

query I rowsort
SELECT ALL - col2 * - 91 FROM tab1
----
5369
6188
8736

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3568
SELECT COUNT( * ) * + 94 DIV + 90 AS col0, 19 + + + 41 AS col2 FROM tab2
----
3
60

skipif mysql # not compatible
query II rowsort label-3568
SELECT COUNT ( * ) * + 94 / + 90 AS col0, 19 + + + 41 AS col2 FROM tab2
----
3
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3569
SELECT DISTINCT + ( - - MAX( ALL - 92 ) ) DIV COUNT( * ) * - COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT + ( - - MAX ( ALL - 92 ) ) / COUNT ( * ) * - COUNT ( * ) FROM tab1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT ALL 13 DIV + col1 col2 FROM tab0
----
0
0
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3570
SELECT ALL 13 / + col1 col2 FROM tab0
----
0
0
13

query I rowsort
SELECT - col2 / 15 - col2 * + + 73 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL - COUNT( DISTINCT - + ( + ( 20 ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - COUNT ( DISTINCT - + ( + ( 20 ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + + 81 * + col0 FROM tab2 AS cor0
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL MAX( DISTINCT - - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL MAX ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT col1 * + col1 + + col2 * - ( col0 ) AS col1 FROM tab1
----
-3979
-4700
-4990

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 53 col1 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3578
SELECT ALL - + 68 + COUNT( * ) AS col0, COUNT( DISTINCT + 81 ) DIV 95 FROM tab0 AS cor0
----
-65
0

skipif mysql # not compatible
query II rowsort label-3578
SELECT ALL - + 68 + COUNT ( * ) AS col0, COUNT ( DISTINCT + 81 ) / 95 FROM tab0 AS cor0
----
-65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL - COUNT( * ) + + - 81 col2 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3579
SELECT ALL - COUNT ( * ) + + - 81 col2 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT DISTINCT - - col2 + 29 FROM tab1 cor0
----
125
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + COUNT( * ) * 51 * 68 + - 14 * - - 66 + MAX( ALL col1 ) FROM tab1 AS cor0
----
9527

skipif mysql # not compatible
query I rowsort label-3581
SELECT + COUNT ( * ) * 51 * 68 + - 14 * - - 66 + MAX ( ALL col1 ) FROM tab1 AS cor0
----
9527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col0 FROM tab1
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3584
SELECT + CAST( + col1 AS SIGNED ) + - - col1 + 43 DIV + + 18 FROM tab1
----
12
30
96

skipif mysql # not compatible
query I rowsort label-3584
SELECT + CAST ( + col1 AS INTEGER ) + - - col1 + 43 / + + 18 FROM tab1
----
12
30
96

query III rowsort
SELECT * FROM tab0 WHERE 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0 + 86 * + 95, - col0 - + col2 + - col1 AS col1 FROM tab2 AS cor0
----
8216
-120
8234
-181
8245
-200

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + ( - col2 ) * col0 * - col1 + - col2
----

query I rowsort
SELECT DISTINCT + - 41 AS col0 FROM tab1 AS cor0 WHERE + ( + 56 ) / col0 + col2 * + + 65 IS NOT NULL
----
-41

query I rowsort
SELECT + - col1 AS col1 FROM tab2 AS cor0 WHERE ( col2 ) * - col1 * + - col0 * + col1 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + COUNT( DISTINCT - + ( + 3 ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3590
SELECT + COUNT ( DISTINCT - + ( + 3 ) ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT col0 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL col0 - - col1 + - col0 AS col0 FROM tab1
----
14
47
5

query II rowsort
SELECT col0 * + - col1, + col0 AS col0 FROM tab1 AS cor0
----
-425
85
-4277
91
-714
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT + ( + CAST( + 5 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3594
SELECT + ( + CAST ( + 5 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT - col0 * - + col2 - - col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT DISTINCT ( + 63 ) * - + col2 FROM tab0 AS cor0
----
-2961
-6237
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + - SUM( + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3597
SELECT + - SUM ( + col1 ) FROM tab0 AS cor0
----
-103

query II rowsort
SELECT 57, col1 - + 17 AS col2 FROM tab1 AS cor0
----
57
-12
57
-3
57
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT COUNT( * ) * 44 AS col2 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT COUNT ( * ) * 44 AS col2 FROM tab0 AS cor0
----
132

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT DISTINCT 57 * + COUNT( * ) FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT 57 * + COUNT ( * ) FROM tab1
----
171

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 95 + col1 )
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col2 * + col2 * + col2 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT - ( + COUNT( DISTINCT - 60 ) ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3604
SELECT - ( + COUNT ( DISTINCT - 60 ) ) AS col0 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col1 ) col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3606
SELECT + 94 AS col1, - COUNT( * ) + - - 68 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
94
68

skipif mysql # not compatible
query II rowsort label-3606
SELECT + 94 AS col1, - COUNT ( * ) + - - 68 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
94
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col1 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT - 20 AS col1 FROM tab2 AS cor0 WHERE NOT col1 > ( + col1 )
----
-20
-20
-20

query I rowsort
SELECT ALL + 2 * col0 + + + col1 AS col2 FROM tab0 AS cor0
----
111
195
195

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT col0 AS col1, - col0 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3612
SELECT * FROM tab2 AS cor0 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3612
SELECT * FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT ALL - 55 * + ( + col0 ) * col1 + + 90 DIV + + col0 + - - col2 FROM tab1 AS cor0
----
-23315
-235167
-39173

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL - 55 * + ( + col0 ) * col1 + + 90 / + + col0 + - - col2 FROM tab1 AS cor0
----
-23315
-235167
-39173

query II rowsort
SELECT ALL ( - + col0 ) + - col2 AS col0, 3 - - 88 AS col0 FROM tab1 AS cor0
----
-144
91
-147
91
-159
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3615
SELECT - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-6

query I rowsort
SELECT DISTINCT - + ( col0 ) * - col0 * - - col2 + - + 9 FROM tab2 AS cor0
----
163831
326241
48659

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT - ( + col0 ) DIV - + ( - col1 ) AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT - ( + col0 ) / - + ( - col1 ) AS col2 FROM tab0
----
-4
-97
0

query II rowsort
SELECT col2 * - + col0, col1 FROM tab1 WHERE + ( + - 71 ) / col0 IS NULL
----

query I rowsort
SELECT ALL 63 - + col2 FROM tab0
----
-36
16
53

onlyif mysql # DIV for integer division: 
query II rowsort label-3620
SELECT - col0 * - col0 AS col0, + col2 DIV 34 FROM tab2
----
2116
0
4096
1
5625
1

skipif mysql # not compatible
query II rowsort label-3620
SELECT - col0 * - col0 AS col0, + col2 / 34 FROM tab2
----
2116
0
4096
1
5625
1

query III rowsort
SELECT * FROM tab1 WHERE - 58 IS NULL
----

query I rowsort
SELECT ALL + col0 + 95 AS col1 FROM tab1
----
146
180
186

query I rowsort
SELECT + 82 * 90 FROM tab2
----
7380
7380
7380

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3624
SELECT - CAST( - col1 AS SIGNED ) AS col1, ( + col2 ) DIV + + col2 + + + 11 * + col0 * - - col2 FROM tab2
----
51
11639
67
47851
77
28161

skipif mysql # not compatible
query II rowsort label-3624
SELECT - CAST ( - col1 AS INTEGER ) AS col1, ( + col2 ) / + + col2 + + + 11 * + col0 * - - col2 FROM tab2
----
51
11639
67
47851
77
28161

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 46 * - + col2 * - col1 * + 19 - + + 12 FROM tab2 AS cor0
----
1025190
2691908
3396352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab0 AS cor0 WHERE NULL BETWEEN 80 * - ( 96 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL - SUM( - col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL - SUM ( - col2 ) AS col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT - MIN( - col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT - MIN ( - col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + 58 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - col1 * - + 16 AS col2 FROM tab2
----
1072
1232
816

query I rowsort
SELECT DISTINCT ( 71 ) AS col2 FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3634
SELECT DISTINCT - COUNT( * ), + 0 + + COUNT( * ) + 29 AS col0 FROM tab2 AS cor0
----
-3
32

skipif mysql # not compatible
query II rowsort label-3634
SELECT DISTINCT - COUNT ( * ), + 0 + + COUNT ( * ) + 29 AS col0 FROM tab2 AS cor0
----
-3
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( 21 ) + ( - + col1 ) * - col2 * 12 * + col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + col2, + 26 / 62 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 73 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 73 IS NULL
----
-3

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL - CAST( NULL AS SIGNED ) * - AVG ( + - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL - CAST ( NULL AS INTEGER ) * - AVG ( + - col1 ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col1, 34 AS col2 FROM tab0
----
1
34
21
34
81
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, - col2 + col0 col0 FROM tab0
----
-10
77
-47
-32
-99
-2

query I rowsort
SELECT ALL - 8 * - - 8 FROM tab2
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT - MIN( col2 ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3643
SELECT - MIN ( col2 ) col2 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT DISTINCT 67 col1, - COUNT( * ) FROM tab1
----
67
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3644
SELECT DISTINCT 67 col1, - COUNT ( * ) FROM tab1
----
67
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 NOT BETWEEN - 21 AND - col1 * + col2 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 30 + - - col2 FROM tab0 AS cor0
----
-20
17
69

query I rowsort
SELECT DISTINCT - 93 + - + 49 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-142

query I rowsort
SELECT ALL - col0 + col0 + - 9 AS col1 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL + col0 + - - ( - 77 ) * + - 83 FROM tab2 AS cor0
----
6437
6455
6466

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT col0 * - 52 * col1 - 51 DIV + ( col1 ) - - col1 AS col2 FROM tab1 AS cor0
----
-22105
-222358
-37117

skipif mysql # not compatible
query I rowsort label-3650
SELECT col0 * - 52 * col1 - 51 / + ( col1 ) - - col1 AS col2 FROM tab1 AS cor0
----
-22105
-222358
-37117

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - MIN( DISTINCT - col1 ) - - 36 AS col0 FROM tab2 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-3651
SELECT - MIN ( DISTINCT - col1 ) - - 36 AS col0 FROM tab2 AS cor0
----
113

query II rowsort
SELECT col1 + - + col1 AS col1, col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

query I rowsort
SELECT + + 35 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
35
35
35

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT ALL col0 - + CAST( NULL AS SIGNED ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL col0 - + CAST ( NULL AS INTEGER ) + col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col2, col1 + - col1 AS col0 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT 13 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT 13 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 64 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 WHERE col2 > - 77
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col0 col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT + - 75 * 78 FROM tab2 AS cor0
----
-5850
-5850
-5850

query I rowsort
SELECT DISTINCT 64 * + col2 FROM tab2 WHERE + 0 + + 56 IS NOT NULL
----
1472
2560
3712

query I rowsort
SELECT - + 16 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT col1 / - col0 IN ( + + 83, col0 * 89 - col2, - col2, - 56, - col0 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT 4 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT 4 / - col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 30 - + + col0 col2 FROM tab2 AS cor0
----
1484
1935
2246

query I rowsort
SELECT + - ( col1 ) * 71 + - + col2 AS col0 FROM tab2 AS cor0
----
-3644
-4815
-5507

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT - MAX( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT - MAX ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
15
87
97

query I rowsort
SELECT + col2 * + - col1 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab0 AS cor0 WHERE NOT 91 + - col2 * - col0 + + 58 / + col1 + + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab1, tab2 cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT - 86 + - COUNT( * ) AS col1 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT - 86 + - COUNT ( * ) AS col1 FROM tab1
----
-89

query I rowsort
SELECT + col2 + 68 FROM tab0 AS cor0
----
115
167
78

query I rowsort
SELECT + 92 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= - + ( col0 ) * + col1 + - + col0
----

query II rowsort
SELECT + col2 AS col2, + 56 + + 85 * + - col0 AS col2 FROM tab0 AS cor0
----
10
-7339
47
-1219
99
-8189

query I rowsort
SELECT ( + ( + - 68 ) ) FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL + + col0 + + + col2 + - + col0 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50, - col0 col2 FROM tab1 AS cor0
----
50
-51
50
-85
50
-91

query I rowsort
SELECT DISTINCT - col0 + + + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-101
-74
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT DISTINCT col0 DIV - col1 - + col2 AS col0 FROM tab0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT col0 / - col1 - + col2 AS col0 FROM tab0
----
-14
-196
-47

query II rowsort
SELECT col1 * + col1 AS col2, ( + - 48 ) FROM tab0
----
1
-48
441
-48
6561
-48

query I rowsort
SELECT - 33 * + + 27 - - 92 FROM tab0
----
-799
-799
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT COUNT( * ) - - - 2 * + 74 AS col1 FROM tab2
----
-145

skipif mysql # not compatible
query I rowsort label-3685
SELECT COUNT ( * ) - - - 2 * + 74 AS col1 FROM tab2
----
-145

query I rowsort
SELECT col0 - - + ( + - col0 ) * - ( - col0 ) FROM tab1
----
-2550
-7140
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL MAX( ALL - 9 ) * - + 79 FROM tab0
----
711

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL MAX ( ALL - 9 ) * - + 79 FROM tab0
----
711

query I rowsort
SELECT ALL 9 * + + col0 AS col1 FROM tab1
----
459
765
819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3689
SELECT ALL + col1 * + - 74 * - 90, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
139860
NULL
539460
NULL
6660
NULL

skipif mysql # not compatible
query II rowsort label-3689
SELECT ALL + col1 * + - 74 * - 90, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
139860
NULL
539460
NULL
6660
NULL

query I rowsort
SELECT - ( + col0 ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - - 94 AS col0 FROM tab2 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3692
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 37 col0, - col2 FROM tab1
----
-37
-59
-37
-68
-37
-96

query I rowsort
SELECT 10 * - + col1 AS col1 FROM tab0 AS cor0
----
-10
-210
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT DISTINCT + + col1 DIV col0 AS col0 FROM tab0 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT + + col1 / col0 AS col0 FROM tab0 cor0
----
0
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 19 * - col0 AND - + col2
----

query I rowsort
SELECT DISTINCT + - 97 FROM tab2 AS cor0 WHERE NOT + 80 + - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 99 FROM tab1 AS cor0 WHERE NOT + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT + ( MAX( ALL - col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3699
SELECT + ( MAX ( ALL - col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT - - MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3700
SELECT - - MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - col1 - + 32 * - - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2805
-3105
-561

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * + col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT COUNT( col0 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3703
SELECT COUNT ( col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + 18 + - col2 + - 92 * 85 * - - col1 FROM tab1 AS cor0
----
-109558
-367590
-39141

query I rowsort
SELECT DISTINCT + + 6 FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 95 + col2 AS col0 FROM tab2 cor0
----
118
135
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col1 ) * col0 col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT col0 - col0 + + col1 * + col0 * + 53 FROM tab0
----
5141
64395
96831

query I rowsort
SELECT + 79 * 86 FROM tab1
----
6794
6794
6794

query I rowsort
SELECT ALL + col2 + 13 FROM tab2 AS cor0
----
36
53
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + + col0 + + + ( col2 ) - - 17 * col1 + + 88 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + col1 - - col2 + 90 + 32 AS col0, - col2 * + 5 * - 19 col0 FROM tab1 AS cor0
----
-1126
9120
-114
5605
-3006
6460

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT - col0 DIV + col0 - - col2 FROM tab0 cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-3715
SELECT - col0 / + col0 - - col2 FROM tab0 cor0
----
46
9
98

query I rowsort
SELECT ALL 36 - + 67 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - + col2 * + 29 + - col0 FROM tab1 AS cor0
----
-1796
-2063
-2835

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 33 <= + col1 + - - 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - - 28 FROM tab0 AS cor0
----
127
38
75

query I rowsort
SELECT - col1 + 45 AS col0 FROM tab1 cor0
----
-2
31
40

query I rowsort
SELECT + + col2 - + 68 AS col2 FROM tab2 AS cor0 WHERE - 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT ALL + COUNT( * ) AS col2, + 89 + - 35 FROM tab1
----
3
54

skipif mysql # not compatible
query II rowsort label-3722
SELECT ALL + COUNT ( * ) AS col2, + 89 + - 35 FROM tab1
----
3
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT + 19 * COUNT( * ) + + 8 AS col2 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-3723
SELECT + 19 * COUNT ( * ) + + 8 AS col2 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL - COUNT( * ) - - - 31 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL - COUNT ( * ) - - - 31 FROM tab1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT DISTINCT 19 DIV - col2 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3725
SELECT DISTINCT 19 / - col2 col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT + COUNT( * ) * + 31 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT + COUNT ( * ) * + 31 FROM tab1
----
93

query I rowsort
SELECT ALL - 90 * - col0 AS col0 FROM tab0 AS cor0
----
1350
7830
8730

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3729
SELECT + + COUNT( * ) DIV + 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3729
SELECT + + COUNT ( * ) / + 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT col2 * 78 FROM tab0
----
3666
7722
780

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ( - MAX( ALL + 45 ) ) * SUM( ALL - col2 ) AS col1 FROM tab0 cor0
----
7020

skipif mysql # not compatible
query I rowsort label-3731
SELECT ( - MAX ( ALL + 45 ) ) * SUM ( ALL - col2 ) AS col1 FROM tab0 cor0
----
7020

query I rowsort
SELECT DISTINCT 32 FROM tab1 cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT - 56 * - COUNT( * ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-3733
SELECT - 56 * - COUNT ( * ) FROM tab0 AS cor0
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3734
SELECT - + COUNT( * ) + + COUNT( * ) DIV - - 82 col2, MIN( + - col0 ) AS col1 FROM tab0 AS cor0
----
-3
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3734
SELECT - + COUNT ( * ) + + COUNT ( * ) / - - 82 col2, MIN ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-3
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * 98 BETWEEN - col1 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3736
SELECT + col1 DIV - - 98 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3736
SELECT + col1 / - - 98 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + 26 + + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3738
SELECT CAST( col1 AS SIGNED ) + - - col1 + - col2 FROM tab2 AS cor0
----
114
76
79

skipif mysql # not compatible
query I rowsort label-3738
SELECT CAST ( col1 AS INTEGER ) + - - col1 + - col2 FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT DISTINCT - ( 80 ) AS col2 FROM tab2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3740
SELECT col2, + col2 * CAST( NULL AS SIGNED ) * - 94 * - col1 AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3740
SELECT col2, + col2 * CAST ( NULL AS INTEGER ) * - 94 * - col1 AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 35 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + + col1 + + col2 + - col1 FROM tab0
----
197
199
3773

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT - ( 90 ) * COUNT( * ) FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT - ( 90 ) * COUNT ( * ) FROM tab1 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT ALL col1 + + col0 - col0 AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + col1 * - + 39 FROM tab1 cor0
----
-1833
-195
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3747
SELECT ALL ( CAST( NULL AS SIGNED ) ) * COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 40 BETWEEN NULL AND - 22
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 55 ) BETWEEN - col0 AND + col0
----
85
5
59
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 - + col1 IS NOT NULL OR - 38 + col1 > - col1 - + - 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab1 WHERE NOT + + col1 * col1 <= NULL
----

query I rowsort
SELECT ALL + 3 FROM tab0 WHERE NOT NULL <> - + 0
----

query II rowsort
SELECT col1 + + 82, + col1 + + 36 AS col1 FROM tab1
----
129
83
87
41
96
50

query I rowsort
SELECT 74 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 + + + col2 col0 FROM tab0 AS cor0
----
-39
-76
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT 37 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT 37 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT DISTINCT 5 - - COUNT( * ) FROM tab1 cor0
----
8

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT 5 - - COUNT ( * ) FROM tab1 cor0
----
8

query I rowsort
SELECT DISTINCT 8 - + col2 FROM tab0 AS cor0
----
-2
-39
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT DISTINCT col0 * 93 * col0 + + col1 - + col1 - - + 61 + 39 * + + 99 + - col0 * col1 * + + 97 + - 3 DIV + ( - + col2 ) + - col1 AS col2 FROM tab1 AS cor0
----
176543
359139
634617

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT col0 * 93 * col0 + + col1 - + col1 - - + 61 + 39 * + + 99 + - col0 * col1 * + + 97 + - 3 / + ( - + col2 ) + - col1 AS col2 FROM tab1 AS cor0
----
176543
359139
634617

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 10 ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL COUNT( * ) * - ( + ( - 38 ) ) FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL COUNT ( * ) * - ( + ( - 38 ) ) FROM tab1
----
114

query I rowsort
SELECT DISTINCT + 69 * - + col2 FROM tab2
----
-1587
-2760
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL COUNT( * ) * 41 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL COUNT ( * ) * 41 FROM tab1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT - 42 * - + COUNT( * ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT - 42 * - + COUNT ( * ) FROM tab0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col1, col0 - + col2 FROM tab0 AS cor0
----
10
77
47
-32
99
-2

query I rowsort
SELECT DISTINCT - col1 * ( + - col0 ) AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3767
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 20 * + + col1 AS col2 FROM tab1
----
100
280
940

query I rowsort
SELECT + + 29 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - 72 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT ( + SUM( + col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT ( + SUM ( + col2 ) ) FROM tab2
----
121

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab0 WHERE col2 NOT IN ( - 48, 90 * + col0, col1 + - col0 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3773
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * 28 IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 35 + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
120
126
86

query I rowsort
SELECT ALL - - col2 * + - col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT + col2 * + col0, 5 + + - 86 AS col2 FROM tab2 cor0
----
1058
-81
2560
-81
4350
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT ALL + ( - 44 ) DIV 33 * + - col1 + - col0 AS col2 FROM tab0 cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + ( - 44 ) / 33 * + - col1 + - col0 AS col2 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT + col0 * - + col2 * - col1 AS col1 FROM tab2 AS cor0
----
197120
291450
53958

query II rowsort
SELECT ALL col1 * + 14, col2 FROM tab2
----
1078
40
714
23
938
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3782
SELECT ALL COUNT( * ) DIV + - 41 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL COUNT ( * ) / + - 41 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3783
SELECT + col2 * col0 DIV - 11 + - col2 FROM tab2
----
-119
-272
-453

skipif mysql # not compatible
query I rowsort label-3783
SELECT + col2 * col0 / - 11 + - col2 FROM tab2
----
-119
-272
-453

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT ALL + 36 DIV - - 96 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + 36 / - - 96 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 34 + - - col1 AS col1 FROM tab1
----
-20
-29
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( 31 ) + 98 + - - 79 FROM tab2
----
208
208
208

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT DISTINCT - SUM( - col0 ), 18 col1 FROM tab0
----
199
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3788
SELECT DISTINCT - SUM ( - col0 ), 18 col1 FROM tab0
----
199
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT + 81 * - - COUNT( * ) FROM tab0 WHERE ( - - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT + 81 * - - COUNT ( * ) FROM tab0 WHERE ( - - col2 ) IS NULL
----
0

query I rowsort
SELECT - 95 FROM tab1 WHERE + - 88 / + - col0 IS NOT NULL
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3791
SELECT - col2 * - - col1 * + col1 + - col2 + + col0 DIV - + col2 AS col2 FROM tab0
----
-198
-308414
-4428

skipif mysql # not compatible
query I rowsort label-3791
SELECT - col2 * - - col1 * + col1 + - col2 + + col0 / - + col2 AS col2 FROM tab0
----
-198
-308414
-4428

query III rowsort
SELECT * FROM tab2 WHERE - + col1 * + 61 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3793
SELECT ALL - MIN( DISTINCT col2 ) + + MIN( ALL - CAST( NULL AS DECIMAL ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - MIN ( DISTINCT col2 ) + + MIN ( ALL - CAST ( NULL AS REAL ) ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col2 col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - - 93 AS col0, 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 338c872910e6435509ff62ce4fec5862

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT MAX( ALL + 99 ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3796
SELECT MAX ( ALL + 99 ) AS col2 FROM tab1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT DISTINCT + col0 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT + col0 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - - 83 / - col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3799
SELECT - CAST( NULL AS SIGNED ) * + + 63 - + SUM( + + col1 ) + 77 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT - CAST ( NULL AS INTEGER ) * + + 63 - + SUM ( + + col1 ) + 77 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT + - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT + - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL - MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL - MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + - 68 - col0 FROM tab0 AS cor0
----
-155
-165
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 * + col0 + 4 * 21 col0 FROM tab0 AS cor0
----
-3831
-4281
-591

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT + col0 DIV - 89 col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3804
SELECT + col0 / - 89 col1 FROM tab0 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3805
SELECT + COUNT( * ) AS col0, + 20 FROM tab2 AS cor0
----
3
20

skipif mysql # not compatible
query II rowsort label-3805
SELECT + COUNT ( * ) AS col0, + 20 FROM tab2 AS cor0
----
3
20

query I rowsort
SELECT - + 41 * + - col2 FROM tab1 AS cor0
----
2419
2788
3936

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col1, col1 * + col0 * col0 AS col1 FROM tab2 AS cor0
----
51
107916
67
376875
77
315392

query III rowsort
SELECT ALL * FROM tab0 WHERE - 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 25 * - col0 AS col1 FROM tab0
----
-2175
-2425
-375

query I rowsort
SELECT ALL - col1 * - 29 FROM tab0
----
2349
29
609

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL - COUNT( 44 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - COUNT ( 44 ) FROM tab1
----
-3

query I rowsort
SELECT - col2 * - - 41 FROM tab0
----
-1927
-4059
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT + MAX( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT + MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + ( - ( + col1 ) ) * + - 51 AS col2 FROM tab0 AS cor0
----
1071
4131
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - COUNT( * ) * + COUNT( DISTINCT 31 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3816
SELECT - COUNT ( * ) * + COUNT ( DISTINCT 31 ) AS col0 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 + + + col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL COUNT( + - col1 ) + - ( + + 32 ) AS col2 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL COUNT ( + - col1 ) + - ( + + 32 ) AS col2 FROM tab0 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3819
SELECT + - col0 + + CAST( NULL AS SIGNED ) + - 59 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT + - col0 + + CAST ( NULL AS INTEGER ) + - 59 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3820
SELECT - 87 + - MAX( DISTINCT - col1 ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-36
3

skipif mysql # not compatible
query II rowsort label-3820
SELECT - 87 + - MAX ( DISTINCT - col1 ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-36
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT MIN( DISTINCT + + col0 ) + 60 AS col1 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-3821
SELECT MIN ( DISTINCT + + col0 ) + 60 AS col1 FROM tab1 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT - - ( - COUNT( * ) ) + + 79 AS col2 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3822
SELECT - - ( - COUNT ( * ) ) + + 79 AS col2 FROM tab1 AS cor0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3823
SELECT ALL + 82 * - COUNT( * ) * SUM( + col2 ) - + CAST( - + COUNT( * ) AS SIGNED ) + - SUM( - 13 ) * + CAST( NULL AS DECIMAL ) + + ( - COUNT( * ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + 82 * - COUNT ( * ) * SUM ( + col2 ) - + CAST ( - + COUNT ( * ) AS INTEGER ) + - SUM ( - 13 ) * + CAST ( NULL AS REAL ) + + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 * + - col0 + - - 1 AS col1 FROM tab2 AS cor0
----
2117
4097
5626

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 BETWEEN - + 66 AND NULL
----

query I rowsort
SELECT - - col2 + + 64 FROM tab2 AS cor0
----
104
122
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT COUNT( * ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3827
SELECT COUNT ( * ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + 73 * - + ( - + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1533
-5913
-73

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 NOT BETWEEN col2 * + + col0 + - col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT DISTINCT col2 + col2 DIV + + col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT col2 + col2 / + + col2 FROM tab0
----
100
11
48

query III rowsort
SELECT * FROM tab0 WHERE + 45 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3832
SELECT ALL * FROM tab1 WHERE NOT - 17 <> + col1 / + 25 * + col0 * + - 94 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3832
SELECT ALL * FROM tab1 WHERE NOT - 17 <> + col1 / + 25 * + col0 * + - 94 - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col2 * - + col0 * - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT + 11 AS col1, + 99 * - + COUNT( * ) AS col0 FROM tab2
----
11
-297

skipif mysql # not compatible
query II rowsort label-3834
SELECT + 11 AS col1, + 99 * - + COUNT ( * ) AS col0 FROM tab2
----
11
-297

onlyif mysql # DIV for integer division: 
query III rowsort label-3835
SELECT ALL + + col2 + col1 AS col1, 24 - - col1 col2, + - col2 * + col0 * col2 DIV col0 col2 FROM tab0 AS cor0
----
9 values hashing to a251fa60b91743102e2fd1f4291d72a9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3835
SELECT ALL + + col2 + col1 AS col1, 24 - - col1 col2, + - col2 * + col0 * col2 / col0 col2 FROM tab0 AS cor0
----
9 values hashing to a251fa60b91743102e2fd1f4291d72a9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 52 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT 80 * - COUNT( * ) FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-3838
SELECT 80 * - COUNT ( * ) FROM tab2 AS cor0
----
-240

query I rowsort
SELECT DISTINCT - - ( col2 ) * ( - - col1 ) AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT ALL 89 DIV - ( - col1 ) AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL 89 / - ( - col1 ) AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 * + 32 FROM tab1 AS cor0
----
-1888
-2176
-3072

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL + ( - COUNT( ALL - col2 ) ) FROM tab2 WHERE NULL >= - ( - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL + ( - COUNT ( ALL - col2 ) ) FROM tab2 WHERE NULL >= - ( - 74 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT + col2 DIV - col0 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3844
SELECT + col2 / - col0 * + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT - MIN( - 71 ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-3845
SELECT - MIN ( - 71 ) FROM tab2
----
71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 > - - col2 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + 8 AS col2 FROM tab2 cor0
----
184
320
464

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 13 IN ( - col2 / - + 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col0, - ( - ( - + 45 ) ) FROM tab0 AS cor0
----
-15
-45
-87
-45
-97
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + COUNT( * ) * + + 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
720

skipif mysql # not compatible
query I rowsort label-3850
SELECT + COUNT ( * ) * + + 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
720

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= ( - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT ALL + - col0 DIV + + col0 + - - 77 * - 57 FROM tab0 AS cor0
----
-4390
-4390
-4390

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + - col0 / + + col0 + - - 77 * - 57 FROM tab0 AS cor0
----
-4390
-4390
-4390

query I rowsort
SELECT 3 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT DISTINCT + + 10 + + - CAST( NULL AS SIGNED ) - - col1 + + - 82 * + - 30 * - - col1 + - 74 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT + + 10 + + - CAST ( NULL AS INTEGER ) - - col1 + + - 82 * + - 30 * - - col1 + - 74 * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - + 28 ) * - col2 + + 77 + + 16 AS col2 FROM tab0 AS cor0
----
1409
2865
373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3856
SELECT ALL - CAST( - ( col0 ) AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL - CAST ( - ( col0 ) AS INTEGER ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT DISTINCT + 21 * col1 DIV + - col1 - col0 FROM tab1
----
-106
-112
-72

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT + 21 * col1 / + - col1 - col0 FROM tab1
----
-106
-112
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL MAX( ALL + - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL MAX ( ALL + - col2 ) FROM tab0
----
-10

query I rowsort
SELECT ALL - ( - + 89 ) AS col2 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT COUNT( + col2 ) * 59 + COUNT( * ) col2 FROM tab1
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3860
SELECT COUNT ( + col2 ) * 59 + COUNT ( * ) col2 FROM tab1
----
180

query I rowsort
SELECT 61 * - col0 AS col0 FROM tab2 WHERE NULL < - col1 / + col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + - MIN( DISTINCT - - 85 ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-3862
SELECT + - MIN ( DISTINCT - - 85 ) FROM tab2 AS cor0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3863
SELECT ALL CAST( NULL AS DECIMAL ) * COUNT( * ) * - 56 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL CAST ( NULL AS REAL ) * COUNT ( * ) * - 56 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 99 * - 27 * - 99 * + 56 FROM tab0
----
14819112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3865
SELECT - + CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3865
SELECT - + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - MAX( - - 57 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-57

skipif mysql # not compatible
query I rowsort label-3866
SELECT - MAX ( - - 57 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3867
SELECT ALL - COUNT( * ) DIV - 47 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL - COUNT ( * ) / - 47 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT ALL 53 DIV + 3 AS col2 FROM tab0 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL 53 / + 3 AS col2 FROM tab0 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT + - COUNT( DISTINCT + 86 ) AS col0, ( - - COUNT( DISTINCT + - col1 ) ) FROM tab2 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-3869
SELECT + - COUNT ( DISTINCT + 86 ) AS col0, ( - - COUNT ( DISTINCT + - col1 ) ) FROM tab2 AS cor0
----
-1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col1 FROM tab2 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT 26 DIV + col1 FROM tab0 AS cor0
----
0
1
26

skipif mysql # not compatible
query I rowsort label-3871
SELECT 26 / + col1 FROM tab0 AS cor0
----
0
1
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, col2 - - 68 AS col0 FROM tab2 AS cor0
----
23
91
40
108
58
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT - + 1 DIV + + COUNT( * ) * - + 9 + + 88 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3873
SELECT - + 1 / + + COUNT ( * ) * - + 9 + + 88 FROM tab2 AS cor0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT DISTINCT + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + col0 / - col0 AS col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 24 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col0, 33 col0 FROM tab1 AS cor0
----
59
33
68
33
96
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT ALL - CAST( - 7 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - CAST ( - 7 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3878
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3878
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= ( + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT + MAX( DISTINCT + 29 ) DIV 53 * + 47 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + MAX ( DISTINCT + 29 ) / 53 * + 47 FROM tab1, tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 91 >= 84
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * 26 * + 3 IS NOT NULL
----

query I rowsort
SELECT ALL - 11 + - + 72 - + col2 + + col0 - - + 12 * col2 * + col0 * - col2 * - col1 FROM tab2 AS cor0
----
14892348
202849134
94617541

query II rowsort
SELECT DISTINCT - - ( - 11 ), 97 + + col1 AS col0 FROM tab1 AS cor0
----
-11
102
-11
111
-11
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT - 5 + COUNT( 27 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-3885
SELECT - 5 + COUNT ( 27 ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL - COUNT( * ) col2 FROM tab0 AS cor0 WHERE col0 * col1 <= - 79
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3886
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE col0 * col1 <= - 79
----
0

query I rowsort
SELECT + + col2 + - - col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL COUNT( * ) + - 21 AS col0 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL COUNT ( * ) + - 21 AS col0 FROM tab1 AS cor0
----
-18

query II rowsort
SELECT ALL col0 * - 88 + + 47, col0 AS col2 FROM tab2 cor0
----
-4001
46
-5585
64
-6553
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - + ( + ( col2 ) ) + + 89 AS col2 FROM tab2 AS cor0
----
31
49
66

query I rowsort
SELECT + - 28 + + col1 FROM tab0 AS cor0
----
-27
-7
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 98 ) col1 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT - + col1 * - 11 AS col1 FROM tab0 AS cor0
----
11
231
891

query II rowsort
SELECT - 76, + col2 FROM tab1 AS cor0
----
-76
59
-76
68
-76
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3896
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + col2 NOT IN ( - 92 + + + col2 * - - col0 + + col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3896
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + col2 NOT IN ( - 92 + + + col2 * - - col0 + + col2 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT + COUNT( - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) <> - col0 / - col1 + + - col1 + + col1 / col2 + + 58
----
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT + COUNT ( - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) <> - col0 / - col1 + + - col1 + + col1 / col2 + + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL COUNT( * ) - + 22 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL COUNT ( * ) - + 22 FROM tab2
----
-19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 99 BETWEEN NULL AND NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT DISTINCT + ( - + COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT + 71 - ( col0 ) AS col2 FROM tab0
----
-16
-26
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + 22
----

query II rowsort
SELECT 59 * 89 - - + ( + col2 ), + 13 + - col1 AS col2 FROM tab2
----
5274
-38
5291
-64
5309
-54

query I rowsort
SELECT col0 * col2 - - col1 AS col0 FROM tab1
----
4910
5020
6235

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( - + col0 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT ALL - 89 - - 30 * - + ( - 9 ) * + - 7 * - 51 + + COUNT( * ) AS col1, COUNT( * ) FROM tab1 WHERE NOT NULL >= - col1
----
96301
0

skipif mysql # not compatible
query II rowsort label-3907
SELECT ALL - 89 - - 30 * - + ( - 9 ) * + - 7 * - 51 + + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 WHERE NOT NULL >= - col1
----
96301
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT ALL col1 * + CAST( 7 AS SIGNED ) AS col1 FROM tab2
----
357
469
539

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL col1 * + CAST ( 7 AS INTEGER ) AS col1 FROM tab2
----
357
469
539

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT 95 * + - COUNT( * ) FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT 95 * + - COUNT ( * ) FROM tab1
----
-285

query III rowsort
SELECT * FROM tab2 WHERE NOT - 30 + 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col2 FROM tab2 AS cor0 WHERE NOT + 12 + - col2 - + - col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT + SUM( DISTINCT ( - 71 ) ) AS col0 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3913
SELECT + SUM ( DISTINCT ( - 71 ) ) AS col0 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT DISTINCT + - ( 15 ) FROM tab1 AS cor0
----
-15

query II rowsort
SELECT DISTINCT col1 * col1 + - 15 AS col1, - 91 FROM tab0 AS cor0
----
-14
-91
426
-91
6546
-91

query I rowsort
SELECT ALL - 25 AS col1 FROM tab0 cor0
----
-25
-25
-25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + + MIN( ALL 26 ) AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3918
SELECT + + MIN ( ALL 26 ) AS col2 FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3919
SELECT 84 DIV - ( + - COUNT( * ) ) AS col0 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3919
SELECT 84 / - ( + - COUNT ( * ) ) AS col0 FROM tab1
----
28

query I rowsort
SELECT ALL - col1 / + col2 AS col0 FROM tab0 WHERE NULL > - - col2 + + - col1 + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 91 ) BETWEEN - 4 * - col0 AND 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - 88 AS col0 FROM tab0
----
-4136
-8712
-880

query I rowsort
SELECT DISTINCT ( + col1 ) * + col1 FROM tab2 WHERE 70 < + + 30 - - + col2
----
4489

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT MIN( 68 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-3925
SELECT MIN ( 68 ) FROM tab2
----
68

query II rowsort
SELECT ALL - col0, + 67 AS col2 FROM tab2
----
-46
67
-64
67
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT ALL col1 * - + col0 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL col1 * - + col0 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 AS col2, col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT + col1 + - - col0 - ( - col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
1270
3221
4028

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( - 64 ) + col0 AS col0 FROM tab0 AS cor0
----
-49
23
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3932
SELECT ALL - COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3932
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT + ( - 20 ) AS col2 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT - col1 DIV - ( + + 87 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3934
SELECT - col1 / - ( + + 87 ) FROM tab2
----
0
0
0

query II rowsort
SELECT ALL col0 * - col0, ( col2 ) AS col1 FROM tab1
----
-2601
96
-7225
59
-8281
68

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( + col2, + col1 * col1 * - - col0 / - - col0 )
----

query I rowsort
SELECT DISTINCT - 60 + 73 FROM tab0 cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT ALL - 84 * - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - 84 * - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 18 * - - 96 + col2 AS col1 FROM tab0 AS cor0
----
1790
1825
1924

query I rowsort
SELECT - 11 + - + col2 AS col1 FROM tab1 AS cor0
----
-107
-70
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT + 15 + - COUNT( * ) FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-3941
SELECT + 15 + - COUNT ( * ) FROM tab0 cor0
----
12

query I rowsort
SELECT ALL + col1 * - + col0 + + col0 + + + 3 AS col1 FROM tab1 AS cor0
----
-337
-4183
-660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * col1 + + + 22 + + col1 + - col2 + + col0 col0 FROM tab0
----
3068
58
897

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT + + CAST( + col2 AS SIGNED ) * + col1 FROM tab0 AS cor0 WHERE NOT 77 * - - ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3945
SELECT + + CAST ( + col2 AS INTEGER ) * + col1 FROM tab0 AS cor0 WHERE NOT 77 * - - ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT - + CAST( NULL AS SIGNED ) / col1 * + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT - + CAST ( NULL AS INTEGER ) / col1 * + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3947
SELECT * FROM tab1 AS cor0 WHERE NOT + 15 * + CAST( NULL AS SIGNED ) * - + col0 / col1 - - col2 >= NULL OR NOT + + col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-3947
SELECT * FROM tab1 AS cor0 WHERE NOT + 15 * + CAST ( NULL AS INTEGER ) * - + col0 / col1 - - col2 >= NULL OR NOT + + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL + MAX( + 36 ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL + MAX ( + 36 ) AS col1 FROM tab1
----
36

query III rowsort
SELECT ALL * FROM tab0 WHERE + 96 + 16 BETWEEN + 99 + 4 AND ( ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT COUNT( 39 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3950
SELECT COUNT ( 39 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT ALL COUNT( - col0 ) DIV - 34 + + 42 AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL COUNT ( - col0 ) / - 34 + + 42 AS col0 FROM tab0
----
42

query I rowsort
SELECT ALL 87 FROM tab1 WHERE NOT + col0 + - col0 NOT IN ( - col2 * - col0 )
----

query I rowsort
SELECT - 36 - col1 AS col1 FROM tab2
----
-103
-113
-87

query I rowsort
SELECT AVG ( - col1 ) * + 85 FROM tab2 WHERE ( col2 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT + COUNT( * ) + 39 FROM tab1 WHERE NOT col2 / + 2 <= col1
----
41

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + COUNT ( * ) + 39 FROM tab1 WHERE NOT col2 / + 2 <= col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL + ( COUNT( * ) ) FROM tab1 WHERE NOT 5 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + ( COUNT ( * ) ) FROM tab1 WHERE NOT 5 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN 15 * + ( 67 ) AND + 36
----

query III rowsort
SELECT * FROM tab2 WHERE ( 18 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( - col2 ) AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( 16 )
----

query I rowsort
SELECT DISTINCT ( col1 ) + + col0 AS col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL + 48 + + col2 FROM tab1
----
107
116
144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 78 <> - 79 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 69 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL + COUNT( * ) + + 4 AS col0 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL + COUNT ( * ) + + 4 AS col0 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3968
SELECT DISTINCT col2 / - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT col2 / - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN + 2 * + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT MAX( - 58 ) AS col1 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-3970
SELECT MAX ( - 58 ) AS col1 FROM tab0
----
-58

query I rowsort
SELECT + 99 + col0 AS col1 FROM tab2
----
145
163
174

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 - col0 * 95 < 60
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - 44 / + 47
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE + col2 + 69 < NULL
----

query I rowsort
SELECT + col0 + col2 FROM tab0 AS cor0 WHERE NULL IN ( col2 * - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3976
SELECT - CAST( NULL AS DECIMAL ) + AVG ( col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT - CAST ( NULL AS REAL ) + AVG ( col1 ) FROM tab2
----
NULL

query I rowsort
SELECT col1 + - 66 FROM tab1
----
-19
-52
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT COUNT( * ) * - 11 + - 99 col1 FROM tab0
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3978
SELECT COUNT ( * ) * - 11 + - 99 col1 FROM tab0
----
-132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 79 + col1 IS NULL
----

query I rowsort
SELECT - 18 * col1 FROM tab1 AS cor0
----
-252
-846
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = - 31
----

query I rowsort
SELECT DISTINCT - + 74 * - col0 + - col0 FROM tab1 AS cor0
----
3723
6205
6643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + 44 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + 44 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT DISTINCT - CAST( 82 AS SIGNED ) + 54 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - CAST ( 82 AS INTEGER ) + 54 FROM tab1 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT DISTINCT + - col1 + - 24 DIV - 88 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT + - col1 + - 24 / - 88 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 92 ) = NULL
----

query I rowsort
SELECT ALL + col0 - + col2 * + col2 FROM tab1 cor0
----
-3396
-4533
-9165

query I rowsort
SELECT DISTINCT col2 + + 66 * col0 AS col0 FROM tab1 AS cor0 WHERE + col1 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + col1 + col1 AS col1 FROM tab2
----
148
209
218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col1 FROM tab1
----
58

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT IN ( + ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 67 * - col1 FROM tab1 WHERE - col2 NOT BETWEEN ( col0 ) AND - col2 * - col2 + + 58
----
-3149
-335
-938

query I rowsort
SELECT DISTINCT + 37 - - col1 * - col2 FROM tab0
----
-173
-3770
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT + col2 AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) - col2 IS NOT NULL OR NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3995
SELECT + col2 AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) - col2 IS NOT NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT - 97 - + - col0 AS col0 FROM tab1
----
-12
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL MIN( ALL ( col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL MIN ( ALL ( col1 ) ) FROM tab2
----
51

query I rowsort
SELECT - ( - 89 ) AS col2 FROM tab0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT + COUNT( col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3999
SELECT + COUNT ( col0 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 19 < col1
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( - 94 ) BETWEEN ( + col0 ) AND col1 - col2
----
14
47
5

query I rowsort
SELECT + ( ( - ( 44 ) ) ) FROM tab2
----
-44
-44
-44

query I rowsort
SELECT DISTINCT - 58 + col1 FROM tab1 WHERE - + col1 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT + ( CAST( 48 AS SIGNED ) ) FROM tab0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-4004
SELECT + ( CAST ( 48 AS INTEGER ) ) FROM tab0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT + + MIN( 26 ) + 99 FROM tab1 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + + MIN ( 26 ) + 99 FROM tab1 AS cor0
----
125

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL - ( COUNT( * ) ) + + - 90 AS col2 FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL - ( COUNT ( * ) ) + + - 90 AS col2 FROM tab0 cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT SUM( 74 ) FROM tab1 AS cor0 WHERE NOT 35 + 58 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT SUM ( 74 ) FROM tab1 AS cor0 WHERE NOT 35 + 58 = NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * - 12 + - col2 AS col1 FROM tab2 AS cor0
----
-575
-808
-958

query I rowsort
SELECT DISTINCT - + ( + - col2 ) * 68 - + col0 * col1 FROM tab1 AS cor0
----
347
3587
5814

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT + col1 * col0 * + CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT + col1 * col0 * + CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col1 FROM tab1
----
94
94
94

query I rowsort
SELECT - 50 + col2 AS col1 FROM tab0
----
-3
-40
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT DISTINCT - CAST( + col0 AS SIGNED ) FROM tab0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) FROM tab0 WHERE - col1 IS NULL
----

query II rowsort
SELECT ( - col1 ) AS col1, + col2 * + col2 + - ( col2 ) AS col0 FROM tab1 cor0
----
-14
9120
-47
4556
-5
3422

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + - ( col2 ) + + col2 BETWEEN + 21 + col0 AND col0
----

query I rowsort
SELECT col0 * - col0 - + 15 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL COUNT( * ) * + 28 col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4019
SELECT ALL COUNT ( * ) * + 28 col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT - col2 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL - 51 * - SUM( ALL col2 + col0 * col0 ) AS col0 FROM tab1 WHERE NOT - col2 + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - 51 * - SUM ( ALL col2 + col0 * col0 ) AS col0 FROM tab1 WHERE NOT - col2 + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 61 + col2 * + - 35 FROM tab2 cor0
----
-1339
-1969
-744

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - col1 * + - 14 + + - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 IN ( - - col2 ) AND NULL <> - 77
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN ( + 28 ) AND ( + col1 / - ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + - col2 - - col1 - - ( - ( col2 ) ) FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT + - 60 - - + COUNT( * ) FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + - 60 - - + COUNT ( * ) FROM tab1 cor0
----
-57

query I rowsort
SELECT - ( + 25 ) + col1 AS col1 FROM tab2 AS cor0
----
26
42
52

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( ( col2 ) * + + 4 ) >= col0
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT + - col0 + + - ( + - ( + col1 ) ) DIV + col2 FROM tab1 WHERE NOT 92 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4030
SELECT + - col0 + + - ( + - ( + col1 ) ) / + col2 FROM tab1 WHERE NOT 92 IS NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - - 1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0, 99 AS col1 FROM tab0
----
-15
99
-87
99
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT DISTINCT - COUNT( DISTINCT - - 73 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT - COUNT ( DISTINCT - - 73 ) AS col1 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 * + 13 + + col1 * col1 + col2 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4035
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4036
SELECT - 84 AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-84
3

skipif mysql # not compatible
query II rowsort label-4036
SELECT - 84 AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-84
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT - 89 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-4037
SELECT - 89 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - ( + col1 ) )
----

query I rowsort
SELECT DISTINCT + 78 - col1 * + col1 AS col1 FROM tab1 cor0 WHERE NOT ( 42 ) + + - col2 IN ( + + ( + + 81 ) )
----
-118
-2131
53

query I rowsort
SELECT DISTINCT + 19 + + 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
109

query I rowsort
SELECT ( - - 69 ) + + col1 AS col1 FROM tab2
----
120
136
146

query I rowsort
SELECT ALL - col2 * + col2 * + ( 48 ) + - ( col0 ) + - col1 FROM tab2 AS cor0
----
-161614
-25489
-76941

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL - - 21 * + COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL - - 21 * + COUNT ( * ) FROM tab0 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 + ( - col0 ) col0 FROM tab0 AS cor0 WHERE ( NULL IN ( - col1 * + col2, + ( + 14 ) ) )
----

query I rowsort
SELECT ALL col2 * - col2 + - 66 AS col2 FROM tab2 AS cor0
----
-1666
-3430
-595

query I rowsort
SELECT DISTINCT + 8 + + 29 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( 98 - col2 ) AND - 44 * col2
----

query II rowsort
SELECT ALL - col2 AS col1, - 4 FROM tab1
----
-59
-4
-68
-4
-96
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT + 15 FROM tab1 WHERE - CAST( NULL AS SIGNED ) < ( - + 23 )
----

skipif mysql # not compatible
query I rowsort label-4048
SELECT + 15 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) < ( - + 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4049
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - col1 AS col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-4049
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - col1 AS col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab2 WHERE NOT ( - col0 + ( + + ( - - ( 68 ) ) ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT ( col1 ) * - col1 DIV - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4051
SELECT ( col1 ) * - col1 / - col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ( + 0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + 14 * - col0 FROM tab1 AS cor0
----
-1190
-1274
-714

query I rowsort
SELECT ALL - col2 + - 12 AS col2 FROM tab0 AS cor0
----
-111
-22
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT DISTINCT - 29 * - CAST( NULL AS SIGNED ) - + 61 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT - 29 * - CAST ( NULL AS INTEGER ) - + 61 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT DISTINCT MIN( ALL 3 ) + - 71 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT MIN ( ALL 3 ) + - 71 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT ALL + - ( + col2 ) * col2 - + - 97 AS col0 FROM tab0 AS cor0
----
-2112
-3
-9704

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4058
SELECT - CAST( NULL AS SIGNED ) * - - col2, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4058
SELECT - CAST ( NULL AS INTEGER ) * - - col2, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + col2 * - + 36 FROM tab2
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + - + COUNT( ALL - + col0 ) * - MAX( col0 ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + - + COUNT ( ALL - + col0 ) * - MAX ( col0 ) FROM tab1 AS cor0
----
267

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - col2 + - 51 FROM tab0 AS cor0
----
-151
-2260
-9852

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT col2 DIV + 11 AS col1 FROM tab1 AS cor0
----
5
6
8

skipif mysql # not compatible
query I rowsort label-4063
SELECT col2 / + 11 AS col1 FROM tab1 AS cor0
----
5
6
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4064
SELECT col1 * - - col0, + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 * + 18 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4064
SELECT col1 * - - col0, + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 * + 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT DISTINCT COUNT( - 68 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT COUNT ( - 68 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + 66 ) FROM tab0 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT MIN( DISTINCT - 56 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT MIN ( DISTINCT - 56 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - ( - - 66 ) FROM tab1
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT ALL 14 / + col1 * + col2 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL 14 / + col1 * + col2 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 92 * + col1 AS col1 FROM tab2
----
4692
6164
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT SUM( + + 2 ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4071
SELECT SUM ( + + 2 ) col2 FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col2 FROM tab1 WHERE - 81 IS NOT NULL
----
61

query I rowsort
SELECT - col1 * - 15 AS col1 FROM tab1
----
210
705
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( col1 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT DISTINCT + col1 DIV col2 * col0 + - 43 AS col2 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT + col1 / col2 * col0 + - 43 AS col2 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT ALL 33 * - - col2 + col2 FROM tab0 AS cor0
----
1598
3366
340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT + 58 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4077
SELECT + 58 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col0 AS col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT - - ( + COUNT( ALL + col0 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - - ( + COUNT ( ALL + col0 ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT - - ( + 62 ) FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT + col1 + - 37 - col1 AS col0 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL + ( MIN( - 40 ) ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + ( MIN ( - 40 ) ) FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT 61 col2, + COUNT( * ) AS col1 FROM tab2 WHERE NULL = NULL
----
61
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4083
SELECT 61 col2, + COUNT ( * ) AS col1 FROM tab2 WHERE NULL = NULL
----
61
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT 66 + - + COUNT( * ) AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-4084
SELECT 66 + - + COUNT ( * ) AS col0 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ( + + COUNT( * ) ) + - + 64 AS col0 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-4085
SELECT ( + + COUNT ( * ) ) + - + 64 AS col0 FROM tab0
----
-61

query I rowsort
SELECT ALL + col1 - - 13 + + col1 FROM tab2 AS cor0
----
115
147
167

query I rowsort
SELECT - 92 AS col1 FROM tab2 cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT MIN( - 21 ) - - COUNT( * ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-4088
SELECT MIN ( - 21 ) - - COUNT ( * ) AS col1 FROM tab2
----
-18

query I rowsort
SELECT + 61 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4091
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT DISTINCT col1 DIV col0 + + + col2 + - col2 - + - col0 AS col1 FROM tab2 AS cor0
----
47
65
75

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT col1 / col0 + + + col2 + - col2 - + - col0 AS col1 FROM tab2 AS cor0
----
47
65
75

query I rowsort
SELECT + col2 * - - col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - col0 * - ( - + 4 ) FROM tab1 AS cor0
----
-204
-340
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT - SUM( ALL - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT - SUM ( ALL - col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT + col0 * col2 * 47 AS col1 FROM tab2 AS cor0
----
120320
204450
49726

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT + SUM( DISTINCT + + ( - - col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT + SUM ( DISTINCT + + ( - - col2 ) ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-4098
SELECT - 39 AS col1, ( - COUNT( * ) ) FROM tab2 cor0
----
-39
-3

skipif mysql # not compatible
query II rowsort label-4098
SELECT - 39 AS col1, ( - COUNT ( * ) ) FROM tab2 cor0
----
-39
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT + CAST( NULL AS SIGNED ) / + + CAST( col0 AS SIGNED ) * - col0 / + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT + CAST ( NULL AS INTEGER ) / + + CAST ( col0 AS INTEGER ) * - col0 / + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col0 + - 63 * + + 5 + + 51 col1 FROM tab0 AS cor0
----
-167
1563
951

query II rowsort
SELECT DISTINCT + 72, - col1 AS col0 FROM tab0 AS cor0
----
72
-1
72
-21
72
-81

query I rowsort
SELECT ALL 83 * - col2 FROM tab1 AS cor0
----
-4897
-5644
-7968

query II rowsort
SELECT DISTINCT - 42, - col2 AS col1 FROM tab2 AS cor0
----
-42
-23
-42
-40
-42
-58

query I rowsort
SELECT ALL 15 * - - col0 AS col2 FROM tab1
----
1275
1365
765

query I rowsort
SELECT ALL + 32 * + col2 * + col0 FROM tab1
----
156672
160480
198016

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN ( + col0 ) AND col1 * - - col2
----

query I rowsort
SELECT ALL col0 * - - ( - - col1 ) FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL OR NULL < ( NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL OR NULL < ( NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT + MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 >= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT + MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 >= + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT + + col1 * - CAST( 15 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1215
-15
-315

skipif mysql # not compatible
query I rowsort label-4110
SELECT + + col1 * - CAST ( 15 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1215
-15
-315

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= col2 * - - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT + + MIN( ALL + ( 4 ) ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + + MIN ( ALL + ( 4 ) ) FROM tab1 cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT COUNT( * ) * 41 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-4113
SELECT COUNT ( * ) * 41 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT col1 + ( + 79 ) AS col2 FROM tab0 AS cor0
----
100
160
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT COUNT( * ) - + 26 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4116
SELECT COUNT ( * ) - + 26 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4117
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1, 68 - + COUNT( * ) * + 43 FROM tab1 AS cor0
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-4117
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1, 68 - + COUNT ( * ) * + 43 FROM tab1 AS cor0
----
NULL
-61

query I rowsort
SELECT 16 + + + col1 AS col0 FROM tab1 AS cor0
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL + 99 * COUNT( * ) * - 19 FROM tab2 AS cor0
----
-5643

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL + 99 * COUNT ( * ) * - 19 FROM tab2 AS cor0
----
-5643

query I rowsort
SELECT DISTINCT - ( col0 ) + col0 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col1 + + + col2 = NULL
----

query I rowsort
SELECT col1 * + ( - + 71 ) AS col1 FROM tab2
----
-3621
-4757
-5467

query I rowsort
SELECT - 33 * - + col2 + - col1 FROM tab1 WHERE + - 83 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT DISTINCT - col0 DIV col1 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT - col0 / col1 AS col0 FROM tab2
----
-1
0

query I rowsort
SELECT ALL col1 + + col0 + 50 + col0 AS col2 FROM tab1
----
166
225
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) DIV + 84 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) / + 84 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 92 + - ( + col1 ) * + - col1 FROM tab0
----
533
6653
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - COUNT( * ) - + + ( + COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4128
SELECT - COUNT ( * ) - + + ( + COUNT ( * ) ) FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT - col0 DIV + 63 + 46 * + col1 * - 81 FROM tab2 AS cor0
----
-190026
-249643
-286903

skipif mysql # not compatible
query I rowsort label-4129
SELECT - col0 / + 63 + 46 * + col1 * - 81 FROM tab2 AS cor0
----
-190026
-249643
-286903

query I rowsort
SELECT ALL + + 80 FROM tab1 cor0
----
80
80
80

query I rowsort
SELECT DISTINCT col1 * col0 - + 66 + + col1 * + - col1 AS col2 FROM tab2 AS cor0
----
-1067
-321
470

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4132
SELECT ALL CAST( NULL AS DECIMAL ) * + col0 / + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL CAST ( NULL AS REAL ) * + col0 / + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT ALL - col0 DIV - 9 FROM tab2
----
5
7
8

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL - col0 / - 9 FROM tab2
----
5
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col0 + + col1 AS col0 FROM tab2
----
23
97
40
141
58
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT + MIN( + col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4136
SELECT + MIN ( + col2 ) col0 FROM tab2
----
23

query I rowsort
SELECT + + 0 * - 3 FROM tab1 WHERE NOT + col2 - + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL - - SUM( DISTINCT + - col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - - SUM ( DISTINCT + - col1 ) FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT - COUNT( ALL + - 53 ) + - + ( - 57 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4139
SELECT - COUNT ( ALL + - 53 ) + - + ( - 57 ) FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4140
SELECT ALL + SUM( - + ( col1 ) ), + ( + 74 ) AS col2 FROM tab2 AS cor0
----
-195
74

skipif mysql # not compatible
query II rowsort label-4140
SELECT ALL + SUM ( - + ( col1 ) ), + ( + 74 ) AS col2 FROM tab2 AS cor0
----
-195
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT SUM( - 60 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-540

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT SUM ( - 60 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT DISTINCT 34 DIV + col1 + 75 AS col1 FROM tab0 AS cor0
----
109
75
76

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT 34 / + col1 + 75 AS col1 FROM tab0 AS cor0
----
109
75
76

query II rowsort
SELECT DISTINCT - + col0 * 33 * - col0 + col0 AS col2, + col2 * + col2 AS col2 FROM tab1 AS cor0
----
238510
3481
273364
4624
85884
9216

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 53 > - + col1 + + 33
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 28 col2 FROM tab0 cor0 WHERE 8 + + 68 BETWEEN - 48 AND + 28
----

query I rowsort
SELECT 20 + + col0 FROM tab0 AS cor0
----
107
117
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT - COUNT( * ) + 27 AS col1 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-4149
SELECT - COUNT ( * ) + 27 AS col1 FROM tab1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4151
SELECT CAST( NULL AS DECIMAL ) + - 27 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT CAST ( NULL AS REAL ) + - 27 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4152
SELECT - col0 + + + col0 * - 71 * - col0 + - 33 + + col0 + col0 DIV + col1, col0 FROM tab0
----
15942
15
537370
87
668103
97

skipif mysql # not compatible
query II rowsort label-4152
SELECT - col0 + + + col0 * - 71 * - col0 + - 33 + + col0 + col0 / + col1, col0 FROM tab0
----
15942
15
537370
87
668103
97

query I rowsort
SELECT ALL - col2 * + ( col0 ) * + col0 - col1 + - + col0 AS col1 FROM tab2 AS cor0
----
-163981
-326392
-48765

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT DISTINCT - 48 DIV 21 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - 48 / 21 FROM tab1 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-86

query I rowsort
SELECT 68 * - + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-1518
-2656
-3869

query I rowsort
SELECT ALL ( 24 ) AS col2 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - col2, + col1, col0, col0 * col1 + + - col1 - 13 )
----
10
47
99

query I rowsort
SELECT col0 * 72 FROM tab0 AS cor0
----
1080
6264
6984

query I rowsort
SELECT ALL - col0 * - 80 - + + 58 AS col0 FROM tab2 AS cor0
----
3622
5062
5942

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - 56 IS NOT NULL
----

query I rowsort
SELECT 0 * - ( - col2 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT 35 * - + MIN( + - col2 ) AS col1 FROM tab0 AS cor0
----
3465

skipif mysql # not compatible
query I rowsort label-4163
SELECT 35 * - + MIN ( + - col2 ) AS col1 FROM tab0 AS cor0
----
3465

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT - CAST( + 42 AS SIGNED ) FROM tab0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-4165
SELECT - CAST ( + 42 AS INTEGER ) FROM tab0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT ALL + 35 * + + col1 * + + 27 * CAST( col2 AS SIGNED ) * + col0 - + + col0 * - ( - col2 ) * col1 + ( - + col0 ) FROM tab0 AS cor0
----
17246793
53907105
9065135

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL + 35 * + + col1 * + + 27 * CAST ( col2 AS INTEGER ) * + col0 - + + col0 * - ( - col2 ) * col1 + ( - + col0 ) FROM tab0 AS cor0
----
17246793
53907105
9065135

query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + 57 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 52 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 32 AS col1, 14 FROM tab1 AS cor0
----
32
14

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE - col1 * - col2 + - col2 <= NULL
----

query I rowsort
SELECT ALL + col1 + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT 15 + - 18 FROM tab0 cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4173
SELECT - - col1 DIV - - col2 - + 98 AS col2, 18 AS col0 FROM tab1 AS cor0
----
-98
18
-98
18
-98
18

skipif mysql # not compatible
query II rowsort label-4173
SELECT - - col1 / - - col2 - + 98 AS col2, 18 AS col0 FROM tab1 AS cor0
----
-98
18
-98
18
-98
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE 17 = col0 + + + 45
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE 17 = col0 + + + 45
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4175
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4175
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT MAX( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4176
SELECT MAX ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + col1 + + - 16 * col2 AS col2 FROM tab1 cor0
----
-1041
-1522
-939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 * ( + col0 ) col2 FROM tab1 AS cor0
----
-2550
-7140
-8190

query I rowsort
SELECT ALL + - col0 - ( 81 ) FROM tab0 AS cor0
----
-168
-178
-96

query I rowsort
SELECT DISTINCT + 37 * - col2 - + 48 * - - col2 AS col0 FROM tab0
----
-3995
-8415
-850

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT col1 DIV + 49 - + + col1 AS col2 FROM tab0
----
-1
-21
-80

skipif mysql # not compatible
query I rowsort label-4181
SELECT col1 / + 49 - + + col1 AS col2 FROM tab0
----
-1
-21
-80

query I rowsort
SELECT + 80 - + + col1 + col2 AS col0 FROM tab1
----
101
134
162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4183
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * + + col0 NOT BETWEEN + - CAST( NULL AS SIGNED ) * ( + col1 ) / - 66 + - + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4183
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * + + col0 NOT BETWEEN + - CAST ( NULL AS INTEGER ) * ( + col1 ) / - 66 + - + col0 AND NULL
----

query I rowsort
SELECT 35 + ( - col2 ) * + + col0 - + col0 AS col0 FROM tab1
----
-4912
-5065
-6244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col0 col1 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT + col0 DIV + 71 + + + col1 AS col2 FROM tab0
----
2
22
81

skipif mysql # not compatible
query I rowsort label-4186
SELECT + col0 / + 71 + + + col1 AS col2 FROM tab0
----
2
22
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE ( + col2 ) IS NULL OR NOT 28 <= + - col1
----
-3

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE ( + col2 ) IS NULL OR NOT 28 <= + - col1
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT DISTINCT 83 * 20 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT - MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 + col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT - MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 + col1 <> NULL
----
NULL

query II rowsort
SELECT ALL 77, col2 AS col2 FROM tab1
----
77
59
77
68
77
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4195
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * - col1 + - 57 + - 14 + + 67 + col2 col2 FROM tab2
----
-2021
-2626
-3044

query I rowsort
SELECT - 35 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 + col0 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4198
SELECT ALL + col1 + - + col1 + - CAST( col1 AS SIGNED ) AS col0, + 31 AS col2 FROM tab0 WHERE - col0 + - - 49 BETWEEN NULL AND - ( + + col0 ) * - col2 * + col1 * col2 - 82
----

skipif mysql # not compatible
query II rowsort label-4198
SELECT ALL + col1 + - + col1 + - CAST ( col1 AS INTEGER ) AS col0, + 31 AS col2 FROM tab0 WHERE - col0 + - - 49 BETWEEN NULL AND - ( + + col0 ) * - col2 * + col1 * col2 - 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT + - CAST( - col2 AS SIGNED ) + + + 99 FROM tab1 AS cor0 WHERE + 68 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4199
SELECT + - CAST ( - col2 AS INTEGER ) + + + 99 FROM tab1 AS cor0 WHERE + 68 IS NULL
----

query II rowsort
SELECT DISTINCT + 75 AS col2, - col2 FROM tab1 AS cor0
----
75
-59
75
-68
75
-96

query I rowsort
SELECT - 59 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-59
-59
-59

query I rowsort
SELECT DISTINCT - col2 + + 64 + + col2 + - col2 FROM tab1 AS cor0
----
-32
-4
5

query I rowsort
SELECT 71 * - col1 FROM tab2
----
-3621
-4757
-5467

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4204
SELECT + CAST( col0 AS SIGNED ), - col1 AS col2 FROM tab1
----
51
-14
85
-5
91
-47

skipif mysql # not compatible
query II rowsort label-4204
SELECT + CAST ( col0 AS INTEGER ), - col1 AS col2 FROM tab1
----
51
-14
85
-5
91
-47

query III rowsort
SELECT * FROM tab2 WHERE - - 63 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * + col1 col0 FROM tab1
----
1316
4418
470

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + + COUNT( ALL - 30 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4207
SELECT + + COUNT ( ALL - 30 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4208
SELECT ALL + CAST( NULL AS DECIMAL ) - + col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + CAST ( NULL AS REAL ) - + col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 89 + - col1 * col0 FROM tab1 cor0
----
-4413
-519
-817

query I rowsort
SELECT - 93 * + col0 * - + col2 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
455277
466310
575393

query II rowsort
SELECT ALL - 58 + - - 22 * - 4 AS col0, 2 AS col1 FROM tab0 AS cor0
----
-146
2
-146
2
-146
2

query II rowsort
SELECT - + col1 + + 1 AS col0, 75 FROM tab2 AS cor0
----
-50
75
-66
75
-76
75

query I rowsort
SELECT ALL - col1 + + 78 * + col1 FROM tab2 AS cor0
----
3927
5159
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT COUNT( * ) + + ( - - COUNT( DISTINCT + 77 ) ) AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4214
SELECT COUNT ( * ) + + ( - - COUNT ( DISTINCT + 77 ) ) AS col0 FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT col1 - - 62 AS col2 FROM tab0
----
143
63
83

query II rowsort
SELECT - 67 AS col1, col0 FROM tab1
----
-67
51
-67
85
-67
91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT DISTINCT 28 DIV - + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT 28 / - + col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT DISTINCT 95 DIV col1 * - col0 AS col2 FROM tab0
----
-15
-348
-9215

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT 95 / col1 * - col0 AS col2 FROM tab0
----
-15
-348
-9215

query III rowsort
SELECT * FROM tab0 WHERE NOT 63 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT ALL + 69 * + - col1 - - - col0 FROM tab0 AS cor0 WHERE - col0 * - col2 NOT BETWEEN + + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4223
SELECT col1 DIV - col1 + + col1 AS col2, - ( - col1 ) * + 38 FROM tab2 AS cor0
----
50
1938
66
2546
76
2926

skipif mysql # not compatible
query II rowsort label-4223
SELECT col1 / - col1 + + col1 AS col2, - ( - col1 ) * + 38 FROM tab2 AS cor0
----
50
1938
66
2546
76
2926

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 IN ( + + 57, col2, + + col1 * + 73, - col1, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL - MIN( DISTINCT + + 0 ) * + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL - MIN ( DISTINCT + + 0 ) * + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT - - col0 DIV - col1 + - 15 AS col2 FROM tab2 AS cor0
----
-15
-15
-16

skipif mysql # not compatible
query I rowsort label-4226
SELECT - - col0 / - col1 + - 15 AS col2 FROM tab2 AS cor0
----
-15
-15
-16

query I rowsort
SELECT ALL - 59 + - col1 - - col0 AS col0 FROM tab2 cor0
----
-51
-64
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT + COUNT( * ) + MAX( col1 ) FROM tab2 cor0 WHERE NOT 6 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + COUNT ( * ) + MAX ( col1 ) FROM tab2 cor0 WHERE NOT 6 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT - + MAX( 41 ) FROM tab1 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4229
SELECT - + MAX ( 41 ) FROM tab1 cor0
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4230
SELECT 99 + col2 col2 FROM tab0 WHERE NULL BETWEEN - 28 + - + 69 * ( + CAST( - 37 AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4230
SELECT 99 + col2 col2 FROM tab0 WHERE NULL BETWEEN - 28 + - + 69 * ( + CAST ( - 37 AS REAL ) ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 3 NOT IN ( + - col2 / col2 - - col0 + - col0 / col0 * - + ( + col1 ), - 11 )
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL >= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ALL + col1 + - 87 FROM tab0
----
-6
-66
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 73 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 73 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT ALL 64 + CAST( + col2 AS SIGNED ) * + + col0 FROM tab2 AS cor0
----
1122
2624
4414

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL 64 + CAST ( + col2 AS INTEGER ) * + + col0 FROM tab2 AS cor0
----
1122
2624
4414

onlyif mysql # aggregate syntax: 
query II rowsort label-4237
SELECT DISTINCT + COUNT( * ) AS col1, 46 AS col1 FROM tab2 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-4237
SELECT DISTINCT + COUNT ( * ) AS col1, 46 AS col1 FROM tab2 AS cor0
----
3
46

query I rowsort
SELECT DISTINCT - col1 - - col1 AS col2 FROM tab0 AS cor0 WHERE + 44 * col1 * ( - - 62 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) <= NULL ) OR NOT col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 72 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query II rowsort
SELECT DISTINCT - 71, + col1 AS col0 FROM tab2
----
-71
51
-71
67
-71
77

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 NOT BETWEEN NULL AND - col2
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT + 67 DIV - - 65 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4243
SELECT + 67 / - - 65 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( DISTINCT ( col2 ) ) / - 12 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT ( col2 ) ) / - 12 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 15 * - - col1 AS col2 FROM tab1 AS cor0
----
-210
-705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL + + COUNT( * ) + - 52 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + + COUNT ( * ) + - 52 FROM tab2 AS cor0
----
-49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT ( - col0 ) BETWEEN + col1 AND col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col0 + - 91 FROM tab1 AS cor0 WHERE 91 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT DISTINCT - - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( col1 ) NOT BETWEEN col1 AND + - col0
----
3

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( col1 ) NOT BETWEEN col1 AND + - col0
----
3

query I rowsort
SELECT + + ( 59 ) AS col2 FROM tab1 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT SUM( - col2 ) * - MIN( col1 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4251
SELECT SUM ( - col2 ) * - MIN ( col1 ) AS col1 FROM tab0
----
156

query III rowsort
SELECT * FROM tab1 WHERE NOT + 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + + 29 col1 FROM tab1 AS cor0
----
4925
5044
6217

query I rowsort
SELECT DISTINCT 50 * + col0 * - + col1 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-117300
-246400
-251250

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT COUNT( 92 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4256
SELECT COUNT ( 92 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + 72 * - 22 FROM tab2
----
-1584
-1584
-1584

onlyif mysql # DIV for integer division: 
query I rowsort label-4258
SELECT ALL + col0 DIV + 76 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + col0 / + 76 AS col0 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT COUNT( DISTINCT + - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4259
SELECT COUNT ( DISTINCT + - col2 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 32 <= - + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND - 86
----
0

skipif mysql # not compatible
query I rowsort label-4261
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND - 86
----
0

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 49 + - col2 AS col1 FROM tab0
----
-50
2
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 6 ) col1 FROM tab0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL + COUNT( * ) * - + ( + + 40 ) AS col0 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL + COUNT ( * ) * - + ( + + 40 ) AS col0 FROM tab0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT 56 + 64 + + + COUNT( * ) AS col0 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-4266
SELECT 56 + 64 + + + COUNT ( * ) AS col0 FROM tab1
----
123

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4267
SELECT DISTINCT + col2 DIV 83 AS col0, CAST( NULL AS SIGNED ) * - 47 FROM tab2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4267
SELECT DISTINCT + col2 / 83 AS col0, CAST ( NULL AS INTEGER ) * - 47 FROM tab2
----
0
NULL

query II rowsort
SELECT - ( - col1 ) AS col0, col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT col1 * - + col2 + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4269
SELECT col1 * - + col2 + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 30 + col0 + col1 AS col1 FROM tab1
----
120
168
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4271
SELECT ALL - COUNT( + 7 ) DIV + + SUM( ALL - col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL - COUNT ( + 7 ) / + + SUM ( ALL - col2 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ( - 74 ) FROM tab2 AS cor0
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT DISTINCT + + CAST( - + 55 AS SIGNED ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT + + CAST ( - + 55 AS INTEGER ) FROM tab0 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4274
SELECT DISTINCT - 11 - col1 + col2 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL OR NULL IS NULL
----
-22
-45
87

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - 11 - col1 + col2 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL OR NULL IS NULL
----
-22
-45
87

query I rowsort
SELECT DISTINCT col0 + 74 FROM tab1
----
125
159
165

query II rowsort
SELECT - col2, 66 AS col2 FROM tab0 cor0
----
-10
66
-47
66
-99
66

query I rowsort
SELECT DISTINCT - ( - 44 ) AS col1 FROM tab2 AS cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4278
SELECT 56 DIV col1 col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4278
SELECT 56 / col1 col1 FROM tab2 AS cor0
----
0
0
1

query II rowsort
SELECT DISTINCT + col1, + 85 + - col2 * - ( + + col1 ) AS col0 FROM tab1 AS cor0
----
14
1429
47
3281
5
380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4280
SELECT + COUNT( * ) DIV - + ( - 30 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4280
SELECT + COUNT ( * ) / - + ( - 30 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT MAX( + 24 ) AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4281
SELECT MAX ( + 24 ) AS col0 FROM tab1 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4282
SELECT 71 DIV - 17 FROM tab2 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-4282
SELECT 71 / - 17 FROM tab2 AS cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col0 )
----

query I rowsort
SELECT + - col1 * - + col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT DISTINCT + col2, + col1 AS col0 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT ( - 47 ) FROM tab2
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab1 WHERE col0 > 34
----
51
85
91

query II rowsort
SELECT ALL - col0 AS col2, ( col1 ) AS col0 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT DISTINCT CAST( + + ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT CAST ( + + ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - - 23 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - col2
----

query I rowsort
SELECT ALL col0 + + 13 AS col2 FROM tab1
----
104
64
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4292
SELECT - + 0 DIV - COUNT( * ) + 97, COUNT( * ) col1 FROM tab0 AS cor0
----
97
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4292
SELECT - + 0 / - COUNT ( * ) + 97, COUNT ( * ) col1 FROM tab0 AS cor0
----
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT - MAX( - 63 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-4293
SELECT - MAX ( - 63 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
60

query I rowsort
SELECT + - col0 + - 80 AS col0 FROM tab0 AS cor0
----
-167
-177
-95

query I rowsort
SELECT DISTINCT - + col1 + col1 + + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col0 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT DISTINCT + - col1 DIV + 98 + + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + - col1 / + 98 + + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 28 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT ALL - + col1 + col0 DIV col2 AS col1 FROM tab0 cor0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - + col1 + col0 / col2 AS col1 FROM tab0 cor0
----
-1
-13
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT DISTINCT + col2 DIV - - col1 AS col1 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT + col2 / - - col1 AS col1 FROM tab0 AS cor0
----
0
99

query II rowsort
SELECT ALL + col0, col1 + - col0 * + 60 + - col2 FROM tab2
----
46
-2732
64
-3803
75
-4491

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT DISTINCT SUM( DISTINCT + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT SUM ( DISTINCT + col0 ) FROM tab1
----
227

query I rowsort
SELECT + col0 FROM tab2 WHERE 78 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT 87 - + - 42 - col0 DIV col1 FROM tab1
----
112
126
128

skipif mysql # not compatible
query I rowsort label-4304
SELECT 87 - + - 42 - col0 / col1 FROM tab1
----
112
126
128

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT - col1 + 25 + + col0 DIV + col1 FROM tab1 AS cor0
----
-21
14
37

skipif mysql # not compatible
query I rowsort label-4305
SELECT - col1 + 25 + + col0 / + col1 FROM tab1 AS cor0
----
-21
14
37

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 + + - 19 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4307
SELECT ( + COUNT( * ) ) DIV + CAST( + ( - + SUM( + + 89 ) ) AS SIGNED ) * + + ( 17 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4307
SELECT ( + COUNT ( * ) ) / + CAST ( + ( - + SUM ( + + 89 ) ) AS INTEGER ) * + + ( 17 ) FROM tab2
----
0

query I rowsort
SELECT ( + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT DISTINCT + ( 23 ), MIN( ALL - col1 ) AS col0 FROM tab2 cor0
----
23
-77

skipif mysql # not compatible
query II rowsort label-4309
SELECT DISTINCT + ( 23 ), MIN ( ALL - col1 ) AS col0 FROM tab2 cor0
----
23
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT ALL MAX( - CAST( - 96 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL MAX ( - CAST ( - 96 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT 31 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL - MIN( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL - MIN ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 64 BETWEEN NULL AND + 95
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT 80 DIV 74 - + 74 FROM tab0 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-4317
SELECT 80 / 74 - + 74 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + ( + - 19 ) FROM tab2
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + ( + 30 ) AS col2 FROM tab2
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col0 * 41 FROM tab0
----
-1
3977
-21
3567
-81
615

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 12 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 89 AS col0, col2 FROM tab1
----
89
59
89
68
89
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT - COUNT( * ) * - + 94 AS col2 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - COUNT ( * ) * - + 94 AS col2 FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT + 5 + - - MAX( ALL - col2 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4324
SELECT + 5 + - - MAX ( ALL - col2 ) FROM tab1 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 91 col0 FROM tab0 AS cor0
----
-91
-91
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4326
SELECT COUNT( * ) DIV + 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT COUNT ( * ) / + 99 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( 74 ) FROM tab2
----
74

query I rowsort
SELECT ALL + col0 * + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 51 + 96 FROM tab2 AS cor0
----
147
147
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL - SUM( ALL + 48 ) FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL - SUM ( ALL + 48 ) FROM tab0
----
-144

query I rowsort
SELECT + col2 + col2 * - col0 FROM tab1
----
-4800
-4956
-6120

query II rowsort
SELECT DISTINCT ( - - col2 ), col1 * col2 * - 66 - col1 AS col1 FROM tab1
----
59
-19475
68
-210983
96
-88718

query I rowsort
SELECT DISTINCT 52 + col1 AS col1 FROM tab0
----
133
53
73

query I rowsort
SELECT ALL - col2 - + - col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + 54 + - col2 * col1 * - 2 - ( + col1 ) FROM tab0 AS cor0
----
251
453
7587

query I rowsort
SELECT DISTINCT - 58 * + 77 + + col2 FROM tab2 AS cor0
----
-4408
-4426
-4443

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + - SUM( DISTINCT + 99 ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4337
SELECT + - SUM ( DISTINCT + 99 ) FROM tab1 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 col2 FROM tab0 WHERE NULL < col0
----

query I rowsort
SELECT DISTINCT + 93 * - + ( - col0 ) FROM tab2
----
4278
5952
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL + - COUNT( * ) * - MIN( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL + - COUNT ( * ) * - MIN ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
177

query II rowsort
SELECT - + col2, col2 * - col0 AS col1 FROM tab1 AS cor0
----
-59
-5015
-68
-6188
-96
-4896

query I rowsort
SELECT DISTINCT - col2 + + col1 + + col2 FROM tab1 AS cor0 WHERE + 19 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT + 40 * COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + 40 * COUNT ( * ) FROM tab2 AS cor0
----
120

query I rowsort
SELECT ALL + + 22 AS col1 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT col2 DIV col0 * - - col2 DIV col2 * col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4345
SELECT col2 / col0 * - - col2 / col2 * col0 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - + col0 / - col2 * + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col0 / col0 < + col1
----
97
1
99

query I rowsort
SELECT DISTINCT 9 + - col0 FROM tab2
----
-37
-55
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT ALL CAST( + col2 AS SIGNED ) * ( - col2 ) * col1 + - - col1 AS col0 FROM tab2
----
-123123
-225321
-26928

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL CAST ( + col2 AS INTEGER ) * ( - col2 ) * col1 + - - col1 AS col0 FROM tab2
----
-123123
-225321
-26928

onlyif mysql # DIV for integer division: 
query I rowsort label-4350
SELECT col2 DIV 36 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4350
SELECT col2 / 36 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT 83 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 + 82 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7cf925cdea37533e5028b2ea0c580358

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4354
SELECT ALL + col0 + + col1 * - + CAST( NULL AS DECIMAL ) + + col0 * - - col0 AS col2 FROM tab1 WHERE NOT - col2 + + col0 + col1 + + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + col0 + + col1 * - + CAST ( NULL AS REAL ) + + col0 * - - col0 AS col2 FROM tab1 WHERE NOT - col2 + + col0 + col1 + + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - - ( SUM( DISTINCT ( ( - - 58 ) ) ) ) - 68 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-4355
SELECT - - ( SUM ( DISTINCT ( ( - - 58 ) ) ) ) - 68 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT DISTINCT - 90 + col0 + - CAST( 82 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-108
-126
-97

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT - 90 + col0 + - CAST ( 82 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-108
-126
-97

query I rowsort
SELECT + ( - 1 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 46 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL - 50 - COUNT( * ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - 50 - COUNT ( * ) FROM tab0 AS cor0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) - + col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 - - + col2 + + + 10 AS col2 FROM tab2
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col2 + col0 AS col2 FROM tab0
----
1
196
21
97
81
62

query I rowsort
SELECT - ( - 53 ) AS col0 FROM tab0
----
53
53
53

query I rowsort
SELECT ALL col2 * - - col2 AS col1 FROM tab0
----
100
2209
9801

query I rowsort
SELECT + 81 - col0 + 10 + - col1 FROM tab1
----
-47
1
26

query I rowsort
SELECT - + col1 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * - + col2 - + col1 FROM tab2
----
1007
2483
4283

query I rowsort
SELECT 10 - + + 73 AS col0 FROM tab0
----
-63
-63
-63

query I rowsort
SELECT - - 53 AS col2 FROM tab2 AS cor0 WHERE - 15 IS NOT NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL MAX( ALL + ( col1 ) ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL MAX ( ALL + ( col1 ) ) AS col0 FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT - + SUM( ALL col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4371
SELECT DISTINCT - + SUM ( ALL col2 ) col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT DISTINCT MIN( ALL col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT MIN ( ALL col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT - + col1 DIV col0 + col1 + 30 FROM tab0 AS cor0
----
106
31
51

skipif mysql # not compatible
query I rowsort label-4373
SELECT - + col1 / col0 + col1 + 30 FROM tab0 AS cor0
----
106
31
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 86 AS col1 FROM tab1 cor0
----
86
86
86

query I rowsort
SELECT ALL + 83 * + 63 - col2 FROM tab0 AS cor0
----
5130
5182
5219

query I rowsort
SELECT + ( - col1 ) * col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4378
SELECT CAST( NULL AS SIGNED ) AS col0, + col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4378
SELECT CAST ( NULL AS INTEGER ) AS col0, + col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT - col0 * 92 - + - 81 FROM tab1 WHERE ( NULL BETWEEN - col0 AND NULL )
----

query I rowsort
SELECT ALL 96 AS col0 FROM tab0 WHERE + 28 IS NOT NULL
----
96
96
96

query I rowsort
SELECT + col0 + - + col2 * ( - col2 ) FROM tab0
----
187
2224
9898

query I rowsort
SELECT DISTINCT - col1 + - 49 FROM tab2 AS cor0
----
-100
-116
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL + MAX( ALL + 28 ) FROM tab2 cor0
----
28

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL + MAX ( ALL + 28 ) FROM tab2 cor0
----
28

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 96 ) IS NOT NULL
----

query I rowsort
SELECT ALL 68 * col1 AS col1 FROM tab1
----
3196
340
952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4386
SELECT COUNT( * ) DIV 78 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT COUNT ( * ) / 78 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - COUNT( * ) col1 FROM tab1 WHERE NOT NULL >= ( ( 11 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4387
SELECT - COUNT ( * ) col1 FROM tab1 WHERE NOT NULL >= ( ( 11 ) )
----
0

query I rowsort
SELECT ALL col2 + - 44 AS col0 FROM tab0 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE col0 <> NULL
----

query I rowsort
SELECT DISTINCT 58 + 0 AS col2 FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT CAST( + 57 AS SIGNED ) * 65 col1 FROM tab2
----
3705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4391
SELECT DISTINCT CAST ( + 57 AS INTEGER ) * 65 col1 FROM tab2
----
3705

query I rowsort
SELECT - 13 + col0 * col0 AS col2 FROM tab0
----
212
7556
9396

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + 47 * COUNT( * ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-4393
SELECT + 47 * COUNT ( * ) AS col0 FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - MIN( + col1 ) * 9 AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4394
SELECT - MIN ( + col1 ) * 9 AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT - 80 + - COUNT( * ) * 51 AS col1 FROM tab2 WHERE NULL IS NULL
----
-233

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT - 80 + - COUNT ( * ) * 51 AS col1 FROM tab2 WHERE NULL IS NULL
----
-233

query I rowsort
SELECT col2 * 13 AS col1 FROM tab2
----
299
520
754

query I rowsort
SELECT + ( - 80 ) * col1 FROM tab2
----
-4080
-5360
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL + SUM( ALL col0 ) + COUNT( * ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + SUM ( ALL col0 ) + COUNT ( * ) FROM tab0
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL >= + col1
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL >= + col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 59 ) - - 33 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + col0 * - col2 FROM tab2 WHERE NOT ( + 20 ) NOT BETWEEN ( 87 ) AND 66 * col1
----

query I rowsort
SELECT - 84 * col1 + col1 AS col2 FROM tab2
----
-4233
-5561
-6391

query I rowsort
SELECT 50 * - col1 FROM tab0
----
-1050
-4050
-50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 4 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT ALL CAST( + 26 AS SIGNED ) AS col1 FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL CAST ( + 26 AS INTEGER ) AS col1 FROM tab1
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT 62 - COUNT( * ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4406
SELECT 62 - COUNT ( * ) FROM tab1
----
59

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( col2 * + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4408
SELECT + col0 + - 30 AS col0 FROM tab0 WHERE NOT + CAST( + 61 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4408
SELECT + col0 + - 30 AS col0 FROM tab0 WHERE NOT + CAST ( + 61 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT col2 DIV - 86 + 72 AS col1 FROM tab1
----
71
72
72

skipif mysql # not compatible
query I rowsort label-4409
SELECT col2 / - 86 + 72 AS col1 FROM tab1
----
71
72
72

query III rowsort
SELECT * FROM tab1 WHERE + col2 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4411
SELECT col0 * col1 + col2 DIV col2 AS col2 FROM tab1
----
426
4278
715

skipif mysql # not compatible
query I rowsort label-4411
SELECT col0 * col1 + col2 / col2 AS col2 FROM tab1
----
426
4278
715

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 35 * - col1 + - 50 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - SUM( + col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4413
SELECT - SUM ( + col2 ) AS col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL + COUNT( DISTINCT 22 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + COUNT ( DISTINCT 22 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT col1 * 42 AS col2 FROM tab2 cor0
----
2142
2814
3234

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4416
SELECT ALL + CAST( NULL AS DECIMAL ) * + ( 60 / - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + CAST ( NULL AS REAL ) * + ( 60 / - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 9 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col0 AND col0
----

query I rowsort
SELECT - 26 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT DISTINCT + col0 * 94 FROM tab2
----
4324
6016
7050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT ALL + CAST( NULL AS SIGNED ) / 73 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL + CAST ( NULL AS INTEGER ) / 73 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT - ( CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4422
SELECT - ( CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT + 89 DIV + col1 col2 FROM tab0 AS cor0
----
1
4
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4423
SELECT + 89 / + col1 col2 FROM tab0 AS cor0
----
1
4
89

query I rowsort
SELECT ALL + ( 23 ) + - col1 FROM tab2 AS cor0
----
-28
-44
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL + + COUNT( * ) * - COUNT( 18 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + + COUNT ( * ) * - COUNT ( 18 ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 70 * 83 AS col0 FROM tab0 AS cor0
----
5810

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - COUNT( * ) * - ( - 23 ) AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4427
SELECT - COUNT ( * ) * - ( - 23 ) AS col2 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT col0 * + 49 AS col2 FROM tab2 AS cor0
----
2254
3136
3675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 * + col2 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1480
2146
851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4430
SELECT - - MIN( - 98 ) DIV + 69 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4430
SELECT - - MIN ( - 98 ) / + 69 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 96 * + 86 FROM tab2 AS cor0
----
8256

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT DISTINCT col0 DIV 44 FROM tab1 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT col0 / 44 FROM tab1 cor0
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT ALL - col1 DIV - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL - col1 / - col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 83 ) BETWEEN NULL AND col2 + 75
----

query I rowsort
SELECT ALL + 29 * + 19 * col2 AS col2 FROM tab2
----
12673
22040
31958

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT - 28 DIV + ( col0 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4436
SELECT - 28 / + ( col0 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 73 FROM tab1 WHERE NOT - ( + col1 ) BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT + COUNT( * ) FROM tab0 WHERE NOT - ( + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - ( + col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT COUNT( * ) * + 89 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT COUNT ( * ) * + 89 FROM tab0
----
267

query I rowsort
SELECT DISTINCT col0 + - + 78 * + 28 FROM tab2
----
-2109
-2120
-2138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT + CAST( col2 AS SIGNED ) AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4442
SELECT + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 21 + ( 17 ) - - col1 AS col2 FROM tab2
----
105
115
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT SUM( DISTINCT + ( 98 ) ) FROM tab2 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT SUM ( DISTINCT + ( 98 ) ) FROM tab2 WHERE + col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col2 FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT + MAX( + col2 ) - COUNT( * ) AS col2 FROM tab1 WHERE col1 <= col1
----
93

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT + MAX ( + col2 ) - COUNT ( * ) AS col2 FROM tab1 WHERE col1 <= col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT SUM( - 0 ) * 26 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4447
SELECT SUM ( - 0 ) * 26 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 38 + - - col1 - col2 FROM tab0 AS cor0
----
-60
49
72

query I rowsort
SELECT DISTINCT + 95 + - 24 AS col0 FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + MIN( DISTINCT 98 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
98

skipif mysql # not compatible
query I rowsort label-4450
SELECT + MIN ( DISTINCT 98 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT - ( COUNT( * ) ) * - MIN( - 13 ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-117

skipif mysql # not compatible
query I rowsort label-4451
SELECT - ( COUNT ( * ) ) * - MIN ( - 13 ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL - col2 FROM tab2 WHERE NOT - 11 BETWEEN NULL AND col0 * CAST( col1 AS SIGNED ) + 99
----

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL - col2 FROM tab2 WHERE NOT - 11 BETWEEN NULL AND col0 * CAST ( col1 AS INTEGER ) + 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT DISTINCT CAST( + 12 AS SIGNED ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT CAST ( + 12 AS INTEGER ) FROM tab0
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4455
SELECT + col0 col1, - col0 DIV - ( + 9 ) AS col2 FROM tab0 cor0
----
15
1
87
9
97
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4455
SELECT + col0 col1, - col0 / - ( + 9 ) AS col2 FROM tab0 cor0
----
15
1
87
9
97
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT + MAX( ALL + 88 ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4456
SELECT + MAX ( ALL + 88 ) FROM tab1 AS cor0
----
88

query I rowsort
SELECT ALL + - 21 AS col2 FROM tab0 AS cor0 WHERE + col2 <> NULL
----

query I rowsort
SELECT DISTINCT + ( + col1 ) - + col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE 42 / - col0 + + col2 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND - 21 * - 39 - - col2
----

query I rowsort
SELECT + col0 * 46 + + col0 FROM tab0 AS cor0 WHERE col0 NOT IN ( col1 * + col1 + ( col1 ) )
----
4089
4559
705

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL - 95 - - - SUM( DISTINCT col0 ) AS col1 FROM tab1
----
-322

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - 95 - - - SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
-322

query III rowsort
SELECT * FROM tab1 WHERE ( + + col2 * + col0 - 78 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT + COUNT( * ) * - 72 col2 FROM tab0
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4465
SELECT + COUNT ( * ) * - 72 col2 FROM tab0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL BETWEEN 71 AND - - col1 + 62
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL BETWEEN 71 AND - - col1 + 62
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT + col2 DIV - 95 * - + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4467
SELECT + col2 / - 95 * - + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( + + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NOT ( NOT - CAST( col0 AS SIGNED ) <> col1 )
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4469
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NOT ( NOT - CAST ( col0 AS INTEGER ) <> col1 )
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL <> ( 89 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL MAX( + + col0 ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL MAX ( + + col0 ) AS col0 FROM tab2 cor0
----
75

query I rowsort
SELECT DISTINCT col0 * - - col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab2 WHERE + 51 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col2 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= ( col1 / col0 )
----

query I rowsort
SELECT ALL - col0 * - ( - - 20 ) + + col2 * + col1 + 82 FROM tab2 AS cor0
----
2175
4442
5468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4477
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * + 18 * + + col0 FROM tab1 AS cor0
----
111384
88128
90270

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN ( + ( + col2 ) ) AND - ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4479
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN ( + ( + col2 ) ) AND - ( - col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 78 AND + 78
----

query I rowsort
SELECT DISTINCT + col1 * - col0 - - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 32 * + + 91 + - + 37 FROM tab1
----
2875
2875
2875

query I rowsort
SELECT DISTINCT col0 * 92 AS col1 FROM tab2
----
4232
5888
6900

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * - 46 = ( + + col2 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT COUNT( + col0 ) + - 58 AS col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-4485
SELECT COUNT ( + col0 ) + - 58 AS col0 FROM tab0
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4486
SELECT ALL * FROM tab1 WHERE NOT ( + CAST( + + col0 AS DECIMAL ) * + ( col2 ) ) <= ( col2 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4486
SELECT ALL * FROM tab1 WHERE NOT ( + CAST ( + + col0 AS REAL ) * + ( col2 ) ) <= ( col2 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 11 + + + 89 AS col2 FROM tab0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) + MAX( ALL + col0 ) * - COUNT( * ) col0 FROM tab2
----
-228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4488
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) + MAX ( ALL + col0 ) * - COUNT ( * ) col0 FROM tab2
----
-228

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE - col2 <= + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4490
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL - col2 * + + 48 * col1 * + 41 * + 12 + + col2 - col2 * col1 FROM tab1 AS cor0
----
-31741152
-6966956
-75479864

query I rowsort
SELECT ALL - 24 + 58 FROM tab0 cor0
----
34
34
34

query III rowsort
SELECT - col0, col2, - col1 + col0 * + col0 * - 5 + col2 * 97 AS col0 FROM tab0 AS cor0
----
9 values hashing to accdb051e2b9b8fdc51bf834811cdc49

query I rowsort
SELECT DISTINCT - + col0 + + col2 + - col1 * + 98 AS col1 FROM tab2 AS cor0
----
-5021
-6583
-7570

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4495
SELECT + 72 AS col0, ( col0 ) + - 7 * - CAST( NULL AS SIGNED ) / - 67 AS col2 FROM tab0 AS cor0
----
72
NULL
72
NULL
72
NULL

skipif mysql # not compatible
query II rowsort label-4495
SELECT + 72 AS col0, ( col0 ) + - 7 * - CAST ( NULL AS INTEGER ) / - 67 AS col2 FROM tab0 AS cor0
----
72
NULL
72
NULL
72
NULL

query I rowsort
SELECT DISTINCT 1 + + ( - + 98 ) FROM tab2 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4497
SELECT - CAST( - col0 AS SIGNED ) AS col1, col0 FROM tab2 WHERE - 50 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4497
SELECT - CAST ( - col0 AS INTEGER ) AS col1, col0 FROM tab2 WHERE - 50 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 65 ) + 99 * - - col1 col1 FROM tab0 cor0
----
164
2144
8084

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE ( NOT col2 IN ( - + 60 ) )
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL = col2 )
----

query II rowsort
SELECT DISTINCT + 24 + col2 AS col0, + ( - col1 ) AS col0 FROM tab2 AS cor0
----
47
-51
64
-77
82
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT DISTINCT - COUNT( * ), 29 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 70 * + col1 AND NULL
----
0
29

skipif mysql # not compatible
query II rowsort label-4502
SELECT DISTINCT - COUNT ( * ), 29 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 70 * + col1 AND NULL
----
0
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 56 col0, col1 - + - col0 FROM tab1
----
-56
138
-56
65
-56
90

query I rowsort
SELECT ALL + + 85 * + - col0 * - + col1 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 + 64 + - - col1 / + + 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 97 AS col2, col2 FROM tab1
----
97
59
97
68
97
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * - 39 col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE col2 + col1 NOT BETWEEN ( col0 ) AND ( - col1 )
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NOT 65 >= + 64
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + 60 IS NULL
----

query I rowsort
SELECT 34 AS col1 FROM tab2 cor0 WHERE NOT 84 * + col0 + - col1 - + col2 BETWEEN - col1 * - 27 AND ( - col0 )
----
34
34
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + - 81 * + - ( + col2 ) / 36 + - 88 IS NULL AND NOT ( 47 ) NOT BETWEEN - col0 AND + col0
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - MAX( ALL + 79 ) AS col2 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-4513
SELECT - MAX ( ALL + 79 ) AS col2 FROM tab0 AS cor0
----
-79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 66 AND - 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4515
SELECT * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4515
SELECT * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( - + 21 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT DISTINCT - CAST( - + 13 AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT - CAST ( - + 13 AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-4518
SELECT DISTINCT + col0 + - + col1 + + - col1 + + col0 DIV + 1 AS col1, - col1 * + col1 FROM tab2
----
-10
-2601
-26
-5929
16
-4489

skipif mysql # not compatible
query II rowsort label-4518
SELECT DISTINCT + col0 + - + col1 + + - col1 + + col0 / + 1 AS col1, - col1 * + col1 FROM tab2
----
-10
-2601
-26
-5929
16
-4489

query I rowsort
SELECT DISTINCT col2 + + + col1 AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4520
SELECT ALL - 34 + - - col1 / - col1 - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1, + 59 / - 68 * - CAST( - col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - 34 + - - col1 / - col1 - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1, + 59 / - 68 * - CAST ( - col2 AS REAL ) )
----

query I rowsort
SELECT col1 + + - 41 FROM tab0 cor0
----
-20
-40
40

query I rowsort
SELECT - + col0 + - - col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col1 + - col1 + col0 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 AS cor0 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT DISTINCT - ( + 65 ) FROM tab1
----
-65

query II rowsort
SELECT ALL 40 AS col1, col2 AS col2 FROM tab0
----
40
10
40
47
40
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT MIN( + 41 ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT MIN ( + 41 ) FROM tab1
----
41

query I rowsort
SELECT ALL + 72 AS col1 FROM tab0 WHERE NOT + 36 IS NOT NULL
----

query I rowsort
SELECT - 9 * - + col1 * + col2 * - col0 FROM tab2
----
-1774080
-2623050
-485622

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL SUM( + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL SUM ( + col2 ) AS col1 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT COUNT( DISTINCT col2 ) * - - 3 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4531
SELECT COUNT ( DISTINCT col2 ) * - - 3 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT 42 + - COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT 42 + - COUNT ( * ) FROM tab0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4533
SELECT - CAST( NULL AS SIGNED ) - + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT - CAST ( NULL AS INTEGER ) - + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL IN ( - 78, col2, + col2, - col1 ) AND - col1 + - 7 BETWEEN 17 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - 25 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - 25 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT 26 FROM tab2 AS cor0 WHERE 97 * - col1 <> + col2 + 73
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + + COUNT( + col2 ) + + ( + + 49 ) col1 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4537
SELECT + + COUNT ( + col2 ) + + ( + + 49 ) col1 FROM tab2 AS cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT - col1 + - - col1 DIV 99 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4538
SELECT - col1 + - - col1 / 99 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT - + 90 AS col0, + 8 AS col1 FROM tab0 cor0
----
-90
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 * col1 * - col0 col1 FROM tab1
----
-125375
-13669292
-959616

query I rowsort
SELECT ( + + col0 ) * col0 * 59 AS col1 FROM tab0
----
13275
446571
555131

query I rowsort
SELECT col1 * + 82 AS col2 FROM tab0
----
1722
6642
82

query I rowsort
SELECT ALL col2 * - 21 * - + col0 FROM tab1
----
102816
105315
129948

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + 77 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT ALL - 46 DIV - col0 col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4545
SELECT ALL - 46 / - col0 col0 FROM tab0 AS cor0
----
0
0
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col1 NOT BETWEEN col0 / - col2 - + col2 AND NULL
----

query I rowsort
SELECT ALL - col2 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-100
-128
-31

query I rowsort
SELECT DISTINCT - + 58 + 15 FROM tab0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col2 ) col1, 72 * + col2 * - 36 FROM tab0
----
-10
-25920
-47
-121824
-99
-256608

query I rowsort
SELECT col0 * + col1 * + col2 AS col0 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT ALL - ( + 9 ) * 9 FROM tab2
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4552
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4552
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <> CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL + + ( - + COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4553
SELECT ALL + + ( - + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4554
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4554
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4555
SELECT COUNT( * ) AS col1, - 72 FROM tab1
----
3
-72

skipif mysql # not compatible
query II rowsort label-4555
SELECT COUNT ( * ) AS col1, - 72 FROM tab1
----
3
-72

query II rowsort
SELECT col1 + + - col1 * col0, 11 AS col1 FROM tab2 WHERE - + 80 IS NOT NULL
----
-2295
11
-4851
11
-4958
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4557
SELECT ALL - col0 + + + col1 - + 11 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-19
NULL
-6
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-4557
SELECT ALL - col0 + + + col1 - + 11 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-19
NULL
-6
NULL
2
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 6 * - col1 * - col1 + + + col2 FROM tab1 AS cor0
----
1272
13322
209

query II rowsort
SELECT DISTINCT 78, col2 AS col1 FROM tab0 AS cor0
----
78
10
78
47
78
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 83 / ( - col1 ) ) NOT BETWEEN 89 AND NULL
----

query II rowsort
SELECT col2, col2 - - col2 AS col2 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
59
118
68
136
96
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT + CAST( - ( - col1 ) AS SIGNED ) + col2 AS col2 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-4563
SELECT + CAST ( - ( - col1 ) AS INTEGER ) + col2 AS col2 FROM tab2
----
117
125
74

query I rowsort
SELECT + AVG ( 67 ) AS col0 FROM tab0 WHERE - - col2 >= + col0 * ( + col2 )
----
NULL

query I rowsort
SELECT + 66 + col0 AS col1 FROM tab1
----
117
151
157

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT + col2 DIV + col2 + 6 AS col2 FROM tab2
----
7
7
7

skipif mysql # not compatible
query I rowsort label-4566
SELECT + col2 / + col2 + 6 AS col2 FROM tab2
----
7
7
7

query I rowsort
SELECT - 33 + 50 AS col2 FROM tab1
----
17
17
17

query I rowsort
SELECT ALL - - 72 + + 49 AS col1 FROM tab0 AS cor0
----
121
121
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4569
SELECT ALL - SUM( col0 ), + MAX( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE - 47 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4569
SELECT ALL - SUM ( col0 ), + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE - 47 IS NULL
----
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 31 + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT + ( - + MAX( + 34 ) ) - - 54 AS col0 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4571
SELECT + ( - + MAX ( + 34 ) ) - - 54 AS col0 FROM tab1 AS cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT ALL CAST( NULL AS SIGNED ) + + - col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL CAST ( NULL AS INTEGER ) + + - col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + - 99 FROM tab0
----
-2079
-8019
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT + - CAST( - col2 AS SIGNED ) * + col1 FROM tab1 cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4574
SELECT + - CAST ( - col2 AS INTEGER ) * + col1 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT - SUM( ALL - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - SUM ( ALL - col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT + - ( + - 37 ) FROM tab1 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + + ( - + SUM( + - col0 ) ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4577
SELECT + + ( - + SUM ( + - col0 ) ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT ALL COUNT( * ), 15 * COUNT( * ) AS col0 FROM tab1
----
3
45

skipif mysql # not compatible
query II rowsort label-4578
SELECT ALL COUNT ( * ), 15 * COUNT ( * ) AS col0 FROM tab1
----
3
45

query II rowsort
SELECT 83, + col1 AS col2 FROM tab1
----
83
14
83
47
83
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL - CAST( - 74 AS SIGNED ) * col1 AS col1 FROM tab2
----
3774
4958
5698

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL - CAST ( - 74 AS INTEGER ) * col1 AS col1 FROM tab2
----
3774
4958
5698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT ALL + 83 * + MIN( ALL - CAST( + col2 AS SIGNED ) ) FROM tab1
----
-7968

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL + 83 * + MIN ( ALL - CAST ( + col2 AS INTEGER ) ) FROM tab1
----
-7968

query II rowsort
SELECT DISTINCT - col1 * col0, - col2 AS col0 FROM tab2
----
-2346
-23
-4928
-40
-5025
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL MIN( ALL + 37 ) AS col0 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL MIN ( ALL + 37 ) AS col0 FROM tab0
----
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 74 - - col1 IS NOT NULL
----

query I rowsort
SELECT - 33 * + + ( - - col0 ) AS col0 FROM tab2 cor0
----
-1518
-2112
-2475

query I rowsort
SELECT col2 * - - 67 + - 13 AS col0 FROM tab1 AS cor0
----
3940
4543
6419

query I rowsort
SELECT DISTINCT + ( - - col1 ) + col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT ALL - 95 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col1 col1 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + ( + col2 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL - COUNT( * ) - 24 FROM tab1 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL - COUNT ( * ) - 24 FROM tab1 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT - ( + SUM( + col1 ) ) * - + 35 AS col1 FROM tab0 WHERE ( 79 BETWEEN + col1 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT - ( + SUM ( + col1 ) ) * - + 35 AS col1 FROM tab0 WHERE ( 79 BETWEEN + col1 AND NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT CAST( col1 AS SIGNED ) FROM tab2 WHERE ( ( ( NULL IS NULL ) ) )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4593
SELECT CAST ( col1 AS INTEGER ) FROM tab2 WHERE ( ( ( NULL IS NULL ) ) )
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT DISTINCT ( - ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT ( - ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 cor0 WHERE NOT - col0 = - - col1 + + - col0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT - COUNT( * ) * - + 83 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-4597
SELECT - COUNT ( * ) * - + 83 FROM tab0 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT - 70 * 21 + COUNT( - - col1 ) * - + ( COUNT( 27 ) ) AS col0, 74 FROM tab1 AS cor0
----
-1479
74

skipif mysql # not compatible
query II rowsort label-4598
SELECT - 70 * 21 + COUNT ( - - col1 ) * - + ( COUNT ( 27 ) ) AS col0, 74 FROM tab1 AS cor0
----
-1479
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4599
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - CAST( + + 85 AS SIGNED ) AND + - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4599
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - CAST ( + + 85 AS INTEGER ) AND + - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + + ( + 60 ) + - 87 AS col2, - col2 col1 FROM tab0 cor0
----
-1347
-10
-147
-99
-4947
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT DISTINCT - - MIN( ALL - - col1 ) * COUNT( * ) + - MIN( ALL - - col1 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT - - MIN ( ALL - - col1 ) * COUNT ( * ) + - MIN ( ALL - - col1 ) FROM tab0 AS cor0
----
2

query II rowsort
SELECT col2 AS col1, col2 AS col2 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT ALL * FROM tab1 WHERE - 22 NOT IN ( - 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL + SUM( DISTINCT - col1 ) * 86 FROM tab1
----
-5676

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + SUM ( DISTINCT - col1 ) * 86 FROM tab1
----
-5676

query I rowsort
SELECT ALL + 66 / 4 + - col2 AS col0 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 45 + 6 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 + 9 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL + col0 + + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 93 + - 30 AS col0 FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT + 24 + col1 FROM tab1 AS cor0
----
29
38
71

query I rowsort
SELECT ALL - col0 + + - col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 cor0 WHERE + col1 + + col1 + - 55 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE + col1 + + col1 + - 55 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT + col2 + + + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT + col2 + + + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT 19 * - COUNT( * ) * - 28 - - COUNT( 4 ) + - 56 FROM tab1
----
1543

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT 19 * - COUNT ( * ) * - 28 - - COUNT ( 4 ) + - 56 FROM tab1
----
1543

query I rowsort
SELECT - 77 * - ( + col1 ) + + + col0 FROM tab0
----
1704
174
6252

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4617
SELECT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT ALL col2 * + col0 - - - col2 AS col0 FROM tab0
----
658
860
9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT col2 * + CAST( + - col0 AS SIGNED ) * + + col1 FROM tab2
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-4619
SELECT col2 * + CAST ( + - col0 AS INTEGER ) * + + col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE ( - col0 * col2 IS NOT NULL )
----
59
68
96

query II rowsort
SELECT DISTINCT + col2 * + + col1 AS col2, + 38 AS col1 FROM tab2 AS cor0
----
1173
38
3080
38
3886
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT + ( + col2 ) DIV - col1 + - 22 FROM tab1 AS cor0
----
-23
-28
-33

skipif mysql # not compatible
query I rowsort label-4622
SELECT + ( + col2 ) / - col1 + - 22 FROM tab1 AS cor0
----
-23
-28
-33

query I rowsort
SELECT + 85 + 5 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 17 AND NULL
----

query I rowsort
SELECT + + col2 * 44 FROM tab1 AS cor0
----
2596
2992
4224

query I rowsort
SELECT + col2 * - 86 * + - col1 AS col0 FROM tab0 cor0
----
18060
327402
8514

query I rowsort
SELECT - col0 * 96 AS col1 FROM tab1 AS cor0
----
-4896
-8160
-8736

query I rowsort
SELECT - col1 / col0 + + 36 AS col0 FROM tab1 AS cor0 WHERE NOT - 34 + col1 <> + 35
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT ALL + + COUNT( * ) col2, 91 AS col0 FROM tab0 AS cor0
----
3
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4628
SELECT ALL + + COUNT ( * ) col2, 91 AS col0 FROM tab0 AS cor0
----
3
91

query II rowsort
SELECT ALL + col1 * - col1 + col2 AS col0, col1 * + ( col0 ) + + - 94 * + col2 - + + col0 + col2 AS col1 FROM tab2 AS cor0
----
-2578
161
-4431
-444
-5889
1144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( DISTINCT 30 ) col0 FROM tab0 WHERE NOT + col0 + + - 96 / col0 + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 93 FROM tab0
----
-1953
-7533
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT ALL 37 FROM tab1 WHERE CAST( col1 AS SIGNED ) / 37 * col2 + col2 BETWEEN + - col1 AND col1
----

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL 37 FROM tab1 WHERE CAST ( col1 AS INTEGER ) / 37 * col2 + col2 BETWEEN + - col1 AND col1
----

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT ( ( NOT NULL <= ( + 33 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT DISTINCT COUNT( 34 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT COUNT ( 34 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT - CAST( NULL AS SIGNED ) * - col1 * + col2 + - col1 + col0 + ( + + col1 ) / + col2 * + + col1 * col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4635
SELECT - CAST ( NULL AS INTEGER ) * - col1 * + col2 + - col1 + col0 + ( + + col1 ) / + col2 * + + col1 * col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( 98 ) + - 4 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - col2 * + - col1 col0 FROM tab0 AS cor0
----
-1
99
-21
210
-81
3807

query I rowsort
SELECT ALL + col0 * - col2 * - col1 + + col1 FROM tab2 AS cor0
----
197197
291517
54009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col1 FROM tab0 AS cor0
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4640
SELECT * FROM tab0 AS cor0 WHERE 81 * - col2 < col1 * + + col0 * - ( 56 ) * + col0 + 68 * + CAST( NULL AS SIGNED ) + - ( col0 )
----

skipif mysql # not compatible
query III rowsort label-4640
SELECT * FROM tab0 AS cor0 WHERE 81 * - col2 < col1 * + + col0 * - ( 56 ) * + col0 + 68 * + CAST ( NULL AS INTEGER ) + - ( col0 )
----

query I rowsort
SELECT ALL col1 + + 17 + - 42 FROM tab2 AS cor0
----
26
42
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT CAST( + + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4642
SELECT CAST ( + + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 72 >= NULL
----

query II rowsort
SELECT 51 AS col1, + 16 AS col0 FROM tab0 AS cor0
----
51
16
51
16
51
16

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( ( col0 ) ) <> + col0 + + + 93 * 83 * 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT - COUNT( DISTINCT + col1 ) - + + 17 - + - 24 + 14 AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) - + + 17 - + - 24 + 14 AS col0 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT + col2 - - - col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

query II rowsort
SELECT + col2 * + 3 + - col1 + col1, col0 * - col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4649
SELECT DISTINCT - 93 AS col2, - col2 + - + 54 DIV - col2 FROM tab2
----
-93
-21
-93
-39
-93
-58

skipif mysql # not compatible
query II rowsort label-4649
SELECT DISTINCT - 93 AS col2, - col2 + - + 54 / - col2 FROM tab2
----
-93
-21
-93
-39
-93
-58

query I rowsort
SELECT col2 * 0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 * + + col2 * - 93 FROM tab2
----
148800
312852
49197

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT COUNT( * ) * + COUNT( - col1 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4652
SELECT COUNT ( * ) * + COUNT ( - col1 ) AS col1 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT + CAST( - 34 AS SIGNED ) FROM tab0 cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-4653
SELECT + CAST ( - 34 AS INTEGER ) FROM tab0 cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4654
SELECT ALL - + 57, MIN( + col0 ) DIV - 72 - + + 59 AS col0 FROM tab2 AS cor0
----
-57
-59

skipif mysql # not compatible
query II rowsort label-4654
SELECT ALL - + 57, MIN ( + col0 ) / - 72 - + + 59 AS col0 FROM tab2 AS cor0
----
-57
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT - - MAX( DISTINCT + + col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4655
SELECT - - MAX ( DISTINCT + + col2 ) FROM tab2 cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT - 42 DIV - - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT - 42 / - - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL COUNT( * ) * ( 31 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL COUNT ( * ) * ( 31 ) FROM tab2
----
93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND + 33 + col2 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT + CAST( + ( - 25 ) AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
2025
25
525

skipif mysql # not compatible
query I rowsort label-4661
SELECT + CAST ( + ( - 25 ) AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
2025
25
525

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4663
SELECT AVG ( DISTINCT - - col1 ) + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT AVG ( DISTINCT - - col1 ) + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL + col2 AS col0, + ( + 96 ) FROM tab1
----
59
96
68
96
96
96

query I rowsort
SELECT col2 + 65 FROM tab1
----
124
133
161

query II rowsort
SELECT ALL col0, + 64 * col1 AS col1 FROM tab0
----
15
5184
87
1344
97
64

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 81 + + + col1 FROM tab0
----
102
162
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL + 19 + COUNT( * ) AS col1 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + 19 + COUNT ( * ) AS col1 FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT + SUM( ALL + ( 56 ) ) + + 23 FROM tab1
----
191

skipif mysql # not compatible
query I rowsort label-4670
SELECT + SUM ( ALL + ( 56 ) ) + + 23 FROM tab1
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT MAX( - col0 ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT MAX ( - col0 ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-15

query III rowsort
SELECT * FROM tab2 WHERE col1 * - + ( + col0 ) * col1 + + - col0 < + 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) + + 61 + 62 AS col1 FROM tab0 AS cor0
----
138
210
220

query I rowsort
SELECT - + col0 * 1 + 98 AS col1 FROM tab1 AS cor0
----
13
47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL - 66 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - 66 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT ALL - - col0 - - col2 FROM tab1 AS cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 + - col2 col2 FROM tab2 cor0
----
26
44
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 57 col1 FROM tab1 AS cor0
----
57
57
57

query III rowsort
SELECT * FROM tab2 WHERE - 75 <> - + col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - COUNT( * ) - - COUNT( DISTINCT ( + col2 ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - COUNT ( * ) - - COUNT ( DISTINCT ( + col2 ) ) AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT 72 * + - 39 FROM tab0
----
-2808
-2808
-2808

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - ( + col0 ) NOT BETWEEN NULL AND + - col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + - COUNT( ALL - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4686
SELECT + - COUNT ( ALL - col0 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT + - col2 AS col0, + ( - - col0 ), + 43 * - 22 + - 21 AS col2 FROM tab2 AS cor0
----
9 values hashing to 5099b2ed3973bd16ffbdbe1ddffae8c8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4688
SELECT DISTINCT + 15 col1, col2 * - CAST( NULL AS SIGNED ) + 59 + + col1 * - col2 / - col2 FROM tab2 AS cor0
----
15
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4688
SELECT DISTINCT + 15 col1, col2 * - CAST ( NULL AS INTEGER ) + 59 + + col1 * - col2 / - col2 FROM tab2 AS cor0
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - MAX( ( 17 ) ) col2 FROM tab1
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4689
SELECT - MAX ( ( 17 ) ) col2 FROM tab1
----
-17

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / + col1 <= - col1
----
51
14
96
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + + 87 BETWEEN col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT DISTINCT - CAST( + 65 AS SIGNED ) * + - col0 * - - col0 * - col0 AS col1 FROM tab0 AS cor0
----
-219375
-42802695
-59323745

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT - CAST ( + 65 AS INTEGER ) * + - col0 * - - col0 * - col0 AS col1 FROM tab0 AS cor0
----
-219375
-42802695
-59323745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT DISTINCT + + 80 * - 85 + - + CAST( NULL AS SIGNED ) / ( + - 32 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + + 80 * - 85 + - + CAST ( NULL AS INTEGER ) / ( + - 32 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT DISTINCT - + COUNT( DISTINCT CAST( - ( + + 25 ) AS SIGNED ) ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - + COUNT ( DISTINCT CAST ( - ( + + 25 ) AS INTEGER ) ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT 21 * - 72 + + 37 FROM tab0 AS cor0
----
-1475
-1475
-1475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) * - 38 col0 FROM tab2 AS cor0
----
1938
2546
2926

query I rowsort
SELECT ALL - col0 * - - col1 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL - 11 + col0 * - col0 FROM tab0
----
-236
-7580
-9420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4699
SELECT + COUNT( * ) DIV + SUM( - 64 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT + COUNT ( * ) / + SUM ( - 64 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT - - 83 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT 37 + 70 + + COUNT( * ) FROM tab1 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT 37 + 70 + + COUNT ( * ) FROM tab1 AS cor0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT col2 DIV + + 1 + + + col1 AS col0 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-4702
SELECT col2 / + + 1 + + + col1 AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT + - ( col1 ) AS col2 FROM tab2 WHERE NOT ( ( NOT - - 60 = + col1 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 23 * + col1 * col1 / + - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT - 85 DIV col2 DIV - 35 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4705
SELECT - 85 / col2 / - 35 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL SUM( ALL ( - ( col0 ) ) ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL SUM ( ALL ( - ( col0 ) ) ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL + 3 AS col0 FROM tab1 AS cor0 WHERE col1 * - + col0 * 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT + SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query II rowsort label-4709
SELECT ALL 98, - 4 DIV + + col2 * - col0 * + col2 AS col0 FROM tab0 cor0
----
98
0
98
0
98
0

skipif mysql # not compatible
query II rowsort label-4709
SELECT ALL 98, - 4 / + + col2 * - col0 * + col2 AS col0 FROM tab0 cor0
----
98
0
98
0
98
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4710
SELECT + - col1, - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

skipif mysql # not compatible
query II rowsort label-4710
SELECT + - col1, - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT DISTINCT col1 + + + col0 * - 31 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT 96 * - - MAX( col1 ) AS col2 FROM tab2
----
7392

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT 96 * - - MAX ( col1 ) AS col2 FROM tab2
----
7392

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - 75 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4714
SELECT ALL ( + 56 ), - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
56
9

skipif mysql # not compatible
query II rowsort label-4714
SELECT ALL ( + 56 ), - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
56
9

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE + 33 * + col1 + - + col0 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 31 * 51 FROM tab2
----
1581
1581
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT + col2 * - ( col1 ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL COUNT( DISTINCT col1 ) FROM tab2 WHERE NULL NOT IN ( + col2, col1 * + 71 * - col0, col0, 28 )
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL COUNT ( DISTINCT col1 ) FROM tab2 WHERE NULL NOT IN ( + col2, col1 * + 71 * - col0, col0, 28 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4721
SELECT DISTINCT - ( + + CAST( - + COUNT( * ) AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - ( + + CAST ( - + COUNT ( * ) AS INTEGER ) ) FROM tab1
----
3

query I rowsort
SELECT - col1 * 42 FROM tab2
----
-2142
-2814
-3234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 * - 90 * - col1 col1 FROM tab1 AS cor0
----
139590
14850
41580

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT - col2 DIV col2 * + ( + 70 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-4724
SELECT - col2 / col2 * + ( + 70 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT - MIN( ALL + - col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT - MIN ( ALL + - col2 ) FROM tab2 cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT DISTINCT 30 DIV col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT 30 / col2 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT DISTINCT 48 DIV - COUNT( ALL - 60 ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT 48 / - COUNT ( ALL - 60 ) FROM tab1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL + 93 + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + 93 + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 13 - - - 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT + + 96 * - + COUNT( * ) AS col0 FROM tab0 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT + + 96 * - + COUNT ( * ) AS col0 FROM tab0 cor0
----
-288

query I rowsort
SELECT DISTINCT + 85 + - + col2 FROM tab0 AS cor0
----
-14
38
75

query I rowsort
SELECT ALL + - 77 AS col1 FROM tab2 AS cor0
----
-77
-77
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 52 * + - 62 AND - col2
----

query I rowsort
SELECT col2 + - - col0 AS col1 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL CAST( NULL AS SIGNED ) / 89 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL CAST ( NULL AS INTEGER ) / 89 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 + 79, col0 AS col0 FROM tab2
----
125
46
143
64
154
75

query I rowsort
SELECT DISTINCT 10 * - col1 + - ( 71 ) AS col2 FROM tab0
----
-281
-81
-881

query III rowsort
SELECT * FROM tab2 WHERE 34 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) - - 43 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) - - 43 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col0 + + col1 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4741
SELECT ALL - col0 DIV + col2 + 99 AS col1 FROM tab2 cor0
----
97
98
98

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - col0 / + col2 + 99 AS col1 FROM tab2 cor0
----
97
98
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT - COUNT( * ) AS col0, COUNT( * ) * + ( + COUNT( * ) ) * 83 * + - COUNT( * ) col0 FROM tab0 AS cor0
----
-3
-2241

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4742
SELECT - COUNT ( * ) AS col0, COUNT ( * ) * + ( + COUNT ( * ) ) * 83 * + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3
-2241

query I rowsort
SELECT DISTINCT col1 - + 34 FROM tab1
----
-20
-29
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT - 59 DIV - col2 FROM tab0 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4744
SELECT - 59 / - col2 FROM tab0 cor0
----
0
1
5

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 > col0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4746
SELECT + col0 DIV - - 89 - - 87 + - col0 - - - col1 AS col0, - col0 + - + col1 FROM tab0 AS cor0
----
-10
-98
-21
-108
-9
-96

skipif mysql # not compatible
query II rowsort label-4746
SELECT + col0 / - - 89 - - 87 + - col0 - - - col1 AS col0, - col0 + - + col1 FROM tab0 AS cor0
----
-10
-98
-21
-108
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col1 FROM tab0 cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL 48 * + + COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL 48 * + + COUNT ( * ) FROM tab0 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT SUM( DISTINCT - + col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4749
SELECT SUM ( DISTINCT - + col2 ) AS col2 FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query II rowsort label-4750
SELECT DISTINCT col2, - col0 * + col1 - + + col1 - - col1 * col2 DIV - col2 AS col0 FROM tab0
----
10
-1869
47
-1377
99
-99

skipif mysql # not compatible
query II rowsort label-4750
SELECT DISTINCT col2, - col0 * + col1 - + + col1 - - col1 * col2 / - col2 AS col0 FROM tab0
----
10
-1869
47
-1377
99
-99

query I rowsort
SELECT DISTINCT - col1 * 29 AS col0 FROM tab1
----
-1363
-145
-406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col2, 42 * col2 AS col0 FROM tab1 AS cor0
----
-51
4032
-85
2478
-91
2856

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT + col1 DIV + - col0 col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4753
SELECT + col1 / + - col0 col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ALL + + MIN( + 73 ) AS col2 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + + MIN ( + 73 ) AS col2 FROM tab0 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 32 ) col1 FROM tab1 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4756
SELECT DISTINCT + COUNT( * ) + COUNT( * ) DIV + - 82 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) / + - 82 AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4757
SELECT - 92 DIV 71 * + - COUNT( * ) + 11 AS col1 FROM tab0 WHERE - 90 IS NULL
----
11

skipif mysql # not compatible
query I rowsort label-4757
SELECT - 92 / 71 * + - COUNT ( * ) + 11 AS col1 FROM tab0 WHERE - 90 IS NULL
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4758
SELECT ALL * FROM tab2 cor0 WHERE col2 = CAST( - 76 AS DECIMAL ) + + col1
----

skipif mysql # not compatible
query III rowsort label-4758
SELECT ALL * FROM tab2 cor0 WHERE col2 = CAST ( - 76 AS REAL ) + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 84 * - col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - COUNT( * ) + - 10 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4760
SELECT - COUNT ( * ) + - 10 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT - col1 + - col2 + col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT DISTINCT COUNT( * ) DIV - - 47 * - 48 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT COUNT ( * ) / - - 47 * - 48 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 60 + - - col0 > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT - + CAST( + + col1 AS SIGNED ) * + 62 FROM tab2 AS cor0
----
-3162
-4154
-4774

skipif mysql # not compatible
query I rowsort label-4764
SELECT - + CAST ( + + col1 AS INTEGER ) * + 62 FROM tab2 AS cor0
----
-3162
-4154
-4774

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - col2 * + col0 - - + col0
----

query I rowsort
SELECT ALL col2 * - + col2 AS col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + col1 * 45 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL + - 69 * COUNT( * ) FROM tab0 WHERE NOT - col0 NOT IN ( col1, ( - col1 ), + - 61, + col2 * + col1 * col2, 41 - + - ( - + col1 ), - col0 - + col2 * + 56, + - col2 * - col0 * + col2 ) AND ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL + - 69 * COUNT ( * ) FROM tab0 WHERE NOT - col0 NOT IN ( col1, ( - col1 ), + - 61, + col2 * + col1 * col2, 41 - + - ( - + col1 ), - col0 - + col2 * + 56, + - col2 * - col0 * + col2 ) AND ( NULL ) IS NULL
----
0

query I rowsort
SELECT - col0 - - 51 FROM tab2
----
-13
-24
5

query I rowsort
SELECT col1 * - + 76 - + - col0 AS col0 FROM tab0
----
-1509
-6141
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col2 FROM tab2 cor0
----
-102
-134
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - 32 * + - col0 col1, col2 + - 90 - + - col1 AS col0 FROM tab0 AS cor0
----
2697
-59
3007
10
465
38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT ALL - 3 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-43
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36 col0, - 85 AS col1 FROM tab1
----
36
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4777
SELECT 42 AS col2, CAST( NULL AS SIGNED ) + - - col0 FROM tab1
----
42
NULL
42
NULL
42
NULL

skipif mysql # not compatible
query II rowsort label-4777
SELECT 42 AS col2, CAST ( NULL AS INTEGER ) + - - col0 FROM tab1
----
42
NULL
42
NULL
42
NULL

query I rowsort
SELECT - ( 56 ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4779
SELECT - COUNT( * ) col2, MAX( ALL col1 ) * - CAST( NULL AS SIGNED ) col2 FROM tab2
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4779
SELECT - COUNT ( * ) col2, MAX ( ALL col1 ) * - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
-3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4780
SELECT ALL ( + - 51 ) AS col2, - COUNT( * ) FROM tab1
----
-51
-3

skipif mysql # not compatible
query II rowsort label-4780
SELECT ALL ( + - 51 ) AS col2, - COUNT ( * ) FROM tab1
----
-51
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51 * 68 AS col2, 54 col1 FROM tab2
----
3468
54
3468
54
3468
54

query II rowsort
SELECT col2 AS col1, col2 * - 39 AS col1 FROM tab0 AS cor0
----
10
-390
47
-1833
99
-3861

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - col2 ) = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - + 13 AS col0, - 83 * - col1 + ( - - col1 ) FROM tab2 AS cor0
----
-13
4284
-13
5628
-13
6468

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL - col1 AS col0, col2, + 50 + + - 2 FROM tab2 AS cor0
----
9 values hashing to b86216d06870a0c6406cf0964f1129a9

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT - + ( + - MIN( DISTINCT - - col2 ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT - + ( + - MIN ( DISTINCT - - col2 ) ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ( - - 12 ) * + - COUNT( * ) AS col1 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-4788
SELECT ( - - 12 ) * + - COUNT ( * ) AS col1 FROM tab1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4789
SELECT ALL * FROM tab2 WHERE col1 BETWEEN + CAST( NULL AS SIGNED ) AND - - col0
----

skipif mysql # not compatible
query III rowsort label-4789
SELECT ALL * FROM tab2 WHERE col1 BETWEEN + CAST ( NULL AS INTEGER ) AND - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT + col0 DIV - col0 + - 65 + col1 FROM tab1
----
-19
-52
-61

skipif mysql # not compatible
query I rowsort label-4790
SELECT + col0 / - col0 + - 65 + col1 FROM tab1
----
-19
-52
-61

query I rowsort
SELECT ALL - col2 + - 26 AS col1 FROM tab2 AS cor0
----
-49
-66
-84

query I rowsort
SELECT ( - ( + + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE + 36 + - col1 + - + col0 + col0 * + col1 * + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - - MAX( DISTINCT + 47 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4794
SELECT - - MAX ( DISTINCT + 47 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT + 77 + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
86

skipif mysql # not compatible
query I rowsort label-4795
SELECT + 77 + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4796
SELECT * FROM tab0 AS cor0 WHERE - CAST( - - 69 AS SIGNED ) * + col1 * + col1 <= - col2
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-4796
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - - 69 AS INTEGER ) * + col1 * + col1 <= - col2
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 / + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4798
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + - 83 FROM tab1 AS cor0 WHERE - ( + 5 ) * + + col2 NOT BETWEEN NULL AND + col0 + + 17 + + col2
----

query I rowsort
SELECT DISTINCT + col2 + col0 + + - col1 FROM tab2 AS cor0
----
18
27
66

query II rowsort
SELECT + ( + 16 ) + - + col0 * + col0, col0 FROM tab0 AS cor0
----
-209
15
-7553
87
-9393
97

query I rowsort
SELECT + ( + 64 ) + - - 13 - + col2 AS col1 FROM tab1 AS cor0
----
-19
18
9

query I rowsort
SELECT + col2 + - ( - - ( + col1 ) ) FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT DISTINCT 56 - + ( - + COUNT( * ) ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT 56 - + ( - + COUNT ( * ) ) FROM tab2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4805
SELECT COUNT( * ) DIV 46 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4805
SELECT COUNT ( * ) / 46 AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT col2 DIV col2 DIV - col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT col2 / col2 / - col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT + - 70 + + CAST( NULL AS SIGNED ) FROM tab2 WHERE + + 93 < NULL
----

skipif mysql # not compatible
query I rowsort label-4807
SELECT + - 70 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + + 93 < NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col0 * + 29 + col2 + + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
-117777
-15714
-7251

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4809
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT - ( - COUNT( * ) ) + + 42 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT - ( - COUNT ( * ) ) + + 42 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT DISTINCT + - COUNT( * ) - + + 67 * - 40 AS col1 FROM tab1 cor0
----
2677

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT + - COUNT ( * ) - + + 67 * - 40 AS col1 FROM tab1 cor0
----
2677

query I rowsort
SELECT DISTINCT + + 2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 1 + + col0 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4814
SELECT ALL COUNT( * ) AS col0, 18 FROM tab2 AS cor0
----
3
18

skipif mysql # not compatible
query II rowsort label-4814
SELECT ALL COUNT ( * ) AS col0, 18 FROM tab2 AS cor0
----
3
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + SUM( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4815
SELECT + SUM ( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * 38 ) BETWEEN - col1 * - col2 + 64 AND - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT ALL - 32 DIV - + 37 + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - 32 / - + 37 + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + col2 AS col2, + 47 AS col1 FROM tab2 AS cor0
----
23
47
40
47
58
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT MIN( ALL 46 ) * + 16 * + + 61 * 61 FROM tab1 AS cor0
----
2738656

skipif mysql # not compatible
query I rowsort label-4819
SELECT MIN ( ALL 46 ) * + 16 * + + 61 * 61 FROM tab1 AS cor0
----
2738656

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + 46 * + col2 / + + col2 <= col1
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, + col1 * + - 30 FROM tab1
----
59
-150
68
-1410
96
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL COUNT( ALL + 28 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL COUNT ( ALL + 28 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT ALL - col0 * col1 * - + ( ( - col1 ) ) + col0 DIV - - col2 FROM tab1
----
-201018
-2124
-9996

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - col0 * col1 * - + ( ( - col1 ) ) + col0 / - - col2 FROM tab1
----
-201018
-2124
-9996

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4825
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, + col1 * + + col1 AS col2 FROM tab2
----
NULL
2601
NULL
4489
NULL
5929

skipif mysql # not compatible
query II rowsort label-4825
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, + col1 * + + col1 AS col2 FROM tab2
----
NULL
2601
NULL
4489
NULL
5929

query I rowsort
SELECT DISTINCT - 23 - - - col2 + + col0 / + + ( ( col0 ) ) AS col2 FROM tab1 WHERE col1 * - + col0 + - + ( - 96 ) + - + 67 BETWEEN - col1 AND - + col2
----

query I rowsort
SELECT DISTINCT + - 63 + - - col2 AS col2 FROM tab0 AS cor0
----
-16
-53
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE NOT col1 = + - col0
----
3

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 = + - col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT DISTINCT - COUNT( * ) * - + 24 AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT - COUNT ( * ) * - + 24 AS col0 FROM tab2 AS cor0
----
72

query I rowsort
SELECT + col2 * + + col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col2 FROM tab1 AS cor0
----
87

query I rowsort
SELECT - 32 * - col1 + + 46 FROM tab0 cor0
----
2638
718
78

query I rowsort
SELECT + col0 + - col0 * + col2 AS col1 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT ALL - CAST( - col0 AS SIGNED ) + + - col2 + - ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - CAST ( - col0 AS INTEGER ) + + - col2 + - ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 48 - 72 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( + 49 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL - - CAST( NULL AS SIGNED ) + + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - - CAST ( NULL AS INTEGER ) + + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col1 * col0 * - col2 - col1 AS col2 FROM tab1
----
-2131380
-26466123
-3495758

onlyif mysql # aggregate syntax: 
query II rowsort label-4839
SELECT DISTINCT - 47 * + MAX( - 76 ) AS col1, 49 AS col2 FROM tab0
----
3572
49

skipif mysql # not compatible
query II rowsort label-4839
SELECT DISTINCT - 47 * + MAX ( - 76 ) AS col1, 49 AS col2 FROM tab0
----
3572
49

query I rowsort
SELECT ALL + col0 - - - 81 + - col0 AS col2 FROM tab0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL - 45 - - COUNT( * ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - 45 - - COUNT ( * ) FROM tab0
----
-42

query I rowsort
SELECT 16 FROM tab1 WHERE ( NULL IS NULL )
----
16
16
16

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 10
----

query I rowsort
SELECT DISTINCT - ( 68 ) * + ( - 2 ) FROM tab1
----
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + + col1 col1 FROM tab2
----
104
78
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4846
SELECT - 90 * + col2 * + CAST( - col0 AS SIGNED ) + + 65 DIV - - col0 AS col2 FROM tab2
----
230401
391500
95221

skipif mysql # not compatible
query I rowsort label-4846
SELECT - 90 * + col2 * + CAST ( - col0 AS INTEGER ) + + 65 / - - col0 AS col2 FROM tab2
----
230401
391500
95221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT - 96 >= - col1 + 68 * col0 + + + CAST( - 20 AS SIGNED ) + - - col2 + - col1 + - - col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT - 96 >= - col1 + 68 * col0 + + + CAST ( - 20 AS INTEGER ) + - - col2 + - col1 + - - col1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 * 41 - + + col0 col1, 66 FROM tab0 AS cor0
----
-3654
66
-4074
66
-630
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4849
SELECT DISTINCT col0 AS col0, - CAST( + + ( col0 ) AS SIGNED ) * - - col2 + + + col2 + col2 + - + col0 FROM tab2 AS cor0
----
46
-1058
64
-2544
75
-4309

skipif mysql # not compatible
query II rowsort label-4849
SELECT DISTINCT col0 AS col0, - CAST ( + + ( col0 ) AS INTEGER ) * - - col2 + + + col2 + col2 + - + col0 FROM tab2 AS cor0
----
46
-1058
64
-2544
75
-4309

query I rowsort
SELECT DISTINCT + col2 * + 9 + 36 * col1 * + - 6 + - ( - - col0 ) + - ( + ( - ( col2 ) ) ) AS col1 FROM tab2 AS cor0
----
-10832
-13967
-16296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT ALL + 9 / - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL + 9 / - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - MIN( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4852
SELECT - MIN ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col2 FROM tab0 cor0
----
-81

query II rowsort
SELECT - col2 AS col1, + col0 AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT + COUNT( - ( - col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT + COUNT ( - ( - col2 ) ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 11 NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( 18 ) AS col0 FROM tab2
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE NOT col1 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + col1 + + ( - 54 ) * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT + COUNT( ALL + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4860
SELECT + COUNT ( ALL + col0 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 14 - + ( col1 + col2 ) * - col1 col2 FROM tab0
----
-1258
-567
10158

query III rowsort
SELECT * FROM tab1 WHERE + 31 * - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 IN ( 85 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * + col0 + + 88 FROM tab1
----
-337
-4189
-626

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4865
SELECT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) - + col1 > ( + ( col0 ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-4865
SELECT * FROM tab1 WHERE CAST ( NULL AS REAL ) - + col1 > ( + ( col0 ) + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 0 + ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-4868
SELECT CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL col2 + 15 FROM tab0 WHERE NOT ( 47 ) BETWEEN - col1 * 26 + + col2 AND NULL
----
114

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 * - col0 + col0 / + col1 AND + 23 + col2 / col1
----

query I rowsort
SELECT - col1 * + 41 FROM tab0
----
-3321
-41
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT - SUM( ALL + 32 ) AS col1 FROM tab2 WHERE NOT col2 / col1 - - col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT - SUM ( ALL + 32 ) AS col1 FROM tab2 WHERE NOT col2 / col1 - - col0 > NULL
----
NULL

query I rowsort
SELECT DISTINCT 79 FROM tab0 WHERE - col2 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4874
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 34 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT CAST ( NULL AS REAL ) + 34 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT COUNT( * ) * 57 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-4875
SELECT COUNT ( * ) * 57 FROM tab1
----
171

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 = + 9
----

query I rowsort
SELECT DISTINCT 61 + - 31 FROM tab2
----
30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - 63 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / - 80 >= + col1
----

query I rowsort
SELECT - col0 + 94 AS col1 FROM tab2 AS cor0
----
19
30
48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4882
SELECT ALL * FROM tab1 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) <> + col1
----

skipif mysql # not compatible
query III rowsort label-4882
SELECT ALL * FROM tab1 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + 48 / col1 + + 16 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + 48 / col1 + + 16 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL MIN( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL MIN ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN 17 * col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT 53 * COUNT( * ) AS col0 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-4888
SELECT 53 * COUNT ( * ) AS col0 FROM tab2
----
159

query I rowsort
SELECT - ( 23 ) AS col0 FROM tab1
----
-23
-23
-23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 99 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 ) IN ( - col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT 91 + COUNT( * ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4892
SELECT 91 + COUNT ( * ) FROM tab1 AS cor0
----
94

query I rowsort
SELECT col2 + - 63 * - col2 FROM tab1 AS cor0
----
3776
4352
6144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4894
SELECT + COUNT( * ) DIV 35 + - COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4894
SELECT + COUNT ( * ) / 35 + - COUNT ( * ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL + 82 - + col0 FROM tab0 AS cor0
----
-15
-5
67

query I rowsort
SELECT DISTINCT - - 61 + col2 * - 87 AS col2 FROM tab0 AS cor0
----
-4028
-809
-8552

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 29 * - + col2 AS col1 FROM tab2
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT SUM( DISTINCT + - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4899
SELECT SUM ( DISTINCT + - col0 ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT 37 * + 58 FROM tab2
----
2146
2146
2146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - - 69 * 3 col2 FROM tab1
----
-266
-275
-303

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) >= + col2 * 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT ALL - ( + CAST( - 78 AS SIGNED ) ) AS col2 FROM tab0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - ( + CAST ( - 78 AS INTEGER ) ) AS col2 FROM tab0
----
78
78
78

query I rowsort
SELECT DISTINCT 2 * + col1 AS col1 FROM tab0
----
162
2
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + ( + col0 ) AND + ( 69 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4906
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN ( + 82 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4906
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN ( + 82 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT + COUNT( * ) col1 FROM tab0 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4907
SELECT + COUNT ( * ) col1 FROM tab0 WHERE NOT + col2 IS NULL
----
3

query I rowsort
SELECT ALL 20 * - 75 FROM tab2
----
-1500
-1500
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL + SUM( ALL + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT + MAX( - 57 ) AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + MAX ( - 57 ) AS col2 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT 8 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( 12 ) < ( NULL )
----

query II rowsort
SELECT 79, col2 FROM tab1
----
79
59
79
68
79
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL + SUM( - + 16 ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + SUM ( - + 16 ) AS col2 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT + + col2 * 50 + + 18 FROM tab0 AS cor0
----
2368
4968
518

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4916
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - CAST( NULL AS SIGNED ) / col0 <> + 50
----

skipif mysql # not compatible
query III rowsort label-4916
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - CAST ( NULL AS INTEGER ) / col0 <> + 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4917
SELECT + 40 AS col1, CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
40
51
40
67
40
77

skipif mysql # not compatible
query II rowsort label-4917
SELECT + 40 AS col1, CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
40
51
40
67
40
77

query I rowsort
SELECT DISTINCT - + ( + 90 ) AS col1 FROM tab0 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT - 45 DIV - + 39 col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4919
SELECT - 45 / - + 39 col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT + 50 DIV - - 15 AS col2 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4920
SELECT + 50 / - - 15 AS col2 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - ( + col2 ) * - + col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + + ( + col2 ) + - 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT - MIN( ALL + col2 ) * - COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4923
SELECT - MIN ( ALL + col2 ) * - COUNT ( * ) FROM tab2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4924
SELECT ALL COUNT( * ) * - MAX( ALL + + CAST( + + CAST( col1 AS SIGNED ) AS SIGNED ) ) * + 75 FROM tab1
----
-10575

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL COUNT ( * ) * - MAX ( ALL + + CAST ( + + CAST ( col1 AS INTEGER ) AS INTEGER ) ) * + 75 FROM tab1
----
-10575

onlyif mysql # DIV for integer division: 
query II rowsort label-4925
SELECT DISTINCT col0 DIV col1 AS col2, - col0 DIV col2 FROM tab0
----
0
0
4
-8
97
0

skipif mysql # not compatible
query II rowsort label-4925
SELECT DISTINCT col0 / col1 AS col2, - col0 / col2 FROM tab0
----
0
0
4
-8
97
0

query I rowsort
SELECT - 85 FROM tab0 WHERE NULL IS NULL
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT DISTINCT + ( col1 ) DIV 7 FROM tab2
----
11
7
9

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT + ( col1 ) / 7 FROM tab2
----
11
7
9

query III rowsort
SELECT * FROM tab2 WHERE - 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4929
SELECT ALL 94 DIV COUNT( * ) * + 46 FROM tab2
----
1426

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL 94 / COUNT ( * ) * + 46 FROM tab2
----
1426

query I rowsort
SELECT ALL 39 + - 91 FROM tab0
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - + col1 * + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - - col2 * + col1 NOT IN ( col1 + - 13 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + + col1 + - col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4934
SELECT - CAST( ( ( - MAX( DISTINCT + 85 ) ) ) AS SIGNED ) FROM tab1 AS cor0 WHERE col2 * + col1 / - + 72 < ( - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT - CAST ( ( ( - MAX ( DISTINCT + 85 ) ) ) AS INTEGER ) FROM tab1 AS cor0 WHERE col2 * + col1 / - + 72 < ( - 73 )
----
NULL

query I rowsort
SELECT ALL + 32 AS col1 FROM tab2 AS cor0 WHERE + col1 * col2 < NULL
----

query I rowsort
SELECT - - col2 + + ( - - 59 ) FROM tab0 AS cor0
----
106
158
69

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col1 + + - 13 AND - col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 47 + col0 IS NOT NULL
----

query I rowsort
SELECT 26 FROM tab0 WHERE ( + col2 + + - col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4941
SELECT - MIN( DISTINCT + CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4941
SELECT - MIN ( DISTINCT + CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15

query II rowsort
SELECT - col0 AS col1, 24 FROM tab2 AS cor0
----
-46
24
-64
24
-75
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT SUM( + ( + ( + CAST( NULL AS SIGNED ) ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT SUM ( + ( + ( + CAST ( NULL AS INTEGER ) ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT - COUNT( * ) + 60 col0 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4944
SELECT DISTINCT - COUNT ( * ) + 60 col0 FROM tab0 AS cor0
----
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - 90 ) NOT IN ( - col1 * + col1 ) AND NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 - + + col0 * + 50 * + col2 AS col2 FROM tab2 AS cor0
----
-128064
-217575
-52946

query I rowsort
SELECT - - col1 - + col1 + 2 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4948
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - 58 <= NULL
----

skipif mysql # not compatible
query III rowsort label-4948
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - 58 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT + + MIN( 62 ) + + + COUNT( * ) - 63 + - COUNT( * ) * 84 FROM tab2 AS cor0
----
-250

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT + + MIN ( 62 ) + + + COUNT ( * ) - 63 + - COUNT ( * ) * 84 FROM tab2 AS cor0
----
-250

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT ALL + + 34 - 75 * col1 DIV + col1 FROM tab1 cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + + 34 - 75 * col1 / + col1 FROM tab1 cor0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab1 cor0 WHERE 36 < ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 + - - col1 + - - col1 AS col1 FROM tab1 AS cor0
----
-49
-68
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 84 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4954
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN - CAST( NULL AS SIGNED ) AND ( - - col0 )
----

skipif mysql # not compatible
query III rowsort label-4954
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4955
SELECT - col1 FROM tab0 WHERE NOT NULL IN ( - col2 + + - ( - CAST( NULL AS SIGNED ) ) + - + 57 )
----

skipif mysql # not compatible
query I rowsort label-4955
SELECT - col1 FROM tab0 WHERE NOT NULL IN ( - col2 + + - ( - CAST ( NULL AS INTEGER ) ) + - + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT MIN( - 73 ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-4956
SELECT MIN ( - 73 ) FROM tab0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT + MIN( ALL col0 ), + 71 AS col0 FROM tab2
----
46
71

skipif mysql # not compatible
query II rowsort label-4957
SELECT + MIN ( ALL col0 ), + 71 AS col0 FROM tab2
----
46
71

query I rowsort
SELECT DISTINCT - 58 * - col0 FROM tab1
----
2958
4930
5278

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 16 IN ( - col1 + - 88 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL + + ( ( - COUNT( * ) ) ) * 43 col1 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4960
SELECT ALL + + ( ( - COUNT ( * ) ) ) * 43 col1 FROM tab1 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT DISTINCT - MIN( - 99 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT - MIN ( - 99 ) AS col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ( + - MAX( ALL - 60 ) ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-4963
SELECT ( + - MAX ( ALL - 60 ) ) AS col2 FROM tab2
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 19 ) col1 FROM tab0
----
-19
-19
-19

query I rowsort
SELECT col0 * col2 * - + 59 FROM tab2
----
-151040
-256650
-62422

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4966
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST( - 53 AS SIGNED ) ) <= ( 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4966
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST ( - 53 AS INTEGER ) ) <= ( 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 31 * + col0 * col2 FROM tab1 AS cor0
----
-151776
-155465
-191828

query I rowsort
SELECT DISTINCT + - 43 FROM tab1 cor0
----
-43

query II rowsort
SELECT DISTINCT - 37 * + 78 AS col1, + col0 FROM tab0 AS cor0
----
-2886
15
-2886
87
-2886
97

query I rowsort
SELECT ALL - - ( + - col0 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col0
----

query I rowsort
SELECT - ( + col1 ) FROM tab2 WHERE ( + 64 ) IN ( col1 * + - col2 )
----

query I rowsort
SELECT ALL + col1 + + col0 + col0 FROM tab1 WHERE col1 + - col2 * - + 0 / + - col2 IS NOT NULL
----
116
175
229

query I rowsort
SELECT ALL - 69 + - 84 FROM tab0
----
-153
-153
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT + 72 BETWEEN - ( + 2 ) + + col0 AND 90 * - col1 + + 38
----
3

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 72 BETWEEN - ( + 2 ) + + col0 AND 90 * - col1 + + 38
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4976
SELECT col0 + col2 - - ( col2 ) DIV + + col2 AS col1 FROM tab1
----
145
148
160

skipif mysql # not compatible
query I rowsort label-4976
SELECT col0 + col2 - - ( col2 ) / + + col2 AS col1 FROM tab1
----
145
148
160

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4977
SELECT ALL - CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) + - col2 DIV + col1 FROM tab1
----
-57
-92
-96

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) + - col2 / + col1 FROM tab1
----
-57
-92
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + + MAX( + 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4978
SELECT + + MAX ( + 62 ) FROM tab2 AS cor0
----
62

query I rowsort
SELECT DISTINCT - + 93 - - 28 FROM tab2 AS cor0
----
-65

query II rowsort
SELECT DISTINCT + - col1, + 63 / col1 * - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 2
----

query I rowsort
SELECT DISTINCT - 8 / col0 + + 47 FROM tab1 AS cor0 WHERE NOT - col2 * - 21 <> + 31
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 99 + + 28 * - + col0 * + ( + col1 ) * + ( col1 ) + + 8 col1 FROM tab2 AS cor0
----
-10624859
-3350179
-9426991

query I rowsort
SELECT ALL + 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 WHERE NULL IN ( 30, + 51 )
----

query I rowsort
SELECT + col2 * - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND ( NULL )
----

query I rowsort
SELECT - + col2 + - + col1 - 0 * + - ( col2 ) * - 38 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4988
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4989
SELECT ALL COUNT( * ) DIV + + 5 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL COUNT ( * ) / + + 5 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col1 * - ( - col1 ) FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT + 14 DIV 33 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4991
SELECT + 14 / 33 AS col1 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 57 AND col1 * - col1 - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 19 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + 11 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT MAX( - 58 ) AS col0 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT MAX ( - 58 ) AS col0 FROM tab1
----
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + + col0, - col1, - + col2, - 82 ) AND NOT NULL IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT DISTINCT col0 * 76 FROM tab1 AS cor0 WHERE NOT ( NULL IN ( - col1 + + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT col0 * 76 FROM tab1 AS cor0 WHERE NOT ( NULL IN ( - col1 + + CAST ( NULL AS INTEGER ) ) )
----

query II rowsort
SELECT DISTINCT 17 AS col2, - col2 FROM tab1
----
17
-59
17
-68
17
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + ( + 19 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT - MIN( ( + ( + ( col2 ) ) ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5000
SELECT - MIN ( ( + ( + ( col2 ) ) ) ) FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 57 col0, ( + col0 ) * - col1 - 81 AS col1 FROM tab1
----
57
-4358
57
-506
57
-795

query I rowsort
SELECT ALL - 82 + 0 * - col0 * col2 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT - + 70 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT ALL - col1 * ( + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - col1 * ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5005
SELECT - - ( - CAST( NULL AS DECIMAL ) ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5005
SELECT - - ( - CAST ( NULL AS REAL ) ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT 36 * + CAST( - ( col0 ) AS SIGNED ) + + col2 + - col0 * col0 AS col2 FROM tab1 WHERE - 39 <> + col2
----
-10226
-11489
-4341

skipif mysql # not compatible
query I rowsort label-5006
SELECT 36 * + CAST ( - ( col0 ) AS INTEGER ) + + col2 + - col0 * col0 AS col2 FROM tab1 WHERE - 39 <> + col2
----
-10226
-11489
-4341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL 47 + 51 + + - CAST( + + 41 AS SIGNED ) * - col1 + - col2 AS col2 FROM tab0
----
3372
40
949

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL 47 + 51 + + - CAST ( + + 41 AS INTEGER ) * - col1 + - col2 AS col2 FROM tab0
----
3372
40
949

query II rowsort
SELECT col0 - + + col0, + col0 FROM tab1
----
0
51
0
85
0
91

query II rowsort
SELECT ALL 13 + + col1 AS col1, col2 FROM tab0
----
14
99
34
10
94
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT 25 + col0 DIV 95 FROM tab0
----
25
25
26

skipif mysql # not compatible
query I rowsort label-5010
SELECT 25 + col0 / 95 FROM tab0
----
25
25
26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( - col0, 83 + 40, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT - COUNT( * ) + - CAST( - + 65 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5012
SELECT - COUNT ( * ) + - CAST ( - + 65 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
62

query I rowsort
SELECT 95 * - col1 + + col0 FROM tab2 AS cor0
----
-4799
-6290
-7251

query II rowsort
SELECT - col2 + col2 AS col0, col1 AS col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE + col2 * + col1 + - - 53 + + 23 IN ( + 49 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT COUNT( * ) * + 63 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT COUNT ( * ) * + 63 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5017
SELECT 93 col0, + COUNT( * ) + + 88 AS col1 FROM tab0
----
93
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5017
SELECT 93 col0, + COUNT ( * ) + + 88 AS col1 FROM tab0
----
93
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT + + col2 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT + + col2 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5019
SELECT DISTINCT MAX( DISTINCT col1 ) DIV 62 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT MAX ( DISTINCT col1 ) / 62 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col2 * + + col1 + - 51 * + - 72 AS col1 FROM tab2 AS cor0
----
-214
2499
592

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 / col2 * - - ( - col0 ), 4 + + 30, + col0 + + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL - + SUM( DISTINCT + col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL - + SUM ( DISTINCT + col0 ) FROM tab0 cor0
----
-199

query I rowsort
SELECT DISTINCT col0 * 51 AS col1 FROM tab0
----
4437
4947
765

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT 6 * - COUNT( * ) * + 32 FROM tab0
----
-576

skipif mysql # not compatible
query I rowsort label-5025
SELECT 6 * - COUNT ( * ) * + 32 FROM tab0
----
-576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 + + col2 col2 FROM tab0 WHERE + 46 * + 38 NOT BETWEEN - 38 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 * + ( 24 ) col1 FROM tab2
----
1272

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT ALL col0 DIV 12 FROM tab1
----
4
7
7

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL col0 / 12 FROM tab1
----
4
7
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 + - + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col0 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - col1 + 94 FROM tab2 cor0
----
17
27
43

query I rowsort
SELECT DISTINCT + - col0 + col2 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
123136
225313
26933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT 95 * + - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0 WHERE + col1 IN ( - 13 )
----

skipif mysql # not compatible
query I rowsort label-5033
SELECT 95 * + - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0 WHERE + col1 IN ( - 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col2 + ( - col2 ) + - 97 col0 FROM tab0 AS cor0
----
561
763
9407

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5035
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - CAST( - col1 AS SIGNED ) < + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5035
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - CAST ( - col1 AS INTEGER ) < + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 8 + - - col1 + - + col0 FROM tab2 AS cor0
----
-16
-3
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT ( col1 ) + - CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT ( col1 ) + - CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + ( + + col1 ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT col0 DIV col1 * 94 + + col2 AS col0 FROM tab0
----
386
47
9217

skipif mysql # not compatible
query I rowsort label-5039
SELECT col0 / col1 * 94 + + col2 AS col0 FROM tab0
----
386
47
9217

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT SUM( ALL - - col2 ) + COUNT( * ) FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-5040
SELECT SUM ( ALL - - col2 ) + COUNT ( * ) FROM tab1
----
226

query III rowsort
SELECT * FROM tab1 WHERE NULL = + + 61 * + - 10
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5042
SELECT COUNT( * ), 63 AS col1 FROM tab1
----
3
63

skipif mysql # not compatible
query II rowsort label-5042
SELECT COUNT ( * ), 63 AS col1 FROM tab1
----
3
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5043
SELECT * FROM tab2 WHERE + - col0 * CAST( + 92 AS SIGNED ) * + col0 - + + col0 + - - col1 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5043
SELECT * FROM tab2 WHERE + - col0 * CAST ( + 92 AS INTEGER ) * + col0 - + + col0 + - - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5044
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( col0 / - col2, + CAST( NULL AS SIGNED ), - col2 * - - col1 )
----

skipif mysql # not compatible
query III rowsort label-5044
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( col0 / - col2, + CAST ( NULL AS INTEGER ), - col2 * - - col1 )
----

query I rowsort
SELECT ALL - 65 * - - col1 + col2 + + col0 AS col0 FROM tab0 AS cor0
----
-1268
-5203
131

query I rowsort
SELECT DISTINCT col1 * col0 + - - col0 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT COUNT( DISTINCT + ( - col2 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5047
SELECT COUNT ( DISTINCT + ( - col2 ) ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT DISTINCT - 37 DIV + 8 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT - 37 / + 8 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5049
SELECT ALL + 17 * - 80 AS col0, + ( - 70 ) * - SUM( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-1360
-15890

skipif mysql # not compatible
query II rowsort label-5049
SELECT ALL + 17 * - 80 AS col0, + ( - 70 ) * - SUM ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-1360
-15890

query I rowsort
SELECT - - 79 AS col0 FROM tab1 cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL - MAX( DISTINCT - + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - MAX ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT + MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5052
SELECT + MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col2 * col2 * col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + col1
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + col0 < + 67 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT - 41 * - COUNT( * ) AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - 41 * - COUNT ( * ) AS col0 FROM tab2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT ALL + CAST( NULL AS SIGNED ) * - + 88 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 88 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT ALL 1 DIV - + col0 * + - 62 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL 1 / - + col0 * + - 62 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 6 * 30 FROM tab2 AS cor0 WHERE NOT + 65 IS NULL
----
180
180
180

query I rowsort
SELECT - ( + - 60 ) * col0 AS col1 FROM tab2 AS cor0
----
2760
3840
4500

query II rowsort
SELECT DISTINCT + - col0, - 23 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 + + col0 * 18 AS col0 FROM tab2
----
1075
1283
777

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 13 * col0 AND + col1 * - col0 + + ( + col2 ) * - col1 - - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT - col2 * col2 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT - col2 * col2 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT DISTINCT + CAST( - ( + 81 ) AS SIGNED ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + CAST ( - ( + 81 ) AS INTEGER ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - 91 AS col1 FROM tab1 WHERE NOT - 15 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 + 97 * - 13 * ( 23 ) + + col0 IS NULL
----

query II rowsort
SELECT ALL 64, - col2 + ( + ( + 33 ) ) AS col1 FROM tab0
----
64
-14
64
-66
64
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT MIN( - 20 ) * - - 71 AS col2 FROM tab0
----
-1420

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT MIN ( - 20 ) * - - 71 AS col2 FROM tab0
----
-1420

query I rowsort
SELECT - col1 + - - 17 + - + 54 FROM tab1 AS cor0
----
-42
-51
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

query I rowsort
SELECT 63 * + 11 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4f3bdabad1eec75d325ffee22b093671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT - COUNT( * ) * + COUNT( * ) + + 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

skipif mysql # not compatible
query I rowsort label-5074
SELECT - COUNT ( * ) * + COUNT ( * ) + + 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT COUNT( * ) * + - 98 AS col0 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-5075
SELECT COUNT ( * ) * + - 98 AS col0 FROM tab1 AS cor0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL - COUNT( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - COUNT ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 * - 9 FROM tab2 AS cor0
----
-414
-576
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT col2 * + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT col2 * + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - 39 * 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT SUM( + 63 ) col0 FROM tab0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5080
SELECT SUM ( + 63 ) col0 FROM tab0
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT DISTINCT ( col1 ) DIV - - col2 + - col1 FROM tab2
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT ( col1 ) / - - col2 + - col1 FROM tab2
----
-49
-66
-76

query I rowsort
SELECT - col1 + + + col0 - col0 * - col0 FROM tab2
----
2111
4083
5633

query I rowsort
SELECT DISTINCT - col1 * - ( - + 37 ) AS col0 FROM tab2 AS cor0
----
-1887
-2479
-2849

query I rowsort
SELECT ALL 93 * + + col0 AS col2 FROM tab1 AS cor0
----
4743
7905
8463

query I rowsort
SELECT DISTINCT + + col2 + + ( - 75 ) * + col1 FROM tab1 AS cor0
----
-316
-3457
-954

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT 7 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT DISTINCT + 88 * - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT + 88 * - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT - + 74 + + COUNT( * ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - + 74 + + COUNT ( * ) FROM tab1 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT DISTINCT col2 * - col0 + + col0 + + CAST( NULL AS SIGNED ) / + 39 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT col2 * - col0 + + col0 + + CAST ( NULL AS INTEGER ) / + 39 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 43 * col0 AS col1 FROM tab2 AS cor0
----
-1978
-2752
-3225

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT ALL - + 42 DIV + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - + 42 / + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-3
-8
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT ALL - col2 - - col0 - 68 DIV + - col0 FROM tab1 AS cor0
----
-44
23
26

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - col2 - - col0 - 68 / + - col0 FROM tab1 AS cor0
----
-44
23
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - - col1
----

query I rowsort
SELECT + col2 * - - col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + - col1 ) AS col0 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT - + col0 AS col0, 26 FROM tab1 WHERE col0 IS NOT NULL
----
-51
26
-85
26
-91
26

query II rowsort
SELECT ALL 66, col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
66
1
66
21
66
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT - - COUNT( * ) - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5100
SELECT - - COUNT ( * ) - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT col0 + - - col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT - 55 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-5102
SELECT - 55 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5103
SELECT + CAST( + 73 AS SIGNED ) * 8 + + 95 FROM tab2 AS cor0
----
679
679
679

skipif mysql # not compatible
query I rowsort label-5103
SELECT + CAST ( + 73 AS INTEGER ) * 8 + + 95 FROM tab2 AS cor0
----
679
679
679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT ALL + - col1 * + + col1 - - + CAST( NULL AS SIGNED ) - + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + - col1 * + + col1 - - + CAST ( NULL AS INTEGER ) - + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - + 5 AS col1 FROM tab0 AS cor0
----
-235
-495
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT - SUM( + 94 ) AS col1 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-5106
SELECT - SUM ( + 94 ) AS col1 FROM tab1 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - 7 * - COUNT( * ) col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5107
SELECT - 7 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + 45 * + COUNT( * ) FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-5108
SELECT + 45 * + COUNT ( * ) FROM tab0 AS cor0
----
135

query I rowsort
SELECT - 7 AS col1 FROM tab2 cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5110
SELECT + + COUNT( * ) DIV + 7 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5110
SELECT + + COUNT ( * ) / + 7 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 20 * + col1 FROM tab0
----
1620
20
420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT + 89 AS col1, - 87 AS col2 FROM tab2
----
89
-87
89
-87
89
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL + COUNT( * ) FROM tab2 WHERE - 49 NOT BETWEEN - col2 * 25 * + - 68 AND col0
----
3

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + COUNT ( * ) FROM tab2 WHERE - 49 NOT BETWEEN - col2 * 25 * + - 68 AND col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT ALL + SUM( ALL + col0 ) DIV MIN( ALL + ( col0 ) ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL + SUM ( ALL + col0 ) / MIN ( ALL + ( col0 ) ) FROM tab1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT ALL col2 * 73 DIV - - col0 + - col1 AS col0 FROM tab0
----
-13
147
73

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL col2 * 73 / - - col0 + - col1 AS col0 FROM tab0
----
-13
147
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT + - 4 * + - COUNT( * ) + COUNT( * ) col1 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col0 * - 23
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5117
SELECT + - 4 * + - COUNT ( * ) + COUNT ( * ) col1 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col0 * - 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT + MIN( DISTINCT + 72 ) col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5118
SELECT + MIN ( DISTINCT + 72 ) col1 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5119
SELECT MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + 79 + - col1 AS col1 FROM tab1 AS cor0
----
32
65
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5121
SELECT ( - 62 ) + - col0 / CAST( NULL AS SIGNED ) AS col1, 64 * 32 AS col1 FROM tab0 AS cor0
----
NULL
2048
NULL
2048
NULL
2048

skipif mysql # not compatible
query II rowsort label-5121
SELECT ( - 62 ) + - col0 / CAST ( NULL AS INTEGER ) AS col1, 64 * 32 AS col1 FROM tab0 AS cor0
----
NULL
2048
NULL
2048
NULL
2048

onlyif mysql # DIV for integer division: 
query I rowsort label-5122
SELECT DISTINCT - - col0 DIV 86 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT - - col0 / 86 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT ALL + 69 + COUNT( * ) col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5123
SELECT ALL + 69 + COUNT ( * ) col2 FROM tab2 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT ALL - + CAST( + - col0 AS SIGNED ) - + - col0 col1 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5124
SELECT ALL - + CAST ( + - col0 AS INTEGER ) - + - col0 col1 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT + SUM( DISTINCT + ( - - col0 ) ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT + SUM ( DISTINCT + ( - - col0 ) ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - 15 - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5126
SELECT - 15 - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-12

query II rowsort
SELECT - + col2, col1 FROM tab2 WHERE NULL IS NULL
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT col1 - + - 87 FROM tab1
----
101
134
92

query II rowsort
SELECT DISTINCT col0 AS col0, col2 - + 18 FROM tab0
----
15
29
87
-8
97
81

query I rowsort
SELECT - 99 + col0 + + 15 FROM tab2
----
-20
-38
-9

query I rowsort
SELECT - col0 * + col2 * + - col1 AS col1 FROM tab0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 87 AS col1, 3 col1 FROM tab2
----
87
3

query I rowsort
SELECT - 15 * - col1 AS col0 FROM tab0
----
1215
15
315

query I rowsort
SELECT 17 * col0 + col0 + - 32 AS col2 FROM tab1 WHERE NOT NULL <= - + 92
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5135
SELECT ALL + COUNT( * ) DIV - 88 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + COUNT ( * ) / - 88 AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + col1 AS col1, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5137
SELECT ALL + 23, COUNT( * ) col1 FROM tab2 AS cor0
----
23
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5137
SELECT ALL + 23, COUNT ( * ) col1 FROM tab2 AS cor0
----
23
3

query I rowsort
SELECT ALL 3 + - 86 + - ( + + col1 ) FROM tab2 AS cor0 WHERE ( ( col2 ) NOT BETWEEN col0 AND NULL )
----
-134
-150
-160

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + 2, + col0, col1, + 52 + 65, col1 )
----

query I rowsort
SELECT col2 * 60 + col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( 93 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT DISTINCT - MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT - MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5142
SELECT COUNT( * ) DIV - 74 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5142
SELECT COUNT ( * ) / - 74 col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col0 col1 FROM tab0 WHERE NOT - 87 * 75 * col1 = - col0
----
174
194
30

query I rowsort
SELECT - - 10 * - 42 FROM tab0 AS cor0
----
-420
-420
-420

query I rowsort
SELECT + col2 * + col1 + + ( + - col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
2346
6160
7772

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NOT NULL >= col2
----

query II rowsort
SELECT - 85 * 9 AS col2, - col0 AS col0 FROM tab1 AS cor0
----
-765
-51
-765
-85
-765
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT - MIN( ALL - + ( - 35 ) ) AS col1 FROM tab1 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT - MIN ( ALL - + ( - 35 ) ) AS col1 FROM tab1 cor0
----
-35

query I rowsort
SELECT col1 * - + col2 * + + ( - col2 ) FROM tab1 WHERE - + col0 < + - 26
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT MAX( + col0 ) + - ( + - 97 ) AS col0 FROM tab0
----
194

skipif mysql # not compatible
query I rowsort label-5150
SELECT MAX ( + col0 ) + - ( + - 97 ) AS col0 FROM tab0
----
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 + - col0 col2 FROM tab1 AS cor0
----
-53
-87
-93

query I rowsort
SELECT ALL - 73 + - 65 AS col2 FROM tab0 AS cor0
----
-138
-138
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL - MAX( - + ( + + 38 ) ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL - MAX ( - + ( + + 38 ) ) FROM tab0 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL - MIN( DISTINCT col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - MIN ( DISTINCT col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL + COUNT( * ) + - - 82 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL + COUNT ( * ) + - - 82 FROM tab1
----
85

query I rowsort
SELECT DISTINCT - + 80 * + col2 + col0 FROM tab0 AS cor0
----
-3745
-713
-7823

query I rowsort
SELECT ALL - - col2 + - 30 FROM tab0 AS cor0
----
-20
17
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - - 58 + + + COUNT( * ) col2 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5158
SELECT - - 58 + + + COUNT ( * ) col2 FROM tab2 AS cor0
----
61

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 71 + col1 AS col1 FROM tab0 cor0
----
-50
-70
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL MIN( DISTINCT 48 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL MIN ( DISTINCT 48 ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT ALL + col2 * - + col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5163
SELECT col1 * - CAST( + col0 AS SIGNED ), col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

skipif mysql # not compatible
query II rowsort label-5163
SELECT col1 * - CAST ( + col0 AS INTEGER ), col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col2 FROM tab0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT CAST( NULL AS SIGNED ) * - - col0 * + 65 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT CAST ( NULL AS INTEGER ) * - - col0 * + 65 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 25 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT DISTINCT COUNT( - 86 ) AS col0 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT COUNT ( - 86 ) AS col0 FROM tab1, tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + + col2 / + col0 - + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL SUM( 78 ) + COUNT( * ) FROM tab0 cor0
----
237

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL SUM ( 78 ) + COUNT ( * ) FROM tab0 cor0
----
237

query I rowsort
SELECT + ( ( col0 ) ) FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + 19 col2 FROM tab2 cor0
----
1102
437
760

query I rowsort
SELECT ALL col0 + - 39 AS col1 FROM tab1 AS cor0
----
12
46
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL MIN( ALL - - col0 ) col0 FROM tab2 AS cor0 WHERE NOT - 28 * + + 8 + + - 62 / - 93 <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5174
SELECT ALL MIN ( ALL - - col0 ) col0 FROM tab2 AS cor0 WHERE NOT - 28 * + + 8 + + - 62 / - 93 <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 * + - col1 col0 FROM tab0 AS cor0
----
1176
4536
56

query III rowsort
SELECT * FROM tab2 WHERE col2 = + + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT + 36 + - COUNT( * ) AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT + 36 + - COUNT ( * ) AS col0 FROM tab0
----
33

query I rowsort
SELECT + col1 FROM tab2 WHERE col1 <= NULL
----

query I rowsort
SELECT 52 + + col2 AS col1 FROM tab2
----
110
75
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL COUNT( * ) + - 38 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL COUNT ( * ) + - 38 FROM tab2
----
-35

query I rowsort
SELECT - + col2 * - 59 + - ( - 62 ) + 75 FROM tab2 AS cor0
----
1494
2497
3559

query I rowsort
SELECT + col1 * - col2 + col2 FROM tab0 AS cor0
----
-200
-3760
0

query II rowsort
SELECT ALL 18, + col0 AS col0 FROM tab2
----
18
46
18
64
18
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT ALL - 11 * MIN( + 16 ) AS col1, + 92 * + COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-176
828

skipif mysql # not compatible
query II rowsort label-5184
SELECT ALL - 11 * MIN ( + 16 ) AS col1, + 92 * + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-176
828

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT + MIN( ALL ( - 12 ) ) AS col0 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-5185
SELECT + MIN ( ALL ( - 12 ) ) AS col0 FROM tab1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT + + ( - COUNT( * ) ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5186
SELECT + + ( - COUNT ( * ) ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL COUNT( DISTINCT - - col2 ) + - - 41 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL COUNT ( DISTINCT - - col2 ) + - - 41 FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT - MIN( - col0 ) + + + 67 AS col2 FROM tab2
----
142

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT - MIN ( - col0 ) + + + 67 AS col2 FROM tab2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ( + MIN( 6 ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5189
SELECT ( + MIN ( 6 ) ) FROM tab2
----
6

query I rowsort
SELECT + col2 * ( + + col1 ) AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT - 86 - - col2 FROM tab1 AS cor0
----
-18
-27
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL AND NOT + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * col0 + + 84 * - 40 FROM tab1 AS cor0
----
1536
1655
2828

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT + - COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + - COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT - - ( + - COUNT( * ) ) + - + 67 AS col2 FROM tab0 AS cor0 WHERE NOT 3 IS NOT NULL
----
-67

skipif mysql # not compatible
query I rowsort label-5195
SELECT - - ( + - COUNT ( * ) ) + - + 67 AS col2 FROM tab0 AS cor0 WHERE NOT 3 IS NOT NULL
----
-67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - col0 * + 19 * + - ( - 26 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT col0 DIV ( - col2 ) FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5197
SELECT col0 / ( - col2 ) FROM tab1 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT - COUNT( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT - COUNT ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - col1 col0 FROM tab1 cor0
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col1, 1 AS col1 FROM tab1 AS cor0
----
-51
1
-85
1
-91
1

query I rowsort
SELECT DISTINCT ( + + 21 ) AS col1 FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT COUNT( * ) * + 85 AS col1 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT COUNT ( * ) * + 85 AS col1 FROM tab0
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT - col1 * - - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5203
SELECT - col1 * - - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - + 66 AS col2 FROM tab2
----
-3036
-4224
-4950

query I rowsort
SELECT DISTINCT + col1 * + + col0 AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-5206
SELECT ALL - COUNT( * ) * + 73 * + + COUNT( * ) * COUNT( * ) AS col1, - 3 AS col0 FROM tab2
----
-1971
-3

skipif mysql # not compatible
query II rowsort label-5206
SELECT ALL - COUNT ( * ) * + 73 * + + COUNT ( * ) * COUNT ( * ) AS col1, - 3 AS col0 FROM tab2
----
-1971
-3

query I rowsort
SELECT DISTINCT 7 * + col1 * col0 AS col2 FROM tab1
----
2975
29939
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT SUM( DISTINCT + - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5208
SELECT SUM ( DISTINCT + - col1 ) FROM tab1
----
-66

query I rowsort
SELECT ( - 48 ) AS col2 FROM tab1
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT 27 * - + COUNT( * ) AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5210
SELECT 27 * - + COUNT ( * ) AS col2 FROM tab1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT MIN( ALL 99 ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5211
SELECT MIN ( ALL 99 ) col0 FROM tab0
----
99

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NULL > - 4 * + col1 * - col2 + + - col2
----

query I rowsort
SELECT 70 * + - col2 FROM tab1 AS cor0
----
-4130
-4760
-6720

query I rowsort
SELECT DISTINCT - col1 * 50 + - 19 + + col2 + + + col1 AS col1 FROM tab1 AS cor0
----
-205
-2254
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL - ( + COUNT( * ) ) * + COUNT( * ) + 40 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - ( + COUNT ( * ) ) * + COUNT ( * ) + 40 FROM tab0 AS cor0
----
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / - 37 - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + + col0 * - 72 FROM tab2 AS cor0
----
-3266
-4544
-5325

query I rowsort
SELECT 90 + - 57 AS col0 FROM tab2 cor0
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT + 79 + - col1 + + col0 DIV col1 col0 FROM tab1
----
33
68
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5219
SELECT + 79 + - col1 + + col0 / col1 col0 FROM tab1
----
33
68
91

query I rowsort
SELECT DISTINCT + ( + 77 ) FROM tab2
----
77

query II rowsort
SELECT + 6 + col0 + + - col1 + + col2 + + ( - 70 ), col1 FROM tab2
----
-37
77
-46
51
2
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5222
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5223
SELECT - COUNT( * ) col0, COUNT( * ) + + 69 FROM tab0 AS cor0
----
-3
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5223
SELECT - COUNT ( * ) col0, COUNT ( * ) + + 69 FROM tab0 AS cor0
----
-3
72

query I rowsort
SELECT DISTINCT - 83 + + + 72 AS col2 FROM tab0 cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT SUM( - 42 ) FROM tab2, tab2 AS cor0
----
-378

skipif mysql # not compatible
query I rowsort label-5225
SELECT SUM ( - 42 ) FROM tab2, tab2 AS cor0
----
-378

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL + ( + CAST( 79 AS SIGNED ) ) FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL + ( + CAST ( 79 AS INTEGER ) ) FROM tab1 AS cor0
----
79
79
79

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 76 * + col1 > col1 / + + col0
----

query I rowsort
SELECT ALL - 30 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 9
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT + col0 DIV - - col1 + - + 54 FROM tab2 cor0
----
-53
-54
-54

skipif mysql # not compatible
query I rowsort label-5230
SELECT + col0 / - - col1 + - + 54 FROM tab2 cor0
----
-53
-54
-54

query I rowsort
SELECT + col2 * - + 36 AS col2 FROM tab2 AS cor0
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT + SUM( ALL - col1 ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5232
SELECT DISTINCT + SUM ( ALL - col1 ) col1 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT 77 * - col1 * - 40 FROM tab2
----
157080
206360
237160

query I rowsort
SELECT - col0 * - 58 AS col1 FROM tab2 AS cor0
----
2668
3712
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + MIN( ALL + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5235
SELECT + MIN ( ALL + col2 ) FROM tab1 AS cor0
----
59

query II rowsort
SELECT 61 AS col2, + 4 FROM tab2 cor0
----
61
4
61
4
61
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5237
SELECT DISTINCT - + COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT - + COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT + col0 DIV col0 * - - col0 col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5238
SELECT + col0 / col0 * - - col0 col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ( - + col2 ) + - 11 AS col2 FROM tab0
----
-110
-21
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 WHERE + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 WHERE + - col1 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab0 WHERE - 44 IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT DISTINCT col2 + 51 DIV + - col0 AS col2 FROM tab0 AS cor0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT col2 + 51 / + - col0 AS col2 FROM tab0 AS cor0
----
10
44
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT DISTINCT COUNT( * ), ( - - COUNT( * ) ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5243
SELECT DISTINCT COUNT ( * ), ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col0 + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + 91 BETWEEN + col1 * + - col0 AND 33
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5246
SELECT ALL COUNT( * ) * ( + + AVG ( DISTINCT - col2 ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL COUNT ( * ) * ( + + AVG ( DISTINCT - col2 ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 + - + col1 IS NULL
----

query I rowsort
SELECT 25 * - - 18 + col2 AS col0 FROM tab0
----
460
497
549

query I rowsort
SELECT col2 + + + col1 + col0 AS col2 FROM tab1
----
149
161
206

query I rowsort
SELECT DISTINCT - + col1 + - + col2 + col0 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT - MAX( + col0 ) AS col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5251
SELECT - MAX ( + col0 ) AS col0 FROM tab1 cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5252
SELECT - MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 59 ) NOT BETWEEN - col0 * - col0 AND - + 42 + + col1
----

query II rowsort
SELECT DISTINCT + col1 AS col2, ( col1 ) * - + col2 AS col2 FROM tab2 AS cor0
----
51
-1173
67
-3886
77
-3080

query II rowsort
SELECT DISTINCT + + col2 AS col1, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - ( col0 ), - col0 )
----

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - ( col0 ), - col0 )
----

query I rowsort
SELECT ALL + col2 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
3481
4624
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5258
SELECT COUNT( DISTINCT - - col2 ) DIV + 47 AS col1, - 4 AS col1 FROM tab0 AS cor0
----
0
-4

skipif mysql # not compatible
query II rowsort label-5258
SELECT COUNT ( DISTINCT - - col2 ) / + 47 AS col1, - 4 AS col1 FROM tab0 AS cor0
----
0
-4

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT MAX( DISTINCT 20 ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT MAX ( DISTINCT 20 ) FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - MAX( DISTINCT - - 27 ) AS col0 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-5261
SELECT - MAX ( DISTINCT - - 27 ) AS col0 FROM tab0
----
-27

query I rowsort
SELECT + col2 * - 41 FROM tab0
----
-1927
-4059
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT COUNT( * ) + + + 99 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-5263
SELECT COUNT ( * ) + + + 99 FROM tab1
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5264
SELECT 92 DIV + MAX( ALL 75 ) + - 29 AS col2 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-5264
SELECT 92 / + MAX ( ALL 75 ) + - 29 AS col2 FROM tab2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5265
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + + CAST( NULL AS SIGNED ), - col1 + + 40 )
----

skipif mysql # not compatible
query III rowsort label-5265
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + + CAST ( NULL AS INTEGER ), - col1 + + 40 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5266
SELECT - COUNT( col1 ) AS col0, 35 AS col1 FROM tab2 AS cor0
----
-3
35

skipif mysql # not compatible
query II rowsort label-5266
SELECT - COUNT ( col1 ) AS col0, 35 AS col1 FROM tab2 AS cor0
----
-3
35

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 + - col2 / - 61 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT + CAST( - MIN( DISTINCT - col0 ) AS SIGNED ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5268
SELECT + CAST ( - MIN ( DISTINCT - col0 ) AS INTEGER ) FROM tab2
----
75

query I rowsort
SELECT ALL + - col1 * - + col2 * - - col2 AS col0 FROM tab0 WHERE NOT - - col2 IS NULL
----
178929
2100
9801

query I rowsort
SELECT DISTINCT + col1 + - + col0 AS col1 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT 97 * - col1 * - - col0 - 73 - col2 + col0 + 89 FROM tab0 AS cor0
----
-117871
-177126
-9395

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 13 >= + col1 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 9 + + - col1 FROM tab1 AS cor0
----
-38
-5
4

query I rowsort
SELECT col0 - + col2 AS col1 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
17
23
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5276
SELECT + CAST( NULL AS DECIMAL ) + - col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5276
SELECT + CAST ( NULL AS REAL ) + - col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5277
SELECT ALL CAST( NULL AS DECIMAL ) + + + COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL CAST ( NULL AS REAL ) + + + COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 23 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT 55 + col2 DIV + col0 FROM tab0
----
55
56
58

skipif mysql # not compatible
query I rowsort label-5279
SELECT 55 + col2 / + col0 FROM tab0
----
55
56
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5280
SELECT ALL + CAST( NULL AS SIGNED ), 81 AS col2 FROM tab2
----
NULL
81
NULL
81
NULL
81

skipif mysql # not compatible
query II rowsort label-5280
SELECT ALL + CAST ( NULL AS INTEGER ), 81 AS col2 FROM tab2
----
NULL
81
NULL
81
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL + CAST( - + MIN( DISTINCT - + col1 ) AS SIGNED ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + CAST ( - + MIN ( DISTINCT - + col1 ) AS INTEGER ) AS col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT MAX( + - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT MAX ( + - col0 ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT - col2 + ( - col2 ) * + - col1 FROM tab1 AS cor0
----
1248
236
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ALL - MIN( - - col0 ) FROM tab1 AS cor0 WHERE NOT 73 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL - MIN ( - - col0 ) FROM tab1 AS cor0 WHERE NOT 73 > NULL
----
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1, col1 * - 60 FROM tab1 AS cor0
----
14
-840
47
-2820
5
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5287
SELECT COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE 88 IS NOT NULL
----
10
47
99

query II rowsort
SELECT DISTINCT - - 20 * + col2 * + 16 AS col1, - col2 FROM tab0 AS cor0
----
15040
-47
31680
-99
3200
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL - 64 * - COUNT( * ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - 64 * - COUNT ( * ) FROM tab2 AS cor0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT - col1 DIV 25 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5291
SELECT - col1 / 25 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - + 72 AS col2 FROM tab2 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 73 col1 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT - col0 * + 21 + - col2 FROM tab2 AS cor0
----
-1384
-1633
-989

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT + 56 * 86 DIV - 32 AS col0 FROM tab0 AS cor0
----
-150
-150
-150

skipif mysql # not compatible
query I rowsort label-5295
SELECT + 56 * 86 / - 32 AS col0 FROM tab0 AS cor0
----
-150
-150
-150

query I rowsort
SELECT + ( + + 64 ) FROM tab0
----
64
64
64

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + col1 <= NULL
----

query I rowsort
SELECT col1 * 86 + + col1 + col1 + + 82 AS col2 FROM tab2 WHERE NOT NULL > - - 79
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 33 / - 65 BETWEEN + col1 - ( - col2 ) AND - col2
----

query I rowsort
SELECT DISTINCT col2 + - - 75 + col0 FROM tab1 AS cor0 WHERE NOT col2 * 47 > + + 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5301
SELECT - col2 * CAST( + col2 AS SIGNED ) FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-5301
SELECT - col2 * CAST ( + col2 AS INTEGER ) FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT + col1 * - 42 FROM tab1
----
-1974
-210
-588

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT col0 DIV + 27 - + 25 FROM tab2
----
-23
-23
-24

skipif mysql # not compatible
query I rowsort label-5303
SELECT col0 / + 27 - + 25 FROM tab2
----
-23
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 52 * 87 AS col2 FROM tab0
----
4524
4524
4524

query III rowsort
SELECT ALL * FROM tab0 WHERE 38 <= col0 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 86 * + col2 AS col2 FROM tab1
----
-5074
-5848
-8256

query I rowsort
SELECT ( - 84 ) FROM tab2
----
-84
-84
-84

query I rowsort
SELECT ALL - 89 / 28 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 55 * + col2 IS NULL
----

query I rowsort
SELECT - 17 * col1 FROM tab2 WHERE NOT ( NULL ) IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT DISTINCT - 44 - + col0 DIV + col2 FROM tab1
----
-44
-45

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT - 44 - + col0 / + col2 FROM tab1
----
-44
-45

query I rowsort
SELECT DISTINCT col1 * + 61 + - col2 FROM tab0
----
-38
1271
4894

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT DISTINCT 46 DIV - col2 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5314
SELECT DISTINCT 46 / - col2 col1 FROM tab1
----
0

query I rowsort
SELECT - 4 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 * - 80 col2 FROM tab0
----
1920
1920
1920

query I rowsort
SELECT 34 * 26 AS col1 FROM tab2
----
884
884
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 97 col1 FROM tab2
----
-2231
-3880
-5626

query I rowsort
SELECT DISTINCT col0 * col0 + - 16 FROM tab0
----
209
7553
9393

query I rowsort
SELECT ALL + 10 * col1 + 61 FROM tab0
----
271
71
871

query I rowsort
SELECT 82 * col1 AS col2 FROM tab0 AS cor0
----
1722
6642
82

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 19 * col0 ) AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL + ( MAX( 27 ) ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL + ( MAX ( 27 ) ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) < ( + 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5326
SELECT ALL * FROM tab0 WHERE 24 + 49 * CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5326
SELECT ALL * FROM tab0 WHERE 24 + 49 * CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL 10 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT COUNT( * ) * + 60 AS col2 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-5328
SELECT COUNT ( * ) * + 60 AS col2 FROM tab2
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5329
SELECT + - COUNT( * ) DIV 47 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5329
SELECT + - COUNT ( * ) / 47 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5330
SELECT ALL - + COUNT( * ) DIV + SUM( + col1 + - 90 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL - + COUNT ( * ) / + SUM ( + col1 + - 90 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5331
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5331
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + 61 ) FROM tab2 cor0
----
-61
-61
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * + 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( col1 ) * col2 AS col1 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT - 43 DIV - 53 + - 98 FROM tab0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-5335
SELECT - 43 / - 53 + - 98 FROM tab0
----
-98
-98
-98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( 34 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT DISTINCT - COUNT( DISTINCT - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5338
SELECT DISTINCT + col0 + + col0 DIV - col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT + col0 + + col0 / - col0 FROM tab2
----
45
63
74

query III rowsort
SELECT * FROM tab0 WHERE ( + ( col2 ) ) NOT IN ( - col2 - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT col1 * - + col0 * - col0 + col2 DIV col0 FROM tab1
----
36125
36415
389207

skipif mysql # not compatible
query I rowsort label-5340
SELECT col1 * - + col0 * - col0 + col2 / col0 FROM tab1
----
36125
36415
389207

query I rowsort
SELECT - 24 + ( col2 ) FROM tab1 WHERE ( col1 + + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col0 * col2 - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT DISTINCT - - 51 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT - - 51 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL - + 21 + - - col0 AS col0 FROM tab2 AS cor0
----
25
43
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0 WHERE + 73 >= col0 * - 45 - + col0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT COUNT( * ) * + 9 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT COUNT ( * ) * + 9 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN - ( 61 ) * + ( 39 ) + col2 AND col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5348
SELECT ALL * FROM tab1 WHERE NOT ( + ( ( ( + CAST( col0 AS DECIMAL ) ) ) ) ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5348
SELECT ALL * FROM tab1 WHERE NOT ( + ( ( ( + CAST ( col0 AS REAL ) ) ) ) ) >= ( NULL )
----

query I rowsort
SELECT ALL - + col0 + - + col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 BETWEEN 77 + col0 AND - 49 + col1 / + col2
----
0

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 BETWEEN 77 + col0 AND - 49 + col1 / + col2
----
0

query I rowsort
SELECT DISTINCT + col0 + + 87 AS col0 FROM tab1 AS cor0
----
138
172
178

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 IN ( col1 * col2 ) ) OR NULL = - col0 * + col1 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT + COUNT( * ) + 4 AS col2 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT + COUNT ( * ) + 4 AS col2 FROM tab1 AS cor0
----
7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 18 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 - - col0 AS col0 FROM tab0 AS cor0 WHERE 17 IS NOT NULL
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col1 - col2 col0 FROM tab0 AS cor0
----
-98
431
6514

query I rowsort
SELECT DISTINCT - col1 + + + 30 FROM tab0 AS cor0
----
-51
29
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT ALL COUNT( * ) + + 99 AS col0 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL COUNT ( * ) + + 99 AS col0 FROM tab0 AS cor0
----
102

query I rowsort
SELECT DISTINCT + - ( - 33 ) FROM tab2 AS cor0
----
33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * col0 <= - col1 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5361
SELECT DISTINCT COUNT( * ) * - MIN( ALL col1 ) DIV - + COUNT( * ) - COUNT( * ) * COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT COUNT ( * ) * - MIN ( ALL col1 ) / - + COUNT ( * ) - COUNT ( * ) * COUNT ( * ) FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5362
SELECT - ( + + 13 ) AS col1, 59 * - SUM( - col0 ) + COUNT( * ) AS col0 FROM tab1
----
-13
13396

skipif mysql # not compatible
query II rowsort label-5362
SELECT - ( + + 13 ) AS col1, 59 * - SUM ( - col0 ) + COUNT ( * ) AS col0 FROM tab1
----
-13
13396

query I rowsort
SELECT DISTINCT + 76 - + col2 AS col0 FROM tab1
----
-20
17
8

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + ( + col1 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT col2 * - 63 FROM tab2 WHERE NOT + col2 * + - col2 IN ( ( col2 ) * col1 )
----
-1449
-2520
-3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5367
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT - col0 * - + col0 NOT IN ( - CAST( col0 AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col0 * - + col0 NOT IN ( - CAST ( col0 AS REAL ) )
----
0

query I rowsort
SELECT - 98 AS col2 FROM tab1 WHERE col1 * - - 97 IS NOT NULL AND ( col0 + + col1 * 18 ) BETWEEN ( - col2 ) AND ( + ( - col1 ) * col2 )
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NOT NULL >= + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5370
SELECT DISTINCT - col2 DIV col2 AS col2, - col2 FROM tab1
----
-1
-59
-1
-68
-1
-96

skipif mysql # not compatible
query II rowsort label-5370
SELECT DISTINCT - col2 / col2 AS col2, - col2 FROM tab1
----
-1
-59
-1
-68
-1
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 11 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5372
SELECT + - COUNT( DISTINCT col0 ), 59 col1 FROM tab1 AS cor0
----
-3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5372
SELECT + - COUNT ( DISTINCT col0 ), 59 col1 FROM tab1 AS cor0
----
-3
59

query I rowsort
SELECT - col0 * + 56 + + + col0 AS col2 FROM tab2 AS cor0
----
-2530
-3520
-4125

query I rowsort
SELECT DISTINCT 94 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col2 / + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * - - 74 AS col2 FROM tab0 AS cor0
----
-1554
-5994
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT ALL + CAST( NULL AS SIGNED ) * col1 / 82 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 / 82 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + - 82 AS col1 FROM tab1 WHERE NOT 97 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5378
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - + col2 * + 37 BETWEEN - ( CAST( col2 AS SIGNED ) ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5378
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - + col2 * + 37 BETWEEN - ( CAST ( col2 AS INTEGER ) ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( col2 ) * col1 + 49 FROM tab0 AS cor0 WHERE NOT + 61 * - col1 * + col2 / col1 >= ( - col0 * - col1 )
----
-161
-3758
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT 66 + MAX( - 53 ) col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5380
SELECT DISTINCT 66 + MAX ( - 53 ) col1 FROM tab1 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT ALL + + CAST( + 73 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + + CAST ( + 73 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5382
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - - 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5382
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - - 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 32 FROM tab2 cor0
----
32
32
32

query I rowsort
SELECT - col0 * - + 86 FROM tab2 AS cor0
----
3956
5504
6450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT AVG ( + CAST( NULL AS SIGNED ) ) * + - 19 col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5385
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) * + - 19 col0 FROM tab2 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 89 BETWEEN - 76 AND 29 * - col1 * 99 - 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 2 * + col0 AS col1 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5388
SELECT ALL 31 * + MIN( DISTINCT - ( - col2 ) ) AS col2, - SUM( ALL - 64 ) AS col0 FROM tab1
----
1829
192

skipif mysql # not compatible
query II rowsort label-5388
SELECT ALL 31 * + MIN ( DISTINCT - ( - col2 ) ) AS col2, - SUM ( ALL - 64 ) AS col0 FROM tab1
----
1829
192

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5389
SELECT DISTINCT + col1 DIV CAST( + 31 AS SIGNED ) AS col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT + col1 / CAST ( + 31 AS INTEGER ) AS col0 FROM tab0
----
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5390
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE - 4 NOT IN ( - CAST( - - 67 AS SIGNED ) )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-5390
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE - 4 NOT IN ( - CAST ( - - 67 AS INTEGER ) )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + col0 * + + col0 AS col1 FROM tab0
----
225
7569
9409

query III rowsort
SELECT * FROM tab0 WHERE + + 1 * - 73 IS NULL
----

query II rowsort
SELECT + col0 AS col1, + ( + 9 ) FROM tab2
----
46
9
64
9
75
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 96 * + - col2 col1 FROM tab0
----
1047
4527
9601

query I rowsort
SELECT DISTINCT + + 28 + - 54 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT col2 * 62 + col0 + - col1 FROM tab2 AS cor0
----
1421
2467
3604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5397
SELECT ALL - MAX( + col2 ) + - MIN( ALL - CAST( NULL AS SIGNED ) ) / COUNT( * ) + COUNT( * ) + - COUNT( ALL + col0 ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL - MAX ( + col2 ) + - MIN ( ALL - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) + COUNT ( * ) + - COUNT ( ALL + col0 ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 88 + + col0 AS col2 FROM tab2 AS cor0
----
134
152
163

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT ALL - ( 21 ) DIV + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - ( 21 ) / + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT - COUNT( * ) + + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT - COUNT ( * ) + + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL col0 + + col1 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL col0 + + col1 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT + COUNT( * ) DIV + - ( + + COUNT( * ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5402
SELECT + COUNT ( * ) / + - ( + + COUNT ( * ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1

query I rowsort
SELECT + - 84 + + 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT DISTINCT - ( 33 ) DIV + 54 * - col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - ( 33 ) / + 54 * - col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT COUNT( * ) * + + MAX( + - col2 ) * - + COUNT( * ) FROM tab1 cor0
----
531

skipif mysql # not compatible
query I rowsort label-5405
SELECT COUNT ( * ) * + + MAX ( + - col2 ) * - + COUNT ( * ) FROM tab1 cor0
----
531

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5406
SELECT DISTINCT MAX( + col0 ) - + CAST( NULL AS DECIMAL ) + - 44 / + ( + - MAX( DISTINCT - 14 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT MAX ( + col0 ) - + CAST ( NULL AS REAL ) + - 44 / + ( + - MAX ( DISTINCT - 14 ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col1 col0 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5408
SELECT + col2 - - col2, - CAST( NULL AS SIGNED ) + - 42 + - 70 - + + 67 + + 48 / - col1 * + col0 * + 50 AS col1 FROM tab1 AS cor0
----
118
NULL
136
NULL
192
NULL

skipif mysql # not compatible
query II rowsort label-5408
SELECT + col2 - - col2, - CAST ( NULL AS INTEGER ) + - 42 + - 70 - + + 67 + + 48 / - col1 * + col0 * + 50 AS col1 FROM tab1 AS cor0
----
118
NULL
136
NULL
192
NULL

query I rowsort
SELECT - col2 * + col0 * 93 * - - 79 - - - 86 AS col0 FROM tab0 AS cor0
----
-5179721
-6391976
-70553327

query I rowsort
SELECT + col2 - + 76 + + col1 FROM tab1 AS cor0
----
-12
34
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 + + + 81
----

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + - + col2 IN ( - col2 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 31, 4 AS col0 FROM tab0
----
-31
4
-31
4
-31
4

query II rowsort
SELECT 0 AS col0, - col1 FROM tab0
----
0
-1
0
-21
0
-81

query I rowsort
SELECT 57 * + 32 FROM tab0
----
1824
1824
1824

query II rowsort
SELECT ALL - col2 AS col1, col1 + + 91 FROM tab0 AS cor0
----
-10
112
-47
172
-99
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5418
SELECT - COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5420
SELECT - CAST( - 73 AS SIGNED ) AS col0, - COUNT( * ) FROM tab0
----
73
-3

skipif mysql # not compatible
query II rowsort label-5420
SELECT - CAST ( - 73 AS INTEGER ) AS col0, - COUNT ( * ) FROM tab0
----
73
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5421
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * ( + + col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * ( + + col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT + + SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5422
SELECT + + SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL + - MAX( ALL + + col1 ) AS col2 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL + - MAX ( ALL + + col1 ) AS col2 FROM tab2 cor0
----
-77

query I rowsort
SELECT ALL - 68 + + col1 FROM tab1 AS cor0
----
-21
-54
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5425
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col0 * + 74 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1 * - 0 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5428
SELECT - + MIN( - col1 ) AS col0, 27 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
NULL
27

skipif mysql # not compatible
query II rowsort label-5428
SELECT - + MIN ( - col1 ) AS col0, 27 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
NULL
27

query I rowsort
SELECT col1 + - 32 AS col2 FROM tab0
----
-11
-31
49

query I rowsort
SELECT DISTINCT + 33 * - - 6 AS col0 FROM tab2
----
198

query I rowsort
SELECT ALL ( 77 ) AS col0 FROM tab1
----
77
77
77

query I rowsort
SELECT col0 + + + col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT - 40 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - 42 + + COUNT( * ) * - COUNT( * ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5434
SELECT - 42 + + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-51

query I rowsort
SELECT - col2 * + col2 + - col2 AS col0 FROM tab2
----
-1640
-3422
-552

query I rowsort
SELECT DISTINCT 96 * + col2 * col1 FROM tab0
----
20160
365472
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL 86 * COUNT( * ) + 98 FROM tab2
----
356

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL 86 * COUNT ( * ) + 98 FROM tab2
----
356

query I rowsort
SELECT DISTINCT - col2 + + - col2 AS col2 FROM tab1 AS cor0
----
-118
-136
-192

query II rowsort
SELECT ALL col2 + - 24 + - - col1 AS col2, ( + col1 ) FROM tab1 cor0
----
40
5
86
14
91
47

query I rowsort
SELECT - col0 - + + ( + col2 ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - col0 - + - 5 AS col0 FROM tab0
----
-10
-82
-92

query I rowsort
SELECT + col1 - 39 + - col1 AS col1 FROM tab1
----
-39
-39
-39

query I rowsort
SELECT ALL 44 * col0 + + 88 FROM tab1 WHERE NOT - col1 + + col0 IS NOT NULL
----

query I rowsort
SELECT - 38 * col1 + - col2 FROM tab0
----
-137
-3125
-808

query II rowsort
SELECT ALL + 94 AS col2, ( + - col2 ) FROM tab2 cor0
----
94
-23
94
-40
94
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col0 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN + col2 * + - col2 AND 53 * + + 39 / 41
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT ALL - col0 * col1 * - CAST( 83 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
100845
151641
8051

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - col0 * col1 * - CAST ( 83 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
100845
151641
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ( - COUNT( ALL col0 ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5448
SELECT ( - COUNT ( ALL col0 ) ) col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL + + 19 AS col0, col2 + + col0 AS col2 FROM tab1 AS cor0
----
19
144
19
147
19
159

query I rowsort
SELECT + 56 - + 1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + 97 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - 43 ) FROM tab2 WHERE - 41 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5453
SELECT ALL + ( + - col0 ) DIV - col2 AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + ( + - col0 ) / - col2 AS col0 FROM tab0
----
0
0
8

query I rowsort
SELECT DISTINCT col1 * 71 FROM tab1
----
3337
355
994

onlyif mysql # aggregate syntax: 
query II rowsort label-5455
SELECT - ( + 20 ) AS col2, - ( - COUNT( * ) ) FROM tab0
----
-20
3

skipif mysql # not compatible
query II rowsort label-5455
SELECT - ( + 20 ) AS col2, - ( - COUNT ( * ) ) FROM tab0
----
-20
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 61 * + 62 * - col1 * + 57 - - 33 + - col2 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 44 + col1 AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT - 51 * + COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5458
SELECT - 51 * + COUNT ( * ) FROM tab1 AS cor0
----
-153

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IS NOT NULL OR NOT - col0 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 82 AS col1, col1 AS col2 FROM tab0
----
-82
1
-82
21
-82
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5461
SELECT ALL * FROM tab2 WHERE - col1 / + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5461
SELECT ALL * FROM tab2 WHERE - col1 / + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5462
SELECT COUNT( * ) col2, + 69 AS col2 FROM tab0 cor0
----
3
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5462
SELECT COUNT ( * ) col2, + 69 AS col2 FROM tab0 cor0
----
3
69

query I rowsort
SELECT - 96 * - - col0 FROM tab1 AS cor0
----
-4896
-8160
-8736

query I rowsort
SELECT - ( + - ( + + col0 ) ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * + + col2 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col1 )
----

query II rowsort
SELECT col2, - col2 AS col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5469
SELECT ALL 37 DIV - col1 col1, + col1 col1 FROM tab0
----
-1
21
-37
1
0
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5469
SELECT ALL 37 / - col1 col1, + col1 col1 FROM tab0
----
-1
21
-37
1
0
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT - col0 + - - col2 + + - ( - - 22 ) + + + 19 DIV + 39 FROM tab1
----
-45
-48
23

skipif mysql # not compatible
query I rowsort label-5471
SELECT - col0 + - - col2 + + - ( - - 22 ) + + + 19 / + 39 FROM tab1
----
-45
-48
23

query II rowsort
SELECT DISTINCT 9 * - ( - col2 ) + - col0 AS col1, + ( + ( - - col1 ) ) FROM tab1
----
446
5
521
47
813
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL - 91 + - COUNT( ALL + + ( col0 ) ) * - 63 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - 91 + - COUNT ( ALL + + ( col0 ) ) * - 63 FROM tab2 AS cor0
----
98

query II rowsort
SELECT - col0 + + col2, - 31 AS col2 FROM tab0 AS cor0
----
-77
-31
2
-31
32
-31

query I rowsort
SELECT ALL col1 - - col1 * col0 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT DISTINCT + - 50 * - col2 - - + col2 AS col2 FROM tab2 AS cor0
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5477
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE - - 6 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col0 FROM tab2
----
1600
3364
529

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT ( + ( - + 32 ) - + ( ( + col2 ) ) * + col0 * - ( + col1 ) + - col2 ) = col0 * - col1
----
-59
-68
-96

query I rowsort
SELECT 49 * col1 + + + 36 FROM tab1 AS cor0
----
2339
281
722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5482
SELECT ALL + - COUNT( * ) DIV + 35 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + - COUNT ( * ) / + 35 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 97 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-97
-97
-97

query I rowsort
SELECT col1 + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
108
96
98

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col0 FROM tab1
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col2 FROM tab2
----
72
72
72

query II rowsort
SELECT - col0, + 82 AS col1 FROM tab1
----
-51
82
-85
82
-91
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT COUNT( * ) * 17 AS col0 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5489
SELECT COUNT ( * ) * 17 AS col0 FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT - 23 * - ( - COUNT( * ) ) FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5490
SELECT - 23 * - ( - COUNT ( * ) ) FROM tab1 cor0
----
-69

query I rowsort
SELECT ALL ( + ( - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col2 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + 30 AND - col2
----

query I rowsort
SELECT 94 + 72 FROM tab1 AS cor0
----
166
166
166

query I rowsort
SELECT 73 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 - + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT ALL + 53 + + col1 DIV + - ( col2 ) FROM tab2 AS cor0
----
51
52
52

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL + 53 + + col1 / + - ( col2 ) FROM tab2 AS cor0
----
51
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL + - COUNT( * ) + - 40 * + - COUNT( * ) + - ( - 71 ) FROM tab0 cor0
----
188

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + - COUNT ( * ) + - 40 * + - COUNT ( * ) + - ( - 71 ) FROM tab0 cor0
----
188

query I rowsort
SELECT + 68 + - col2 AS col2 FROM tab0
----
-31
21
58

onlyif mysql # DIV for integer division: 
query II rowsort label-5499
SELECT DISTINCT 87 + ( 92 ) * col2, + 35 DIV - col2 AS col2 FROM tab2
----
2203
-1
3767
0
5423
0

skipif mysql # not compatible
query II rowsort label-5499
SELECT DISTINCT 87 + ( 92 ) * col2, + 35 / - col2 AS col2 FROM tab2
----
2203
-1
3767
0
5423
0

query I rowsort
SELECT ALL - 72 + + + 38 AS col0 FROM tab1
----
-34
-34
-34

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 23 + + + col0 - col0 FROM tab0
----
-23

query I rowsort
SELECT ALL 66 * + 12 - col0 - - col2 AS col0 FROM tab0 cor0
----
715
794
824

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col0 IS NULL ) OR - 63 IS NULL
----

query I rowsort
SELECT ALL + 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL NOT IN ( 33, 34 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 - + col0 col2 FROM tab2 WHERE + - 60 IS NOT NULL
----
-15
-33
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT 85 * + COUNT( * ) * + + 6 + 97 FROM tab1 cor0
----
1627

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT 85 * + COUNT ( * ) * + + 6 + 97 FROM tab1 cor0
----
1627

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - SUM( - - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5508
SELECT - SUM ( - - col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 58 NOT BETWEEN 34 * + col2 AND + + 74
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT - col2 DIV - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5510
SELECT - col2 / - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1
3

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT + col0 > col1
----
47

query I rowsort
SELECT 64 AS col0 FROM tab1 WHERE NOT - 45 BETWEEN NULL AND - - 92
----

query I rowsort
SELECT ALL 27 * 57 FROM tab1
----
1539
1539
1539

query I rowsort
SELECT DISTINCT + - col0 / - - col1 AS col0 FROM tab2 AS cor0 WHERE 82 BETWEEN col0 AND - + col2
----

query I rowsort
SELECT DISTINCT col0 + + 86 FROM tab1 AS cor0
----
137
171
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 7 col0 FROM tab2 AS cor0
----
357
469
539

query I rowsort
SELECT + 5 + 79 AS col0 FROM tab1
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT - COUNT( * ) - - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT DISTINCT + + col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5520
SELECT ALL + - 14, + 42 DIV col2 * + - col0 AS col1 FROM tab0 AS cor0
----
-14
-348
-14
0
-14
0

skipif mysql # not compatible
query II rowsort label-5520
SELECT ALL + - 14, + 42 / col2 * + - col0 AS col1 FROM tab0 AS cor0
----
-14
-348
-14
0
-14
0

query II rowsort
SELECT - - col1 AS col1, + 55 FROM tab2 AS cor0
----
51
55
67
55
77
55

query I rowsort
SELECT DISTINCT 51 + - ( + - col1 ) + + + 24 * + - 9 * col1 AS col2 FROM tab1 AS cor0
----
-10054
-1024
-2959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5523
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0, COUNT( * ) col2 FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5523
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0, COUNT ( * ) col2 FROM tab2 cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT - - COUNT( + 75 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5524
SELECT - - COUNT ( + 75 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5525
SELECT + 26 AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) > 78 * + 14
----

skipif mysql # not compatible
query I rowsort label-5525
SELECT + 26 AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) > 78 * + 14
----

query I rowsort
SELECT 68 + + col0 AS col0 FROM tab2
----
114
132
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT SUM( ALL ( - col2 ) ) + - COUNT( * ) * - 85 AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5527
SELECT SUM ( ALL ( - col2 ) ) + - COUNT ( * ) * - 85 AS col1 FROM tab0
----
99

query I rowsort
SELECT DISTINCT col1 + - - col1 + - + 55 AS col2 FROM tab1 AS cor0
----
-27
-45
39

query I rowsort
SELECT col2 * 30 + + ( 81 ) AS col2 FROM tab2 AS cor0
----
1281
1821
771

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - ( - + col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col0 FROM tab1 AS cor0
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5532
SELECT ALL CAST( NULL AS DECIMAL ) * - 49 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL CAST ( NULL AS REAL ) * - 49 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT + MAX( ALL - 20 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-5533
SELECT + MAX ( ALL - 20 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-20

query III rowsort
SELECT * FROM tab2 WHERE NOT - 17 NOT BETWEEN NULL AND - + 8
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, - col0 col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT + COUNT( * ) FROM tab2 WHERE NOT + - 14 * + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5536
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + - 14 * + + col1 IS NULL
----
3

query I rowsort
SELECT + - 73 * - 60 + + ( - 45 ) FROM tab0 AS cor0
----
4335
4335
4335

query II rowsort
SELECT ALL + col2 AS col0, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5539
SELECT ALL + ( + - COUNT( + 43 ) ), ( - + ( + COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5539
SELECT ALL + ( + - COUNT ( + 43 ) ), ( - + ( + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT DISTINCT - 11 AS col2, + MIN( - col0 ) FROM tab2 AS cor0
----
-11
-75

skipif mysql # not compatible
query II rowsort label-5540
SELECT DISTINCT - 11 AS col2, + MIN ( - col0 ) FROM tab2 AS cor0
----
-11
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL + - 55 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL + - 55 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT MAX( ALL + ( + + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5542
SELECT MAX ( ALL + ( + + col2 ) ) FROM tab1
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5543
SELECT ALL * FROM tab0 WHERE ( ( NULL ) <= CAST( + + col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5543
SELECT ALL * FROM tab0 WHERE ( ( NULL ) <= CAST ( + + col2 AS REAL ) )
----

query I rowsort
SELECT col1 + - + 1 FROM tab0
----
0
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT - ( COUNT( * ) ) + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5545
SELECT - ( COUNT ( * ) ) + - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT + col1 + + col1 + - ( col0 ) * - col1 * + col2 FROM tab2
----
197274
291584
54060

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT - 86 / SUM( + col2 ) col0 FROM tab1 WHERE NOT 55 - + - 53 / - - 88 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5547
SELECT - 86 / SUM ( + col2 ) col0 FROM tab1 WHERE NOT 55 - + - 53 / - - 88 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - 19 < NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT ( col2 + col1 ) IS NOT NULL
----

query I rowsort
SELECT 43 * - - 56 AS col0 FROM tab2
----
2408
2408
2408

query I rowsort
SELECT col0 - 22 AS col2 FROM tab0
----
-7
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT + MIN( - + col2 ) + + COUNT( * ) AS col2 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-5552
SELECT + MIN ( - + col2 ) + + COUNT ( * ) AS col2 FROM tab2
----
-55

query I rowsort
SELECT DISTINCT + 99 + 44 FROM tab1 AS cor0
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT DISTINCT + - ( + col2 ) * - col2 DIV - col2 + + 14 + + - col1 FROM tab1 AS cor0
----
-101
-50
-96

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + - ( + col2 ) * - col2 / - col2 + + 14 + + - col1 FROM tab1 AS cor0
----
-101
-50
-96

query I rowsort
SELECT DISTINCT - 74 + + 33 FROM tab0 cor0
----
-41

query I rowsort
SELECT ALL - + 2 - - col1 FROM tab2 AS cor0
----
49
65
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * col0 / - 52 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - col0 BETWEEN + + 32 AND 79 * + - col0
----
0

skipif mysql # not compatible
query I rowsort label-5558
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 BETWEEN + + 32 AND 79 * + - col0
----
0

query I rowsort
SELECT ALL - col1 * - col0 + - - col0 + + 14 AS col0 FROM tab2 AS cor0
----
2406
5006
5114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - ( + 26 ) AS col0 FROM tab2 cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT ALL SUM( DISTINCT + 13 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL SUM ( DISTINCT + 13 ) FROM tab2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5563
SELECT DISTINCT - 28 - - SUM( ALL + - 29 ) DIV + 68 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT - 28 - - SUM ( ALL + - 29 ) / + 68 FROM tab0
----
-29

query II rowsort
SELECT ALL - 48, + col2 FROM tab2
----
-48
23
-48
40
-48
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT ALL - col1 - - col0 + - + CAST( NULL AS SIGNED ) / + 55 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - col1 - - col0 + - + CAST ( NULL AS INTEGER ) / + 55 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 71 AS col1, col0 FROM tab1
----
71
51
71
85
71
91

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 91 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT ALL col0 DIV col1 * - col2 FROM tab1
----
-1003
-288
-68

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL col0 / col1 * - col2 FROM tab1
----
-1003
-288
-68

query I rowsort
SELECT col0 * + 89 AS col1 FROM tab2
----
4094
5696
6675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5570
SELECT ALL - 96 col0, + ( - + CAST( NULL AS SIGNED ) ) - + - 22 AS col1 FROM tab0
----
-96
NULL
-96
NULL
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5570
SELECT ALL - 96 col0, + ( - + CAST ( NULL AS INTEGER ) ) - + - 22 AS col1 FROM tab0
----
-96
NULL
-96
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT - SUM( col0 ) AS col1 FROM tab0 WHERE + ( - + col1 ) * - - 1 * + - col0 NOT IN ( - - 14 * + - 33 - - - 11 )
----
-199

skipif mysql # not compatible
query I rowsort label-5571
SELECT - SUM ( col0 ) AS col1 FROM tab0 WHERE + ( - + col1 ) * - - 1 * + - col0 NOT IN ( - - 14 * + - 33 - - - 11 )
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * 74 * - col1 col1 FROM tab2
----
-324564
-426388
-490028

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( col2 ), 31 + + 61 * 21 + - col0 col0 FROM tab1 AS cor0
----
-59
1227
-68
1221
-96
1261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5574
SELECT DISTINCT - SUM( + CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT - SUM ( + CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ( 19 ) AS col1 FROM tab2
----
19
19
19

query II rowsort
SELECT + ( - col0 ) AS col0, + col2 AS col1 FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT + col1 * - 37 + + 28 FROM tab0 AS cor0
----
-2969
-749
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5578
SELECT * FROM tab0 AS cor0 WHERE NOT + 42 <= CAST( + col1 AS SIGNED ) + col2 + col2 * 29
----

skipif mysql # not compatible
query III rowsort label-5578
SELECT * FROM tab0 AS cor0 WHERE NOT + 42 <= CAST ( + col1 AS INTEGER ) + col2 + col2 * 29
----

query I rowsort
SELECT ALL ( 52 ) * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-1092
-4212
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT + - SUM( ALL - 9 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT + - SUM ( ALL - 9 ) FROM tab1 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - 60 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NOT + - 67 + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NOT + - 67 + + col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - ( + col2 ) * + + col2 AS col2 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 / 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 + + col0 * col0 + - col1 FROM tab1 AS cor0
----
2536
7135
8143

query I rowsort
SELECT ALL 57 + + col1 * + + col0 FROM tab0 AS cor0
----
1272
154
1884

query I rowsort
SELECT + col0 + + + col2 AS col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5588
SELECT DISTINCT SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + col1 * col2 * + - col1, + col2 - - + col1 col0 FROM tab0
----
-308286
128
-4389
31
-98
100

query I rowsort
SELECT DISTINCT + - ( - 7 ) * 57 AS col1 FROM tab2 cor0 WHERE NOT NULL = col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT - MIN( ALL col0 ) - + COUNT( col2 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5591
SELECT - MIN ( ALL col0 ) - + COUNT ( col2 ) FROM tab1 AS cor0
----
-54

query II rowsort
SELECT + col2 - + col1, + col0 FROM tab2 cor0
----
-28
46
-37
64
-9
75

query I rowsort
SELECT DISTINCT 28 * - + 64 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
3104
3223
4396

query I rowsort
SELECT col1 - + - 17 FROM tab0 AS cor0
----
18
38
98

query II rowsort
SELECT DISTINCT 73 * col1 - 83 AS col2, 27 AS col1 FROM tab2
----
3640
27
4808
27
5538
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT col0 * CAST( - col2 AS SIGNED ) * col2 FROM tab1
----
-295885
-420784
-470016

skipif mysql # not compatible
query I rowsort label-5596
SELECT col0 * CAST ( - col2 AS INTEGER ) * col2 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT 6 * + - ( - col0 ) * - col1 FROM tab1
----
-2550
-25662
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT - MIN( + 9 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5598
SELECT - MIN ( + 9 ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT ALL ( - + ( + - CAST( + - ( + ( + + col2 ) ) AS SIGNED ) ) ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL ( - + ( + - CAST ( + - ( + ( + + col2 ) ) AS INTEGER ) ) ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - col1 * + - col0 AS col2 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL - 24 * + - COUNT( + col0 ) AS col1 FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL - 24 * + - COUNT ( + col0 ) AS col1 FROM tab1 cor0
----
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + col2 + - col2 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, + col2 AS col0 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT COUNT( ( + col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5604
SELECT COUNT ( ( + col2 ) ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col2 * + - col2 col0 FROM tab2
----
23
-529
40
-1600
58
-3364

onlyif mysql # aggregate syntax: 
query II rowsort label-5606
SELECT - 8 AS col2, - MIN( DISTINCT 12 ) FROM tab1 AS cor0
----
-8
-12

skipif mysql # not compatible
query II rowsort label-5606
SELECT - 8 AS col2, - MIN ( DISTINCT 12 ) FROM tab1 AS cor0
----
-8
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 54 col0, col1 AS col2 FROM tab2 AS cor0
----
-54
51
-54
67
-54
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5608
SELECT ALL - CAST( NULL AS DECIMAL ) + - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5608
SELECT ALL - CAST ( NULL AS REAL ) + - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5609
SELECT DISTINCT + + ( CAST( NULL AS SIGNED ) ) AS col2, col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5609
SELECT DISTINCT + + ( CAST ( NULL AS INTEGER ) ) AS col2, col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL + MAX( + 62 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
62

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL + MAX ( + 62 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT CAST( NULL AS SIGNED ) * + - col0 + ( 47 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT CAST ( NULL AS INTEGER ) * + - col0 + ( 47 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 9 + - col2 * + col0 FROM tab2
----
-1067
-2569
-4359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT 22 * - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT 22 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + col0 * - - col1 + - - 95 - + 49 FROM tab2
----
2392
4974
5071

query I rowsort
SELECT DISTINCT - 33 + - + col2 FROM tab0
----
-132
-43
-80

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * - 54 IS NULL
----

query I rowsort
SELECT ( - 81 ) AS col1 FROM tab1
----
-81
-81
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-5618
SELECT DISTINCT 36 + - - ( col2 ) DIV + + 81 * col2, 30 col0 FROM tab2 cor0
----
36
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5618
SELECT DISTINCT 36 + - - ( col2 ) / + + 81 * col2, 30 col0 FROM tab2 cor0
----
36
30

query I rowsort
SELECT DISTINCT col2 + - 27 + - col2 * + col0 * + 5 * 41 FROM tab1 AS cor0
----
-1003611
-1028043
-1268499

query II rowsort
SELECT ALL - 10 + + 98 AS col2, - col0 AS col0 FROM tab0 cor0
----
88
-15
88
-87
88
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + + COUNT( * ) AS col2 FROM tab0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT CAST( - - 11 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif mysql # not compatible
query I rowsort label-5622
SELECT CAST ( - - 11 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL col2 + + ( - + 64 ) * - + col1 - col2 * + col0 - - col2 AS col1 FROM tab2 AS cor0 WHERE + 40 IS NOT NULL
----
2252
2448
54

query I rowsort
SELECT ALL + col0 * - col1 + + 25 FROM tab2 AS cor0
----
-2321
-4903
-5000

query I rowsort
SELECT DISTINCT + ( - + col1 ) - + col0 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT ALL - ( - ( + ( + col2 ) ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT DISTINCT + 55 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, - 39, + col2, - + 79 + - + 20, col1 * + 68 + + 91 / + col0 * - CAST( NULL AS SIGNED ) + - col1 / - 77 * - + ( + 22 ) * - 51, + col1 )
----

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT + 55 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, - 39, + col2, - + 79 + - + 20, col1 * + 68 + + 91 / + col0 * - CAST ( NULL AS INTEGER ) + - col1 / - 77 * - + ( + 22 ) * - 51, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, col2 col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT + col0, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT - - 34 AS col0, + MAX( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
34
81

skipif mysql # not compatible
query II rowsort label-5630
SELECT - - 34 AS col0, + MAX ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
34
81

query I rowsort
SELECT ALL - 27 * col1 AS col1 FROM tab1
----
-1269
-135
-378

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT + SUM( - 25 ) * - - SUM( DISTINCT 86 ) AS col0, - 83 * SUM( ALL - ( - col0 ) ) * - COUNT( * ) FROM tab0
----
-6450
49551

skipif mysql # not compatible
query II rowsort label-5632
SELECT + SUM ( - 25 ) * - - SUM ( DISTINCT 86 ) AS col0, - 83 * SUM ( ALL - ( - col0 ) ) * - COUNT ( * ) FROM tab0
----
-6450
49551

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN + col0 + + - col2 + + - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + - col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT - MAX( 24 ) + - COUNT( ALL + col2 ) + + AVG ( - col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - MAX ( 24 ) + - COUNT ( ALL + col2 ) + + AVG ( - col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + - 65 + - col2 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 < + - 97 + - col0 )
----

query I rowsort
SELECT DISTINCT - col0 * + col1 - + - 75 AS col2 FROM tab1 AS cor0
----
-350
-4202
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT DISTINCT SUM( ALL 12 ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT SUM ( ALL 12 ) AS col0 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL - MAX( + + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL - MAX ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col0 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL MIN( - 60 ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL MIN ( - 60 ) FROM tab1 AS cor0
----
-60

query I rowsort
SELECT + 43 * + col2 FROM tab1 cor0
----
2537
2924
4128

query I rowsort
SELECT 60 * - col1 FROM tab2 AS cor0
----
-3060
-4020
-4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col1 FROM tab1, tab0 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 35 + - col2 - - + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5646
SELECT + ( - CAST( NULL AS SIGNED ) ) + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT + ( - CAST ( NULL AS INTEGER ) ) + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col1 AND 80 + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + COUNT( * ) FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5648
SELECT + COUNT ( * ) FROM tab2, tab2 cor0
----
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * - col0 IS NULL
----

query I rowsort
SELECT ALL 9 + - - col0 AS col0 FROM tab0 AS cor0
----
106
24
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + - 86 + + - col1 - + col0 * ( - ( - + 26 ) ) AS col1 FROM tab0 AS cor0
----
-11037
-3143
-4513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 54 * - col0 * - col2 + - 33 col2 FROM tab1 AS cor0
----
264351
270777
334119

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT + - MIN( DISTINCT - 17 ) FROM tab2 cor0
----
17

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT + - MIN ( DISTINCT - 17 ) FROM tab2 cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL 25 * + - COUNT( * ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL 25 * + - COUNT ( * ) FROM tab1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT - COUNT( * ) FROM tab2 WHERE + - CAST( NULL AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT - COUNT ( * ) FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) < NULL
----
0

query I rowsort
SELECT ALL - + 89 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-89
-89
-89

query I rowsort
SELECT ALL col2 * + col0 * - - 65 AS col1 FROM tab0 AS cor0
----
45825
56550
624195

query II rowsort
SELECT DISTINCT - + ( col1 ) AS col0, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 86 <= - + col0
----
87
21
10
97
1
99

query II rowsort
SELECT DISTINCT - ( col0 ) AS col0, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + + col0
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT col1 > col2 * - - col0 + - col0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT ALL 59 DIV - + col1 AS col2 FROM tab1
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL 59 / - + col1 AS col2 FROM tab1
----
-1
-11
-4

query II rowsort
SELECT DISTINCT col1 AS col0, col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL - col2 * 45 AS col2 FROM tab0
----
-2115
-4455
-450

query II rowsort
SELECT + col1 * - - col0 + + + col1 AS col2, col0 FROM tab2 AS cor0
----
2397
46
5005
64
5092
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT + - MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5668
SELECT + - MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - + 86 AS col2 FROM tab2 AS cor0 WHERE NOT - 7 <= NULL
----

query II rowsort
SELECT DISTINCT 39 + 91, + col0 * + - col1 AS col0 FROM tab2 cor0
----
130
-2346
130
-4928
130
-5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <> - col2
----

query I rowsort
SELECT ALL + - col2 + col0 FROM tab1 AS cor0 WHERE NOT + 89 IS NULL
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col1 + + col1 col0 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT + 70 + - - col1 FROM tab2
----
121
137
147

query I rowsort
SELECT DISTINCT - 8 + - ( + col1 ) * + col1 - + 1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5676
SELECT + 84 + AVG ( ALL - - 38 ) * + CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0, 97 AS col1 FROM tab1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-5676
SELECT + 84 + AVG ( ALL - - 38 ) * + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0, 97 AS col1 FROM tab1
----
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 8 * + - 49 + + col1 col0, col2 FROM tab2
----
-315
40
-325
58
-341
23

query I rowsort
SELECT 72 + - col1 FROM tab0
----
-9
51
71

query I rowsort
SELECT + 44 FROM tab0 WHERE - + 43 * - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT + col0 DIV + + col1 col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5680
SELECT + col0 / + + col1 col1 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5681
SELECT DISTINCT 63 FROM tab2 WHERE NOT + + CAST( + 3 AS DECIMAL ) * + - col2 * + col2 <= col1
----

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT 63 FROM tab2 WHERE NOT + + CAST ( + 3 AS REAL ) * + - col2 * + col2 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT DISTINCT - ( + COUNT( DISTINCT + 42 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT - ( + COUNT ( DISTINCT + 42 ) ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL 97 * - 20 + - - COUNT( * ) FROM tab0 AS cor0
----
-1937

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL 97 * - 20 + - - COUNT ( * ) FROM tab0 AS cor0
----
-1937

query II rowsort
SELECT col1 + - + col0 * ( + col0 ), + col0 * col0 AS col1 FROM tab1
----
-2587
2601
-7220
7225
-8234
8281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5686
SELECT col2 + + col2, CAST( NULL AS SIGNED ) * col1 + + col0 AS col1 FROM tab1
----
118
NULL
136
NULL
192
NULL

skipif mysql # not compatible
query II rowsort label-5686
SELECT col2 + + col2, CAST ( NULL AS INTEGER ) * col1 + + col0 AS col1 FROM tab1
----
118
NULL
136
NULL
192
NULL

query I rowsort
SELECT - + col2 AS col1 FROM tab2 WHERE - 77 * col1 / col2 + + col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT - col1 + + 17 AS col2 FROM tab2
----
-34
-50
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5689
SELECT DISTINCT + - 54 col1, + SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
-54
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5689
SELECT DISTINCT + - 54 col1, + SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
-54
-121

query II rowsort
SELECT DISTINCT + 15 * - - col1, + col2 FROM tab0 AS cor0
----
1215
47
15
99
315
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL - + COUNT( 44 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL - + COUNT ( 44 ) FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5692
SELECT ALL + 42 AS col0, col1 + col1 DIV col0 - + + 81 FROM tab1 AS cor0
----
42
-34
42
-67
42
-76

skipif mysql # not compatible
query II rowsort label-5692
SELECT ALL + 42 AS col0, col1 + col1 / col0 - + + 81 FROM tab1 AS cor0
----
42
-34
42
-67
42
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL + + COUNT( * ) col1 FROM tab1 AS cor0 WHERE - col2 * - - col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5693
SELECT ALL + + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE - col2 * - - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT + ( - + MAX( - 98 ) ) AS col0 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5694
SELECT + ( - + MAX ( - 98 ) ) AS col0 FROM tab0 AS cor0
----
98

query I rowsort
SELECT col0 * - - 72 + 75 FROM tab2 cor0
----
3387
4683
5475

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT COUNT( * ), + 8 AS col1 FROM tab1 AS cor0
----
3
8

skipif mysql # not compatible
query II rowsort label-5696
SELECT COUNT ( * ), + 8 AS col1 FROM tab1 AS cor0
----
3
8

query I rowsort
SELECT DISTINCT - col2 * - - col1 * - col0 AS col0 FROM tab0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * - + 88 col2 FROM tab1
----
-968
-968
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT + + 33 * + COUNT( * ) col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5699
SELECT + + 33 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5700
SELECT ALL + col2 DIV - - col0 AS col0, - col0 AS col2 FROM tab0 AS cor0
----
0
-87
1
-97
3
-15

skipif mysql # not compatible
query II rowsort label-5700
SELECT ALL + col2 / - - col0 AS col0, - col0 AS col2 FROM tab0 AS cor0
----
0
-87
1
-97
3
-15

query I rowsort
SELECT DISTINCT 42 * - 65 * 13 AS col1 FROM tab2
----
-35490

query II rowsort
SELECT DISTINCT + col1 * ( + ( + - 21 ) ), + 28 * col1 AS col2 FROM tab2
----
-1071
1428
-1407
1876
-1617
2156

query I rowsort
SELECT ALL 27 * 30 * 38 AS col0 FROM tab1
----
30780
30780
30780

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE + 53 >= - + col1
----
59
68
96

query II rowsort
SELECT ALL + col0 * 68 AS col2, - col1 AS col0 FROM tab0 WHERE + col1 * - col2 IS NOT NULL
----
1020
-81
5916
-21
6596
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT DISTINCT + col1 * + 96 + + + 66 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
2268
7614
810

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + col1 * + 96 + + + 66 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
2268
7614
810

query I rowsort
SELECT - - col2 * 68 * - 54 + + 55 FROM tab1 cor0
----
-216593
-249641
-352457

query I rowsort
SELECT DISTINCT - - col0 + 39 AS col2 FROM tab2 AS cor0
----
103
114
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5709
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-5709
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - CAST ( NULL AS INTEGER ) IS NULL )
----

query II rowsort
SELECT DISTINCT 18 AS col0, col2 FROM tab1 AS cor0
----
18
59
18
68
18
96

query II rowsort
SELECT 41 + + + col0 AS col2, - col1 FROM tab0
----
128
-21
138
-1
56
-81

query I rowsort
SELECT col1 + + col1 + + col2 - 40 + + 16 * 71 * col0 + - col0 AS col0 FROM tab2 WHERE + + 86 IS NULL
----

query I rowsort
SELECT - col0 + - 72 * + + col1 FROM tab0 AS cor0
----
-1599
-169
-5847

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT col1 + - + 71 + - 29 DIV - col2 * + + 20 FROM tab1 AS cor0
----
-24
-57
-66

skipif mysql # not compatible
query I rowsort label-5714
SELECT col1 + - + 71 + - 29 / - col2 * + + 20 FROM tab1 AS cor0
----
-24
-57
-66

query I rowsort
SELECT + 77 + + 52 AS col1 FROM tab0 AS cor0
----
129
129
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - - 84 col0, + col2 * + 89 col2 FROM tab1 AS cor0
----
135
8544
169
5251
175
6052

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5717
SELECT DISTINCT col2 AS col2, col1 - - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5717
SELECT DISTINCT col2 AS col2, col1 - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT + 53 * 57 AS col0 FROM tab1
----
3021
3021
3021

query I rowsort
SELECT - 19 * - - 63 AS col2 FROM tab1
----
-1197
-1197
-1197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + 8 AS col1, col0 * - + col2, + - col2 col0 FROM tab0
----
9 values hashing to fec8c9a48f9bbb47d077877b464417ee

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 43 AND NULL
----

query I rowsort
SELECT + col2 * - 67 AS col1 FROM tab2
----
-1541
-2680
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT COUNT( DISTINCT + - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5723
SELECT COUNT ( DISTINCT + - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT DISTINCT + MAX( DISTINCT 91 ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT + MAX ( DISTINCT 91 ) FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5725
SELECT - 3 DIV - COUNT( * ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5725
SELECT - 3 / - COUNT ( * ) col0 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col1 FROM tab2 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5727
SELECT ALL col0 * - col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL col0 * - col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / + - 66 / - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + 97 AS col2 FROM tab0 AS cor0
----
1455
8439
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5730
SELECT ALL MIN( DISTINCT - 45 ) * COUNT( * ) DIV - SUM( - 34 ) FROM tab2 WHERE - col2 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL MIN ( DISTINCT - 45 ) * COUNT ( * ) / - SUM ( - 34 ) FROM tab2 WHERE - col2 IS NOT NULL
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 42 AS col1, ( - col0 ) FROM tab2
----
-42
-46
-42
-64
-42
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT 76 NOT IN ( + col2, 38, col1, + col1 )
----

query II rowsort
SELECT DISTINCT col2, - 18 * - col0 * col1 * - + col0 AS col0 FROM tab0
----
10
-2861082
47
-328050
99
-169362

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL - SUM( + + 24 ) AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL - SUM ( + + 24 ) AS col2 FROM tab0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5737
SELECT col0 DIV - col0 + - 43 FROM tab2
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-5737
SELECT col0 / - col0 + - 43 FROM tab2
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT - COUNT( * ) + - ( + - SUM( DISTINCT - 19 ) ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-5738
SELECT - COUNT ( * ) + - ( + - SUM ( DISTINCT - 19 ) ) FROM tab1
----
-22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 + - + 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5740
SELECT DISTINCT - COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5740
SELECT DISTINCT - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5741
SELECT DISTINCT + col1 * - col1, col2 + + 67 + - + CAST( NULL AS SIGNED ) * - 84 AS col1 FROM tab0 AS cor0
----
-1
NULL
-441
NULL
-6561
NULL

skipif mysql # not compatible
query II rowsort label-5741
SELECT DISTINCT + col1 * - col1, col2 + + 67 + - + CAST ( NULL AS INTEGER ) * - 84 AS col1 FROM tab0 AS cor0
----
-1
NULL
-441
NULL
-6561
NULL

query I rowsort
SELECT - - col1 AS col1 FROM tab0 cor0 WHERE NOT 85 < - 72 * col1
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL + SUM( + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL + SUM ( + col0 ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab1 WHERE 68 * + + 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5745
SELECT ALL - 62 * - col2 * + 69 + col0 DIV 29 * + - col0 AS col1 FROM tab2 AS cor0
----
170992
247974
98348

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - 62 * - col2 * + 69 + col0 / 29 * + - col0 AS col1 FROM tab2 AS cor0
----
170992
247974
98348

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL - + COUNT( 96 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL - + COUNT ( 96 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT - 76 DIV 78 - col2 AS col2 FROM tab2 AS cor0 WHERE col2 - col1 IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5747
SELECT - 76 / 78 - col2 AS col2 FROM tab2 AS cor0 WHERE col2 - col1 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - - col1 * + ( + col1 )
----

query I rowsort
SELECT ( + + ( col0 ) ) FROM tab2
----
46
64
75

query II rowsort
SELECT DISTINCT - 20, + col0 AS col0 FROM tab1
----
-20
51
-20
85
-20
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT 79 DIV - 98 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5751
SELECT 79 / - 98 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5752
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) FROM tab1 WHERE NOT ( NOT col0 + - + col1 < NULL )
----
0
0

skipif mysql # not compatible
query II rowsort label-5752
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1 WHERE NOT ( NOT col0 + - + col1 < NULL )
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT col1 DIV 50 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5753
SELECT col1 / 50 AS col1 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5754
SELECT CAST( NULL AS SIGNED ), - 78 - ( - ( - + col2 ) ) + - col1 FROM tab2 AS cor0 WHERE - 16 = + - 73
----

skipif mysql # not compatible
query II rowsort label-5754
SELECT CAST ( NULL AS INTEGER ), - 78 - ( - ( - + col2 ) ) + - col1 FROM tab2 AS cor0 WHERE - 16 = + - 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT DISTINCT - + 5 DIV + - 64 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - + 5 / + - 64 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT DISTINCT COUNT( * ) col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5756
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT DISTINCT + SUM( DISTINCT col2 ) * MAX( DISTINCT 90 + - col2 * + col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT + SUM ( DISTINCT col2 ) * MAX ( DISTINCT 90 + - col2 * + col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5758
SELECT ALL * FROM tab1 WHERE NOT CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5758
SELECT ALL * FROM tab1 WHERE NOT CAST ( col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5759
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - col0 AND col1 * col0 - ( 76 )
----

skipif mysql # not compatible
query III rowsort label-5759
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - col0 AND col1 * col0 - ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT - col2 / - 82 + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5760
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col2 / - 82 + col1 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 60 IN ( col1 + + ( - col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 7 AS col0 FROM tab0 WHERE col1 + col0 / - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5763
SELECT ALL col0 + - 52 * - 53 AS col0 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL col0 + - 52 * - 53 AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5764
SELECT ALL col2 * - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( CAST( col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( CAST ( col0 AS INTEGER ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col2 FROM tab0
----
-38
-38
-38

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col2 * + ( 70 ) - 70
----

query I rowsort
SELECT ALL - col1 + + 89 FROM tab1 WHERE - 35 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT - COUNT( * ) - + 17 AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - COUNT ( * ) - + 17 AS col2 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL 8 - + 99 * COUNT( * ) col2 FROM tab1
----
-289

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5769
SELECT ALL 8 - + 99 * COUNT ( * ) col2 FROM tab1
----
-289

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 / + ( - col0 ) NOT BETWEEN ( col0 ) AND - col0 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) <> 71
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5772
SELECT DISTINCT 19 + + MIN( + col0 ) DIV + 29 AS col0 FROM tab0 WHERE NULL IS NULL
----
19

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT 19 + + MIN ( + col0 ) / + 29 AS col0 FROM tab0 WHERE NULL IS NULL
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT COUNT( * ) + 31 FROM tab2 WHERE NOT NULL > NULL
----
31

skipif mysql # not compatible
query I rowsort label-5773
SELECT COUNT ( * ) + 31 FROM tab2 WHERE NOT NULL > NULL
----
31

query I rowsort
SELECT DISTINCT - col1 * 26 AS col1 FROM tab1
----
-1222
-130
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT CAST( - ( col1 ) AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5775
SELECT CAST ( - ( col1 ) AS INTEGER ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL - MIN( DISTINCT - 6 ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5776
SELECT ALL - MIN ( DISTINCT - 6 ) col1 FROM tab2
----
6

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE 47 <= col1 - 58 / 52
----

query I rowsort
SELECT - 41 AS col2 FROM tab2 AS cor0 WHERE col1 IN ( - col2 )
----

query I rowsort
SELECT DISTINCT 1 + - col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * 7 + + col1 col2 FROM tab1 AS cor0
----
495
504
537

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col2 ) NOT IN ( - col2 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + - col0 * ( col2 * - col0 ) NOT BETWEEN ( - col0 + col0 * col0 ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 30 ) BETWEEN ( + col2 ) AND ( + col1 )
----

query I rowsort
SELECT + 76 - col1 AS col2 FROM tab2 AS cor0
----
-1
25
9

query I rowsort
SELECT + 67 * - 62 - + ( col2 ) FROM tab1 AS cor0
----
-4213
-4222
-4250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5786
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - ( - 40 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - ( - 40 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE CAST( - 52 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5787
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE CAST ( - 52 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND - 40 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5789
SELECT DISTINCT 27 * - col1 + 63 AS col0 FROM tab1 cor0 WHERE col2 + 30 = - CAST( NULL AS SIGNED ) * 16
----

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT 27 * - col1 + 63 AS col0 FROM tab1 cor0 WHERE col2 + 30 = - CAST ( NULL AS INTEGER ) * 16
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5790
SELECT DISTINCT - - COUNT( * ) - - SUM( col1 ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT - - COUNT ( * ) - - SUM ( col1 ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
25

query I rowsort
SELECT 17 * + 67 AS col0 FROM tab2 WHERE NULL < 8 * - col2
----

query I rowsort
SELECT ALL ( - 95 ) FROM tab2
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT DISTINCT - ( - SUM( ALL - col0 ) ) * + COUNT( * ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT - ( - SUM ( ALL - col0 ) ) * + COUNT ( * ) FROM tab1
----
-681

query I rowsort
SELECT - col1 FROM tab2 WHERE - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT DISTINCT - 68 * + COUNT( * ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT - 68 * + COUNT ( * ) FROM tab1
----
-204

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5796
SELECT + CAST( - + 69 AS SIGNED ) + - 25 DIV + col1 col2 FROM tab0
----
-69
-70
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5796
SELECT + CAST ( - + 69 AS INTEGER ) + - 25 / + col1 col2 FROM tab0
----
-69
-70
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5797
SELECT ALL - 35 * CAST( + MIN( DISTINCT col2 ) AS SIGNED ) AS col0 FROM tab0
----
-350

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL - 35 * CAST ( + MIN ( DISTINCT col2 ) AS INTEGER ) AS col0 FROM tab0
----
-350

query I rowsort
SELECT DISTINCT + AVG ( - col1 ) AS col0 FROM tab2 WHERE NOT col0 + + col1 * col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 4 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT + col1 DIV - + 79 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT + col1 / - + 79 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * - + col1 * - col2 AS col2 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 - - 13 BETWEEN + col1 - col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT ALL - - col0 DIV - 1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - - col0 / - 1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT ( + - ( 61 ) ) + + 71 FROM tab1, tab1 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 col0 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5807
SELECT 40 * + CAST( NULL AS SIGNED ) + + COUNT( DISTINCT ( col0 ) ) / COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT 40 * + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT ( col0 ) ) / COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 58 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT + COUNT( * ) + - MAX( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT + COUNT ( * ) + - MAX ( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL + - col2, + col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 - - - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 74 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 85 * col0 + 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + ( + col2 ), col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT - 25 + MIN( col0 ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-5815
SELECT - 25 + MIN ( col0 ) AS col2 FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL + COUNT( + - 90 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5816
SELECT ALL + COUNT ( + - 90 ) col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + - - col2 - 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT - COUNT( * ) + - MIN( ALL 1 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-5818
SELECT - COUNT ( * ) + - MIN ( ALL 1 ) FROM tab0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5819
SELECT + MIN( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) + + 34 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + 34 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 19 <> + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT 3 + 72 + - COUNT( * ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-5821
SELECT 3 + 72 + - COUNT ( * ) AS col2 FROM tab0
----
72

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( - col2 )
----

query II rowsort
SELECT DISTINCT + 52 + + - 30 AS col0, 39 + + col0 FROM tab1
----
22
124
22
130
22
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT ALL - CAST( + col0 AS SIGNED ) + - + col1 col1 FROM tab1
----
-138
-65
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5824
SELECT ALL - CAST ( + col0 AS INTEGER ) + - + col1 col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ( + 9 ) AS col0 FROM tab2
----
9
9
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - col2 BETWEEN ( NULL ) AND ( NULL ) )
----

query I rowsort
SELECT col0 - 31 + + col1 FROM tab2
----
110
111
66

query I rowsort
SELECT - 32 - col0 + - - 45 + col0 AS col0 FROM tab0
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT col1 + + + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-5829
SELECT col1 + + + col2 / + col0 AS col2 FROM tab1 AS cor0
----
15
47
5

query I rowsort
SELECT ALL - 26 + - - col2 * col1 FROM tab1 AS cor0
----
1318
269
3170

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - + 88 + - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 76 + + + col0 * col2 AS col0 FROM tab1 AS cor0
----
4972
5091
6264

query I rowsort
SELECT 96 * + - col2 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-2208
-3840
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT - - 72 + + COUNT( * ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5834
SELECT - - 72 + + COUNT ( * ) FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT COUNT( * ) * COUNT( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - 2 - - - col0 - col1 AS col0 FROM tab2 AS cor0
----
-143
-144
-99

query I rowsort
SELECT DISTINCT 21 + - 96 AS col1 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - ( - - col2 ) + 63 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * + col1 * 77 FROM tab0
----
140679
7469
93555

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT - 16 * + 52 * COUNT( * ) FROM tab0
----
-2496

skipif mysql # not compatible
query I rowsort label-5840
SELECT - 16 * + 52 * COUNT ( * ) FROM tab0
----
-2496

query I rowsort
SELECT + ( - 77 ) FROM tab1
----
-77
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT ALL 49 DIV + - 76 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL 49 / + - 76 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT ( NOT ( + col1 - + ( - col1 ) ) NOT IN ( + col2 / - 12 ) )
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN col1 AND NULL )
----

query I rowsort
SELECT DISTINCT ( + + ( - col2 ) ) * 32 AS col0 FROM tab1
----
-1888
-2176
-3072

query I rowsort
SELECT ALL - col0 * ( - + 6 ) FROM tab0
----
522
582
90

query I rowsort
SELECT - ( + 45 ) * + 15 AS col2 FROM tab1 AS cor0
----
-675
-675
-675

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col0 + col2 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) * - + 97 * - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) * - + 97 * - col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT ALL 29 + - ( + ( + col2 ) ) FROM tab1 AS cor0
----
-30
-39
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT + - SUM( ALL + 20 ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5852
SELECT + - SUM ( ALL + 20 ) FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT + + ( + 76 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-5853
SELECT + + ( + 76 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-228

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col2 ) * - - ( + col2 ) + col0 * col2 = - 33 - 0 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT - - col2 * col0 DIV + + col1 FROM tab1 AS cor0
----
1003
131
349

skipif mysql # not compatible
query I rowsort label-5855
SELECT - - col2 * col0 / + + col1 FROM tab1 AS cor0
----
1003
131
349

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT DISTINCT - 59 * - COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - 59 * - COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
177

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL - MIN( - col1 ) - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 * + - col1 IS NULL
----
44

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL - MIN ( - col1 ) - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 * + - col1 IS NULL
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5859
SELECT ALL - 29 DIV col1 + - col0 * - 27 FROM tab0 AS cor0
----
2348
2590
405

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - 29 / col1 + - col0 * - 27 FROM tab0 AS cor0
----
2348
2590
405

query I rowsort
SELECT DISTINCT + 89 * 1 FROM tab1 AS cor0
----
89

query I rowsort
SELECT - ( + col2 ) * col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab2 WHERE col0 = NULL
----

query I rowsort
SELECT ALL - ( + 30 ) * 36 AS col0 FROM tab1
----
-1080
-1080
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT + col1 * - col1 DIV col1 + col0 col2 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5864
SELECT + col1 * - col1 / col1 + col0 col2 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5865
SELECT col2 + - 37 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT col2 + - 37 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) + + 54 * 73 * + col1 AS col1 FROM tab2
----
201093
264181
303611

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5867
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, col1 FROM tab1 cor0 WHERE NULL NOT IN ( - 18, 99 * + + 55 * - 75 )
----

skipif mysql # not compatible
query II rowsort label-5867
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab1 cor0 WHERE NULL NOT IN ( - 18, 99 * + + 55 * - 75 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 90 IS NOT NULL
----

query I rowsort
SELECT col1 + - 75 FROM tab2 AS cor0
----
-24
-8
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5871
SELECT SUM( - 28 ) DIV + 48 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5871
SELECT SUM ( - 28 ) / + 48 AS col1 FROM tab0
----
-1

query I rowsort
SELECT - 52 * + col0 + + col2 - col0 FROM tab0 AS cor0
----
-4601
-5042
-748

query I rowsort
SELECT DISTINCT + 93 + + - 75 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL SUM( ALL - 97 ) + - 66 AS col0 FROM tab2 AS cor0
----
-357

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL SUM ( ALL - 97 ) + - 66 AS col0 FROM tab2 AS cor0
----
-357

query I rowsort
SELECT ALL - col0 + - col1 + - + 47 * + 19 * + col1 FROM tab2 AS cor0
----
-45640
-59973
-68902

query I rowsort
SELECT - + ( col2 ) - - col0 FROM tab0 cor0
----
-2
-32
77

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( col0 ) ) NOT BETWEEN + 53 - - col2 AND col1 * - + col0 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5878
SELECT CAST( + - col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5878
SELECT CAST ( + - col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 WHERE NOT col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 col0 FROM tab2
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5881
SELECT CAST( + col2 AS SIGNED ) * - col0 AS col2, col2 col2 FROM tab1
----
-4896
96
-5015
59
-6188
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5881
SELECT CAST ( + col2 AS INTEGER ) * - col0 AS col2, col2 col2 FROM tab1
----
-4896
96
-5015
59
-6188
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5882
SELECT col1 * CAST( NULL AS SIGNED ) * + + CAST( + 50 AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5882
SELECT col1 * CAST ( NULL AS INTEGER ) * + + CAST ( + 50 AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + + MIN( ALL + col0 ) AS col0 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5883
SELECT + + MIN ( ALL + col0 ) AS col0 FROM tab1 cor0
----
51

query I rowsort
SELECT ALL - col1 * + + col2 + - col0 FROM tab2 cor0
----
-1219
-3144
-3961

query I rowsort
SELECT + 28 * + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col0, 73 + 21 )
----

query I rowsort
SELECT ALL col1 * + ( col0 ) FROM tab0 cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + 6 * - + 68 + - - col2 - - + 29 AS col2 FROM tab0
----
-280
-332
-369

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT + - MAX( ALL - 8 ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5888
SELECT + - MAX ( ALL - 8 ) AS col0 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - - col0 / - col0 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - - col0 / - col0 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - + col0 + - - 1 - + 0 AS col0 FROM tab1 AS cor0
----
-50
-84
-90

query I rowsort
SELECT DISTINCT - + 37 * + 90 FROM tab2 cor0
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT - 91 + - - COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5892
SELECT - 91 + - - COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
-88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + col0 BETWEEN NULL AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + col0 + - col1 + + - 25 FROM tab2
----
-1134
-2662
-4442

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 > - col0 * - 35 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT DISTINCT + 35 - + + COUNT( * ) AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT + 35 - + + COUNT ( * ) AS col1 FROM tab2
----
32

query I rowsort
SELECT - col1 AS col1 FROM tab1 cor0 WHERE NOT NULL <> ( col2 )
----

query II rowsort
SELECT col0 AS col2, 25 FROM tab0 AS cor0
----
15
25
87
25
97
25

query II rowsort
SELECT ALL - + col0, 45 AS col1 FROM tab2 AS cor0
----
-46
45
-64
45
-75
45

query II rowsort
SELECT DISTINCT + + 82, + col0 * + col0 AS col0 FROM tab1 AS cor0
----
82
2601
82
7225
82
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT - MIN( ALL + CAST( + 48 AS SIGNED ) ) * + + 95 FROM tab1 AS cor0
----
-4560

skipif mysql # not compatible
query I rowsort label-5901
SELECT - MIN ( ALL + CAST ( + 48 AS INTEGER ) ) * + + 95 FROM tab1 AS cor0
----
-4560

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT DISTINCT + 39 DIV - col1 AS col2 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT + 39 / - col1 AS col2 FROM tab1
----
-2
-7
0

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL IN ( 82, + 70 * + ( + col0 ), - + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 = col1 - + 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5906
SELECT DISTINCT 56 AS col1 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
56

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT 56 AS col1 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5907
SELECT 30 * + CAST( - 32 AS SIGNED ) col2 FROM tab0 AS cor0
----
-960
-960
-960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5907
SELECT 30 * + CAST ( - 32 AS INTEGER ) col2 FROM tab0 AS cor0
----
-960
-960
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5908
SELECT CAST( NULL AS SIGNED ) * - MIN( DISTINCT - - CAST( - + 37 AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT - - CAST ( - + 37 AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5909
SELECT DISTINCT + + CAST( 89 AS SIGNED ) - - col1 AS col1, - col1 FROM tab0 cor0 WHERE 91 - - 28 < + - 79
----

skipif mysql # not compatible
query II rowsort label-5909
SELECT DISTINCT + + CAST ( 89 AS INTEGER ) - - col1 AS col1, - col1 FROM tab0 cor0 WHERE 91 - - 28 < + - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT COUNT( - col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5910
SELECT COUNT ( - col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT MAX( DISTINCT + - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT MAX ( DISTINCT + - col2 ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT + col0 * + col0 + - 13 AS col0 FROM tab2
----
2103
4083
5612

query I rowsort
SELECT ALL 97 + - 96 AS col0 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + - + col0 NOT BETWEEN NULL AND ( - col0 )
----

query I rowsort
SELECT DISTINCT + col2 + - + 33 + + + 87 AS col0 FROM tab0 cor0
----
101
153
64

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= - + col1
----

query I rowsort
SELECT ALL + + 43 + + col0 AS col2 FROM tab0 AS cor0
----
130
140
58

query I rowsort
SELECT DISTINCT - + 47 * + + 21 * + col0 FROM tab1 AS cor0
----
-50337
-83895
-89817

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= + - col2
----

query I rowsort
SELECT + col2 + + col1 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5921
SELECT - 29 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-29
3

skipif mysql # not compatible
query II rowsort label-5921
SELECT - 29 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-29
3

query I rowsort
SELECT + 58 * + col1 * + col1 * + col0 * 37 FROM tab1 AS cor0
----
21451416
431386774
4560250

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < col2 * col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5924
SELECT + col2 DIV col2 col0, col2 * + - col0 FROM tab0
----
1
-705
1
-870
1
-9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5924
SELECT + col2 / col2 col0, col2 * + - col0 FROM tab0
----
1
-705
1
-870
1
-9603

query II rowsort
SELECT col1 AS col0, col0 + + col2 FROM tab1
----
14
147
47
159
5
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL MAX( DISTINCT col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL MAX ( DISTINCT col2 ) AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT SUM( - - 83 ) + + ( + 63 ) AS col0 FROM tab2
----
312

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT SUM ( - - 83 ) + + ( + 63 ) AS col0 FROM tab2
----
312

query I rowsort
SELECT col0 + - - col1 AS col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT + COUNT( - 53 ) + + MAX( DISTINCT + 79 ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5929
SELECT + COUNT ( - 53 ) + + MAX ( DISTINCT + 79 ) FROM tab0 AS cor0
----
82

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL = 46 + - col2 + - - col0 * - col2 * + - 17 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT DISTINCT + 39 DIV - 66 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT + 39 / - 66 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5933
SELECT - - col2 DIV + 79 AS col2, + col1 FROM tab0 AS cor0
----
0
21
0
81
1
1

skipif mysql # not compatible
query II rowsort label-5933
SELECT - - col2 / + 79 AS col2, + col1 FROM tab0 AS cor0
----
0
21
0
81
1
1

query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT DISTINCT + COUNT( * ) col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5935
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0, tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - 91 + 2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5937
SELECT ALL - 74 AS col0, COUNT( * ) DIV 53 col0 FROM tab0
----
-74
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5937
SELECT ALL - 74 AS col0, COUNT ( * ) / 53 col0 FROM tab0
----
-74
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab2 WHERE NOT + - col2 + - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT COUNT( DISTINCT - - col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5939
SELECT COUNT ( DISTINCT - - col2 ) col1 FROM tab0
----
3

query I rowsort
SELECT + col2 * + 68 FROM tab2
----
1564
2720
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5941
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5942
SELECT ALL CAST( - 45 AS SIGNED ) FROM tab1
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL CAST ( - 45 AS INTEGER ) FROM tab1
----
-45
-45
-45

query I rowsort
SELECT + col1 * + - col0 * + + col1 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT MIN( ALL 66 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-5944
SELECT MIN ( ALL 66 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 50 * + - col1 - - col0 + - + col2 NOT BETWEEN col0 + col2 AND + 46 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT SUM( DISTINCT + - 94 ) col1 FROM tab0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5946
SELECT SUM ( DISTINCT + - 94 ) col1 FROM tab0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5947
SELECT ALL 67 * - COUNT( * ) + + - COUNT( * ) DIV MAX( + 91 ) + - 64 AS col1 FROM tab1 AS cor0
----
-265

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL 67 * - COUNT ( * ) + + - COUNT ( * ) / MAX ( + 91 ) + - 64 AS col1 FROM tab1 AS cor0
----
-265

query I rowsort
SELECT 73 + + 20 AS col0 FROM tab0 cor0
----
93
93
93

query I rowsort
SELECT DISTINCT + 76 + - col0 AS col2 FROM tab1 cor0
----
-15
-9
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL - SUM( ALL - col0 ) + - COUNT( * ) + COUNT( * ) * MIN( - 84 ) AS col0 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL - SUM ( ALL - col0 ) + - COUNT ( * ) + COUNT ( * ) * MIN ( - 84 ) AS col0 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT col1 + - - col2 + + + col2 FROM tab1 AS cor0 WHERE ( NOT ( - + 80 ) > col0 )
----
123
183
206

query I rowsort
SELECT - 39 * - col1 AS col0 FROM tab0
----
3159
39
819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5953
SELECT - CAST( NULL AS SIGNED ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5953
SELECT - CAST ( NULL AS INTEGER ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + 42 col1 FROM tab2
----
-46
42
-64
42
-75
42

query I rowsort
SELECT col1 * + - col1 * 42 FROM tab2
----
-109242
-188538
-249018

query I rowsort
SELECT 62 * + 59 * - col1 FROM tab0
----
-296298
-3658
-76818

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5957
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5957
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 + + + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 + + + col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ( - + 5 ) AS col2 FROM tab2
----
-5
-5
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 17 > - ( 66 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col0 + - + col2 * + + col2 FROM tab2 cor0
----
-1536
-3289
-483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT ALL - col1 - + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL - col1 - + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * - - col2 + + col1 - - - ( col0 ) * - 20 FROM tab0 AS cor0
----
1086
11544
2631

query I rowsort
SELECT 56 * + 64 * + 76 FROM tab0, tab1 AS cor0
----
9 values hashing to f79b465ad6ad2ef46d9d50715a1f8ee3

query I rowsort
SELECT - - 37 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT ALL + 51 * COUNT( * ) AS col0 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL + 51 * COUNT ( * ) AS col0 FROM tab1
----
153

query II rowsort
SELECT ALL - col0 AS col2, col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT - + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT - + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 97 / + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col0 + + ( + + col0 ) + col2 * col1 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - col0 col2 FROM tab2 cor0
----
46
-46
64
-64
75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 43 - 92 col1 FROM tab0 AS cor0
----
-2113
-4349
-522

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + 6 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * - 8 + + col0 FROM tab0 AS cor0
----
-361
-695
7

query I rowsort
SELECT - + 37 AS col1 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5976
SELECT DISTINCT CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL ( + col2 ) * + 65 + + - 48 + col2 AS col1 FROM tab2
----
1470
2592
3780

query I rowsort
SELECT ALL - ( - 85 ) + + col1 - + col2 * - col2 FROM tab0
----
206
2375
9887

query I rowsort
SELECT DISTINCT + - col1 * - 8 AS col1 FROM tab2 WHERE col1 NOT BETWEEN NULL AND col0 * col1 + - - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 - + + col2 * - col2 IS NOT NULL
----

query II rowsort
SELECT - - col2 * + 90 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
2070
-51
3600
-77
5220
-67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 78 BETWEEN ( + col2 ) * + 91 * + ( + col0 ) - 50 AND + ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col1 * 57 - - + col1 + + - col1 * + + col1 + + col0 AS col1 FROM tab0 AS cor0
----
-1848
154
864

query I rowsort
SELECT ALL + - col0 + - 48 AS col2 FROM tab1 AS cor0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT DISTINCT 37 + + - col2 AS col1 FROM tab0
----
-10
-62
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT DISTINCT 53 + MIN( col2 ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT 53 + MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 80 * 48 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT 46 DIV col2 AS col0 FROM tab0 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5988
SELECT 46 / col2 AS col0 FROM tab0 cor0
----
0
0
4

query I rowsort
SELECT DISTINCT + 54 + - col2 + col1 FROM tab1 AS cor0
----
-28
0
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT ALL - + 48 - 39 + - + col0 + 47 - + + col0 DIV - + col1 AS col1 FROM tab1 AS cor0
----
-108
-130
-88

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - + 48 - 39 + - + col0 + 47 - + + col0 / - + col1 AS col1 FROM tab1 AS cor0
----
-108
-130
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT + - CAST( + AVG ( - col2 ) AS SIGNED ) - MIN( ALL 49 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5991
SELECT + - CAST ( + AVG ( - col2 ) AS INTEGER ) - MIN ( ALL 49 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5992
SELECT MIN( - col2 ) - - - CAST( NULL AS SIGNED ), - 18 DIV + COUNT( * ) col0 FROM tab2 AS cor0
----
NULL
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5992
SELECT MIN ( - col2 ) - - - CAST ( NULL AS INTEGER ), - 18 / + COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL
-6

query II rowsort
SELECT ALL + + col0, - 2 * - - col1 FROM tab2 AS cor0
----
46
-102
64
-154
75
-134

query II rowsort
SELECT ALL + + col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT - col0 + - + col1 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT ALL ( COUNT( DISTINCT + 7 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL ( COUNT ( DISTINCT + 7 ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL SUM( - 4 ) + - 16 * - + 4 AS col2 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL SUM ( - 4 ) + - 16 * - + 4 AS col2 FROM tab1
----
52

query I rowsort
SELECT - 22 + - col1 + + + col1 FROM tab2
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col0 FROM tab1
----
69
69
69

query I rowsort
SELECT + col0 + - col0 * - 87 + col1 FROM tab2 AS cor0
----
4099
5709
6667

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT + + MAX( - + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6001
SELECT + + MAX ( - + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-6002
SELECT ALL + COUNT( * ) * - ( - + ( MIN( DISTINCT + col2 ) ) ) AS col1, 95 AS col0 FROM tab1
----
177
95

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL + COUNT ( * ) * - ( - + ( MIN ( DISTINCT + col2 ) ) ) AS col1, 95 AS col0 FROM tab1
----
177
95

query II rowsort
SELECT + col1 AS col2, - 76 AS col2 FROM tab2
----
51
-76
67
-76
77
-76

query I rowsort
SELECT 77 * 98 FROM tab0 AS cor0
----
7546
7546
7546

query I rowsort
SELECT ALL + - 20 AS col0 FROM tab2 AS cor0
----
-20
-20
-20

query II rowsort
SELECT DISTINCT + - 43, + col1 AS col0 FROM tab0 AS cor0 WHERE + 73 * + + col0 - - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT DISTINCT COUNT( * ) * + 16 AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT COUNT ( * ) * + 16 AS col2 FROM tab1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6008
SELECT ALL col1 DIV - 26 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL col1 / - 26 AS col0 FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT - 28 + + COUNT( * ) AS col2 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-6009
SELECT - 28 + + COUNT ( * ) AS col2 FROM tab1
----
-25

query I rowsort
SELECT - 39 AS col1 FROM tab2 WHERE NOT NULL >= col1
----

query I rowsort
SELECT DISTINCT - 45 * - col0 FROM tab2
----
2070
2880
3375

query I rowsort
SELECT ALL - col0 + + 25 FROM tab1
----
-26
-60
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT ALL - COUNT( * ) * 4 DIV - COUNT( * ) col2 FROM tab2
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6013
SELECT ALL - COUNT ( * ) * 4 / - COUNT ( * ) col2 FROM tab2
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6014
SELECT + ( - COUNT( - + col1 ) ) * - CAST( NULL AS DECIMAL ) / + MIN( + - 9 ) + + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT + ( - COUNT ( - + col1 ) ) * - CAST ( NULL AS REAL ) / + MIN ( + - 9 ) + + - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + + 72
----

query II rowsort
SELECT 86, col1 * + 2 AS col1 FROM tab1
----
86
10
86
28
86
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * col0 * col1 * + - 69 col2 FROM tab1
----
-1319625
-13280085
-2216970

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT DISTINCT col1 * + ( - CAST( NULL AS SIGNED ) ) * - 46 * - - col1 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT col1 * + ( - CAST ( NULL AS INTEGER ) ) * - 46 * - - col1 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6020
SELECT ALL + + CAST( - ( + - AVG ( + - col2 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL + + CAST ( - ( + - AVG ( + - col2 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 31 - col0 * col0 < NULL )
----

query I rowsort
SELECT col1 + - 61 + + - 13 FROM tab2 cor0
----
-23
-7
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6023
SELECT DISTINCT + 30 DIV + col1 + - col0 DIV - 9 AS col1 FROM tab1 AS cor0
----
10
15
7

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT + 30 / + col1 + - col0 / - 9 AS col1 FROM tab1 AS cor0
----
10
15
7

query I rowsort
SELECT ALL - col2 + - + col1 * - col2 * + 31 AS col2 FROM tab2 AS cor0
----
120408
36340
95440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6025
SELECT DISTINCT + - 28 FROM tab1 AS cor0 WHERE - CAST( col2 AS SIGNED ) IS NOT NULL
----
-28

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT + - 28 FROM tab1 AS cor0 WHERE - CAST ( col2 AS INTEGER ) IS NOT NULL
----
-28

query I rowsort
SELECT DISTINCT col1 * + + 98 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2058
7938
98

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( col2 ) <= col1
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT + - col2 * 64 AS col2 FROM tab1 AS cor0 WHERE CAST( + col1 AS SIGNED ) + - col0 / + 10 NOT BETWEEN col2 AND NULL
----
-3776
-4352
-6144

skipif mysql # not compatible
query I rowsort label-6028
SELECT + - col2 * 64 AS col2 FROM tab1 AS cor0 WHERE CAST ( + col1 AS INTEGER ) + - col0 / + 10 NOT BETWEEN col2 AND NULL
----
-3776
-4352
-6144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6029
SELECT * FROM tab2 cor0 WHERE + ( + col1 ) + - CAST( + + 0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6029
SELECT * FROM tab2 cor0 WHERE + ( + col1 ) + - CAST ( + + 0 AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6030
SELECT 42 AS col1, COUNT( * ) - + COUNT( * ) + 41 AS col2 FROM tab0
----
42
41

skipif mysql # not compatible
query II rowsort label-6030
SELECT 42 AS col1, COUNT ( * ) - + COUNT ( * ) + 41 AS col2 FROM tab0
----
42
41

query I rowsort
SELECT - col0 * - col2 * 55 * col1 AS col0 FROM tab2
----
10841600
16029750
2967690

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT + col2 DIV + col1 AS col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-6032
SELECT + col2 / + col1 AS col1 FROM tab0
----
0
0
99

query I rowsort
SELECT - 32 * - col0 FROM tab1
----
1632
2720
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT MIN( DISTINCT - 83 ) AS col2 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-6034
SELECT MIN ( DISTINCT - 83 ) AS col2 FROM tab1
----
-83

query I rowsort
SELECT ALL 20 - - col0 FROM tab2
----
66
84
95

query I rowsort
SELECT + ( - col1 ) - + + 0 AS col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT DISTINCT + 39 AS col2 FROM tab0 cor0
----
39

query II rowsort
SELECT DISTINCT + col2 AS col1, - 46 FROM tab2 AS cor0
----
23
-46
40
-46
58
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 20 + 45 <> + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT + CAST( + col1 AS SIGNED ) * - + col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-6042
SELECT + CAST ( + col1 AS INTEGER ) * - + col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 48 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 65 + - - 97 + - - 43 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 * + 43 + + 66 FROM tab1 AS cor0
----
2087
281
668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT - CAST( NULL AS SIGNED ) * + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT - CAST ( NULL AS INTEGER ) * + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL - 55 * - COUNT( * ) + 86 FROM tab0 AS cor0
----
251

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - 55 * - COUNT ( * ) + 86 FROM tab0 AS cor0
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT DISTINCT + + 46 * MIN( + - 72 ) FROM tab2 AS cor0
----
-3312

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT + + 46 * MIN ( + - 72 ) FROM tab2 AS cor0
----
-3312

query I rowsort
SELECT ALL col2 * - - col1 * + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-383670
-4625505
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT ALL col1 DIV + col1 + + col1 + - 62 AS col0 FROM tab2 AS cor0
----
-10
16
6

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL col1 / + col1 + + col1 + - 62 AS col0 FROM tab2 AS cor0
----
-10
16
6

query I rowsort
SELECT ALL 58 + col0 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
145
155
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6052
SELECT ( + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6052
SELECT ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6053
SELECT DISTINCT + ( col1 ) * 50 * + - CAST( NULL AS DECIMAL ) * 82 + col1 * - - col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT + ( col1 ) * 50 * + - CAST ( NULL AS REAL ) * 82 + col1 * - - col0 AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6054
SELECT 17 DIV - 32 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6054
SELECT 17 / - 32 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 + - - col0 + + col2 * - col2 FROM tab1
----
-3391
-4486
-9151

query II rowsort
SELECT 33 + col2 * - 24 AS col2, + 72 + - + 31 + col0 FROM tab0 AS cor0
----
-1095
56
-207
128
-2343
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6057
SELECT DISTINCT 39 DIV - MAX( DISTINCT - 11 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6057
SELECT DISTINCT 39 / - MAX ( DISTINCT - 11 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6058
SELECT + COUNT( * ) DIV + CAST( 80 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6058
SELECT + COUNT ( * ) / + CAST ( 80 AS INTEGER ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 38 col0, 70 AS col2 FROM tab2 AS cor0
----
-38
70

query I rowsort
SELECT - + 50 - + col0 AS col1 FROM tab0 AS cor0
----
-137
-147
-65

query II rowsort
SELECT + col0 AS col0, col1 AS col2 FROM tab1 cor0 WHERE NULL < col0 / - - col0
----

query I rowsort
SELECT 19 - + 46 FROM tab2 cor0
----
-27
-27
-27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 = NULL
----

query I rowsort
SELECT - + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT - col0 * - - col1 - - - col1 + - + col1 + - col2 AS col2 FROM tab2 cor0
----
-2471
-5122
-5217

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT + - 12 >= NULL )
----

query I rowsort
SELECT + - col2 AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 < - - col2 * col2 * - 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + 26, - col0 col1 FROM tab1
----
1222
-91
130
-85
364
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - 72, col0 col2 FROM tab0
----
-3384
15
-7128
97
-720
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT - - col0 DIV - 13 AS col1 FROM tab1 AS cor0
----
-3
-6
-7

skipif mysql # not compatible
query I rowsort label-6072
SELECT - - col0 / - 13 AS col1 FROM tab1 AS cor0
----
-3
-6
-7

query I rowsort
SELECT DISTINCT - 45 * - col2 * + col2 AS col1 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6074
SELECT ALL CAST( + + MIN( 47 ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
47

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL CAST ( + + MIN ( 47 ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
47

query I rowsort
SELECT ALL + 36 * + col1 AS col2 FROM tab2
----
1836
2412
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6076
SELECT - COUNT( * ) * + CAST( + + 42 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
-378

skipif mysql # not compatible
query I rowsort label-6076
SELECT - COUNT ( * ) * + CAST ( + + 42 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
-378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 58 ) * + col0 * - col2 * - 89 col1 FROM tab1 cor0
----
-25273152
-25887430
-31942456

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT + SUM( - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT + SUM ( - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + - col1 * - + col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + 87 * + + col1 AS col0 FROM tab2 AS cor0
----
4437
5829
6699

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 + - + ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT - 57 + col0 FROM tab1 AS cor0
----
-6
28
34

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT - + col2 * - col0 + - col1 * - 68 <= - col0 + + 96 - + col1 / col2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT CAST( NULL AS SIGNED ) / col1 + 72 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6084
SELECT CAST ( NULL AS INTEGER ) / col1 + 72 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - 58 col0 FROM tab0
----
-145
-155
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6086
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - CAST( - col0 AS SIGNED ) BETWEEN - + col1 AND - CAST( - - col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6086
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - CAST ( - col0 AS INTEGER ) BETWEEN - + col1 AND - CAST ( - - col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 97 + - - col1 AS col1 FROM tab1
----
102
111
144

query II rowsort
SELECT + ( - col2 ) AS col0, 93 FROM tab0
----
-10
93
-47
93
-99
93

query I rowsort
SELECT ALL - col1 * + + col0 + 96 FROM tab2
----
-2250
-4832
-4929

query I rowsort
SELECT DISTINCT col1 + col2 + col1 + - - col2 * - + 72 + - col1 AS col1 FROM tab1
----
-4184
-4781
-6802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT ALL + - 15 + - CAST( - 72 AS SIGNED ) FROM tab1 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL + - 15 + - CAST ( - 72 AS INTEGER ) FROM tab1 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6092
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT - CAST( + + col0 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT - CAST ( + + col0 AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - + 9 + MAX( DISTINCT 19 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
10

skipif mysql # not compatible
query I rowsort label-6093
SELECT - + 9 + MAX ( DISTINCT 19 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
10

query I rowsort
SELECT DISTINCT col0 + - + 83 AS col2 FROM tab2 cor0
----
-19
-37
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 34 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL - COUNT( * ) + + - ( + MIN( 97 ) ) + COUNT( * ) AS col0 FROM tab2 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL - COUNT ( * ) + + - ( + MIN ( 97 ) ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
-97

query I rowsort
SELECT ALL - - 19 - 84 + + 36 * - 24 * - col0 FROM tab1 AS cor0
----
43999
73375
78559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col2 FROM tab0 cor0
----
100
2209
9801

query I rowsort
SELECT 81 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - + 28 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
-28
-10
-28
-47
-28
-99

query I rowsort
SELECT ( + + 98 ) * col1 AS col1 FROM tab1
----
1372
4606
490

query I rowsort
SELECT 36 * - + col2 AS col0 FROM tab0
----
-1692
-3564
-360

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + 47 = NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 84 AS col0 FROM tab1 AS cor0
----
-4956
-5712
-8064

query I rowsort
SELECT ALL ( - col0 ) * col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query II rowsort label-6106
SELECT ALL + 79 DIV - + col0 col2, + col0 - - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-5
-66
0
66
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6106
SELECT ALL + 79 / - + col0 col2, + col0 - - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-5
-66
0
66
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT DISTINCT + COUNT( DISTINCT 32 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT + COUNT ( DISTINCT 32 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6108
SELECT ALL - col1 - + col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) * - col1 + 82 IS NULL
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL - col1 - + col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * - col1 + 82 IS NULL
----
-108
-96
-98

query I rowsort
SELECT DISTINCT 9 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 78 + - col1 + + 15 - 72 col2 FROM tab1 AS cor0
----
-140
-149
-182

onlyif mysql # DIV for integer division: 
query II rowsort label-6111
SELECT ALL col2 + col1 AS col0, ( - - ( 95 ) ) DIV - col1 AS col2 FROM tab1 AS cor0
----
110
-6
115
-2
64
-19

skipif mysql # not compatible
query II rowsort label-6111
SELECT ALL col2 + col1 AS col0, ( - - ( 95 ) ) / - col1 AS col2 FROM tab1 AS cor0
----
110
-6
115
-2
64
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT 4 * + + 18 * + col1 * - + col0 - - CAST( NULL AS SIGNED ) * - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT 4 * + + 18 * + col1 * - + col0 - - CAST ( NULL AS INTEGER ) * - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + 34 < 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT DISTINCT SUM( DISTINCT + 89 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT SUM ( DISTINCT + 89 ) FROM tab1
----
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 71 IS NOT NULL
----

query II rowsort
SELECT ALL + 25 AS col2, + col1 FROM tab0
----
25
1
25
21
25
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT - CAST( NULL AS SIGNED ) + col0 + - 78 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT - CAST ( NULL AS INTEGER ) + col0 + - 78 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 18 * 23 IS NULL
----

query I rowsort
SELECT + col1 + - + col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + - col1 + + + col1 + + - 75 + - 38 * - + col2 + - ( - + 86 ) + 53 + - ( + col2 ) * + - col2 * + - 17 AS col2 FROM tab2 AS cor0
----
-25616
-54920
-8055

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / col1 + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 36 + + + 21 AS col0 FROM tab1 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-37
-37
-37

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 56 * - - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT DISTINCT - ( - COUNT( * ) ) - 61 AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT - ( - COUNT ( * ) ) - 61 AS col2 FROM tab0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6127
SELECT + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT - CAST( - col0 AS SIGNED ) * + 46 FROM tab1 AS cor0
----
2346
3910
4186

skipif mysql # not compatible
query I rowsort label-6128
SELECT - CAST ( - col0 AS INTEGER ) * + 46 FROM tab1 AS cor0
----
2346
3910
4186

query I rowsort
SELECT ALL - - 94 * ( + 40 ) FROM tab0 AS cor0
----
3760
3760
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT - - SUM( - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6130
SELECT - - SUM ( - col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6131
SELECT + col0 AS col0, - CAST( + - 32 AS SIGNED ) * 24 + - col1 col0 FROM tab1
----
51
754
85
763
91
721

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6131
SELECT + col0 AS col0, - CAST ( + - 32 AS INTEGER ) * 24 + - col1 col0 FROM tab1
----
51
754
85
763
91
721

query I rowsort
SELECT + - 18 - col0 AS col0 FROM tab2 WHERE NOT col0 * col1 = + - 13
----
-64
-82
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + ( ( + col0 ) ) ) col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6134
SELECT DISTINCT + 29 * - - CAST( NULL AS SIGNED ) * + COUNT( ALL + 84 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT + 29 * - - CAST ( NULL AS INTEGER ) * + COUNT ( ALL + 84 ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT col1, 2 FROM tab2
----
51
2
67
2
77
2

query II rowsort
SELECT DISTINCT 65 AS col1, col0 * 28 - - - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6137
SELECT ALL + col0 AS col0, + 17 DIV - 37 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-6137
SELECT ALL + col0 AS col0, + 17 / - 37 FROM tab2
----
46
0
64
0
75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 97 ) * + 63 col1 FROM tab1
----
-6111

query I rowsort
SELECT ALL - 27 AS col2 FROM tab1 cor0
----
-27
-27
-27

query I rowsort
SELECT - 90 AS col1 FROM tab2 AS cor0 WHERE col0 - + col2 + + + 61 <> - ( - col2 ) + col2
----
-90
-90
-90

query I rowsort
SELECT + - ( col1 ) + - - 28 + + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-2139
-4145
-5664

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 68 * + col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + + col2 * + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6144
SELECT - 94 DIV - ( + - col0 ) + + - col2 AS col0 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-6144
SELECT - 94 / - ( + - col0 ) + + - col2 AS col0 FROM tab1
----
-60
-69
-97

query I rowsort
SELECT + col1 * - - 7 AS col2 FROM tab2 WHERE + - col0 IS NOT NULL
----
357
469
539

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT ALL 86 + + COUNT( * ) * + ( - COUNT( * ) ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL 86 + + COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL - ( - - ( - COUNT( * ) ) ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL - ( - - ( - COUNT ( * ) ) ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + 55 AS col0 FROM tab1 AS cor0 WHERE 19 IS NOT NULL
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - + 87 / + 56 FROM tab2 WHERE + col1 + ( col1 ) NOT BETWEEN col2 AND + - 27 * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - - 73 ) * - col1 * - col2 BETWEEN NULL AND ( - - col1 )
----

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab2 WHERE NOT NULL > - + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 78 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * - col1 / - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT + MAX( 9 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6155
SELECT + MAX ( 9 ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT 33 * + + 81 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
2673

query I rowsort
SELECT ALL + - AVG ( ALL - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT 34 <> NULL
----
NULL

query II rowsort
SELECT + col2 + - + col2 AS col0, - col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col1, + col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT + MIN( ALL ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6160
SELECT + MIN ( ALL ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL - col0 * 87 FROM tab1 AS cor0
----
-4437
-7395
-7917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT ALL CAST( + 66 AS SIGNED ) FROM tab2
----
66
66
66

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL CAST ( + 66 AS INTEGER ) FROM tab2
----
66
66
66

query I rowsort
SELECT DISTINCT - 48 * col1 AS col2 FROM tab1
----
-2256
-240
-672

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 48 * - ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6165
SELECT ALL + CAST( NULL AS SIGNED ) / + 65, COUNT( + col1 ) col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6165
SELECT ALL + CAST ( NULL AS INTEGER ) / + 65, COUNT ( + col1 ) col1 FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT 46 * + COUNT( * ) FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT 46 * + COUNT ( * ) FROM tab1
----
138

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - - 17 * - ( + ( - 74 ) ) + - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 24 * col0 * col2 FROM tab2 AS cor0
----
104400
25392
61440

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 72 * + 2 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6170
SELECT col1 + + CAST( - 69 AS SIGNED ) AS col0, col1 + - col0 * - 43 FROM tab2
----
-18
2029
-2
3292
8
2829

skipif mysql # not compatible
query II rowsort label-6170
SELECT col1 + + CAST ( - 69 AS INTEGER ) AS col0, col1 + - col0 * - 43 FROM tab2
----
-18
2029
-2
3292
8
2829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6171
SELECT DISTINCT COUNT( * ) DIV - ( + ( + MAX( DISTINCT + col2 ) ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT COUNT ( * ) / - ( + ( + MAX ( DISTINCT + col2 ) ) ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6172
SELECT + col2 AS col2 FROM tab1 WHERE + col1 / - - 37 * - 62 - - CAST( + + 86 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6172
SELECT + col2 AS col2 FROM tab1 WHERE + col1 / - - 37 * - 62 - - CAST ( + + 86 AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6173
SELECT DISTINCT - - 85 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT - - 85 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL + ( + COUNT( * ) ) - + COUNT( 17 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + ( + COUNT ( * ) ) - + COUNT ( 17 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT - - MIN( - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6175
SELECT - - MIN ( - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT col1 * 64 FROM tab2 AS cor0
----
3264
4288
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT + col1 * col2 DIV + col1 + + - 39 col2 FROM tab0 AS cor0
----
-29
60
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6177
SELECT + col1 * col2 / + col1 + + - 39 col2 FROM tab0 AS cor0
----
-29
60
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 97 ) * + 31 * - - col1 - + - col0 - 13 / 82 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6179
SELECT - col1 - + CAST( + 96 AS SIGNED ) DIV + col0 AS col1 FROM tab2
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-6179
SELECT - col1 - + CAST ( + 96 AS INTEGER ) / + col0 AS col1 FROM tab2
----
-53
-68
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6180
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) * - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) * - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + col1 + ( col0 ) FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT - col0 + - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6182
SELECT - col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6183
SELECT + col2 DIV col1 DIV + col2 + - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6183
SELECT + col2 / col1 / + col2 + - col2 AS col0 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT - 52 AS col1, - col1 - col1 FROM tab2 AS cor0
----
-52
-102
-52
-134
-52
-154

query I rowsort
SELECT ALL ( + col2 ) - + - col1 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6186
SELECT DISTINCT + + 77 FROM tab2 AS cor0 WHERE ( NULL >= + ( CAST( + - 43 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT + + 77 FROM tab2 AS cor0 WHERE ( NULL >= + ( CAST ( + - 43 AS INTEGER ) ) )
----

query II rowsort
SELECT col1, ( - col2 ) * - + col2 FROM tab2 AS cor0
----
51
529
67
3364
77
1600

query II rowsort
SELECT DISTINCT + col0 AS col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT DISTINCT ( - + MAX( col2 ) ) AS col1 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT ( - + MAX ( col2 ) ) AS col1 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT + ( - - 82 ) * - 41 * COUNT( * ) FROM tab2 AS cor0
----
-10086

skipif mysql # not compatible
query I rowsort label-6190
SELECT + ( - - 82 ) * - 41 * COUNT ( * ) FROM tab2 AS cor0
----
-10086

query I rowsort
SELECT ALL - ( - ( + + col0 ) ) * - col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6192
SELECT DISTINCT - CAST( + - 65 AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= + col1 * + - ( + 85 ) + col1
----

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT - CAST ( + - 65 AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= + col1 * + - ( + 85 ) + col1
----

query I rowsort
SELECT - + 72 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 40, ( - col2 ) * - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 11 IS NOT NULL
----

query II rowsort
SELECT col2 AS col0, - col1 + col1 + - 47 * col1 * + col0 * - 20 AS col1 FROM tab1
----
59
399500
68
4020380
96
671160

query I rowsort
SELECT DISTINCT + 87 + + - col0 FROM tab2
----
12
23
41

query III rowsort
SELECT ALL * FROM tab2 WHERE + 87 >= + - col1 + + + 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - 62 FROM tab2
----
-16
13
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT ALL - CAST( ( + 48 ) AS SIGNED ) FROM tab2
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL - CAST ( ( + 48 ) AS INTEGER ) FROM tab2
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6202
SELECT ALL ( - CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6202
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - col2 ) * ( + col2 * col2 ) FROM tab0
----
-1000
-103823
-970299

query I rowsort
SELECT DISTINCT col1 + ( - col2 + col2 ) FROM tab1 WHERE col2 * col2 IS NULL
----

query I rowsort
SELECT - col0 * 93 AS col0 FROM tab1
----
-4743
-7905
-8463

query I rowsort
SELECT 40 - 94 FROM tab0 WHERE - col1 BETWEEN ( NULL ) AND ( 68 * 5 )
----

query I rowsort
SELECT col0 + - 37 AS col1 FROM tab0 WHERE NOT ( col2 + 27 ) <> col0 * + col2
----

query I rowsort
SELECT ALL - 84 * 19 FROM tab0
----
-1596
-1596
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT DISTINCT 71 * MAX( DISTINCT - 30 * - col0 ) FROM tab0
----
206610

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT 71 * MAX ( DISTINCT - 30 * - col0 ) FROM tab0
----
206610

query I rowsort
SELECT DISTINCT 5 * col1 AS col0 FROM tab0
----
105
405
5

query I rowsort
SELECT 60 * + col0 AS col1 FROM tab1
----
3060
5100
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6213
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL >= 47 + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL >= 47 + + 95
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT 66 * ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT 66 * ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 60 ) AS col0 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL ( COUNT( + col1 ) ) AS col1 FROM tab1 WHERE NULL NOT IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL ( COUNT ( + col1 ) ) AS col1 FROM tab1 WHERE NULL NOT IN ( + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ( - ( - COUNT( + col2 ) ) ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6217
SELECT ( - ( - COUNT ( + col2 ) ) ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6218
SELECT DISTINCT + 48 DIV - COUNT( * ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT + 48 / - COUNT ( * ) FROM tab1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT + MAX( ALL + 88 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-6219
SELECT + MAX ( ALL + 88 ) FROM tab0
----
88

query I rowsort
SELECT 27 + col1 AS col0 FROM tab1
----
32
41
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT - MAX( + 97 ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-6221
SELECT - MAX ( + 97 ) FROM tab2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6222
SELECT DISTINCT 19 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT 19 / col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 87 + + 98 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT DISTINCT col2 DIV 45 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT col2 / 45 AS col1 FROM tab0
----
0
1
2

query I rowsort
SELECT ALL col1 + - col0 FROM tab2 WHERE NOT ( 3 ) * col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= 89 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 * 64 col1 FROM tab1
----
4032
4032
4032

query I rowsort
SELECT col0 * - col2 - + col0 AS col0 FROM tab0
----
-720
-957
-9700

query I rowsort
SELECT DISTINCT + ( + ( - 18 ) ) * + 13 AS col0 FROM tab0 AS cor0
----
-234

query I rowsort
SELECT ALL 2 * col2 FROM tab0 cor0
----
198
20
94

query I rowsort
SELECT - 14 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6233
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) < - 50
----

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) < - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT SUM( 36 ) AS col2 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-6234
SELECT SUM ( 36 ) AS col2 FROM tab0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT + SUM( DISTINCT 54 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6235
SELECT + SUM ( DISTINCT 54 ) FROM tab2
----
54

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 <= col2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN - col0 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT - - 15 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6238
SELECT - - 15 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT ALL - col2 DIV - 42 AS col0 FROM tab0 AS cor0 WHERE NOT col1 <= - col0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - col2 / - 42 AS col0 FROM tab0 AS cor0 WHERE NOT col1 <= - col0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - - MIN( ALL - col2 ) col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6240
SELECT - - MIN ( ALL - col2 ) col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT - - 47 AS col1 FROM tab0 cor0
----
47

query I rowsort
SELECT - ( + col1 ) * - 98 FROM tab0 AS cor0
----
2058
7938
98

query I rowsort
SELECT 69 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 col2 FROM tab2 cor0
----
31
31
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6245
SELECT + 28 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT + 28 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT - SUM( ALL + col1 ) FROM tab2 WHERE NOT ( col1 / col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT - SUM ( ALL + col1 ) FROM tab2 WHERE NOT ( col1 / col1 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT DISTINCT - col2 + + + CAST( NULL AS SIGNED ) * - 55 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT - col2 + + + CAST ( NULL AS INTEGER ) * - 55 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 76 + - col1 * col0 AS col2 FROM tab0
----
-1139
-1751
-21

query I rowsort
SELECT DISTINCT 3 * - 5 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
-15

query I rowsort
SELECT ALL - 74 + - col0 + 90 FROM tab0 AS cor0
----
-71
-81
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 * col2 + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 88 IS NULL
----

query I rowsort
SELECT + ( + col0 ) * + 78 + col0 FROM tab2 AS cor0
----
3634
5056
5925

query I rowsort
SELECT 34 + - - col2 AS col1 FROM tab2 AS cor0
----
57
74
92

query III rowsort
SELECT * FROM tab0 WHERE - - col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 65 NOT BETWEEN + 53 * + 3 + - 75 AND ( - 87 )
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6257
SELECT 94 FROM tab1 WHERE ( NOT - col1 >= CAST( + 83 AS SIGNED ) * + col2 )
----
94
94
94

skipif mysql # not compatible
query I rowsort label-6257
SELECT 94 FROM tab1 WHERE ( NOT - col1 >= CAST ( + 83 AS INTEGER ) * + col2 )
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT + ( COUNT( * ) ) * - COUNT( DISTINCT 53 * + col2 + - 51 ) col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6258
SELECT DISTINCT + ( COUNT ( * ) ) * - COUNT ( DISTINCT 53 * + col2 + - 51 ) col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - COUNT( * ) + 34 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
25

skipif mysql # not compatible
query I rowsort label-6259
SELECT - COUNT ( * ) + 34 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT DISTINCT 24 * - + 46 + + col1 DIV 14 AS col1 FROM tab0 AS cor0
----
-1099
-1103
-1104

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT 24 * - + 46 + + col1 / 14 AS col1 FROM tab0 AS cor0
----
-1099
-1103
-1104

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT 4 DIV col2 * - - col0 * col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT 4 / col2 * - - col0 * col2 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab2 AS cor0
----
29
29
29

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col1 * - col1 / - col1 - - col0 ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6265
SELECT + 39 - - CAST( + + 54 AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
103
140
192

skipif mysql # not compatible
query I rowsort label-6265
SELECT + 39 - - CAST ( + + 54 AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
103
140
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT - - ( + MAX( 31 ) ) * 23 - 6 AS col0 FROM tab1 cor0
----
707

skipif mysql # not compatible
query I rowsort label-6266
SELECT - - ( + MAX ( 31 ) ) * 23 - 6 AS col0 FROM tab1 cor0
----
707

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT ALL col0 - - - col2 - + - 83 DIV + col1 AS col0 FROM tab0 AS cor0
----
-31
80
81

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL col0 - - - col2 - + - 83 / + col1 AS col0 FROM tab0 AS cor0
----
-31
80
81

query I rowsort
SELECT DISTINCT + col1 - - - 58 AS col0 FROM tab0 AS cor0
----
-37
-57
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6269
SELECT + col1 * - 4 / - col2 * + + 27 * + 8 + - CAST( NULL AS DECIMAL ) / 46 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT + col1 * - 4 / - col2 * + + 27 * + 8 + - CAST ( NULL AS REAL ) / 46 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 49 * + + col0 + + col0 AS col0 FROM tab0
----
4350
4850
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT CAST( - - 79 AS SIGNED ) * - CAST( + - col1 AS SIGNED ) FROM tab0
----
1659
6399
79

skipif mysql # not compatible
query I rowsort label-6271
SELECT CAST ( - - 79 AS INTEGER ) * - CAST ( + - col1 AS INTEGER ) FROM tab0
----
1659
6399
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6272
SELECT DISTINCT - 25 * + col0 AS col2, 76 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-1150
-3876
-1600
-5852
-1875
-5092

skipif mysql # not compatible
query II rowsort label-6272
SELECT DISTINCT - 25 * + col0 AS col2, 76 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-1150
-3876
-1600
-5852
-1875
-5092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6273
SELECT 62 DIV SUM( + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6273
SELECT 62 / SUM ( + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT COUNT( * ) FROM tab1 cor0 WHERE NOT ( NOT + col0 + 50 NOT BETWEEN ( 37 ) AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6274
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NOT + col0 + 50 NOT BETWEEN ( 37 ) AND NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6275
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + 86 / + - col1 * + 10 * + 23 + CAST( NULL AS DECIMAL ) / + 62 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + 86 / + - col1 * + 10 * + 23 + CAST ( NULL AS REAL ) / + 62 IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 53 ) col0 FROM tab1
----
-53

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + col0, ( + col2 ) * col2 )
----

query I rowsort
SELECT 5 * + + 8 + col2 FROM tab1 WHERE NOT + col1 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 23 col2 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 BETWEEN + - 17 AND ( - ( + 72 ) - 87 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 * 79 / - - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6283
SELECT ALL - - 68 / + col1 + + + CAST( NULL AS SIGNED ) + - + col1 * + 23 * + 75 + 60 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - - 68 / + col1 + + + CAST ( NULL AS INTEGER ) + - + col1 * + 23 * + 75 + 60 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) * 47 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) * 47 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT COUNT( + 6 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT COUNT ( + 6 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + + 3 * + 0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT DISTINCT - + MIN( - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT - + MIN ( - col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL 27 FROM tab0 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL ( - - SUM( DISTINCT + col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL ( - - SUM ( DISTINCT + col2 ) ) FROM tab1
----
223

query I rowsort
SELECT col1 + col0 - 59 FROM tab1
----
31
6
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6291
SELECT - 62 col0 FROM tab1 WHERE NULL BETWEEN col0 AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6291
SELECT - 62 col0 FROM tab1 WHERE NULL BETWEEN col0 AND - CAST ( NULL AS REAL )
----

query II rowsort
SELECT 6, col2 AS col1 FROM tab0
----
6
10
6
47
6
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL COUNT( * ) + - + MAX( DISTINCT - col0 ) AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL COUNT ( * ) + - + MAX ( DISTINCT - col0 ) AS col2 FROM tab1
----
54

query I rowsort
SELECT DISTINCT + col2 + + 16 * + 90 * + 15 + - - col2 + + - col0 * - col0 FROM tab1 AS cor0
----
24393
28943
30017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT DISTINCT - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT 59 - col1 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT 59 - col1 < - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6296
SELECT ALL * FROM tab2 WHERE NOT 72 IS NULL AND NULL <= ( - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6296
SELECT ALL * FROM tab2 WHERE NOT 72 IS NULL AND NULL <= ( - CAST ( + col1 AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT + col1 * + col2 AS col0, - col1 AS col1 FROM tab0
----
210
-21
3807
-81
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT - + col1 + - 60 + CAST( NULL AS SIGNED ) + 85 / col1 * - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT - + col1 + - 60 + CAST ( NULL AS INTEGER ) + 85 / col1 * - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6299
SELECT DISTINCT - 34 + 19 + + 22 DIV col1 * + col0 - + col2 FROM tab0 cor0
----
-62
2020
62

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - 34 + 19 + + 22 / col1 * + col0 - + col2 FROM tab0 cor0
----
-62
2020
62

query I rowsort
SELECT 34 * - 2 FROM tab1 AS cor0 WHERE col2 * + col0 IS NOT NULL
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
20

query I rowsort
SELECT ALL + 65 * col0 * col2 FROM tab1 AS cor0
----
318240
325975
402220

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT col1 * + 90 DIV - 6 FROM tab1 cor0
----
-210
-705
-75

skipif mysql # not compatible
query I rowsort label-6303
SELECT col1 * + 90 / - 6 FROM tab1 cor0
----
-210
-705
-75

query I rowsort
SELECT - col0 * + 93 AS col0 FROM tab0
----
-1395
-8091
-9021

query II rowsort
SELECT + col2, + col0 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 + + col0 > NULL
----

query II rowsort
SELECT ALL + col0 AS col2, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT 37 * col2 + col1 FROM tab0 WHERE ( - 15 * - - col0 * ( col1 ) ) <= 27 + - + col1 / + col1
----
1820
3664
391

query I rowsort
SELECT DISTINCT + ( - + 17 ) FROM tab2
----
-17

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 77 * + + col2 + + 5 - 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT DISTINCT - ( + - COUNT( * ) ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT - ( + - COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT - 20 FROM tab2 AS cor0 WHERE NOT 9 * + ( + 76 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + + col1 + col0 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6314
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN + - CAST( + 97 AS DECIMAL ) - - col1 AND ( col0 - - ( + 81 ) * 91 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN + - CAST ( + 97 AS REAL ) - - col1 AND ( col0 - - ( + 81 ) * 91 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT + COUNT( DISTINCT + col0 ) * + + 49 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-6315
SELECT + COUNT ( DISTINCT + col0 ) * + + 49 FROM tab1 AS cor0
----
147

query I rowsort
SELECT + col0 * 76 AS col1 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT col0 * + - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT ALL - 58 * CAST( + - 15 AS SIGNED ) AS col0 FROM tab2
----
870
870
870

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - 58 * CAST ( + - 15 AS INTEGER ) AS col0 FROM tab2
----
870
870
870

query II rowsort
SELECT col2 AS col2, 76 FROM tab1
----
59
76
68
76
96
76

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL >= ( col0 )
----

query I rowsort
SELECT 18 * - + ( - - col0 ) AS col2 FROM tab1
----
-1530
-1638
-918

query I rowsort
SELECT DISTINCT col1 * - ( - 19 ) * + col0 AS col0 FROM tab1
----
13566
8075
81263

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6323
SELECT - 0 + + CAST( 15 AS SIGNED ), - col1 - - - col2 + - col2 + ( - col2 ) + - col0 col2 FROM tab1
----
15
-267
15
-342
15
-353

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6323
SELECT - 0 + + CAST ( 15 AS INTEGER ), - col1 - - - col2 + - col2 + ( - col2 ) + - col0 col2 FROM tab1
----
15
-267
15
-342
15
-353

query I rowsort
SELECT + 66 + - col2 FROM tab1
----
-2
-30
7

query I rowsort
SELECT - col2 + + col2 + + 84 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT + col0 / + col1 FROM tab2 cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT DISTINCT - 88 - ( COUNT( * ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - 88 - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL - - MAX( - - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL - - MAX ( - - col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ( - - col1 ) - - 71 AS col2 FROM tab1 AS cor0
----
118
76
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT - 28 * - col2 + ( col0 ) - - CAST( + - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1732
1948
2725

skipif mysql # not compatible
query I rowsort label-6330
SELECT - 28 * - col2 + ( col0 ) - - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1732
1948
2725

query I rowsort
SELECT ALL + 54 * col2 + - col0 FROM tab2 AS cor0
----
1196
2096
3057

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT + + SUM( - + 12 ) col2 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6332
SELECT + + SUM ( - + 12 ) col2 FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6333
SELECT COUNT( * ) AS col0, + 71 FROM tab2 AS cor0
----
3
71

skipif mysql # not compatible
query II rowsort label-6333
SELECT COUNT ( * ) AS col0, + 71 FROM tab2 AS cor0
----
3
71

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 <> ( + - 10 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT ALL + col0 * ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + col0 * ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ( + SUM( - + 86 ) ) AS col0 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-6336
SELECT ( + SUM ( - + 86 ) ) AS col0 FROM tab0
----
-258

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 86 + + ( - col2 ) BETWEEN NULL AND + 46 * - - col0 * + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6338
SELECT ALL col1 * + CAST( + - col2 AS SIGNED ) AS col0, - ( + 17 ) FROM tab1
----
-1344
-17
-295
-17
-3196
-17

skipif mysql # not compatible
query II rowsort label-6338
SELECT ALL col1 * + CAST ( + - col2 AS INTEGER ) AS col0, - ( + 17 ) FROM tab1
----
-1344
-17
-295
-17
-3196
-17

query I rowsort
SELECT + 54 * - 86 FROM tab1 AS cor0
----
-4644
-4644
-4644

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 AS col1, ( col0 ) FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT - 92 * + + col0 FROM tab2
----
-4232
-5888
-6900

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 28 < + 41
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT 52 AS col0, 29 * - col1 * col2 * - + col0 AS col0 FROM tab0
----
52
1656045
52
278487
52
529830

query I rowsort
SELECT DISTINCT col0 * - + 78 AS col1 FROM tab0
----
-1170
-6786
-7566

query I rowsort
SELECT DISTINCT + 31 * - col0 FROM tab2 WHERE ( + 22 ) IN ( + 10 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6347
SELECT ALL - col2 + CAST( NULL AS SIGNED ) * + 49 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) * + 49 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT + ( + 64 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT + ( + 64 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6350
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 77 * - 50 + col0 FROM tab2 AS cor0
----
-3775
-3786
-3804

query I rowsort
SELECT DISTINCT - col2 * - - col1 * - col1 AS col2 FROM tab2
----
237160
260362
59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE + CAST( + col0 AS SIGNED ) NOT BETWEEN NULL AND - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE + CAST ( + col0 AS INTEGER ) NOT BETWEEN NULL AND - col0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1 * - 2 AS col1, - col2 * - col2 AS col0 FROM tab1
----
10
3481
28
9216
94
4624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * + 5 col0 FROM tab0
----
400
400
400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6356
SELECT col1 DIV - CAST( col0 AS SIGNED ) FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6356
SELECT col1 / - CAST ( col0 AS INTEGER ) FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT DISTINCT + 21 DIV - 69 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT + 21 / - 69 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 + + col2 + - 51 * + - col2 * - col1 col2 FROM tab0
----
-10782
-194192
-5032

query I rowsort
SELECT DISTINCT col2 + - col0 * - 29 + + + col0 * + ( - col1 ) AS col1 FROM tab0
----
-733
2815
706

query I rowsort
SELECT - ( + 90 ) AS col2 FROM tab1
----
-90
-90
-90

query I rowsort
SELECT ALL + - 88 + + 50 FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6362
SELECT DISTINCT - COUNT( * ) + + ( MAX( ALL - 2 ) ) + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT - COUNT ( * ) + + ( MAX ( ALL - 2 ) ) + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT ALL + col1 DIV col2 - col2 + 96 FROM tab0 AS cor0
----
-3
50
88

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + col1 / col2 - col2 + 96 FROM tab0 AS cor0
----
-3
50
88

query I rowsort
SELECT DISTINCT - 10 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

query I rowsort
SELECT - 30 + - col2 AS col2 FROM tab2
----
-53
-70
-88

query I rowsort
SELECT DISTINCT - + 67 AS col0 FROM tab0 AS cor0
----
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col2 <> + + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL + ( + + 26 ) * + - MAX( + col1 ) FROM tab1 AS cor0
----
-1222

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL + ( + + 26 ) * + - MAX ( + col1 ) FROM tab1 AS cor0
----
-1222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 37 ) col0 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL - MAX( + + 57 ) col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6370
SELECT ALL - MAX ( + + 57 ) col2 FROM tab0 AS cor0
----
-57

query II rowsort
SELECT DISTINCT + col0 AS col0, - ( - col2 ) AS col1 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT MAX( DISTINCT + - 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6372
SELECT MAX ( DISTINCT + - 3 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6373
SELECT + COUNT( * ) AS col0, + MAX( - 88 ) FROM tab0
----
3
-88

skipif mysql # not compatible
query II rowsort label-6373
SELECT + COUNT ( * ) AS col0, + MAX ( - 88 ) FROM tab0
----
3
-88

query II rowsort
SELECT ALL col0 AS col1, 75 * col0 + + ( + 91 ) * - 92 AS col0 FROM tab0
----
15
-7247
87
-1847
97
-1097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6375
SELECT ALL CAST( MIN( - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL CAST ( MIN ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT ALL + ( + ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + ( + ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT CAST( 6 AS SIGNED ) FROM tab2 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-6377
SELECT CAST ( 6 AS INTEGER ) FROM tab2 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL + MIN( ALL - + 17 ) AS col1 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + MIN ( ALL - + 17 ) AS col1 FROM tab0 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6379
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( ( + - col0 ) * + col1 - CAST( NULL AS SIGNED ) ) <> + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-6379
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( ( + - col0 ) * + col1 - CAST ( NULL AS INTEGER ) ) <> + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT CAST( + 43 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
3741
4171
645

skipif mysql # not compatible
query I rowsort label-6380
SELECT CAST ( + 43 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
3741
4171
645

query I rowsort
SELECT + - 57 + + 94 FROM tab2 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT DISTINCT - + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6382
SELECT DISTINCT - + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + col2 + + ( col2 ) FROM tab2 cor0
----
116
46
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6384
SELECT + - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6384
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6385
SELECT ALL + + 20 DIV + col2 AS col0, - col2 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

skipif mysql # not compatible
query II rowsort label-6385
SELECT ALL + + 20 / + col2 AS col0, - col2 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

query I rowsort
SELECT + - 33 * + + 96 AS col0 FROM tab0 AS cor0
----
-3168
-3168
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT ALL + col0 FROM tab0 WHERE 24 * - ( + CAST( NULL AS SIGNED ) ) * + col1 BETWEEN NULL AND ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL + col0 FROM tab0 WHERE 24 * - ( + CAST ( NULL AS INTEGER ) ) * + col1 BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT + col0 FROM tab2 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 53 <= col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT ALL + CAST( NULL AS SIGNED ) - - + col2 + + 73 * - 66 + col0 / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL + CAST ( NULL AS INTEGER ) - - + col2 + + 73 * - 66 + col0 / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1, 59 * + 69 AS col0 FROM tab0 AS cor0
----
1
4071
21
4071
81
4071

query I rowsort
SELECT DISTINCT + - col2 - + col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 53 = + 98
----

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 53 = + 98
----

query II rowsort
SELECT DISTINCT - + col2, + col0 AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6395
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - CAST( NULL AS DECIMAL ) + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6395
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - CAST ( NULL AS REAL ) + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + + col1 * - col0 AS col0 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT col0 * - 81 FROM tab2
----
-3726
-5184
-6075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT - 55 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT - 55 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT + - MAX( DISTINCT - 90 ) * - + 96 AS col0 FROM tab0 AS cor0
----
-8640

skipif mysql # not compatible
query I rowsort label-6399
SELECT + - MAX ( DISTINCT - 90 ) * - + 96 AS col0 FROM tab0 AS cor0
----
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT + ( ( - - COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6400
SELECT + ( ( - - COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6401
SELECT + - col2 * - CAST( NULL AS DECIMAL ) * col2 - - - col0 * - col2 * + 26 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT + - col2 * - CAST ( NULL AS REAL ) * col2 - - - col0 * - col2 * + 26 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6402
SELECT DISTINCT + CAST( 81 AS SIGNED ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + CAST ( 81 AS INTEGER ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL + SUM( + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + SUM ( + col2 ) FROM tab2
----
121

query I rowsort
SELECT - col1 * + 25 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL 44 * - col0 FROM tab2
----
-2024
-2816
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT MIN( 39 ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6406
SELECT MIN ( 39 ) FROM tab2 AS cor0
----
39

query I rowsort
SELECT DISTINCT - col2 + col2 + + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT ( + COUNT( * ) ) col0 FROM tab0 AS cor0 WHERE NOT - 75 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6408
SELECT ( + COUNT ( * ) ) col0 FROM tab0 AS cor0 WHERE NOT - 75 * + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT DISTINCT - ( + - 47 ) * - - COUNT( * ) FROM tab0 cor0
----
141

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT - ( + - 47 ) * - - COUNT ( * ) FROM tab0 cor0
----
141

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - col0 * + ( col1 ) * + - 67 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT - 43 + + COUNT( * ) col2 FROM tab0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6411
SELECT DISTINCT - 43 + + COUNT ( * ) col2 FROM tab0
----
-40

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NOT ( NOT col1 <> NULL ) ) )
----

query I rowsort
SELECT ALL + 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + 11 + + + 54 FROM tab1
----
65
65
65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 94 IS NULL
----

query I rowsort
SELECT ALL col1 + + 99 FROM tab0 cor0
----
100
120
180

query I rowsort
SELECT + - 38 + + - 41 FROM tab1 cor0
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT DISTINCT - 73 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 24 * - ( col2 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT - 73 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 24 * - ( col2 ) < NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, + col2, + - col1 )
----

query II rowsort
SELECT DISTINCT - - 1 + - - col2, - 97 AS col1 FROM tab2 AS cor0
----
24
-97
41
-97
59
-97

query I rowsort
SELECT 68 - + col1 - - + 62 + col0 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 25 - - col0 FROM tab1 AS cor0
----
110
116
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( + - col0 ) + - 46 col0, col2 / + col1 * + col2 FROM tab0 AS cor0 WHERE NOT + + 40 <> - 23 OR NOT + col1 - - col0 * col0 / - col1 IS NOT NULL
----

query II rowsort
SELECT col0 * + col0, col0 AS col0 FROM tab0
----
225
15
7569
87
9409
97

query II rowsort
SELECT col2 * 57 AS col2, 7 AS col1 FROM tab1
----
3363
7
3876
7
5472
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6427
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) - 22 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) - 22 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col0 AS col2, + col1 col1 FROM tab1
----
-425
5
-4277
47
-714
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6430
SELECT SUM( - col2 ) AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
-223
NULL

skipif mysql # not compatible
query II rowsort label-6430
SELECT SUM ( - col2 ) AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
-223
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT ALL + COUNT( * ) + 90 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + COUNT ( * ) + 90 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT + MAX( ALL - 45 ) + COUNT( * ) AS col2 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT + MAX ( ALL - 45 ) + COUNT ( * ) AS col2 FROM tab2
----
-42

query I rowsort
SELECT DISTINCT - col1 * 89 * - - 19 FROM tab1 AS cor0
----
-23674
-79477
-8455

query I rowsort
SELECT + 68 * + + 6 FROM tab0
----
408
408
408

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 - ( 39 ) * 74 <> + 71
----

query II rowsort
SELECT DISTINCT - 11 AS col2, col2 AS col0 FROM tab2 cor0
----
-11
23
-11
40
-11
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT DISTINCT - + COUNT( * ) + 2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
2

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT - + COUNT ( * ) + 2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + col2 + + - 74 col1 FROM tab2 cor0
----
-1247
-3154
-3960

query II rowsort
SELECT ALL + col1 AS col1, col0 * - + col2 AS col0 FROM tab1 AS cor0
----
14
-4896
47
-6188
5
-5015

query I rowsort
SELECT ALL - ( + - col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + + 2 ) >= - col2 * - col2 - + - col1 + + 11 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT - SUM( DISTINCT col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6442
SELECT - SUM ( DISTINCT col2 ) AS col1 FROM tab0 cor0
----
-156

query II rowsort
SELECT DISTINCT + col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT + ( ( - 80 ) ) AS col2 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT - - COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6445
SELECT - - COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - MAX( DISTINCT + + col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6446
SELECT - MAX ( DISTINCT + + col1 ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL COUNT( DISTINCT - ( col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL COUNT ( DISTINCT - ( col2 ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6448
SELECT ALL * FROM tab1 WHERE + CAST( + col0 AS SIGNED ) * 14 >= NULL
----

skipif mysql # not compatible
query III rowsort label-6448
SELECT ALL * FROM tab1 WHERE + CAST ( + col0 AS INTEGER ) * 14 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT col1 DIV + - col2 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6449
SELECT col1 / + - col2 AS col1 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL 8 * - COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL 8 * - COUNT ( * ) FROM tab1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6451
SELECT ALL 35 + - + col0, + CAST( + - 45 AS SIGNED ) AS col1 FROM tab2
----
-11
-45
-29
-45
-40
-45

skipif mysql # not compatible
query II rowsort label-6451
SELECT ALL 35 + - + col0, + CAST ( + - 45 AS INTEGER ) AS col1 FROM tab2
----
-11
-45
-29
-45
-40
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6452
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT + col1 + - - col2 + 20 * col1 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - 43 IS NOT NULL
----

query I rowsort
SELECT + col2 * 32 FROM tab1 AS cor0
----
1888
2176
3072

query I rowsort
SELECT + ( - + col2 ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 16 + + 95 - - + ( 61 ) FROM tab2 AS cor0
----
140

onlyif mysql # DIV for integer division: 
query II rowsort label-6458
SELECT DISTINCT - - col0 + + - col0 DIV - col2 AS col1, + ( + col0 ) AS col1 FROM tab1 AS cor0
----
51
51
86
85
92
91

skipif mysql # not compatible
query II rowsort label-6458
SELECT DISTINCT - - col0 + + - col0 / - col2 AS col1, + ( + col0 ) AS col1 FROM tab1 AS cor0
----
51
51
86
85
92
91

query I rowsort
SELECT ALL + 27 - - col1 - - + col2 AS col2 FROM tab0 AS cor0
----
127
155
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL - - COUNT( * ) - - - 4 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL - - COUNT ( * ) - - - 4 AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + ( - 85 ) - col0 * col2 FROM tab1 AS cor0
----
-4981
-5100
-6273

query I rowsort
SELECT + - col0 - - 78 + col0 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT 58 * col1 DIV - col2 - + - 73 AS col2 FROM tab0 AS cor0
----
-26
-48
73

skipif mysql # not compatible
query I rowsort label-6463
SELECT 58 * col1 / - col2 - + - 73 AS col2 FROM tab0 AS cor0
----
-26
-48
73

query I rowsort
SELECT DISTINCT - col2 - - col0 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + 55 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT MAX( ALL + 59 ) + - + 56 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6466
SELECT MAX ( ALL + 59 ) + - + 56 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE col0 - col0 = - col2 * + + col2
----

query II rowsort
SELECT DISTINCT 78, + col2 FROM tab0
----
78
10
78
47
78
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT DISTINCT - SUM( ALL 72 ) - + - COUNT( * ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT - SUM ( ALL 72 ) - + - COUNT ( * ) FROM tab0
----
-213

query III rowsort
SELECT * FROM tab2 WHERE - + col2 IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - - col0 AS col0 FROM tab0
----
225
7569
9409

query I rowsort
SELECT + - ( - 41 ) FROM tab2 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT + MIN( - - 64 ) FROM tab0 cor0
----
64

skipif mysql # not compatible
query I rowsort label-6474
SELECT + MIN ( - - 64 ) FROM tab0 cor0
----
64

query I rowsort
SELECT ALL ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col2 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + col2 * - + 35 FROM tab1 AS cor0
----
-2065
-2380
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT + 1 * + - SUM( DISTINCT - + col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-6478
SELECT + 1 * + - SUM ( DISTINCT - + col2 ) FROM tab1 cor0
----
223

query I rowsort
SELECT ALL - - ( 36 ) FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT + col0 * + col2 * + + col1 AS col0 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT - col0 * + - col1 * + 51 AS col0 FROM tab2 AS cor0
----
119646
251328
256275

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE - - 89 / + - 68 + + - col0 + + + col1 * + - col1 + - - 25 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab0 WHERE NOT 70 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6484
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab0 WHERE NOT 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ( + 26 ) + + MAX( + col0 ) AS col2 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-6485
SELECT ( + 26 ) + + MAX ( + col0 ) AS col2 FROM tab0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6486
SELECT - CAST( NULL AS SIGNED ) AS col1, + 87 - - col0 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
133
NULL
151
NULL
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6486
SELECT - CAST ( NULL AS INTEGER ) AS col1, + 87 - - col0 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
133
NULL
151
NULL
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 col2, + col0 + col0 FROM tab0
----
90
174
90
194
90
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT DISTINCT col0 DIV 82 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT col0 / 82 AS col0 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT MIN( DISTINCT + - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6489
SELECT MIN ( DISTINCT + - col2 ) AS col2 FROM tab2
----
-58

query II rowsort
SELECT DISTINCT + col0 AS col0, col0 * + + col2 AS col0 FROM tab0
----
15
705
87
870
97
9603

query I rowsort
SELECT ALL + ( + col2 ) + - + col1 AS col2 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT SUM( DISTINCT - 58 ) + + 37 AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-6492
SELECT SUM ( DISTINCT - 58 ) + + 37 AS col0 FROM tab0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( - + col2 ) IN ( - - 56 )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + + 40 + + + 43 + ( + - ( + + col2 ) ) AS col1 FROM tab2 cor0
----
25
43
60

query I rowsort
SELECT DISTINCT + + col1 + col1 AS col0 FROM tab1 cor0
----
10
28
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6497
SELECT DISTINCT SUM( ALL col1 ) - + MAX( + col2 ) DIV 90 FROM tab0 cor0
----
102

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT SUM ( ALL col1 ) - + MAX ( + col2 ) / 90 FROM tab0 cor0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6498
SELECT * FROM tab0 AS cor0 WHERE NULL <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6498
SELECT * FROM tab0 AS cor0 WHERE NULL <= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 7 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT SUM( + + col1 ) col1 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6500
SELECT SUM ( + + col1 ) col1 FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) >= ( NULL )
----

query I rowsort
SELECT col1 * - ( 10 ) - + 71 AS col2 FROM tab0
----
-281
-81
-881

query I rowsort
SELECT col2 * - ( - ( + col1 ) ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT - col2 * + 68 AS col0 FROM tab2
----
-1564
-2720
-3944

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6505
SELECT ALL + COUNT( * ) AS col2, + MAX( col2 ) DIV - 74 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-6505
SELECT ALL + COUNT ( * ) AS col2, + MAX ( col2 ) / - 74 FROM tab2
----
3
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1, + 76 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT DISTINCT + + MIN( ALL - col2 ) AS col1 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT + + MIN ( ALL - col2 ) AS col1 FROM tab2 cor0
----
-58

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * - col0 <> - + ( - 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 + + + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-6509
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 + + + CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6510
SELECT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL + SUM( - - col2 ) * + + 52 col1 FROM tab0
----
8112

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6511
SELECT ALL + SUM ( - - col2 ) * + + 52 col1 FROM tab0
----
8112

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT DISTINCT 72, 40 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
72
120

skipif mysql # not compatible
query II rowsort label-6512
SELECT DISTINCT 72, 40 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
72
120

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 52 <> NULL
----

query I rowsort
SELECT col2 * + col0 * + col1 FROM tab1 AS cor0
----
25075
290836
68544

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > + col0
----

query I rowsort
SELECT + col2 * 8 FROM tab2 AS cor0
----
184
320
464

query I rowsort
SELECT ALL + ( + col2 ) * - + col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + col2 * + - col2 + col0 FROM tab2
----
-1536
-3289
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - - COUNT( * ) + + 28 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6520
SELECT - - COUNT ( * ) + + 28 FROM tab1 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT - col1 + - CAST( + 29 AS SIGNED ) FROM tab1 AS cor0
----
-34
-43
-76

skipif mysql # not compatible
query I rowsort label-6521
SELECT - col1 + - CAST ( + 29 AS INTEGER ) FROM tab1 AS cor0
----
-34
-43
-76

query I rowsort
SELECT DISTINCT 65 * + + 17 + + col0 FROM tab2 AS cor0
----
1151
1169
1180

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1, col1 * + 44, - col0 * - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6524
SELECT DISTINCT - 87 DIV - + 88 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT - 87 / - + 88 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( - ( + col2 ) ) + + col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + 17 col1 FROM tab2 AS cor0
----
23
41
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT + 63 DIV 79 + + col2 + + 12 - + + col2 AS col2 FROM tab1 cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-6528
SELECT + 63 / 79 + + col2 + + 12 - + + col2 AS col2 FROM tab1 cor0
----
12
12
12

query II rowsort
SELECT ALL - col2 * - 52 + col2 AS col2, col2 + col2 FROM tab2 AS cor0
----
1219
46
2120
80
3074
116

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 81 * - col0 - + + col1, + col1 * - col0, + + ( - col1 ), + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6531
SELECT ALL + + 31 DIV col2 * + 64 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL + + 31 / col2 * + 64 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6532
SELECT DISTINCT CAST( + + 95 AS SIGNED ), col2 AS col2 FROM tab0
----
95
10
95
47
95
99

skipif mysql # not compatible
query II rowsort label-6532
SELECT DISTINCT CAST ( + + 95 AS INTEGER ), col2 AS col2 FROM tab0
----
95
10
95
47
95
99

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE - + col2 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT - col0 * + 74, col0 AS col1 FROM tab1
----
-3774
51
-6290
85
-6734
91

query I rowsort
SELECT + col2 * - 11 * - 22 AS col1 FROM tab2
----
14036
5566
9680

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 BETWEEN NULL AND + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) col2 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6537
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - COUNT( * ) * 65 AS col0 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-6538
SELECT - COUNT ( * ) * 65 AS col0 FROM tab0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT DISTINCT COUNT( + 59 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT COUNT ( + 59 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL - MIN( ALL 25 ) AS col2 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - MIN ( ALL 25 ) AS col2 FROM tab1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT + - COUNT( * ) * 40 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-360

skipif mysql # not compatible
query I rowsort label-6542
SELECT + - COUNT ( * ) * 40 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * 32 col1 FROM tab2
----
2432
2432
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT + - COUNT( * ) * - 2 AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6544
SELECT + - COUNT ( * ) * - 2 AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + - 25 * - col1 * - + 93 FROM tab2 AS cor0
----
-118575
-155775
-179025

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE - col1 = - - col2
----

query I rowsort
SELECT DISTINCT 27 * - 15 FROM tab0 cor0
----
-405

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - 44 + + 99 AS col1 FROM tab2
----
55
55
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 / col2 + - 90 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + - ( - + 47 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + - 9 * + col0 FROM tab2
----
-19044
-36864
-50625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6553
SELECT + 60 DIV - COUNT( - col2 ) col0 FROM tab0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6553
SELECT + 60 / - COUNT ( - col2 ) col0 FROM tab0
----
-20

query I rowsort
SELECT + 40 * + 17 FROM tab1 WHERE - 43 * col1 * ( 45 ) <= NULL
----

query I rowsort
SELECT ALL + 54 + - + 30 * - 89 FROM tab2 AS cor0
----
2724
2724
2724

query II rowsort
SELECT DISTINCT - - 73, col2 AS col2 FROM tab0 AS cor0
----
73
10
73
47
73
99

query I rowsort
SELECT col1 * - - 12 - 68 AS col2 FROM tab2 AS cor0
----
544
736
856

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( col2 NOT BETWEEN NULL AND NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 53 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 * - col1 col1, col1 AS col2 FROM tab1 AS cor0
----
-196
14
-2209
47
-25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT - - MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT - - MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT - SUM( DISTINCT + col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6562
SELECT - SUM ( DISTINCT + col1 ) AS col2 FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query II rowsort label-6563
SELECT - 9 AS col0, - ( - - col1 ) DIV - col2 + - col2 FROM tab0
----
-9
-46
-9
-8
-9
-99

skipif mysql # not compatible
query II rowsort label-6563
SELECT - 9 AS col0, - ( - - col1 ) / - col2 + - col2 FROM tab0
----
-9
-46
-9
-8
-9
-99

query I rowsort
SELECT DISTINCT ( col1 ) AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT + col2 AS col2, + col1 AS col2 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6566
SELECT ALL - 95, COUNT( + ( + + col2 ) ) col0 FROM tab1
----
-95
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6566
SELECT ALL - 95, COUNT ( + ( + + col2 ) ) col0 FROM tab1
----
-95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL + COUNT( * ) * + COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6567
SELECT ALL + COUNT ( * ) * + COUNT ( * ) col0 FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 24 IS NOT NULL
----

query I rowsort
SELECT - col1 * 51 FROM tab1
----
-2397
-255
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6570
SELECT ALL - - col0 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * + col2 + col0 * col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL - - col0 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * + col2 + col0 * col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL COUNT( * ) * + 58 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL COUNT ( * ) * + 58 FROM tab2
----
174

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query II rowsort
SELECT DISTINCT + 48 AS col2, - 1 FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
48
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6574
SELECT ALL - col1 AS col1, + ( + ( CAST( NULL AS SIGNED ) ) ) * col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-6574
SELECT ALL - col1 AS col1, + ( + ( CAST ( NULL AS INTEGER ) ) ) * col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 * - col0 >= NULL
----

query I rowsort
SELECT 43 * + col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + 57 - + col2 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT COUNT( * ) * - COUNT( ALL - col0 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT COUNT ( * ) * - COUNT ( ALL - col0 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

query II rowsort
SELECT + col1, + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + 66 * + + col2 + + 19 col2 FROM tab0 AS cor0
----
-13841
-251243
-6515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6581
SELECT + - col2 * + CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-6581
SELECT + - col2 * + CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT - ( + 87 ) AS col0 FROM tab2 cor0
----
-87
-87
-87

query II rowsort
SELECT DISTINCT col0, col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT - 35 + + col2 FROM tab1
----
24
33
61

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 * col2 AND col1 + 71
----

query I rowsort
SELECT + col1 + 76 FROM tab2 AS cor0
----
127
143
153

query I rowsort
SELECT + 56 * + col0 + + 48 + ( - col1 ) FROM tab1 AS cor0
----
2890
4803
5097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT - CAST( 82 AS SIGNED ) + + + 79 * - 54 * - - 56 FROM tab2 AS cor0
----
-238978
-238978
-238978

skipif mysql # not compatible
query I rowsort label-6588
SELECT - CAST ( 82 AS INTEGER ) + + + 79 * - 54 * - - 56 FROM tab2 AS cor0
----
-238978
-238978
-238978

query I rowsort
SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE - 83 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6590
SELECT ALL + - 46 AS col2, CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-46
59
-46
68
-46
96

skipif mysql # not compatible
query II rowsort label-6590
SELECT ALL + - 46 AS col2, CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-46
59
-46
68
-46
96

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - - col0 >= + col2 * col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT DISTINCT COUNT( * ) * + ( + COUNT( * ) ) * COUNT( + 66 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT COUNT ( * ) * + ( + COUNT ( * ) ) * COUNT ( + 66 ) FROM tab0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + - 82 col1, col2 AS col0 FROM tab2
----
-3772
23
-5248
40
-6150
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT COUNT( * ) * 40 AS col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-6594
SELECT COUNT ( * ) * 40 AS col1 FROM tab2 AS cor0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - + col0 * - - col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + - col1 * - + col1 - + ( col1 ) AS col0 FROM tab0 AS cor0
----
0
420
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT + - ( MAX( ALL col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6598
SELECT + - ( MAX ( ALL col2 ) ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ( + 65 ) FROM tab0
----
65
65
65

query I rowsort
SELECT ALL - ( - 79 ) AS col2 FROM tab2
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6601
SELECT col2 * col0 * col0 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT col2 * col0 * col0 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 46 * + col1 * - 71 AS col1 FROM tab1
----
-153502
-16330
-45724

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT DISTINCT col0 DIV 93 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT col0 / 93 FROM tab0
----
0
1

query I rowsort
SELECT ALL 73 * - col0 * + 42 AS col0 FROM tab0
----
-266742
-297402
-45990

query II rowsort
SELECT - col0 * - + 31 AS col1, 81 FROM tab2
----
1426
81
1984
81
2325
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6606
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT - CAST ( NULL AS REAL ) / - col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT DISTINCT ( - MAX( - col0 ) ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT ( - MAX ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6608
SELECT 68 DIV - - col2 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6608
SELECT 68 / - - col2 AS col2 FROM tab0
----
0
1
6

query I rowsort
SELECT DISTINCT - col0 + - + 30 FROM tab2
----
-105
-76
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL + - 17 + - COUNT( col0 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + - 17 + - COUNT ( col0 ) FROM tab0 AS cor0
----
-20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 46 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 49 + + + col0 AS col2 FROM tab0 AS cor0
----
136
146
64

query I rowsort
SELECT DISTINCT - 9 + + + col0 AS col0 FROM tab2 AS cor0
----
37
55
66

query I rowsort
SELECT ALL 8 + col0 FROM tab1 cor0
----
59
93
99

query I rowsort
SELECT DISTINCT + col0 + - + col2 AS col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + + COUNT( * ) + 23 col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6616
SELECT + + COUNT ( * ) + 23 col1 FROM tab0 AS cor0
----
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 89 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 3 * - 64 AS col2 FROM tab0
----
-192
-192
-192

query II rowsort
SELECT col2, - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 39 + - + col2, + col2 + col2 AS col1 FROM tab2 AS cor0
----
-62
46
-79
80
-97
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE 60 IS NOT NULL AND NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE 60 IS NOT NULL AND NULL IS NULL
----
3

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT col1 IS NULL
----
46
64
75

query II rowsort
SELECT ALL + + 61, - ( + + 59 ) * + 75 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
18 values hashing to c6698c6d11ef030e25c970a268c3a334

query I rowsort
SELECT DISTINCT - 34 * - 96 FROM tab1
----
3264

query I rowsort
SELECT ( - + col1 ) * + + 76 * + + 21 AS col0 FROM tab0
----
-129276
-1596
-33516

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ( - COUNT( + col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6626
SELECT ( - COUNT ( + col1 ) ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT 33 * - + col2 BETWEEN col1 AND + ( - 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 50, + ( + col0 ) FROM tab1 cor0
----
50
51
50
85
50
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 18 / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - col1 ) * - col1 * - 96 AS col0 FROM tab2 cor0
----
249696
430944
569184

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT + + COUNT( ALL + 92 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6631
SELECT DISTINCT + + COUNT ( ALL + 92 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT MAX( col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6632
SELECT MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6633
SELECT - MIN( DISTINCT - 63 ) DIV - - SUM( - 58 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6633
SELECT - MIN ( DISTINCT - 63 ) / - - SUM ( - 58 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - col0 * + + 69 FROM tab1 AS cor0
----
-3519
-5865
-6279

onlyif mysql # aggregate syntax: 
query II rowsort label-6635
SELECT COUNT( * ) AS col1, - SUM( ALL - 3 ) FROM tab0
----
3
9

skipif mysql # not compatible
query II rowsort label-6635
SELECT COUNT ( * ) AS col1, - SUM ( ALL - 3 ) FROM tab0
----
3
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6636
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN + + CAST( 12 AS SIGNED ) AND + + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6636
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN + + CAST ( 12 AS INTEGER ) AND + + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0, - col2 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6638
SELECT DISTINCT * FROM tab2 WHERE - + CAST( NULL AS SIGNED ) <> - 43 * col2 + + col1
----

skipif mysql # not compatible
query III rowsort label-6638
SELECT DISTINCT * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) <> - 43 * col2 + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( + - col0 ) BETWEEN - + 1 + 47 AND NULL
----
15
81
47

query III rowsort
SELECT * FROM tab0 WHERE NOT 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT - 38 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6641
SELECT - 38 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-41

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 46 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + + col0, col0 * col0 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT + CAST( - - 46 AS SIGNED ) AS col0 FROM tab2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-6644
SELECT + CAST ( - - 46 AS INTEGER ) AS col0 FROM tab2
----
46
46
46

query II rowsort
SELECT DISTINCT + - 43 + - - 54 AS col2, + col1 FROM tab1 AS cor0
----
11
14
11
47
11
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col1 ), + col0 col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT 79 + + ( - + col2 ) + - + col0 FROM tab2 AS cor0
----
-25
-54
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT + MIN( col0 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6648
SELECT + MIN ( col0 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6649
SELECT 27 + + - 85 DIV + col2, ( + col1 ) AS col0 FROM tab0
----
19
21
26
81
27
1

skipif mysql # not compatible
query II rowsort label-6649
SELECT 27 + + - 85 / + col2, ( + col1 ) AS col0 FROM tab0
----
19
21
26
81
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT ( ( + 39 ) ) + - COUNT( * ) col1 FROM tab0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6650
SELECT ( ( + 39 ) ) + - COUNT ( * ) col1 FROM tab0
----
36

query I rowsort
SELECT - 3 * + col2 + - col1 AS col0 FROM tab0
----
-222
-298
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6652
SELECT DISTINCT col2 DIV 6 + + 16 * - 51 + - - col0 AS col0 FROM tab2 AS cor0
----
-732
-746
-767

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT col2 / 6 + + 16 * - 51 + - - col0 AS col0 FROM tab2 AS cor0
----
-732
-746
-767

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT - MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6653
SELECT - MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT - + COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6654
SELECT - + COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - + col1 * col2 + - - ( + + col1 ) FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT col0 - - 89 AS col2 FROM tab2 AS cor0
----
135
153
164

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE col1 + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 IN ( + 99 )
----

query I rowsort
SELECT 41 AS col0 FROM tab1 WHERE NOT NULL IN ( 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT + MIN( 35 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-6660
SELECT + MIN ( 35 ) FROM tab0
----
35

query I rowsort
SELECT + ( 83 ) AS col0 FROM tab1
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT - 57 / + MAX( - col0 ) FROM tab1 WHERE col2 / 61 NOT BETWEEN NULL AND ( + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - 57 / + MAX ( - col0 ) FROM tab1 WHERE col2 / 61 NOT BETWEEN NULL AND ( + 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT DISTINCT MAX( ALL + 74 ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT MAX ( ALL + 74 ) AS col2 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT DISTINCT 69 + - SUM( DISTINCT col1 ) * 56 FROM tab0
----
-5699

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT 69 + - SUM ( DISTINCT col1 ) * 56 FROM tab0
----
-5699

query I rowsort
SELECT - 86 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-86
-86
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6666
SELECT ALL col1 FROM tab1 WHERE CAST( NULL AS DECIMAL ) IN ( - 89 )
----

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL col1 FROM tab1 WHERE CAST ( NULL AS REAL ) IN ( - 89 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE ( + 53 ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6668
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT 32 FROM tab2 WHERE NOT + 68 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT COUNT( * ) * - COUNT( DISTINCT + 73 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6670
SELECT COUNT ( * ) * - COUNT ( DISTINCT + 73 ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6671
SELECT col0 - - CAST( 53 AS SIGNED ) FROM tab0
----
140
150
68

skipif mysql # not compatible
query I rowsort label-6671
SELECT col0 - - CAST ( 53 AS INTEGER ) FROM tab0
----
140
150
68

query III rowsort
SELECT * FROM tab2 WHERE - col1 + - col2 IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE + 80 + 38 <= + col1
----

query III rowsort
SELECT * FROM tab0 WHERE col2 > - 46 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 50 * - 78 + + 87 FROM tab1
----
3987
3987
3987

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT + ( + 0 ) + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6676
SELECT + ( + 0 ) + COUNT ( * ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL + col2 * + col0 + + col1 AS col1 FROM tab2 WHERE 33 NOT BETWEEN col0 AND ( 42 )
----
1109
2637
4417

query I rowsort
SELECT + ( 59 ) + + col2 AS col1 FROM tab0
----
106
158
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 11 NOT IN ( + 94 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT - MIN( 44 ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6680
SELECT - MIN ( 44 ) AS col1 FROM tab1 AS cor0
----
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 74 NOT BETWEEN + col1 AND col2 * - 59 + + 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 * - col2 col0 FROM tab2 cor0
----
368
640
928

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 14 IN ( 87 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6684
SELECT DISTINCT + col1 DIV + 26 AS col2 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT + col1 / + 26 AS col2 FROM tab0 AS cor0
----
0
3

query I rowsort
SELECT + 64 * - 54 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 19 * 72 + - col0 FROM tab1
----
1277
1283
1317

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT DISTINCT + COUNT( * ) + 40 col0 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6687
SELECT DISTINCT + COUNT ( * ) + 40 col0 FROM tab2 AS cor0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6688
SELECT DISTINCT + + ( + COUNT( - ( + 20 ) ) ) * + CAST( NULL AS SIGNED ) + 73 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT + + ( + COUNT ( - ( + 20 ) ) ) * + CAST ( NULL AS INTEGER ) + 73 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 71 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6690
SELECT ALL - - ( COUNT( * ) ) DIV ( - 21 ) + 82 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL - - ( COUNT ( * ) ) / ( - 21 ) + 82 FROM tab2 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL + 50 * + 79 - COUNT( * ) AS col1 FROM tab1 cor0
----
3947

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL + 50 * + 79 - COUNT ( * ) AS col1 FROM tab1 cor0
----
3947

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NULL > ( + ( - 39 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT - COUNT( * ) + ( - COUNT( * ) ) * + 98 AS col0 FROM tab2 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-6693
SELECT - COUNT ( * ) + ( - COUNT ( * ) ) * + 98 AS col0 FROM tab2 cor0
----
-297

query I rowsort
SELECT DISTINCT col0 + col1 * + col2 AS col1 FROM tab1 cor0
----
1395
3287
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6695
SELECT ALL - 19 * col1 AS col2 FROM tab1 AS cor0 WHERE ( - col2 + col1 ) NOT IN ( ( + col1 ) - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL - 19 * col1 AS col2 FROM tab1 AS cor0 WHERE ( - col2 + col1 ) NOT IN ( ( + col1 ) - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 + 87 FROM tab0 cor0
----
102
174
184

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) IN ( col0 / + 75 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6699
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 33 * + col2 AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6699
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 33 * + col2 AND ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 * col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - col2 * - 55 ) OR NULL IS NULL
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT + CAST( + ( - col2 ) AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6701
SELECT + CAST ( + ( - col2 ) AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6702
SELECT DISTINCT ( - COUNT( * ) ) - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT ( - COUNT ( * ) ) - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6703
SELECT ALL CAST( + 46 AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
46
46
46

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL CAST ( + 46 AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
46
46
46

query I rowsort
SELECT ALL col0 + col1 FROM tab1 WHERE NOT 26 * 69 IS NULL
----
138
65
90

query I rowsort
SELECT DISTINCT 38 + + col0 * 72 FROM tab1
----
3710
6158
6590

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT - SUM( DISTINCT + - 59 ) - 82 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6706
SELECT - SUM ( DISTINCT + - 59 ) - 82 FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6707
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6708
SELECT + 6 DIV - col1 FROM tab0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-6708
SELECT + 6 / - col1 FROM tab0
----
-6
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6709
SELECT DISTINCT col2 * - 84 FROM tab2 AS cor0 WHERE + col1 * CAST( - col1 / - col2 AS SIGNED ) > - CAST( NULL AS SIGNED ) - col2 * col0
----

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT col2 * - 84 FROM tab2 AS cor0 WHERE + col1 * CAST ( - col1 / - col2 AS INTEGER ) > - CAST ( NULL AS INTEGER ) - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT DISTINCT + - SUM( + ( col2 ) ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT + - SUM ( + ( col2 ) ) AS col2 FROM tab2 cor0
----
-121

query I rowsort
SELECT ALL + + ( + 21 ) AS col0 FROM tab1 AS cor0
----
21
21
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 13 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - - SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6713
SELECT - - SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT + 49 - - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
130

skipif mysql # not compatible
query I rowsort label-6714
SELECT + 49 - - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 47 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT + + 55 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 81 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - 5 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6719
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6719
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 77 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + 34 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 90 * - 62 + col0 / + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - + col2
----

query I rowsort
SELECT + 9 + + col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT - - MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6724
SELECT - - MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
23

query II rowsort
SELECT - 96, + 44 AS col0 FROM tab0 AS cor0
----
-96
44
-96
44
-96
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT 10 DIV - + 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6726
SELECT 10 / - + 96 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT DISTINCT col0 DIV 81 FROM tab0 WHERE - 85 IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT col0 / 81 FROM tab0 WHERE - 85 IS NOT NULL
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT + MIN( ALL + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6728
SELECT + MIN ( ALL + col1 ) FROM tab1
----
5

query I rowsort
SELECT + col0 * - 43 AS col1 FROM tab2
----
-1978
-2752
-3225

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + 58 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL + MIN( + + col0 ) + + MAX( + ( ( + col0 ) ) ) + COUNT( * ) FROM tab1
----
145

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + MIN ( + + col0 ) + + MAX ( + ( ( + col0 ) ) ) + COUNT ( * ) FROM tab1
----
145

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT DISTINCT - 34 - 22 AS col1 FROM tab2 AS cor0 WHERE ( ( NOT NULL NOT IN ( 96 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT - - col2 - + 41 NOT IN ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT - - col2 - + 41 NOT IN ( col2 ) )
----
0

query I rowsort
SELECT ALL - - ( + + col2 ) + - - col2 * - col0 * + ( - 62 ) FROM tab2 AS cor0
----
158760
269758
65619

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 14 AND ( + ( + 5 ) )
----

query I rowsort
SELECT DISTINCT - ( + col0 ) + + 60 + - col2 FROM tab1 AS cor0
----
-84
-87
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ALL - - MIN( 24 ) + 5 + + + COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - - MIN ( 24 ) + 5 + + + COUNT ( * ) FROM tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT - ( - col2 ) + - 21 + 72 * - col0 AS col1 FROM tab0 AS cor0
----
-1054
-6275
-6906

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT + - ( + col1 ) + + - 26 DIV - 2 AS col1 FROM tab1 AS cor0
----
-1
-34
8

skipif mysql # not compatible
query I rowsort label-6740
SELECT + - ( + col1 ) + + - 26 / - 2 AS col1 FROM tab1 AS cor0
----
-1
-34
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( - - 82 ) IS NULL )
----

query I rowsort
SELECT ALL 3 * col1 FROM tab1
----
141
15
42

query I rowsort
SELECT DISTINCT col1 * + 14 AS col1 FROM tab1
----
196
658
70

query I rowsort
SELECT DISTINCT - col0 + 18 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
-1426
-16
-455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT DISTINCT col0 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND + 14
----

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT col0 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND + 14
----

query I rowsort
SELECT DISTINCT - + 49 + col0 AS col1 FROM tab2 AS cor0
----
-3
15
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + + col1 NOT IN ( - + col1 + + 29 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 - - - col0 + - 72 - + col1 * - + 83 FROM tab2 AS cor0
----
4161
5489
6319

query II rowsort
SELECT + col1 + + 36 + - - col1 AS col0, ( + col1 ) FROM tab0 cor0
----
198
81
38
1
78
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL + ( + MIN( + + col1 ) ) * + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL + ( + MIN ( + + col1 ) ) * + COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ALL + 83 * + - COUNT( * ) FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + 83 * + - COUNT ( * ) FROM tab0
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-6752
SELECT + 88 DIV - 64 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6752
SELECT + 88 / - 64 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL - col1 * 82 FROM tab2
----
-4182
-5494
-6314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6754
SELECT - COUNT( * ) DIV - COUNT( + col0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6754
SELECT - COUNT ( * ) / - COUNT ( + col0 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6755
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) < ( col0 * CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) / col0 + + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-6755
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) < ( col0 * CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) / col0 + + col2 ) )
----

query I rowsort
SELECT + 81 * - col1 * - - col1 FROM tab0 AS cor0
----
-35721
-531441
-81

query I rowsort
SELECT col1 * + col1 * + + 30 FROM tab0 AS cor0
----
13230
196830
30

query II rowsort
SELECT - 48, + col2 - - + 68 AS col1 FROM tab1 AS cor0
----
-48
127
-48
136
-48
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT COUNT( * ) * + + 12 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-6759
SELECT COUNT ( * ) * + + 12 FROM tab1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6760
SELECT DISTINCT - col2 DIV col1 DIV col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT - col2 / col1 / col0 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL NOT IN ( col0 + + 43 / + 65 ) ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( col0 - col1 IS NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6763
SELECT ALL MAX( col0 ) + - + 27 DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL MAX ( col0 ) + - + 27 / + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
100

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 IN ( + + col1 + col2 + + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + ( - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6766
SELECT - COUNT( * ) + - - 45 DIV 81 + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6766
SELECT - COUNT ( * ) + - - 45 / 81 + + COUNT ( * ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT 4 DIV - 92 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6767
SELECT 4 / - 92 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT col2, - col2 * + - col1 FROM tab2
----
23
1173
40
3080
58
3886

query II rowsort
SELECT ALL - 94 AS col0, + col2 + + col0 AS col1 FROM tab2
----
-94
104
-94
133
-94
69

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + col1 ) > 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 36 FROM tab1 WHERE - col1 IS NOT NULL
----
36
36
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + col1 IS NULL
----

query II rowsort
SELECT ALL + + col0, + 14 AS col2 FROM tab1 AS cor0
----
51
14
85
14
91
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 30 FROM tab1 WHERE NOT + 80 IN ( - col0, - col2 )
----
30

query I rowsort
SELECT - 2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 <= - ( + - 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT - COUNT( * ) + + COUNT( DISTINCT + 55 ) AS col1 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6778
SELECT - COUNT ( * ) + + COUNT ( DISTINCT + 55 ) AS col1 FROM tab1
----
-2

query I rowsort
SELECT + col1 * + + 58 * 26 FROM tab2 AS cor0
----
101036
116116
76908

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 89 * 45 IN ( + ( + - col1 ) )
----

query I rowsort
SELECT DISTINCT + 96 + - col0 * + - col2 * + col1 FROM tab1 cor0
----
25171
290932
68640

onlyif mysql # aggregate syntax: 
query II rowsort label-6782
SELECT ALL 2 - - ( + - MAX( ALL + col0 ) ) AS col2, - 37 FROM tab2 AS cor0
----
-73
-37

skipif mysql # not compatible
query II rowsort label-6782
SELECT ALL 2 - - ( + - MAX ( ALL + col0 ) ) AS col2, - 37 FROM tab2 AS cor0
----
-73
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42, col1 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
42
1
42
21
42
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6784
SELECT ALL - - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL - - AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 * + + 40 FROM tab2
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT MIN( DISTINCT - col2 ) col1 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6786
SELECT MIN ( DISTINCT - col2 ) col1 FROM tab1
----
-96

query II rowsort
SELECT col0 * ( col1 ), + 40 AS col0 FROM tab2
----
2346
40
4928
40
5025
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col0 FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL - COUNT( DISTINCT - col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - COUNT ( DISTINCT - col0 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT col2 * 25 FROM tab0
----
1175
2475
250

query I rowsort
SELECT ALL 30 * 77 FROM tab0
----
2310
2310
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT SUM( + - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6792
SELECT SUM ( + - col1 ) FROM tab2
----
-195

query I rowsort
SELECT DISTINCT 24 AS col1 FROM tab0 WHERE NOT + + col2 IS NULL
----
24

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab1 cor0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT ALL - col1 * + col2 + col2 DIV - col2 AS col0 FROM tab1 cor0
----
-1345
-296
-3197

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - col1 * + col2 + col2 / - col2 AS col0 FROM tab1 cor0
----
-1345
-296
-3197

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT ALL + - 99, 52 * COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
-99
0

skipif mysql # not compatible
query II rowsort label-6796
SELECT ALL + - 99, 52 * COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
-99
0

query II rowsort
SELECT 86, + col1 + + col1 AS col0 FROM tab0
----
86
162
86
2
86
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL COUNT( DISTINCT + + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL COUNT ( DISTINCT + + col1 ) FROM tab0
----
3

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE - col2 * + col2 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6801
SELECT 78, SUM( + col2 ) * SUM( ALL - col0 ) AS col2 FROM tab1
----
78
-50621

skipif mysql # not compatible
query II rowsort label-6801
SELECT 78, SUM ( + col2 ) * SUM ( ALL - col0 ) AS col2 FROM tab1
----
78
-50621

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL - 43 * COUNT( ALL ( - col1 ) ) AS col0 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - 43 * COUNT ( ALL ( - col1 ) ) AS col0 FROM tab2
----
-129

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 5 * - col2 ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 * - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT ALL + CAST( - col2 AS SIGNED ) + + 30 FROM tab0 AS cor0
----
-17
-69
20

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + CAST ( - col2 AS INTEGER ) + + 30 FROM tab0 AS cor0
----
-17
-69
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT + - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6806
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 69 * 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + 97, col2 FROM tab1 cor0
----
-97
59
-97
68
-97
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 + + col0 + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 70 AS col0 FROM tab2 AS cor0
----
46
70
64
70
75
70

query I rowsort
SELECT - - ( + col1 ) * - 61 + + 89 * col2 FROM tab1 AS cor0
----
3185
4946
7690

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT + MIN( + 19 ) FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6812
SELECT + MIN ( + 19 ) FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT DISTINCT SUM( - col0 ) + + + ( - MAX( - col2 ) ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col2 * col1, col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT SUM ( - col0 ) + + + ( - MAX ( - col2 ) ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col2 * col1, col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col0 FROM tab1
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT + - COUNT( * ) AS col1 FROM tab0 WHERE - ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6815
SELECT + - COUNT ( * ) AS col1 FROM tab0 WHERE - ( col2 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - 21 + - col2 * - + 97 BETWEEN - + ( col2 ) + 17 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT + 76 + COUNT( * ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-6817
SELECT + 76 + COUNT ( * ) FROM tab2
----
79

query I rowsort
SELECT DISTINCT + - 87 + col0 + + col1 AS col0 FROM tab1 cor0
----
-22
3
51

query I rowsort
SELECT col2 + + col1 + col0 - + col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6820
SELECT - COUNT( * ) + + ( + - 61 ) DIV + - 93 * 30 AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6820
SELECT - COUNT ( * ) + + ( + - 61 ) / + - 93 * 30 AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL + COUNT( * ) * + 24 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL + COUNT ( * ) * + 24 FROM tab2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6822
SELECT + col0 - - CAST( NULL AS SIGNED ) * + - col2 * - col0, + 99 AS col0 FROM tab0 AS cor0
----
NULL
99
NULL
99
NULL
99

skipif mysql # not compatible
query II rowsort label-6822
SELECT + col0 - - CAST ( NULL AS INTEGER ) * + - col2 * - col0, + 99 AS col0 FROM tab0 AS cor0
----
NULL
99
NULL
99
NULL
99

query II rowsort
SELECT - col1, col0 AS col2 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6825
SELECT - col2 AS col1, - col2 * + + col2 - - col1 + - 72 - - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-6825
SELECT - col2 AS col1, - col2 * + + col2 - - col1 + - 72 - - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col1 FROM tab2 cor0
----
62

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 75 BETWEEN col2 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - + col2 + - col0 AS col2 FROM tab0 WHERE NOT 70 + - - 56 * col2 BETWEEN NULL AND + 75 * - - col1
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL - COUNT( * ) * - 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL - COUNT ( * ) * - 2 FROM tab2
----
6

query I rowsort
SELECT DISTINCT - col2 * - 24 * 43 * + 93 FROM tab0
----
4510872
9501624
959760

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL + COUNT( - ( + col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL + COUNT ( - ( + col1 ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + ( - col1 ) IN ( + col1 * col2 * + col2, col2 + col1 )
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6834
SELECT - MAX( + + col0 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-6834
SELECT - MAX ( + + col0 ) / - COUNT ( * ) FROM tab0 AS cor0
----
32

query I rowsort
SELECT ( col2 ) * col1 FROM tab0 cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT DISTINCT col1 DIV + 35 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT col1 / + 35 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT - 77 * ( - col2 ) * - col0 FROM tab0
----
-54285
-66990
-739431

query I rowsort
SELECT - - 96 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL - 71 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT - 31 FROM tab0 WHERE NOT - ( + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6841
SELECT ALL col2, col1 + - 32 DIV + 66 AS col0 FROM tab2
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-6841
SELECT ALL col2, col1 + - 32 / + 66 AS col0 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT 3 + + col1 AS col0 FROM tab2 AS cor0
----
54
70
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6843
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + + ( + 37 ) + - COUNT( * ) + - + COUNT( * ) + ( + 87 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + + ( + 37 ) + - COUNT ( * ) + - + COUNT ( * ) + ( + 87 ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 54 / - col0 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6845
SELECT * FROM tab1 AS cor0 WHERE ( CAST( 28 AS DECIMAL ) - + - 78 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-6845
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( 28 AS REAL ) - + - 78 ) = NULL
----

query I rowsort
SELECT col2 + col0 + - + col0 * 13 FROM tab2 AS cor0
----
-529
-728
-842

query I rowsort
SELECT ALL + - col0 * - 97 + col2 AS col1 FROM tab1 AS cor0
----
5043
8304
8895

query I rowsort
SELECT - 63 + - + col0 FROM tab1 cor0
----
-114
-148
-154

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT COUNT( * ) * + - 3 AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6850
SELECT COUNT ( * ) * + - 3 AS col0 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT ALL col0 DIV 52 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL col0 / 52 AS col0 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6852
SELECT - 86 AS col0, SUM( + col0 ) * 90 AS col2 FROM tab2
----
-86
16650

skipif mysql # not compatible
query II rowsort label-6852
SELECT - 86 AS col0, SUM ( + col0 ) * 90 AS col2 FROM tab2
----
-86
16650

query III rowsort
SELECT * FROM tab0 WHERE 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * 81 * 82 FROM tab0
----
-577854
-644274
-99630

query III rowsort
SELECT * FROM tab2 WHERE ( + 17 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6856
SELECT DISTINCT 89 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 = + 39 + - + col0 + - 25 * col1 * + col2 * - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT 89 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 = + 39 + - + col0 + - 25 * col1 * + col2 * - - col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6857
SELECT ALL COUNT( * ) DIV + 53 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6857
SELECT ALL COUNT ( * ) / + 53 col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT - SUM( 53 ) * + 21 + + 77 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9940

skipif mysql # not compatible
query I rowsort label-6858
SELECT - SUM ( 53 ) * + 21 + + 77 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9940

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( 83 + 45 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + 73 ) col1, col2 FROM tab1 AS cor0
----
73
59
73
68
73
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6861
SELECT ALL * FROM tab1 AS cor0 WHERE ( + + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6861
SELECT ALL * FROM tab1 AS cor0 WHERE ( + + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT MAX( - col0 ) col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6862
SELECT MAX ( - col0 ) col2 FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT DISTINCT - COUNT( * ) * + ( + - 87 ) AS col2 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT - COUNT ( * ) * + ( + - 87 ) AS col2 FROM tab1
----
261

onlyif mysql # DIV for integer division: 
query II rowsort label-6864
SELECT + col2 AS col0, - 88 DIV 76 AS col1 FROM tab0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-6864
SELECT + col2 AS col0, - 88 / 76 AS col1 FROM tab0
----
10
-1
47
-1
99
-1

query II rowsort
SELECT - col2 AS col2, + 45 * - + 89 + + 4 AS col1 FROM tab2
----
-23
-4001
-40
-4001
-58
-4001

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT DISTINCT - ( - + 32 ) + + + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - ( - + 32 ) + + + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= 16 + + - col1 * + col1
----

query I rowsort
SELECT - col2 * + + 93 + - + ( - col0 ) FROM tab2 WHERE NOT ( NOT - col0 IS NOT NULL )
----
-2093
-3656
-5319

query I rowsort
SELECT ALL - 78 * - - col2 + 54 FROM tab2 AS cor0
----
-1740
-3066
-4470

query I rowsort
SELECT - - col2 + - col1 * + + col1 * - 90 FROM tab2 cor0
----
234113
404068
533650

query I rowsort
SELECT ALL - + ( 39 ) FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL + 54 * + COUNT( * ) * COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
483

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + 54 * + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
483

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 < ( + col2 + col1 )
----
51
14
96
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 14 + col1, + col0 col1 FROM tab1 AS cor0
----
19
85
28
51
61
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL 50 * - SUM( + ( + 0 ) ) * + ( + 80 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL 50 * - SUM ( + ( + 0 ) ) * + ( + 80 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT COUNT( - col1 ) * - - ( + COUNT( * ) ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6876
SELECT COUNT ( - col1 ) * - - ( + COUNT ( * ) ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT + COUNT( DISTINCT + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT ALL + col1 DIV - ( + + 93 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL + col1 / - ( + + 93 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT MAX( + 3 ) + 19 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6879
SELECT MAX ( + 3 ) + 19 FROM tab1
----
22

query II rowsort
SELECT DISTINCT col0 + + col1 * - col1, + col1 AS col2 FROM tab2
----
-2555
51
-4414
67
-5865
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT COUNT( * ) * - 53 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6881
SELECT COUNT ( * ) * - 53 FROM tab0 AS cor0
----
-159

query I rowsort
SELECT DISTINCT 72 + - col2 AS col2 FROM tab1 cor0
----
-24
13
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6883
SELECT DISTINCT + 95 DIV + 20 AS col2, - col1 * - 63 - col0 * + - col2 DIV - CAST( NULL AS SIGNED ) + + + ( - col0 ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4
NULL

skipif mysql # not compatible
query II rowsort label-6883
SELECT DISTINCT + 95 / + 20 AS col2, - col1 * - 63 - col0 * + - col2 / - CAST ( NULL AS INTEGER ) + + + ( - col0 ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4
NULL

query I rowsort
SELECT 18 FROM tab2 WHERE NOT ( + col0 * 6 IS NULL )
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT SUM( - ( + col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT SUM ( - ( + col2 ) ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query II rowsort
SELECT 61 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
61
-1
61
-21
61
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6888
SELECT - - 70 DIV + - 28 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6888
SELECT - - 70 / + - 28 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6889
SELECT DISTINCT - 20 DIV + col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT - 20 / + col0 FROM tab0 AS cor0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 32, col2 col0 FROM tab1 AS cor0
----
-32
59
-32
68
-32
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT DISTINCT - MIN( ALL - col2 ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6892
SELECT DISTINCT - MIN ( ALL - col2 ) col2 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT ( + - COUNT( * ) ) * + COUNT( * ) FROM tab2 WHERE NOT - CAST( + col2 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6893
SELECT ( + - COUNT ( * ) ) * + COUNT ( * ) FROM tab2 WHERE NOT - CAST ( + col2 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6894
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 93 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6894
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 93 col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT DISTINCT - CAST( - 26 AS SIGNED ) * - col2 FROM tab2
----
-1040
-1508
-598

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT - CAST ( - 26 AS INTEGER ) * - col2 FROM tab2
----
-1040
-1508
-598

query II rowsort
SELECT - ( + col0 ) AS col1, + 10 FROM tab0
----
-15
10
-87
10
-97
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col2 FROM tab1
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT - - MIN( ALL - 42 ) * 18 FROM tab2 AS cor0
----
-756

skipif mysql # not compatible
query I rowsort label-6898
SELECT - - MIN ( ALL - 42 ) * 18 FROM tab2 AS cor0
----
-756

query I rowsort
SELECT 29 AS col1 FROM tab1 cor0
----
29
29
29

query II rowsort
SELECT ALL - ( + col1 ), - col1 * + - 42 + + - col0 + - + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1
-9464
-21
-6774
-81
3162

query II rowsort
SELECT - col0 * ( + col2 ) AS col2, col2 FROM tab0
----
-705
47
-870
10
-9603
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT COUNT( + - col2 ) + - + 7 AS col2 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-6902
SELECT COUNT ( + - col2 ) + - + 7 AS col2 FROM tab2
----
-4

query I rowsort
SELECT - col0 + - - 39 AS col1 FROM tab0 cor0
----
-48
-58
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 58 + - 11 col2 FROM tab2 AS cor0
----
47

query I rowsort
SELECT ALL - 7 - + 88 FROM tab2 cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT + - col1 + - col0 * - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT DISTINCT + COUNT( * ) * - + 17 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT + COUNT ( * ) * - + 17 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT DISTINCT 19 - + SUM( DISTINCT - 25 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT 19 - + SUM ( DISTINCT - 25 ) FROM tab1 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT - 48 + - ( - COUNT( * ) ) * COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT - 48 + - ( - COUNT ( * ) ) * COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT + col2 * - - 85 FROM tab2
----
1955
3400
4930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6911
SELECT 30 DIV MIN( ALL col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6911
SELECT 30 / MIN ( ALL col2 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 21 * + + col2 + - + col1 * - 60 FROM tab2
----
3543
5238
5460

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / + 51 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * col2 * - col0 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6915
SELECT - 83 * COUNT( * ) * + 41 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT - 83 * COUNT ( * ) * + 41 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT ALL + 2 DIV + 35 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + 2 / + 35 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT DISTINCT + ( 44 ) DIV ( + 45 ) + + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT + ( 44 ) / ( + 45 ) + + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-6918
SELECT - ( col2 ) * col1 AS col0, 33 DIV + 51 FROM tab1 AS cor0
----
-1344
0
-295
0
-3196
0

skipif mysql # not compatible
query II rowsort label-6918
SELECT - ( col2 ) * col1 AS col0, 33 / + 51 FROM tab1 AS cor0
----
-1344
0
-295
0
-3196
0

query I rowsort
SELECT + col1 * + col1 * 10 AS col0 FROM tab0 cor0
----
10
4410
65610

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + + MIN( ALL 13 ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-6920
SELECT + + MIN ( ALL 13 ) FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT + + SUM( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6921
SELECT + + SUM ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6923
SELECT - CAST( + 91 AS SIGNED ) DIV - 69 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6923
SELECT - CAST ( + 91 AS INTEGER ) / - 69 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL col0 * + 66 AS col2 FROM tab1
----
3366
5610
6006

query I rowsort
SELECT DISTINCT col0 * + ( col1 ) AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6926
SELECT - 26, MIN( + + col0 ) AS col1 FROM tab0
----
-26
15

skipif mysql # not compatible
query II rowsort label-6926
SELECT - 26, MIN ( + + col0 ) AS col1 FROM tab0
----
-26
15

query I rowsort
SELECT ALL 45 + - 67 FROM tab2
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT - SUM( DISTINCT col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT - SUM ( DISTINCT col0 ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT + + 3 + - col2 AS col2 FROM tab1 AS cor0
----
-56
-65
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL 46 + ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL 46 + ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
43

query I rowsort
SELECT DISTINCT - col2 / + col2 / + 30 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN 30 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6932
SELECT + 32 + + + col2 DIV col2 DIV + CAST( - + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-6932
SELECT + 32 + + + col2 / col2 / + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6933
SELECT DISTINCT + COUNT( * ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6933
SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT DISTINCT - col1, + 31 + + col1 AS col2 FROM tab1 AS cor0
----
-14
45
-47
78
-5
36

query I rowsort
SELECT + col1 + - col1 + - + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 * - col1 + + + col2 FROM tab0
----
1262
1837
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT ALL col1 + + + CAST( + ( - + col2 ) AS SIGNED ) + + CAST( col1 AS SIGNED ) FROM tab2
----
114
76
79

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL col1 + + + CAST ( + ( - + col2 ) AS INTEGER ) + + CAST ( col1 AS INTEGER ) FROM tab2
----
114
76
79

query I rowsort
SELECT + 83 * + - col2 - col0 AS col0 FROM tab1 AS cor0
----
-4982
-5735
-8019

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + + col2 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6940
SELECT + CAST( NULL AS DECIMAL ) - 4 + 61 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT + CAST ( NULL AS REAL ) - 4 + 61 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col0 - + col2 AS col0 FROM tab1 AS cor0
----
366
4209
618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + + 94 + - col0 * - 62 col0, + 32 + - col2 * 83 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 17 + + col2 FROM tab0
----
116
27
64

query I rowsort
SELECT - 65 + - col0 AS col1 FROM tab1
----
-116
-150
-156

query III rowsort
SELECT * FROM tab1 WHERE col0 * col0 - - ( + 46 ) = + 46 * + - col1
----

query I rowsort
SELECT - 24 + + col2 + - col0 * - col1 * - col2 FROM tab0
----
-18284
-57082
-9528

query I rowsort
SELECT - 90 * + - col0 FROM tab1
----
4590
7650
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT ALL + COUNT( * ) * - 97 AS col1 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + COUNT ( * ) * - 97 AS col1 FROM tab0
----
-291

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 68 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + 89 AS col2 FROM tab0
----
1335
7743
8633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6951
SELECT DISTINCT + COUNT( * ) * - 15 DIV + + COUNT( * ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT + COUNT ( * ) * - 15 / + + COUNT ( * ) FROM tab2
----
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 * + col0 AS col2, col0 + + col2 AS col0 FROM tab2 AS cor0
----
1058
69
2560
104
4350
133

query I rowsort
SELECT DISTINCT + 92 * col2 AS col2 FROM tab0 AS cor0
----
4324
9108
920

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / 52 > - 47 * - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL - COUNT( * ) + 9 AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL - COUNT ( * ) + 9 AS col0 FROM tab1
----
6

query I rowsort
SELECT ( - 63 ) AS col1 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT DISTINCT + col0 + col0 DIV + - 45 - + col2 AS col0 FROM tab1 AS cor0
----
-46
21
25

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT + col0 + col0 / + - 45 - + col2 AS col0 FROM tab1 AS cor0
----
-46
21
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6960
SELECT ALL COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6961
SELECT - - col1 DIV - - 50 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6961
SELECT - - col1 / - - 50 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + + 65 + - 53 AS col2 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT - + 63 AS col1 FROM tab0 AS cor0 WHERE NULL > col1 - col2
----

query II rowsort
SELECT - 31, col1 AS col0 FROM tab1 AS cor0
----
-31
14
-31
47
-31
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - ( col2 ) + + col2 + + ( - 19 ) FROM tab0 AS cor0
----
10
-19
47
-19
99
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT - COUNT( * ) - CAST( NULL AS SIGNED ) + + 47 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT - COUNT ( * ) - CAST ( NULL AS INTEGER ) + + 47 FROM tab0
----
NULL

query II rowsort
SELECT - col0 * + 21 AS col2, - col0 + - - col1 AS col2 FROM tab2
----
-1344
13
-1575
-8
-966
5

query I rowsort
SELECT col0 * - 24 FROM tab0
----
-2088
-2328
-360

query I rowsort
SELECT - - 77 AS col0 FROM tab1 WHERE NOT + - 47 IS NULL
----
77
77
77

query I rowsort
SELECT + col2 * + 77 * ( - ( - col2 ) ) FROM tab0
----
170093
754677
7700

query I rowsort
SELECT ALL - col0 * + + col1 AS col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT DISTINCT - SUM( ALL 80 ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT - SUM ( ALL 80 ) FROM tab1
----
-240

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE - 56 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT DISTINCT + SUM( ALL - 7 ) * - 53 FROM tab1 AS cor0
----
1113

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT + SUM ( ALL - 7 ) * - 53 FROM tab1 AS cor0
----
1113

query II rowsort
SELECT DISTINCT - 65 AS col1, + 8 FROM tab0
----
-65
8

query II rowsort
SELECT ALL 86, col2 AS col2 FROM tab2
----
86
23
86
40
86
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT - 27 + + COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6979
SELECT - 27 + + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query I rowsort
SELECT + - ( + col2 ) * - - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + col0 + + - col1 + - ( - 92 ) + + - col2 * - ( + 16 ) FROM tab1 cor0
----
1116
1224
1665

query I rowsort
SELECT + 46 * - col1 FROM tab0 AS cor0
----
-3726
-46
-966

onlyif mysql # DIV for integer division: 
query II rowsort label-6983
SELECT 52 DIV 10, col2 FROM tab1
----
5
59
5
68
5
96

skipif mysql # not compatible
query II rowsort label-6983
SELECT 52 / 10, col2 FROM tab1
----
5
59
5
68
5
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL COUNT( DISTINCT + - 37 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL COUNT ( DISTINCT + - 37 ) AS col2 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT DISTINCT - MIN( - col0 ) + - 48 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT - MIN ( - col0 ) + - 48 FROM tab0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6987
SELECT - SUM( ALL - 30 ) DIV + 55 - - COUNT( * ) + - 54 AS col1 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6987
SELECT - SUM ( ALL - 30 ) / + 55 - - COUNT ( * ) + - 54 AS col1 FROM tab1 AS cor0
----
-50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - 49 <> NULL
----

query I rowsort
SELECT ALL - col1 + - - 80 FROM tab2 AS cor0
----
13
29
3

query I rowsort
SELECT DISTINCT + 44 + - col0 + col1 AS col0 FROM tab2 AS cor0
----
36
49
57

query I rowsort
SELECT + ( - col1 ) + col0 FROM tab1 cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT + MIN( DISTINCT + + col2 ) * + 9 FROM tab1 AS cor0
----
531

skipif mysql # not compatible
query I rowsort label-6992
SELECT + MIN ( DISTINCT + + col2 ) * + 9 FROM tab1 AS cor0
----
531

query I rowsort
SELECT DISTINCT + col2 + 7 + + - 71 * + + 30 AS col2 FROM tab2
----
-2065
-2083
-2100

query I rowsort
SELECT + col0 + + col0 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT - - 70 - ( ( + + COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6995
SELECT - - 70 - ( ( + + COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
67

query I rowsort
SELECT DISTINCT + 20 - 65 + 91 AS col0 FROM tab0 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ALL - - MAX( DISTINCT - col0 ) + - + COUNT( * ) col2 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6997
SELECT ALL - - MAX ( DISTINCT - col0 ) + - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT ALL + col0 - + CAST( NULL AS SIGNED ) + + - col2 + 12 / + - CAST( NULL AS SIGNED ) + - - col0 + col2 * + ( + ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL + col0 - + CAST ( NULL AS INTEGER ) + + - col2 + 12 / + - CAST ( NULL AS INTEGER ) + - - col0 + col2 * + ( + ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 + + + 98 AS col0 FROM tab1 AS cor0
----
13
47
7

query I rowsort
SELECT 99 + + - col0 AS col0 FROM tab0 AS cor0
----
12
2
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT + + COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7001
SELECT + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col1, + col0 * - 99 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7003
SELECT ALL + CAST( col0 AS DECIMAL ) AS col1 FROM tab1 WHERE NOT NULL = + col1
----

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL + CAST ( col0 AS REAL ) AS col1 FROM tab1 WHERE NOT NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL MAX( - 58 ) AS col0 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL MAX ( - 58 ) AS col0 FROM tab1
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT - 13 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL - MIN( DISTINCT - - 75 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL - MIN ( DISTINCT - - 75 ) FROM tab2 AS cor0
----
-75

query II rowsort
SELECT DISTINCT col0, col2 + + + col2 FROM tab1 AS cor0
----
51
192
85
118
91
136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7009
SELECT DISTINCT - 36 + + col0 + + + 34 * col0 * 11 + + + CAST( NULL AS SIGNED ) + - col0 AS col2, - 35 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - ( - col1 ), col0, - ( col2 ) * - col0, col2, + 27 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7009
SELECT DISTINCT - 36 + + col0 + + + 34 * col0 * 11 + + + CAST ( NULL AS INTEGER ) + - col0 AS col2, - 35 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - ( - col1 ), col0, - ( col2 ) * - col0, col2, + 27 )
----

query I rowsort
SELECT ALL col0 + - ( col0 ) FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7011
SELECT - CAST( + ( - col1 ) AS SIGNED ) + - + col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-7011
SELECT - CAST ( + ( - col1 ) AS INTEGER ) + - + col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + col2 * - 32 * 71 - - 85 * + col0 - + 36 + + col0 AS col0 FROM tab1 cor0
----
-126774
-146706
-213762

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7013
SELECT DISTINCT - + CAST( + - col0 AS SIGNED ) DIV + 83 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - + CAST ( + - col0 AS INTEGER ) / + 83 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT DISTINCT col0 DIV - - col2 col1 FROM tab2
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7014
SELECT DISTINCT col0 / - - col2 col1 FROM tab2
----
1
2

query I rowsort
SELECT - 15 * 67 AS col1 FROM tab2
----
-1005
-1005
-1005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7016
SELECT + COUNT( * ), + CAST( + - COUNT( * ) AS SIGNED ) col0 FROM tab2
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7016
SELECT + COUNT ( * ), + CAST ( + - COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
3
-3

query I rowsort
SELECT ALL - ( col1 ) + 69 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE - 17 NOT BETWEEN + col2 AND - - 45
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7019
SELECT + col2 DIV - - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-7019
SELECT + col2 / - - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT - col1 + 52 AS col2 FROM tab2
----
-15
-25
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 97 ) col1 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) * 38 AS col0 FROM tab2, tab2 AS cor0
----
9
342

skipif mysql # not compatible
query II rowsort label-7022
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * 38 AS col0 FROM tab2, tab2 AS cor0
----
9
342

query I rowsort
SELECT - col0 + + + col2 - col0 FROM tab2
----
-69
-88
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT ALL ( MAX( ALL - col2 ) ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL ( MAX ( ALL - col2 ) ) AS col2 FROM tab1
----
-59

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - + - col2 > col2
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - + 59
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7028
SELECT ALL - 94 DIV CAST( + 77 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - 94 / CAST ( + 77 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7029
SELECT 51 DIV col2 DIV - - ( col0 ), col2 col0 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7029
SELECT 51 / col2 / - - ( col0 ), col2 col0 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT - MAX( - 23 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7030
SELECT - MAX ( - 23 ) AS col2 FROM tab2 AS cor0
----
23

query II rowsort
SELECT + - col2 * - + col1, col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
210
10
3807
47
99
99

query I rowsort
SELECT ALL + ( - 70 ) AS col0 FROM tab2 AS cor0
----
-70
-70
-70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 74 * + col0 IS NOT NULL
----

query I rowsort
SELECT - 53 * - - col2 AS col1 FROM tab2
----
-1219
-2120
-3074

query I rowsort
SELECT + ( 43 ) FROM tab0
----
43
43
43

query I rowsort
SELECT 42 * - + col2 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT 60 * - COUNT( * ) AS col1 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-7037
SELECT 60 * - COUNT ( * ) AS col1 FROM tab2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT DISTINCT - ( + - COUNT( * ) ) * + SUM( ALL col1 ) col0 FROM tab1
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7038
SELECT DISTINCT - ( + - COUNT ( * ) ) * + SUM ( ALL col1 ) col0 FROM tab1
----
198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT DISTINCT - col1 DIV - + 7 AS col0 FROM tab1 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT - col1 / - + 7 AS col0 FROM tab1 AS cor0
----
0
2
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7041
SELECT DISTINCT + + 41, CAST( NULL AS SIGNED ) - - + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-7041
SELECT DISTINCT + + 41, CAST ( NULL AS INTEGER ) - - + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT + 81 - - 93 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
183

skipif mysql # not compatible
query I rowsort label-7042
SELECT + 81 - - 93 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
183

query I rowsort
SELECT DISTINCT - col1 + - + col1 + + - col0 AS col2 FROM tab2
----
-148
-209
-218

query I rowsort
SELECT DISTINCT - - col2 * + col1 + - 16 FROM tab1 cor0
----
1328
279
3180

query I rowsort
SELECT ALL - - ( + - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + - col2 + + 26 FROM tab0 AS cor0
----
-21
-73
16

query I rowsort
SELECT + ( + 64 ) AS col1 FROM tab0 AS cor0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab1 AS cor0
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * - + 48 col1 FROM tab2 AS cor0 WHERE col0 * ( + 32 ) * col1 IS NOT NULL
----
-624
-624
-624

query I rowsort
SELECT DISTINCT 94 + + col2 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL - + MIN( - col1 ) * 3 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL - + MIN ( - col1 ) * 3 FROM tab2 AS cor0
----
231

query I rowsort
SELECT col0 * - 67 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 col0, col1 col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT + 92 * - 84 + col1 FROM tab0 AS cor0
----
-7647
-7707
-7727

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7055
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7055
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT - SUM( 96 ) col2 FROM tab0
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7056
SELECT DISTINCT - SUM ( 96 ) col2 FROM tab0
----
-288

query I rowsort
SELECT ALL 59 + - 6 - + + ( - + col0 ) FROM tab1
----
104
138
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - 31 + COUNT( * ) AS col0 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-7058
SELECT - 31 + COUNT ( * ) AS col0 FROM tab0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT MIN( + col0 ) AS col2 FROM tab0 WHERE NOT - ( 83 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT MIN ( + col0 ) AS col2 FROM tab0 WHERE NOT - ( 83 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + - 36 * + - col1 AS col1 FROM tab0
----
3492
43740
65772

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT DISTINCT 43 - MAX( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT 43 - MAX ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT ALL col0 DIV - col1 - + + col2 + + col0 - + ( + 98 ) AS col2 FROM tab0 AS cor0
----
-130
-197
-25

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL col0 / - col1 - + + col2 + + col0 - + ( + 98 ) AS col2 FROM tab0 AS cor0
----
-130
-197
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - 98 ) col0, + 62 FROM tab1 AS cor0
----
-98
62
-98
62
-98
62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 / 34 + + + col1 <> NULL
----

query I rowsort
SELECT ALL - + 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7066
SELECT ALL CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT - col2 * - 56 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT DISTINCT - col1 * col1 + - 14 FROM tab0 AS cor0
----
-15
-455
-6575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7069
SELECT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - + CAST( ( + + 87 ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - + CAST ( ( + + 87 ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL + SUM( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL + SUM ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-7071
SELECT col1 DIV 6 AS col2 FROM tab0 AS cor0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-7071
SELECT col1 / 6 AS col2 FROM tab0 AS cor0
----
0
13
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7072
SELECT ALL 7 DIV - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL 7 / - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL >= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7075
SELECT - + ( COUNT( - 93 ) ) col2, - ( + - 89 ) AS col0 FROM tab0 cor0
----
-3
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7075
SELECT - + ( COUNT ( - 93 ) ) col2, - ( + - 89 ) AS col0 FROM tab0 cor0
----
-3
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT DISTINCT - col1 DIV - col0 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT - col1 / - col0 AS col2 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, + col1 * + col1 col2 FROM tab2 cor0
----
23
2601
40
5929
58
4489

query I rowsort
SELECT - + 42 * + 16 AS col0 FROM tab0 AS cor0
----
-672
-672
-672

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - + ( + col1 ) * - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT DISTINCT 17 * - + CAST( NULL AS SIGNED ) * 26 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT 17 * - + CAST ( NULL AS INTEGER ) * 26 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT COUNT( DISTINCT - + 30 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7081
SELECT COUNT ( DISTINCT - + 30 ) FROM tab0
----
1

query I rowsort
SELECT ALL 65 * - 48 FROM tab0
----
-3120
-3120
-3120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7083
SELECT ALL COUNT( * ) DIV 11 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL COUNT ( * ) / 11 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT ( + + col0 ) AS col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT - - CAST( + + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7085
SELECT - - CAST ( + + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT ALL + + MIN( + 44 ) DIV - - 71 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL + + MIN ( + 44 ) / - - 71 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT + 32 DIV + 89 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7088
SELECT + 32 / + 89 FROM tab0 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT NULL <= - 37
----

query I rowsort
SELECT DISTINCT col1 * + 7 FROM tab2
----
357
469
539

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7091
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
6

query I rowsort
SELECT ALL + col2 + - col2 - - - 88 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1512
3276
441

query II rowsort
SELECT DISTINCT - col1, - col1 * + - col1 AS col0 FROM tab1 AS cor0
----
-14
196
-47
2209
-5
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7094
SELECT DISTINCT + - 85 * + 82 * + COUNT( * ) + - - MAX( - + col1 ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-20961
3

skipif mysql # not compatible
query II rowsort label-7094
SELECT DISTINCT + - 85 * + 82 * + COUNT ( * ) + - - MAX ( - + col1 ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-20961
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT DISTINCT - COUNT( * ) AS col2, - 8 FROM tab2 AS cor0
----
-3
-8

skipif mysql # not compatible
query II rowsort label-7096
SELECT DISTINCT - COUNT ( * ) AS col2, - 8 FROM tab2 AS cor0
----
-3
-8

query II rowsort
SELECT DISTINCT - col2 - col0 * - col0, - col1 + + 60 AS col2 FROM tab2 AS cor0
----
2093
9
4056
-17
5567
-7

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab1 AS cor0 WHERE NOT - ( + - col1 ) + - col0 <> - + 45 * col2
----

query I rowsort
SELECT col0 * 66 AS col2 FROM tab1
----
3366
5610
6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT + COUNT( * ) DIV COUNT( * ) * - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7100
SELECT + COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7101
SELECT DISTINCT * FROM tab2 WHERE NOT 94 IN ( col2 - col0, col1 * - CAST( NULL AS DECIMAL ) * + - col0, + col2 )
----

skipif mysql # not compatible
query III rowsort label-7101
SELECT DISTINCT * FROM tab2 WHERE NOT 94 IN ( col2 - col0, col1 * - CAST ( NULL AS REAL ) * + - col0, + col2 )
----

query II rowsort
SELECT ALL + col1 AS col0, - 5 * - col0 FROM tab2
----
51
230
67
375
77
320

query I rowsort
SELECT ALL 82 * - col2 * + 17 + - - col1 FROM tab1
----
-133810
-82241
-94745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7104
SELECT ALL + CAST( NULL AS SIGNED ) + col2 + col2 + + 83 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 + col2 + + 83 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL 10 + + + ( COUNT( * ) ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL 10 + + + ( COUNT ( * ) ) AS col2 FROM tab0
----
13

query I rowsort
SELECT + col2 - - + col0 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL - - col1 - - + col2 + ( 31 ) + + col1 * col1 FROM tab2 AS cor0
----
2706
4645
6077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + 75 ) + - 68 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * + col0 col1 FROM tab0
----
1305
1455
225

query I rowsort
SELECT - 28 * + - col2 AS col2 FROM tab2
----
1120
1624
644

query I rowsort
SELECT DISTINCT - + col1 * + 88 AS col2 FROM tab2 cor0
----
-4488
-5896
-6776

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN + - 81 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 74 * + col0 < + col2 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7115
SELECT + col1 FROM tab2 AS cor0 WHERE NOT + col1 IN ( CAST( 18 AS SIGNED ), - col2 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7115
SELECT + col1 FROM tab2 AS cor0 WHERE NOT + col1 IN ( CAST ( 18 AS INTEGER ), - col2 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT + - AVG ( ALL 38 ) * - - 65 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 / + - ( + + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT + - AVG ( ALL 38 ) * - - 65 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 / + - ( + + col1 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( + 41 ) AS col1 FROM tab2 cor0
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-7118
SELECT + col0 DIV + 21 AS col1, + 52 FROM tab1 AS cor0
----
2
52
4
52
4
52

skipif mysql # not compatible
query II rowsort label-7118
SELECT + col0 / + 21 AS col1, + 52 FROM tab1 AS cor0
----
2
52
4
52
4
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7119
SELECT ALL - - CAST( COUNT( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL - - CAST ( COUNT ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + col1 FROM tab1 cor0 WHERE NOT - 98 >= + - col1
----
14
47
5

query I rowsort
SELECT + 60 * - - col1 FROM tab0 AS cor0
----
1260
4860
60

query I rowsort
SELECT DISTINCT - 16 * + col0 FROM tab0 AS cor0
----
-1392
-1552
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL - 63 * COUNT( * ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - 63 * COUNT ( * ) FROM tab2
----
-189

query I rowsort
SELECT DISTINCT + col1 * - + 20 FROM tab0
----
-1620
-20
-420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7125
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 47 * + col1 FROM tab2
----
2397
3149
3619

query II rowsort
SELECT + col2 * col1 / + 16 AS col2, - 1 * col0 FROM tab2 WHERE NOT - 13 * + col0 < - + col0 / - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * + 75 * + 68 * - + col1 col0 FROM tab1
----
-3355800
-357000
-999600

query I rowsort
SELECT AVG ( - - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - 1 + - - col2 * - 98 AS col1, + col1 col2 FROM tab0 AS cor0
----
-4592
81
-894
21
-9606
1

query I rowsort
SELECT col1 * col1 + - col1 * + col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7132
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7132
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 2 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 * + ( - col0 * col1 ) AS col2 FROM tab0
----
-158949
-18225
-9409

query III rowsort
SELECT * FROM tab0 WHERE NULL >= col1 * 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT COUNT( col1 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7135
SELECT COUNT ( col1 ) col1 FROM tab0
----
3

query I rowsort
SELECT 70 - + col2 FROM tab0
----
-29
23
60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 <> - ( col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 73 * 56 ) BETWEEN NULL AND + 87 * col1 - 91 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL 82 + + MAX( - ( col0 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL 82 + + MAX ( - ( col0 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 47 AS col1 FROM tab0 WHERE NOT ( 82 ) >= + 23 - 7
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7141
SELECT ALL COUNT( ALL CAST( NULL AS SIGNED ) ) * - MIN( 8 * 26 + + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL COUNT ( ALL CAST ( NULL AS INTEGER ) ) * - MIN ( 8 * 26 + + col0 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT CAST( col1 AS SIGNED ) - col0 AS col2 FROM tab0 WHERE NOT + 75 = NULL
----

skipif mysql # not compatible
query I rowsort label-7142
SELECT CAST ( col1 AS INTEGER ) - col0 AS col2 FROM tab0 WHERE NOT + 75 = NULL
----

query I rowsort
SELECT ( 82 ) AS col1 FROM tab2
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( + col0 ) col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT ALL col1 AS col0 FROM tab1 WHERE col2 IN ( - ( CAST( NULL AS SIGNED ) ) + - col1 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL col1 AS col0 FROM tab1 WHERE col2 IN ( - ( CAST ( NULL AS INTEGER ) ) + - col1 * + col1 )
----

query I rowsort
SELECT ALL + 52 - 42 FROM tab2
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7147
SELECT + 14 DIV + col1 AS col2 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7147
SELECT + 14 / + col1 AS col2 FROM tab1
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7148
SELECT + col1 * + col0 FROM tab0 WHERE NOT ( - CAST( - col1 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7148
SELECT + col1 * + col0 FROM tab0 WHERE NOT ( - CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7149
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT - col1 + - 35 NOT IN ( 90 )
----

skipif mysql # not compatible
query I rowsort label-7149
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT - col1 + - 35 NOT IN ( 90 )
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT DISTINCT col0 DIV + 2 FROM tab0
----
43
48
7

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT col0 / + 2 FROM tab0
----
43
48
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT - 7 + COUNT( * ) AS col2 FROM tab2 WHERE 57 IS NULL
----
-7

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - 7 + COUNT ( * ) AS col2 FROM tab2 WHERE 57 IS NULL
----
-7

query I rowsort
SELECT 11 * - 52 FROM tab0
----
-572
-572
-572

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7154
SELECT ALL * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) * col1 ) NOT BETWEEN 53 AND col2 + - col1
----

skipif mysql # not compatible
query III rowsort label-7154
SELECT ALL * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) * col1 ) NOT BETWEEN 53 AND col2 + - col1
----

query I rowsort
SELECT DISTINCT - ( col2 ) + + ( - 84 ) AS col1 FROM tab1
----
-143
-152
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT COUNT( - col1 ) AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7156
SELECT COUNT ( - col1 ) AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( NULL ) < + col2 * - col1
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT - COUNT( * ) DIV + SUM( - col1 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT - COUNT ( * ) / + SUM ( - col1 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 29 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * + col1 - ( 23 ) >= col0
----
29

query I rowsort
SELECT 54 FROM tab0 cor0 WHERE NOT ( - ( + ( + col1 ) ) ) NOT BETWEEN col1 AND col0 - col2
----

query I rowsort
SELECT ALL - + 58 AS col0 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT COUNT( * ) + 8 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) BETWEEN ( col1 + col1 * - col2 ) AND ( ( col1 ) )
----
8

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT COUNT ( * ) + 8 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) BETWEEN ( col1 + col1 * - col2 ) AND ( ( col1 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL + - ( - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 63 * + col0 FROM tab1 AS cor0
----
3213
5355
5733

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 21 + col2 <> - 60
----

query I rowsort
SELECT - ( + 68 ) * - col1 FROM tab1 AS cor0
----
3196
340
952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT ALL + CAST( - 92 AS SIGNED ) * + 29 FROM tab1
----
-2668
-2668
-2668

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL + CAST ( - 92 AS INTEGER ) * + 29 FROM tab1
----
-2668
-2668
-2668

query III rowsort
SELECT * FROM tab0 WHERE NOT 10 * 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7170
SELECT DISTINCT 11 DIV col1 * col2 AS col0 FROM tab1
----
0
118

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT 11 / col1 * col2 AS col0 FROM tab1
----
0
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT ALL - COUNT( * ) * - 98 AS col1 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL - COUNT ( * ) * - 98 AS col1 FROM tab1
----
294

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < ( - 9 )
----

query I rowsort
SELECT DISTINCT 57 + 0 - - col2 FROM tab2
----
115
80
97

query I rowsort
SELECT ALL - AVG ( ALL col1 ) AS col1 FROM tab1 WHERE ( col2 ) < ( col1 )
----
NULL

query I rowsort
SELECT ALL - col0 * - col1 * 88 FROM tab2
----
206448
433664
442200

query I rowsort
SELECT ALL col1 * col2 + 72 FROM tab1
----
1416
3268
367

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT + ( 76 ) + 14 * COUNT( * ) FROM tab1
----
118

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT + ( 76 ) + 14 * COUNT ( * ) FROM tab1
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7178
SELECT ALL 30 * 56 + - 97 + - MIN( DISTINCT - ( col1 ) + 87 * CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL 30 * 56 + - 97 + - MIN ( DISTINCT - ( col1 ) + 87 * CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

query I rowsort
SELECT ALL + 89 * + 51 + - col2 FROM tab1 AS cor0
----
4443
4471
4480

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 10 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT ALL + - 3 * 60 + MIN( 79 + ( col0 ) ) FROM tab0 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL + - 3 * 60 + MIN ( 79 + ( col0 ) ) FROM tab0 cor0
----
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7183
SELECT ALL + CAST( NULL AS DECIMAL ) * 53 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL + CAST ( NULL AS REAL ) * 53 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT DISTINCT + 79 * CAST( NULL AS SIGNED ) / - + 7 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT + 79 * CAST ( NULL AS INTEGER ) / - + 7 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT DISTINCT + 30 DIV 99 * + 67 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT + 30 / 99 * + 67 FROM tab1
----
0

query I rowsort
SELECT + 11 * col1 + ( col0 ) - + col0 AS col0 FROM tab1
----
154
517
55

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 45 + - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - 54 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7189
SELECT ALL - + 99 DIV MIN( col2 ) * - CAST( - 2 AS SIGNED ) FROM tab2 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL - + 99 / MIN ( col2 ) * - CAST ( - 2 AS INTEGER ) FROM tab2 cor0
----
-8

query I rowsort
SELECT DISTINCT + col2 + + - 16 AS col2 FROM tab2 AS cor0
----
24
42
7

query I rowsort
SELECT ALL 20 - - col2 FROM tab2 cor0
----
43
60
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col2 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) < + col0 - col0
----
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) < + col0 - col0
----
0

query I rowsort
SELECT DISTINCT col0 * + - ( 59 ) - col1 FROM tab1 AS cor0
----
-3023
-5020
-5416

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NULL = - - col2 OR - col1 / + col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT col1 + + 69 FROM tab1 AS cor0 WHERE ( + col0 ) NOT BETWEEN col0 / - 16 AND + 58
----
116
74

query I rowsort
SELECT ALL col1 - - 98 FROM tab1 AS cor0
----
103
112
145

query III rowsort
SELECT * FROM tab1 WHERE - - ( - col2 ) NOT IN ( col2 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7199
SELECT ALL + 20 * col2 - + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL + 20 * col2 - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 43 - + col1 FROM tab1
----
-4
29
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL MAX( + + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL MAX ( + + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT DISTINCT 49 DIV col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT 49 / col2 FROM tab2
----
0
1
2

query I rowsort
SELECT DISTINCT col0 + - + col2 + - col1 * + col2 * 60 FROM tab1
----
-17674
-191737
-80685

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * + col2 NOT IN ( col0 * - col1 + - col2 )
----

query I rowsort
SELECT 81 * + 61 AS col2 FROM tab0 AS cor0
----
4941
4941
4941

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT MAX( DISTINCT col1 ) * - - 9 + COUNT( * ) FROM tab0 AS cor0
----
732

skipif mysql # not compatible
query I rowsort label-7207
SELECT MAX ( DISTINCT col1 ) * - - 9 + COUNT ( * ) FROM tab0 AS cor0
----
732

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT MAX( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7208
SELECT MAX ( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT col1 * ( - ( col0 ) ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT + CAST( - AVG ( ALL + 77 ) AS SIGNED ) AS col0 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-7210
SELECT + CAST ( - AVG ( ALL + 77 ) AS INTEGER ) AS col0 FROM tab1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL MIN( - - col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL MIN ( - - col1 ) AS col0 FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 19 <> ( - col2 )
----

query II rowsort
SELECT ALL - col0 AS col1, + col2 AS col1 FROM tab2 cor0
----
-46
23
-64
40
-75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7214
SELECT + col0 DIV - - col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7214
SELECT + col0 / - - col0 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT - + col2, + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7216
SELECT 40 * - col0 DIV + col0 AS col1 FROM tab1 cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-7216
SELECT 40 * - col0 / + col0 AS col1 FROM tab1 cor0
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT - ( 47 ) DIV - + col1 - - col2 * - col0 AS col1 FROM tab1 cor0
----
-4893
-5006
-6187

skipif mysql # not compatible
query I rowsort label-7217
SELECT - ( 47 ) / - + col1 - - col2 * - col0 AS col1 FROM tab1 cor0
----
-4893
-5006
-6187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT DISTINCT col1 * - 18 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 = + col2
----

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT col1 * - 18 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT + - SUM( ALL + + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7219
SELECT + - SUM ( ALL + + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-7220
SELECT - + COUNT( * ) col1, 68 col2 FROM tab2 AS cor0
----
-3
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7220
SELECT - + COUNT ( * ) col1, 68 col2 FROM tab2 AS cor0
----
-3
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL + COUNT( * ) * - - 8 AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL + COUNT ( * ) * - - 8 AS col2 FROM tab0 AS cor0
----
24

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * col2 + - - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 - - 99 * - 4 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 44 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7225
SELECT ALL * FROM tab0 WHERE + col2 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7225
SELECT ALL * FROM tab0 WHERE + col2 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7226
SELECT ALL col1 AS col0, - col0 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7226
SELECT ALL col1 AS col0, - col0 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT COUNT( * ) * - 26 AS col0 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-7227
SELECT COUNT ( * ) * - 26 AS col0 FROM tab2
----
-78

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE + col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col2 + + - 87 AS col1 FROM tab2 AS cor0
----
-110
-127
-145

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 15 + + col0 )
----

query I rowsort
SELECT - + 71 + + - 75 * + - col1 AS col2 FROM tab2 AS cor0
----
3754
4954
5704

query I rowsort
SELECT - 38 + col1 + + 19 AS col1 FROM tab0 AS cor0
----
-18
2
62

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7233
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7233
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 69 * + 16 FROM tab1
----
1104

query I rowsort
SELECT DISTINCT - 30 + + col1 AS col2 FROM tab2
----
21
37
47

query II rowsort
SELECT ALL + ( - col2 ) * + 47 + 51 + + 1 AS col1, 38 + - - col2 FROM tab1
----
-2721
97
-3144
106
-4460
134

query I rowsort
SELECT - + 9 AS col1 FROM tab2 WHERE + col1 + - - col2 <> - - 29 * + col0
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 71 NOT IN ( - 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE - col1 * col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 * col1 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7240
SELECT ALL - + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 28 <> + ( 8 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6 - - - col1 col1, + 2 col0 FROM tab1 AS cor0
----
-11
2
-20
2
-53
2

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + - 3 BETWEEN NULL AND - 27
----

query I rowsort
SELECT DISTINCT - col1 + col1 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT - 16 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7245
SELECT - 16 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-13

query II rowsort
SELECT ALL 21 AS col0, 20 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
21
20
21
20
21
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 * - + 43 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT DISTINCT + + col0 * col2 * - 20 - + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT + + col0 * col2 * - 20 - + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 56 + + + col0 + - col2 * - col1 FROM tab1
----
1451
3343
436

query I rowsort
SELECT DISTINCT 74 * + + ( - + 14 ) AS col0 FROM tab0
----
-1036

query II rowsort
SELECT DISTINCT - 23, col0 + 48 AS col1 FROM tab1
----
-23
133
-23
139
-23
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 62 * - col1 + - 25 = ( - 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 71 + col2 * - + col0 IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col0, col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 65 IS NOT NULL
----

query II rowsort
SELECT ALL - 64 AS col1, + 35 FROM tab0
----
-64
35
-64
35
-64
35

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * col2 + + col2 < col2 * + col2 - ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7259
SELECT DISTINCT + col0, CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7259
SELECT DISTINCT + col0, CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT - - 54 FROM tab2 AS cor0 WHERE NOT + col1 * + 18 IS NOT NULL
----

query I rowsort
SELECT - - 8 * - col0 FROM tab2 AS cor0
----
-368
-512
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT - MIN( DISTINCT + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7262
SELECT - MIN ( DISTINCT + col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT DISTINCT - ( + - 65 ) DIV + - col2 + + 92 * + col2 FROM tab2
----
2114
3679
5335

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT - ( + - 65 ) / + - col2 + + 92 * + col2 FROM tab2
----
2114
3679
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT - SUM( ALL - + 51 ) AS col0 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7265
SELECT - SUM ( ALL - + 51 ) AS col0 FROM tab0 AS cor0
----
153

query I rowsort
SELECT DISTINCT - 32 + - col0 * + - col0 AS col0 FROM tab1 AS cor0
----
2569
7193
8249

query I rowsort
SELECT - 73 + - col0 AS col1 FROM tab1 cor0
----
-124
-158
-164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7268
SELECT 54 * - col1 + - col1 AS col0, col2 * CAST( - col1 AS SIGNED ) * - CAST( + 52 AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2585
15123472
-275
1303900
-770
3564288

skipif mysql # not compatible
query II rowsort label-7268
SELECT 54 * - col1 + - col1 AS col0, col2 * CAST ( - col1 AS INTEGER ) * - CAST ( + 52 AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2585
15123472
-275
1303900
-770
3564288

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 / - col2 * + - 75 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 24 + - ( 38 ) IN ( + col2 ) AND col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7271
SELECT * FROM tab1 WHERE ( - ( col1 ) + - col0 ) < - 44 + - 48 + CAST( - 13 AS SIGNED ) * + - 68 * col1 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7271
SELECT * FROM tab1 WHERE ( - ( col1 ) + - col0 ) < - 44 + - 48 + CAST ( - 13 AS INTEGER ) * + - 68 * col1 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - + 87 ) AS col2 FROM tab1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7273
SELECT + MIN( + col1 ) DIV + 74 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7273
SELECT + MIN ( + col1 ) / + 74 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7274
SELECT COUNT( * ), + 98 AS col0 FROM tab2
----
3
98

skipif mysql # not compatible
query II rowsort label-7274
SELECT COUNT ( * ), + 98 AS col0 FROM tab2
----
3
98

query I rowsort
SELECT DISTINCT - + col2 + - - 58 - - 72 FROM tab0 AS cor0
----
120
31
83

query I rowsort
SELECT + col0 - 96 AS col2 FROM tab2 AS cor0
----
-21
-32
-50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + - col1
----

query I rowsort
SELECT - col0 + 80 AS col1 FROM tab2
----
16
34
5

query I rowsort
SELECT DISTINCT - 20 * + col2 * - col0 AS col1 FROM tab0
----
14100
17400
192060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col2 col2 FROM tab2
----
117
125
74

query I rowsort
SELECT + 24 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT 22 + col0 FROM tab1
----
107
113
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7283
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( col0 AS SIGNED ) * + col0 + CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7283
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( col0 AS INTEGER ) * + col0 + CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7284
SELECT COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 + + 67 + col0 AS col0 FROM tab0 AS cor0
----
241
261
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7287
SELECT DISTINCT - 52 AS col2, MIN( + col2 ) FROM tab1 AS cor0
----
-52
59

skipif mysql # not compatible
query II rowsort label-7287
SELECT DISTINCT - 52 AS col2, MIN ( + col2 ) FROM tab1 AS cor0
----
-52
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT - + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7288
SELECT - + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + 87 AS col1, col0 AS col2 FROM tab0 AS cor0
----
87
15
87
87
87
97

query I rowsort
SELECT + + col0 AS col1 FROM tab2 cor0 WHERE NOT 62 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + col2 * + - 84 AS col2 FROM tab1
----
-4956
-5712
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT COUNT( DISTINCT + col1 ) * 56 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-7292
SELECT COUNT ( DISTINCT + col1 ) * 56 FROM tab1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL - COUNT( * ) * - MAX( DISTINCT 80 ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT 80 ) FROM tab1
----
240

query I rowsort
SELECT ALL + 97 * col2 FROM tab1
----
5723
6596
9312

query I rowsort
SELECT ALL col1 * 85 AS col1 FROM tab0
----
1785
6885
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT DISTINCT - COUNT( col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT - COUNT ( col2 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col2 * + 14 AS col1 FROM tab2
----
322
560
812

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL + 58 * COUNT( * ) + + COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL + 58 * COUNT ( * ) + + COUNT ( * ) FROM tab1
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT ALL - col2 DIV - - col2 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL - col2 / - - col2 AS col2 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 96 - - 50, ( 15 ) col1 FROM tab0 AS cor0 WHERE ( 34 * 93 > + col0 )
----
146
15

query II rowsort
SELECT + col2 AS col2, - 43 / - col2 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7305
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( ( - col0 ) AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7305
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( ( - col0 ) AS INTEGER ) AND NULL
----

query I rowsort
SELECT - col1 * + col1 + + + col0 * + 57 * - col0 AS col0 FROM tab2 cor0
----
-123213
-239401
-325114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT + CAST( 73 AS SIGNED ) FROM tab0 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-7307
SELECT + CAST ( 73 AS INTEGER ) FROM tab0 AS cor0
----
73
73
73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7310
SELECT + + CAST( NULL AS SIGNED ) * - + SUM( ALL + 34 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT + + CAST ( NULL AS INTEGER ) * - + SUM ( ALL + 34 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + + 30 AS col1 FROM tab0 AS cor0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT DISTINCT - MAX( DISTINCT - 10 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT - MAX ( DISTINCT - 10 ) FROM tab2 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + 35 * + col1 col1 FROM tab0
----
229
2865
909

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT ALL + MAX( + col2 ) + + MIN( ALL - ( + 29 ) ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL + MAX ( + col2 ) + + MIN ( ALL - ( + 29 ) ) FROM tab0
----
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 + col0 * 27 + col2 >= NULL
----

query I rowsort
SELECT - col1 + + + col0 * col1 FROM tab2
----
2295
4851
4958

query III rowsort
SELECT ALL * FROM tab1 WHERE 18 < NULL
----

query I rowsort
SELECT - col1 * col2 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT col2 * - col0 + + col0 AS col2 FROM tab0
----
-690
-783
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT ALL + - col1 + + - col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + - col1 + + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7321
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col2, col2 * - CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7321
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col2, col2 * - CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7322
SELECT DISTINCT 63 DIV + 23 + COUNT( * ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT 63 / + 23 + COUNT ( * ) FROM tab0 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7323
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + CAST( NULL AS SIGNED ) BETWEEN ( - 53 ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-7323
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + CAST ( NULL AS INTEGER ) BETWEEN ( - 53 ) AND - col0
----

query II rowsort
SELECT - col1 AS col2, 2 FROM tab0
----
-1
2
-21
2
-81
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT - - COUNT( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7325
SELECT - - COUNT ( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT ALL col1 * + 13 + col0 FROM tab2 cor0
----
1065
709
946

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT DISTINCT MAX( col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT + COUNT( + - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT + COUNT ( + - col0 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT - COUNT( ALL + - 10 ) * + 19 AS col2 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT - COUNT ( ALL + - 10 ) * + 19 AS col2 FROM tab0
----
-57

query I rowsort
SELECT DISTINCT 19 * + 63 AS col2 FROM tab2
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL MIN( DISTINCT - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL MIN ( DISTINCT - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT DISTINCT col1 DIV - - ( - + 58 ) AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT col1 / - - ( - + 58 ) AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT + 12 FROM tab2 WHERE NOT - col0 IS NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL COUNT( DISTINCT col0 ) * 39 AS col2 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL COUNT ( DISTINCT col0 ) * 39 AS col2 FROM tab1
----
117

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 29 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT DISTINCT MAX( ALL + + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT MAX ( ALL + + col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT 50 + - 91 + 54 + + + 89 * - + ( - 37 ) FROM tab0
----
3306
3306
3306

query I rowsort
SELECT ALL + 78 + - 72 AS col0 FROM tab0 AS cor0
----
6
6
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <> + 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < + ( col0 ) / - + col1 * + col2
----

query I rowsort
SELECT ALL - col1 * - + col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7344
SELECT DISTINCT + COUNT( * ) AS col2, ( - + 43 ) + + 91 FROM tab2
----
3
48

skipif mysql # not compatible
query II rowsort label-7344
SELECT DISTINCT + COUNT ( * ) AS col2, ( - + 43 ) + + 91 FROM tab2
----
3
48

query I rowsort
SELECT + col2 * 22 AS col2 FROM tab1
----
1298
1496
2112

query I rowsort
SELECT - 84 * col0 AS col0 FROM tab1 WHERE 77 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7347
SELECT - ( - col1 ) * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT - ( - col1 ) * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 55 AS col2 FROM tab2
----
-2530
-3520
-4125

query I rowsort
SELECT DISTINCT + col2 + + 88 AS col0 FROM tab2
----
111
128
146

query I rowsort
SELECT - 57 - + - 16 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT ALL + col1 + - col1 * - 32 FROM tab1 cor0
----
1551
165
462

query I rowsort
SELECT - col0 + + col2 + + col1 FROM tab2
----
28
50
53

onlyif mysql # DIV for integer division: 
query II rowsort label-7353
SELECT col0 DIV - 11 AS col0, + col1 FROM tab0
----
-1
81
-7
21
-8
1

skipif mysql # not compatible
query II rowsort label-7353
SELECT col0 / - 11 AS col0, + col1 FROM tab0
----
-1
81
-7
21
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + - 33 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7354
SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + - 33 >= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 30 <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= - col1 - - + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 2 + - - col1 BETWEEN - col0 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - 32 ) FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT col1 * + + col1 * col1 FROM tab1 AS cor0
----
103823
125
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL + COUNT( * ) * - 27 AS col0 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL + COUNT ( * ) * - 27 AS col0 FROM tab2
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col0 FROM tab2
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7362
SELECT - col0 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - SUM( 83 ) FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-7363
SELECT - SUM ( 83 ) FROM tab0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT COUNT( * ) + COUNT( * ) col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7364
SELECT COUNT ( * ) + COUNT ( * ) col0 FROM tab0 cor0
----
6

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
15
87
97

query I rowsort
SELECT + 63 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> ( + 92 )
----

query II rowsort
SELECT + 29 AS col2, + col1 FROM tab2 AS cor0
----
29
51
29
67
29
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT - + 58 + + ( - MIN( ALL + col2 ) ) FROM tab0 AS cor0 WHERE ( - 71 * - col1 ) <> ( - - col2 )
----
-68

skipif mysql # not compatible
query I rowsort label-7369
SELECT - + 58 + + ( - MIN ( ALL + col2 ) ) FROM tab0 AS cor0 WHERE ( - 71 * - col1 ) <> ( - - col2 )
----
-68

query I rowsort
SELECT DISTINCT - - col0 * - - 24 AS col1 FROM tab0 AS cor0
----
2088
2328
360

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7371
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) < + col2
----

skipif mysql # not compatible
query III rowsort label-7371
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) < + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT ALL + col1 DIV 36 + - + col2 DIV - col1 - 45 AS col2 FROM tab2 AS cor0
----
-43
-44
-44

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL + col1 / 36 + - + col2 / - col1 - 45 AS col2 FROM tab2 AS cor0
----
-43
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT - 88 + SUM( + - 4 ) FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-7373
SELECT - 88 + SUM ( + - 4 ) FROM tab2 AS cor0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL

query I rowsort
SELECT + col0 + - + 11 FROM tab2 AS cor0
----
35
53
64

query I rowsort
SELECT col0 * - col0 + - + ( col0 ) + col2 FROM tab0
----
-193
-7646
-9407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col2 FROM tab0
----
4
4
4

query III rowsort
SELECT * FROM tab0 WHERE + col2 >= 93
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT ( CAST( NULL AS SIGNED ) ) * - col1 + + col0 * - + col2 + + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT ( CAST ( NULL AS INTEGER ) ) * - col1 + + col0 * - + col2 + + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + + 27 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 WHERE + col0 / + + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7383
SELECT - col0 * + CAST( - - col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

skipif mysql # not compatible
query I rowsort label-7383
SELECT - col0 * + CAST ( - - col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7384
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 16 * + col2 * + col2 * + col1 IN ( - col2, + CAST( + - col0 AS SIGNED ), + col0, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7384
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 16 * + col2 * + col2 * + col1 IN ( - col2, + CAST ( + - col0 AS INTEGER ), + col0, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2 AS col1, - 14 AS col1 FROM tab0 AS cor0
----
10
-14
47
-14
99
-14

query I rowsort
SELECT ALL - ( + 20 ) AS col1 FROM tab0 AS cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > 4 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT + - CAST( - col2 AS SIGNED ) * - - col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-7388
SELECT + - CAST ( - col2 AS INTEGER ) * - - col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - MAX( ALL - 65 ) AS col2 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7389
SELECT - MAX ( ALL - 65 ) AS col2 FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7390
SELECT 71 * + CAST( NULL AS SIGNED ) + - - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7390
SELECT 71 * + CAST ( NULL AS INTEGER ) + - - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT + COUNT( * ) col2 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7391
SELECT + COUNT ( * ) col2 FROM tab1, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT ALL - COUNT( * ) FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL - COUNT ( * ) FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + ( + col0 ) + + 66 AS col2 FROM tab2
----
112
130
141

query I rowsort
SELECT - col0 * - 69 - - col2 FROM tab1 cor0
----
3615
5924
6347

onlyif mysql # DIV for integer division: 
query II rowsort label-7395
SELECT DISTINCT + - 39 * - 48 AS col1, 75 DIV - col0 AS col1 FROM tab2 AS cor0
----
1872
-1

skipif mysql # not compatible
query II rowsort label-7395
SELECT DISTINCT + - 39 * - 48 AS col1, 75 / - col0 AS col1 FROM tab2 AS cor0
----
1872
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 53 * - col1 / + 56 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 53 * - col1 / + 56 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL - COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT + 6 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT + 6 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - 88 * 30 + - + 31 FROM tab2
----
-2671
-2671
-2671

query II rowsort
SELECT - 94 + - col1 + 13, col0 FROM tab2 AS cor0
----
-132
46
-148
75
-158
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7402
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT + MAX( ALL + 41 ) col1 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7403
SELECT DISTINCT + MAX ( ALL + 41 ) col1 FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL - + COUNT( * ) + + + 78 + + 96 - + - MIN( + + col0 ) AS col2 FROM tab2 AS cor0
----
217

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - + COUNT ( * ) + + + 78 + + 96 - + - MIN ( + + col0 ) AS col2 FROM tab2 AS cor0
----
217

query I rowsort
SELECT DISTINCT - ( - 18 ) - 13 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - 73 FROM tab0 AS cor0 WHERE 37 * ( 97 ) * + 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7407
SELECT ALL + col1, - CAST( NULL AS SIGNED ) + - - ( + col1 ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7407
SELECT ALL + col1, - CAST ( NULL AS INTEGER ) + - - ( + col1 ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - - col0
----

query I rowsort
SELECT ALL 64 + - + col1 FROM tab0
----
-17
43
63

query I rowsort
SELECT 85 - + ( col0 ) FROM tab0
----
-12
-2
70

query I rowsort
SELECT + col1 - + - col1 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT 11 AS col0 FROM tab0 WHERE NULL > - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7413
SELECT DISTINCT col1 + - col1 DIV + 40 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT col1 + - col1 / + 40 FROM tab2
----
50
66
76

query I rowsort
SELECT 26 - + col0 AS col0 FROM tab2
----
-20
-38
-49

query I rowsort
SELECT - col2 + + ( ( + - col0 ) ) FROM tab0 WHERE ( + col0 ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7416
SELECT + 33 * + col1 AS col2, col2 * + CAST( - col0 AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 25
----

skipif mysql # not compatible
query II rowsort label-7416
SELECT + 33 * + col1 AS col2, col2 * + CAST ( - col0 AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 25
----

query I rowsort
SELECT DISTINCT + col2 - - col0 * col1 AS col1 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT ALL - col1 DIV + + col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL - col1 / + + col1 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7419
SELECT ALL + - col2 DIV col0 col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7419
SELECT ALL + - col2 / col0 col1 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col1 + - 18 )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7422
SELECT + CAST( + col0 AS SIGNED ) AS col2, ( - + ( - col0 ) ) - + col0 AS col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-7422
SELECT + CAST ( + col0 AS INTEGER ) AS col2, ( - + ( - col0 ) ) - + col0 AS col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL + MIN( DISTINCT 73 ) AS col0 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL + MIN ( DISTINCT 73 ) AS col0 FROM tab0 AS cor0
----
73

query I rowsort
SELECT ALL + 39 AS col2 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT 69 DIV - + col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7425
SELECT 69 / - + col2 AS col1 FROM tab1
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND + col0
----

query II rowsort
SELECT ALL col2, - col0 - - col1 FROM tab2
----
23
5
40
13
58
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT - COUNT( + 99 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT - COUNT ( + 99 ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7429
SELECT ALL - COUNT( CAST( col0 AS SIGNED ) ) * - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL - COUNT ( CAST ( col0 AS INTEGER ) ) * - COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + + col1
----

query I rowsort
SELECT - col2 + + + 66 AS col2 FROM tab1 AS cor0
----
-2
-30
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT DISTINCT + COUNT( * ) + - 78 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT + COUNT ( * ) + - 78 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT + - 70 * + MIN( ALL - 9 ) + 98 AS col1 FROM tab0 AS cor0
----
728

skipif mysql # not compatible
query I rowsort label-7433
SELECT + - 70 * + MIN ( ALL - 9 ) + 98 AS col1 FROM tab0 AS cor0
----
728

query I rowsort
SELECT + ( + col0 ) - + col1 FROM tab2 cor0
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7435
SELECT + 63 - - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col1 FROM tab0 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7435
SELECT + 63 - - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL
3

query II rowsort
SELECT ALL - - col1 - - col0, col0 FROM tab2 AS cor0
----
141
64
142
75
97
46

query I rowsort
SELECT + - ( - 24 ) - + - 65 AS col1 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT 29 + ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-52
28
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 13 IS NULL
----

query I rowsort
SELECT - + col2 * + - col2 + - - col1 + 23 * - 31 AS col2 FROM tab0 cor0
----
-592
1577
9089

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7441
SELECT DISTINCT ( + CAST( - col1 AS SIGNED ) ) + - 89 AS col0, col1 AS col0 FROM tab2 AS cor0
----
-140
51
-156
67
-166
77

skipif mysql # not compatible
query II rowsort label-7441
SELECT DISTINCT ( + CAST ( - col1 AS INTEGER ) ) + - 89 AS col0, col1 AS col0 FROM tab2 AS cor0
----
-140
51
-156
67
-166
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL - SUM( - - 5 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL - SUM ( - - 5 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + + ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - + col1 * - col1 - ( + 14 ) - 75 - col2
----

query I rowsort
SELECT ( col1 ) + - - col1 * + col1 FROM tab2
----
2652
4556
6006

query II rowsort
SELECT DISTINCT + 10 AS col1, - col0 AS col0 FROM tab0 WHERE NOT ( + col0 ) > NULL
----

query I rowsort
SELECT col0 * - col2 * ( + col0 ) FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL + col2 * col1 * 8 * - col0 FROM tab2
----
-1576960
-2331600
-431664

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT COUNT( 94 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7448
SELECT COUNT ( 94 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT + 42 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7449
SELECT + 42 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 * + col0 * + + col2 * + ( + + col1 ) FROM tab2 AS cor0
----
-12615680
-21858750
-2482068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7451
SELECT AVG ( ALL + 45 ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT AVG ( ALL + 45 ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE - 56 * col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE - 56 * col0 IS NULL
----
0

query I rowsort
SELECT - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ( ( + COUNT( * ) ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7454
SELECT ( ( + COUNT ( * ) ) ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7455
SELECT - CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT + col0 * + 69 FROM tab1 AS cor0
----
3519
5865
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col1 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT SUM( 52 ) col0 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7458
SELECT DISTINCT SUM ( 52 ) col0 FROM tab1 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT + + col0 DIV ( + 20 ) + + col1 + - 43 AS col2 FROM tab2 AS cor0
----
10
27
37

skipif mysql # not compatible
query I rowsort label-7459
SELECT + + col0 / ( + 20 ) + + col1 + - 43 AS col2 FROM tab2 AS cor0
----
10
27
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT - ( COUNT( + - col1 ) ) + - 70 FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7460
SELECT - ( COUNT ( + - col1 ) ) + - 70 FROM tab2 cor0
----
-73

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab0 AS cor0 WHERE ( - - col2 ) <= + 85
----
-21
-81

query III rowsort
SELECT * FROM tab2 WHERE col0 IS NULL OR ( NOT col1 * - + 67 <> + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT MIN( ALL + ( + + col1 ) ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7463
SELECT MIN ( ALL + ( + + col1 ) ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT + MIN( - + col0 ) AS col1 FROM tab0 WHERE col2 < - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + MIN ( - + col0 ) AS col1 FROM tab0 WHERE col2 < - 44
----
NULL

query II rowsort
SELECT ALL 19 + - col2, + col2 AS col2 FROM tab1
----
-40
59
-49
68
-77
96

query III rowsort
SELECT ALL * FROM tab2 WHERE + 62 * col0 / - + 10 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + ( + MAX( + + ( col1 ) ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7467
SELECT + ( + MAX ( + + ( col1 ) ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT - col0 + + - 16 FROM tab1
----
-101
-107
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL + 73 + - - COUNT( * ) + + 29 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
111

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + 73 + - - COUNT ( * ) + + 29 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT CAST( NULL AS SIGNED ) + - 12 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT CAST ( NULL AS INTEGER ) + - 12 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT - col0 + - 17 + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT - col0 + - 17 + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( - 91 ) * + col2 + - ( - col1 ) FROM tab0
----
4358
9010
931

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + + 55 * COUNT( ALL 56 ) AS col2 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + + 55 * COUNT ( ALL 56 ) AS col2 FROM tab1 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT - MAX( DISTINCT - 22 ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7475
SELECT - MAX ( DISTINCT - 22 ) FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT + 91 - col2 FROM tab2 AS cor0
----
33
51
68

query I rowsort
SELECT DISTINCT + 66 * + ( 89 ) * + col1 AS col0 FROM tab0
----
123354
475794
5874

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN NULL AND + 65
----

query I rowsort
SELECT + col0 * - - ( - - col1 ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - col2 - col0 FROM tab2 AS cor0 WHERE - 66 * + - 59 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7481
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 85 - 67 > CAST( 51 AS SIGNED ) - + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7481
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 85 - 67 > CAST ( 51 AS INTEGER ) - + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT ALL - + 58 * - 33 / 13 * + + col1 + - 22 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( - 0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - + 58 * - 33 / 13 * + + col1 + - 22 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( - 0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab0 AS cor0 WHERE ( col2 <> + 12 * + col2 )
----
-108
-96
-98

query I rowsort
SELECT + 86 FROM tab1 cor0 WHERE NOT - 41 IS NULL
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL - + MAX( + col0 ) * 99 * + 34 FROM tab2 AS cor0
----
-252450

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL - + MAX ( + col0 ) * 99 * + 34 FROM tab2 AS cor0
----
-252450

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT + COUNT( * ) * 76 * + + 10 FROM tab1 AS cor0
----
2280

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT + COUNT ( * ) * 76 * + + 10 FROM tab1 AS cor0
----
2280

query I rowsort
SELECT DISTINCT - 78 * col1 AS col1 FROM tab1 AS cor0
----
-1092
-3666
-390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7488
SELECT + - 28 DIV COUNT( * ) + + 3 + - COUNT( * ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7488
SELECT + - 28 / COUNT ( * ) + + 3 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-9

query II rowsort
SELECT DISTINCT + - 10 * + col2 + + - 61, 80 AS col1 FROM tab1 AS cor0
----
-1021
80
-651
80
-741
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT ALL 98 DIV - 66 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL 98 / - 66 AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT - MIN( + + col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7491
SELECT - MIN ( + + col2 ) AS col2 FROM tab2
----
-23

query II rowsort
SELECT DISTINCT + 33, col0 FROM tab2
----
33
46
33
64
33
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT - MIN( ALL + col1 ) * COUNT( * ) AS col1 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT - MIN ( ALL + col1 ) * COUNT ( * ) AS col1 FROM tab2
----
-153

query I rowsort
SELECT ALL - col1 + ( 35 ) + + - col2 + + col0 FROM tab1
----
-24
11
56

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL NOT BETWEEN col0 * + col0 AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + 25 * - - col2 * + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7498
SELECT ALL + COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL + COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col1 - - + col1 AS col0 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT + + COUNT( * ) * 44 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
396

skipif mysql # not compatible
query I rowsort label-7500
SELECT + + COUNT ( * ) * 44 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT + ( COUNT( * ) ) + + + COUNT( DISTINCT - col2 ) * - MIN( + col2 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT + ( COUNT ( * ) ) + + + COUNT ( DISTINCT - col2 ) * - MIN ( + col2 ) FROM tab0
----
-27

query I rowsort
SELECT + col1 * - - 80 - - - col0 + + 10 AS col1 FROM tab2 cor0
----
4044
5295
6106

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT - COUNT( ALL col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7503
SELECT - COUNT ( ALL col0 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT 97, col0 FROM tab2
----
97
46
97
64
97
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) < 6 * - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 24 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, 89 FROM tab0
----
15
89
87
89
97
89

query I rowsort
SELECT DISTINCT + + 34 AS col2 FROM tab2 WHERE NOT col0 + 44 BETWEEN + col2 - + 14 * col2 AND + - ( - col0 )
----
34

query II rowsort
SELECT DISTINCT col0 AS col1, col1 + + + col2 FROM tab1
----
51
110
85
64
91
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT - COUNT( * ) * 15 * - COUNT( * ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-7510
SELECT - COUNT ( * ) * 15 * - COUNT ( * ) FROM tab0
----
135

query I rowsort
SELECT + 64 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + - 60 AS col0 FROM tab0 AS cor0
----
-60

query II rowsort
SELECT 95, - 17 + - 95 AS col1 FROM tab1 AS cor0
----
95
-112
95
-112
95
-112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7514
SELECT ALL + col0 AS col2, col1 * + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
-196
85
-25
91
-2209

skipif mysql # not compatible
query II rowsort label-7514
SELECT ALL + col0 AS col2, col1 * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
-196
85
-25
91
-2209

onlyif mysql # DIV for integer division: 
query I rowsort label-7515
SELECT 16 DIV + 38 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7515
SELECT 16 / + 38 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7516
SELECT DISTINCT - COUNT( * ) + - + COUNT( * ) DIV + + ( - 73 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * ) / + + ( - 73 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT - CAST( NULL AS SIGNED ) + + ( COUNT( * ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT - CAST ( NULL AS INTEGER ) + + ( COUNT ( * ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT + COUNT( * ) * + + 38 * - 33 + 99 FROM tab1 cor0
----
-3663

skipif mysql # not compatible
query I rowsort label-7518
SELECT + COUNT ( * ) * + + 38 * - 33 + 99 FROM tab1 cor0
----
-3663

query I rowsort
SELECT ALL - 69 + + col1 AS col0 FROM tab2 AS cor0
----
-18
-2
8

query I rowsort
SELECT DISTINCT + - 16 + col0 FROM tab2 AS cor0
----
30
48
59

query II rowsort
SELECT DISTINCT - col2 * 97, + col2 AS col0 FROM tab0 cor0
----
-4559
47
-9603
99
-970
10

query I rowsort
SELECT ALL col1 * - 57 AS col1 FROM tab1 AS cor0
----
-2679
-285
-798

onlyif mysql # DIV for integer division: 
query I rowsort label-7523
SELECT ALL col2 + - 22 + - col1 DIV + + col2 * + - col2 DIV + + 25 FROM tab1
----
37
46
74

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL col2 + - 22 + - col1 / + + col2 * + - col2 / + + 25 FROM tab1
----
37
46
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 = col1 / + ( 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 WHERE NOT + 32 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL 26 * + col1 AS col1 FROM tab0
----
2106
26
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT + CAST( + 38 AS SIGNED ) AS col2 FROM tab0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-7527
SELECT + CAST ( + 38 AS INTEGER ) AS col2 FROM tab0
----
38
38
38

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - 94 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT - col1 DIV - col1 col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7529
SELECT - col1 / - col1 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT 17 * + + 25 FROM tab0
----
425
425
425

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT + 59 DIV - col1 FROM tab0
----
-2
-59
0

skipif mysql # not compatible
query I rowsort label-7531
SELECT + 59 / - col1 FROM tab0
----
-2
-59
0

query I rowsort
SELECT - 92 FROM tab2 WHERE + col2 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7534
SELECT col1 col2, 47 DIV - 25 AS col2 FROM tab2
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7534
SELECT col1 col2, 47 / - 25 AS col2 FROM tab2
----
51
-1
67
-1
77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT 59 * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7535
SELECT 59 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7537
SELECT DISTINCT + 60, col1 * col0 / + CAST( NULL AS SIGNED ) * - - 45 AS col2 FROM tab0 AS cor0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7537
SELECT DISTINCT + 60, col1 * col0 / + CAST ( NULL AS INTEGER ) * - - 45 AS col2 FROM tab0 AS cor0
----
60
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 82 IS NOT NULL
----

query II rowsort
SELECT col0, - 25 + - 79 AS col2 FROM tab2 AS cor0
----
46
-104
64
-104
75
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-7540
SELECT DISTINCT - col1 DIV + 75 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT - col1 / + 75 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7541
SELECT DISTINCT + COUNT( DISTINCT - 87 ) DIV 71 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT + COUNT ( DISTINCT - 87 ) / 71 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ( COUNT( * ) ) + + 22 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7542
SELECT ( COUNT ( * ) ) + + 22 FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT - COUNT( ALL 89 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7543
SELECT - COUNT ( ALL 89 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT 5 DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT 5 / col0 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT col2 AS col1, 51 AS col0 FROM tab1
----
59
51
68
51
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT - 93 * ( + 61 ) + + - COUNT( * ) + - 55 * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-5841

skipif mysql # not compatible
query I rowsort label-7548
SELECT - 93 * ( + 61 ) + + - COUNT ( * ) + - 55 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-5841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7549
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT 74 AS col2, col0 FROM tab0 AS cor0
----
74
15
74
87
74
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7551
SELECT + CAST( + 78 AS SIGNED ) + MAX( DISTINCT - col0 ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT + CAST ( + 78 AS INTEGER ) + MAX ( DISTINCT - col0 ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT 81 + - COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-7552
SELECT 81 + - COUNT ( * ) FROM tab1
----
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + col0 * col2 / - col1 NOT BETWEEN ( - col1 ) / + col0 AND col1
----

query I rowsort
SELECT ALL + 97 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * col1 + - 46 + + col2 AS col2 FROM tab0
----
152
174
3808

query I rowsort
SELECT ( + col1 ) + col2 + + + ( - 67 ) AS col2 FROM tab2
----
50
58
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> + 3
----
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> + 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT SUM( ALL + ( - col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7558
SELECT SUM ( ALL + ( - col2 ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + + col2 - - 4 + + 0 AS col0 FROM tab0 AS cor0
----
103
14
51

query I rowsort
SELECT ALL + 71 * 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f416b834f6818e741b10b63b402fe2f3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT DISTINCT 9 * + + 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-7561
SELECT DISTINCT 9 * + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT DISTINCT - col0 DIV + + col2 AS col2 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT - col0 / + + col2 AS col2 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL + MAX( ALL 91 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL + MAX ( ALL 91 ) AS col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 < - col1 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col0, 29 * + + col2 AS col2 FROM tab0
----
1
2871
21
290
81
1363

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT 2 * + MIN( DISTINCT - - col1 ) col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7566
SELECT 2 * + MIN ( DISTINCT - - col1 ) col2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT 15 + 65 + - - col2 + - + col2 AS col0 FROM tab0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT COUNT( * ) * + 83 + + 59 AS col1 FROM tab0 AS cor0
----
308

skipif mysql # not compatible
query I rowsort label-7568
SELECT COUNT ( * ) * + 83 + + 59 AS col1 FROM tab0 AS cor0
----
308

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7569
SELECT * FROM tab0 AS cor0 WHERE + 85 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7569
SELECT * FROM tab0 AS cor0 WHERE + 85 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col2 + 46 AS col1 FROM tab1 AS cor0
----
-13
-22
-50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 41 + col1 IS NULL
----

query I rowsort
SELECT + + col0 + + 63 AS col2 FROM tab0 AS cor0
----
150
160
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT DISTINCT + 21 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT + 21 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
24

query I rowsort
SELECT ALL - col1 * ( col2 ) - - col1 * 48 FROM tab1
----
-55
-672
-940

onlyif mysql # DIV for integer division: 
query II rowsort label-7575
SELECT col2, + 26 * + + col1 * + - 54 * + - col1 + + col0 + - - col1 - + col2 DIV - - 6 AS col0 FROM tab2
----
23
3651898
40
8324451
58
6302689

skipif mysql # not compatible
query II rowsort label-7575
SELECT col2, + 26 * + + col1 * + - 54 * + - col1 + + col0 + - - col1 - + col2 / - - 6 AS col0 FROM tab2
----
23
3651898
40
8324451
58
6302689

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT + MAX( DISTINCT 45 ) * + 62 FROM tab1
----
2790

skipif mysql # not compatible
query I rowsort label-7576
SELECT + MAX ( DISTINCT 45 ) * + 62 FROM tab1
----
2790

query I rowsort
SELECT + ( 92 ) * + col0 + + col1 FROM tab1
----
4706
7825
8419

query III rowsort
SELECT * FROM tab0 WHERE - + col0 / + col0 IS NULL
----

query I rowsort
SELECT + ( + 49 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
49
49
49

query II rowsort
SELECT DISTINCT + col0 * - - col1, + col1 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
2346
51
4928
77
5025
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col0 * 81 * + col2
----

query I rowsort
SELECT + col1 * 82 + 51 FROM tab0
----
133
1773
6693

query I rowsort
SELECT 58 FROM tab1 WHERE + col0 * col2 IS NOT NULL
----
58
58
58

query I rowsort
SELECT + ( + ( 34 ) ) + - col1 * col0 AS col1 FROM tab2
----
-2312
-4894
-4991

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - COUNT( * ) FROM tab0 WHERE + col2 * - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7585
SELECT - COUNT ( * ) FROM tab0 WHERE + col2 * - col0 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 80 / col0 + 82 * ( col0 / + col0 + + col0 ) ) IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT + MIN( ALL + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7587
SELECT + MIN ( ALL + col0 ) AS col2 FROM tab0
----
15

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( 54 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT ALL + COUNT( * ) FROM tab2 WHERE + col1 BETWEEN col0 * - col1 AND col0
----
1

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + COUNT ( * ) FROM tab2 WHERE + col1 BETWEEN col0 * - col1 AND col0
----
1

query I rowsort
SELECT DISTINCT 66 * + 84 - col1 FROM tab2
----
5467
5477
5493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT CAST( NULL AS SIGNED ) - 67 * - 98 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT CAST ( NULL AS INTEGER ) - 67 * - 98 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 70 + + col1 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * - col0 + col1 AS col2 FROM tab2 WHERE 53 * + col2 <> + col1
----
-1007
-2483
-4283

query III rowsort
SELECT * FROM tab2 WHERE NULL < 72
----

query III rowsort
SELECT * FROM tab1 WHERE 29 < + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT 3 - - 74 * - COUNT( * ) AS col0 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-7598
SELECT 3 - - 74 * - COUNT ( * ) AS col0 FROM tab2
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL + SUM( - 83 ) col2 FROM tab1
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7599
SELECT ALL + SUM ( - 83 ) col2 FROM tab1
----
-249

query III rowsort
SELECT * FROM tab1 WHERE NOT - 90 IN ( ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT - COUNT( * ) + - 98 AS col1 FROM tab2
----
-101

skipif mysql # not compatible
query I rowsort label-7601
SELECT - COUNT ( * ) + - 98 AS col1 FROM tab2
----
-101

query I rowsort
SELECT ( col1 ) + - col0 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT DISTINCT - COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT - COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - COUNT( * ) + - ( - SUM( ALL - ( - ( col1 ) ) ) ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7605
SELECT - COUNT ( * ) + - ( - SUM ( ALL - ( - ( col1 ) ) ) ) FROM tab2 AS cor0
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7606
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + 57 NOT BETWEEN + CAST( NULL AS SIGNED ) * col0 - col1 AND 18
----

skipif mysql # not compatible
query III rowsort label-7606
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + 57 NOT BETWEEN + CAST ( NULL AS INTEGER ) * col0 - col1 AND 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL ( ( CAST( - 94 AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL ( ( CAST ( - 94 AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT ALL - MAX( + 56 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL - MAX ( + 56 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7609
SELECT + ( CAST( + COUNT( * ) AS SIGNED ) ) FROM tab1 WHERE ( + col1 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT + ( CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab1 WHERE ( + col1 ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + 33 FROM tab0 WHERE NOT col2 - + col2 * col2 BETWEEN - col2 AND ( + col2 )
----
33

query I rowsort
SELECT DISTINCT - - col0 - col0 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + 76 FROM tab2 cor0
----
-1
25
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT - - 3 - + COUNT( ALL col0 + col2 * + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7614
SELECT - - 3 - + COUNT ( ALL col0 + col2 * + col1 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT 69 - COUNT( * ) * + 63 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-7616
SELECT 69 - COUNT ( * ) * + 63 FROM tab1 AS cor0
----
-120

query I rowsort
SELECT 15 + + 25 AS col2 FROM tab2 cor0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7618
SELECT + 46 / - 82 + CAST( NULL AS SIGNED ) / col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT + 46 / - 82 + CAST ( NULL AS INTEGER ) / col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + 22 FROM tab1 AS cor0
----
27
36
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT ALL + 34 - 64 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-158

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL + 34 - 64 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-158

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col1 - + col0 AS col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT col0 + 67 * + col1 AS col0 FROM tab0 AS cor0
----
1494
164
5442

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL COUNT( * ) * + COUNT( * ) - 3 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL COUNT ( * ) * + COUNT ( * ) - 3 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ( - + ( COUNT( * ) ) ) + 21 col0 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7625
SELECT ( - + ( COUNT ( * ) ) ) + 21 col0 FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL COUNT( * ) * - ( - SUM( DISTINCT 86 ) ) - ( 42 ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL COUNT ( * ) * - ( - SUM ( DISTINCT 86 ) ) - ( 42 ) FROM tab2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - ( - - 41 ) * 89 + 85 * + col2 FROM tab2
----
-1694
-249
1281

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT + col1 DIV - + col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7629
SELECT + col1 / - + col1 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT - - col1 * col2 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT - - col1 * col2 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 89 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + + col2 + col1 AS col2 FROM tab1 AS cor0
----
3486
4671
9230

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT - 38 + MIN( col0 + - 49 ) AS col2 FROM tab2 AS cor0 WHERE + 13 + + col0 NOT BETWEEN ( NULL ) AND ( col0 )
----
-41

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - 38 + MIN ( col0 + - 49 ) AS col2 FROM tab2 AS cor0 WHERE + 13 + + col0 NOT BETWEEN ( NULL ) AND ( col0 )
----
-41

query I rowsort
SELECT - - col1 * - + 16 FROM tab0 AS cor0
----
-1296
-16
-336

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT ALL + col2 DIV col0 AS col1 FROM tab1 cor0 WHERE ( col0 ) IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL + col2 / col0 AS col1 FROM tab1 cor0 WHERE ( col0 ) IS NOT NULL
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT - + SUM( - 20 ) * - COUNT( * ) FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-7636
SELECT - + SUM ( - 20 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-180

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 60 NOT IN ( + col2 * + 17 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 41 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7641
SELECT - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT ALL - col2, 46 AS col2 FROM tab0
----
-10
46
-47
46
-99
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT col2, + col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT - 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 28 * - 49 AS col0 FROM tab0 AS cor0
----
-1372
-1372
-1372

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT - col2 DIV - 41 AS col2 FROM tab1 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7647
SELECT - col2 / - 41 AS col2 FROM tab1 cor0
----
1
1
2

query I rowsort
SELECT 59 * col0 AS col2 FROM tab2 AS cor0
----
2714
3776
4425

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 - - 39 + - col2 <= - col2 / ( + 75 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT MIN( 65 ) AS col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT MIN ( 65 ) AS col1 FROM tab1 AS cor0
----
65

query II rowsort
SELECT DISTINCT + col1 AS col0, 24 + + + ( 62 ) * col1 FROM tab0 AS cor0
----
1
86
21
1326
81
5046

query I rowsort
SELECT ALL + col0 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
174
194
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 + + col0 * col0 ) >= 96
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) <= + 28 / + col2 - col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 78 col2 FROM tab0 AS cor0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT DISTINCT + 71 * - COUNT( * ) AS col0 FROM tab2 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT + 71 * - COUNT ( * ) AS col0 FROM tab2 cor0
----
-213

query I rowsort
SELECT ALL col1 * col2 * + - col2 AS col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

query I rowsort
SELECT ALL col0 * - + col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( + col1 ) IN ( col2 * - col1 )
----
23
40
58

query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab0 WHERE - - col2 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 BETWEEN NULL AND col0 * 26
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * col2 * col0 + 96 * + ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT SUM( DISTINCT + - 65 ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-7663
SELECT SUM ( DISTINCT + - 65 ) FROM tab0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7664
SELECT - 44 col2 FROM tab0 WHERE NOT ( + col2 ) NOT IN ( CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7664
SELECT - 44 col2 FROM tab0 WHERE NOT ( + col2 ) NOT IN ( CAST ( col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT COUNT( ALL 44 ) * + MIN( col2 + 86 * 46 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT COUNT ( ALL 44 ) * + MIN ( col2 + 86 * 46 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT DISTINCT + 59 + 3 + - - 9 DIV + col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + 59 + 3 + - - 9 / + col2 FROM tab1
----
62

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) * + AVG ( col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + AVG ( col1 ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 46 - - + col1 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = - col0
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE + col1 + + 73 <= - + 19
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND col0
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7674
SELECT ALL * FROM tab2 WHERE NULL = - CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7674
SELECT ALL * FROM tab2 WHERE NULL = - CAST ( - + col2 AS INTEGER )
----

query I rowsort
SELECT + col2 * 0 + - col0 AS col1 FROM tab2 WHERE + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT col1 + - 20 AS col1 FROM tab1 WHERE + col0 NOT IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT col1 + - 20 AS col1 FROM tab1 WHERE + col0 NOT IN ( - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL - 25 + + MAX( - col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - 25 + + MAX ( - col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
152

query I rowsort
SELECT DISTINCT + + col1 + + 91 AS col2 FROM tab0 AS cor0
----
112
172
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT DISTINCT + + MIN( DISTINCT - 69 ) FROM tab2 AS cor0 WHERE col2 * 35 IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT + + MIN ( DISTINCT - 69 ) FROM tab2 AS cor0 WHERE col2 * 35 IS NOT NULL
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 * + col2 - + - 94 * - - col2 col1 FROM tab1 AS cor0
----
10148
11696
16512

onlyif mysql # DIV for integer division: 
query I rowsort label-7681
SELECT ALL + + 81 - - 63 DIV + 60 FROM tab0 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL + + 81 - - 63 / + 60 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7682
SELECT + ( col1 ) / col1 - + 61 FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) = + col1 + + 22
----

skipif mysql # not compatible
query I rowsort label-7682
SELECT + ( col1 ) / col1 - + 61 FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) = + col1 + + 22
----

query III rowsort
SELECT * FROM tab0 WHERE - 96 IN ( + + 4 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col2 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT DISTINCT col1 - + 60 - - + col2 AS col0 FROM tab2
----
14
57
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL MIN( ALL col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7686
SELECT ALL MIN ( ALL col1 ) col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7687
SELECT DISTINCT - 1 AS col0, COUNT( * ) FROM tab1
----
-1
3

skipif mysql # not compatible
query II rowsort label-7687
SELECT DISTINCT - 1 AS col0, COUNT ( * ) FROM tab1
----
-1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT + MAX( col0 ) * COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NOT ( - col2 ) IS NOT NULL )
----
225

skipif mysql # not compatible
query I rowsort label-7688
SELECT + MAX ( col0 ) * COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NOT ( - col2 ) IS NOT NULL )
----
225

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT IN ( + 44 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL SUM( col2 ) * - + MAX( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
1115

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL SUM ( col2 ) * - + MAX ( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
1115

onlyif mysql # aggregate syntax: 
query II rowsort label-7691
SELECT DISTINCT MAX( - - col0 ), 58 AS col1 FROM tab0
----
97
58

skipif mysql # not compatible
query II rowsort label-7691
SELECT DISTINCT MAX ( - - col0 ), 58 AS col1 FROM tab0
----
97
58

query I rowsort
SELECT - 9 AS col0 FROM tab2 AS cor0 WHERE NOT 46 * - col1 > col2 + ( + col0 )
----
-9
-9
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-7693
SELECT ( - col0 ) DIV - 38 AS col1, col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-7693
SELECT ( - col0 ) / - 38 AS col1, col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT - MAX( - 72 ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7694
SELECT - MAX ( - 72 ) AS col2 FROM tab2 AS cor0
----
72

query I rowsort
SELECT DISTINCT + 79 FROM tab0 AS cor0 WHERE NOT ( NOT col2 * + col1 IN ( + col0 ) )
----

query I rowsort
SELECT ALL - - 40 * + col2 * + - col0 AS col0 FROM tab0 AS cor0
----
-28200
-34800
-384120

query I rowsort
SELECT + col1 * - - col1 + - col1 * 20 FROM tab2 AS cor0
----
1581
3149
4389

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL > col1 - + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7699
SELECT 46 AS col0, col0 DIV + - col2 AS col2 FROM tab0
----
46
-8
46
0
46
0

skipif mysql # not compatible
query II rowsort label-7699
SELECT 46 AS col0, col0 / + - col2 AS col2 FROM tab0
----
46
-8
46
0
46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT SUM( DISTINCT + - 79 ) AS col1 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT SUM ( DISTINCT + - 79 ) AS col1 FROM tab0
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-7701
SELECT DISTINCT col2, - col1 DIV col2 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT col2, - col1 / col2 FROM tab1
----
59
0
68
0
96
0

query II rowsort
SELECT ALL col2 AS col0, + 82 * + + 4 FROM tab1
----
59
328
68
328
96
328

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + + + col1 / col1 * - col2 IN ( 59 * 78 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL > + col0 * - - 69
----

query II rowsort
SELECT ALL + 98 * - - 33 + 50, - 44 AS col1 FROM tab2 cor0
----
3284
-44
3284
-44
3284
-44

query I rowsort
SELECT DISTINCT col0 * + - 5 FROM tab1 AS cor0
----
-255
-425
-455

query II rowsort
SELECT col1 AS col1, + 94 FROM tab2 AS cor0
----
51
94
67
94
77
94

query I rowsort
SELECT + col0 * + - 93 FROM tab1 AS cor0
----
-4743
-7905
-8463

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) = ( - 87 )
----

query I rowsort
SELECT DISTINCT + ( + 58 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
58

query III rowsort
SELECT * FROM tab2 WHERE 67 * - + col2 + + + col2 * + col0 < col1
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT - + col2 - - + 74 + col1 + CAST( col2 AS SIGNED ) * - 16 AS col1 FROM tab1 AS cor0
----
-1035
-1544
-924

skipif mysql # not compatible
query I rowsort label-7712
SELECT - + col2 - - + 74 + col1 + CAST ( col2 AS INTEGER ) * - 16 AS col1 FROM tab1 AS cor0
----
-1035
-1544
-924

query I rowsort
SELECT DISTINCT col0 + + ( + col0 ) * + col1 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT ALL + + col2 - - 40 FROM tab1 cor0
----
108
136
99

query II rowsort
SELECT + + col2 + col0 AS col0, - col0 FROM tab0 AS cor0
----
196
-97
62
-15
97
-87

query I rowsort
SELECT DISTINCT + col0 + + - ( 83 ) * 88 AS col2 FROM tab1 AS cor0
----
-7213
-7219
-7253

query I rowsort
SELECT - 19 FROM tab0 AS cor0 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL COUNT( * ) + - 42 AS col0 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL COUNT ( * ) + - 42 AS col0 FROM tab0 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 20 * col0 col2 FROM tab1 AS cor0
----
1615
1729
969

query I rowsort
SELECT col1 + - col1 * + 89 FROM tab0 AS cor0
----
-1848
-7128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE + ( 56 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7721
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE + ( 56 ) IS NOT NULL
----
-3

query I rowsort
SELECT + + 15 + - col0 AS col1 FROM tab0 cor0
----
-72
-82
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7723
SELECT - - CAST( NULL AS SIGNED ) + + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT - - CAST ( NULL AS INTEGER ) + + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 53 + + col1 AS col2 FROM tab2 AS cor0
----
104
120
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7725
SELECT DISTINCT + COUNT( * ) DIV - 61 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7725
SELECT DISTINCT + COUNT ( * ) / - 61 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - ( + + col1 ) AS col0 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT + 20 * 33 <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT COUNT( ALL + col0 ) * 15 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-7728
SELECT COUNT ( ALL + col0 ) * 15 FROM tab1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7729
SELECT ALL + - CAST( NULL AS SIGNED ) * col1 * - - col1 AS col1, - col1 AS col2 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-7729
SELECT ALL + - CAST ( NULL AS INTEGER ) * col1 * - - col1 AS col1, - col1 AS col2 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7730
SELECT DISTINCT - MIN( col1 ) / - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7730
SELECT DISTINCT - MIN ( col1 ) / - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL - 25 * - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL - 25 * - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7732
SELECT - CAST( - 15 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-7732
SELECT - CAST ( - 15 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + ( + 65 ) AS col2 FROM tab0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT ( - CAST( 37 AS SIGNED ) ) * - col0 FROM tab2
----
1702
2368
2775

skipif mysql # not compatible
query I rowsort label-7735
SELECT ( - CAST ( 37 AS INTEGER ) ) * - col0 FROM tab2
----
1702
2368
2775

query I rowsort
SELECT ALL - ( + col2 ) + + 80 - + col1 + + - col0 * + col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
-2340
-4965
-5070

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT - SUM( ALL 81 ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT - SUM ( ALL 81 ) FROM tab0 AS cor0
----
-243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT - + 95 + - COUNT( DISTINCT - - CAST( + col2 AS SIGNED ) ) + + 21 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7738
SELECT - + 95 + - COUNT ( DISTINCT - - CAST ( + col2 AS INTEGER ) ) + + 21 FROM tab0 AS cor0
----
-77

query I rowsort
SELECT - + 80 + - ( - col2 ) FROM tab2 AS cor0
----
-22
-40
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT - + COUNT( * ) + + 44 AS col1 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-7740
SELECT - + COUNT ( * ) + + 44 AS col1 FROM tab1 AS cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 AS cor0 WHERE NOT - 53 IS NULL
----
23
40
58

query I rowsort
SELECT - 79 + - + col1 AS col1 FROM tab2 AS cor0
----
-130
-146
-156

query II rowsort
SELECT 83, - ( 44 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 5 * - col0 IN ( + - col0, col2 )
----
83
-44
83
-44
83
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-7744
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) col1 FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7744
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) col1 FROM tab0 cor0
----
-3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + col2 ) * - col0 + 36 FROM tab1
----
-4860
-4979
-6152

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 11 + 84 FROM tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT 61 + - - 40 FROM tab0 AS cor0
----
101

query I rowsort
SELECT - 96 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 * + - col0 FROM tab2 cor0
----
-2116
-4096
-5625

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) * - - col1 AS col0 FROM tab2 cor0
----
2601
4489
5929

query II rowsort
SELECT - 22, - col1 + + 57 + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 78 * - + col0 * + col0 * - + col2 IS NULL
----
-22
-9
-22
123
-22
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT DISTINCT MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL - col2, + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT + - CAST( - 0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7757
SELECT + - CAST ( - 0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 14 * + col0 AS col1 FROM tab1
----
1190
1274
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT - MIN( ALL - - 69 ) FROM tab1 WHERE NULL < col2 + col0 + - - col2 + + - col2 * - col1 + - - col2 / + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT - MIN ( ALL - - 69 ) FROM tab1 WHERE NULL < col2 + col0 + - - col2 + + - col2 * - col1 + - - col2 / + - col2
----
NULL

query I rowsort
SELECT ( 29 ) AS col2 FROM tab1
----
29
29
29

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT + col0 <> col1 * - + 11 * + 87
----

query I rowsort
SELECT ALL col1 * - + 85 AS col1 FROM tab1
----
-1190
-3995
-425

query I rowsort
SELECT + 47 + - col0 - + col0 FROM tab0 WHERE NOT - + col0 + col1 + 65 = NULL
----

query I rowsort
SELECT DISTINCT + ( + col1 ) + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) + col1 * - 25 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT - + ( - - 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7769
SELECT DISTINCT + COUNT( + CAST( - - 63 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT - 8 BETWEEN NULL AND - 11
----
3

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT + COUNT ( + CAST ( - - 63 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT - 8 BETWEEN NULL AND - 11
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7770
SELECT ALL - - col2 AS col0, + CAST( - col0 AS SIGNED ) + + - col2 * + - col0 col1 FROM tab2 AS cor0
----
23
1012
40
2496
58
4275

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7770
SELECT ALL - - col2 AS col0, + CAST ( - col0 AS INTEGER ) + + - col2 * + - col0 col1 FROM tab2 AS cor0
----
23
1012
40
2496
58
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT DISTINCT - COUNT( ALL 96 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT - COUNT ( ALL 96 ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col1 FROM tab2 AS cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7773
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( + CAST( + - col2 AS SIGNED ) ) AND col2
----

skipif mysql # not compatible
query III rowsort label-7773
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( + CAST ( + - col2 AS INTEGER ) ) AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT col0 + - - col0 - - 7 DIV + 81 - 0 * 80 DIV col1 AS col1 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-7774
SELECT col0 + - - col0 - - 7 / + 81 - 0 * 80 / col1 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ( + - col1 ) + + + col2 FROM tab2
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + - col0 col1 FROM tab2
----
-30
-48
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT 33 + - COUNT( * ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7777
SELECT 33 + - COUNT ( * ) AS col0 FROM tab0
----
30

query I rowsort
SELECT ( - col2 ) + + col1 * + ( + 87 ) FROM tab2
----
4414
5771
6659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, + 78 AS col1 FROM tab2
----
-23
78
-40
78
-58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT - COUNT( * ) * 1 + - 51 AS col0 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT - COUNT ( * ) * 1 + - 51 AS col0 FROM tab0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 66 ) + + - 13 col2 FROM tab1
----
53
53
53

query I rowsort
SELECT ALL + col2 + - ( - col0 ) FROM tab0 AS cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT - - COUNT( * ) + - - COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT - - COUNT ( * ) + - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
12

query II rowsort
SELECT + col1 AS col0, - 80 AS col0 FROM tab1 AS cor0
----
14
-80
47
-80
5
-80

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE - 20 <> + 26
----
10
47
99

query I rowsort
SELECT + 78 * - col2 FROM tab1
----
-4602
-5304
-7488

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT DISTINCT col1 DIV - 63 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT col1 / - 63 AS col1 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT + MAX( ALL col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7789
SELECT + MAX ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 + - col0 * - ( - ( - 84 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT DISTINCT - - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT - - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT + - CAST( + 15 AS SIGNED ) FROM tab1 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-7792
SELECT + - CAST ( + 15 AS INTEGER ) FROM tab1 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT MAX( ALL - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7793
SELECT MAX ( ALL - col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + ( + 91 ) * col0 AS col1 FROM tab1 cor0
----
4641
7735
8281

query I rowsort
SELECT - + AVG ( - ( - 77 ) ) * - 77 FROM tab2 WHERE NOT - - col2 < NULL
----
NULL

query I rowsort
SELECT ALL - col2 * - col0 * + col0 FROM tab1
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query II rowsort label-7797
SELECT ALL - COUNT( * ) AS col1, + 94 AS col2 FROM tab0
----
-3
94

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL - COUNT ( * ) AS col1, + 94 AS col2 FROM tab0
----
-3
94

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT + col2 <> col2
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 BETWEEN + 80 / - 47 * 43 * - + col1 + + 65 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7800
SELECT DISTINCT col0 * + col0 * + 78 AS col0, col0 * col1 + + + CAST( NULL AS SIGNED ) + + - col1 FROM tab1
----
202878
NULL
563550
NULL
645918
NULL

skipif mysql # not compatible
query II rowsort label-7800
SELECT DISTINCT col0 * + col0 * + 78 AS col0, col0 * col1 + + + CAST ( NULL AS INTEGER ) + + - col1 FROM tab1
----
202878
NULL
563550
NULL
645918
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 / - + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2 AS col0, 36 FROM tab0 AS cor0
----
10
36
47
36
99
36

query I rowsort
SELECT DISTINCT + col1 * + + col0 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT ALL + - ( 58 ) FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT DISTINCT col2 * + 15 FROM tab1 AS cor0
----
1020
1440
885

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT - col1 + - col1 DIV + 84 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7806
SELECT - col1 + - col1 / + 84 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + col0 * - + ( - 42 ) + + col1 AS col1 FROM tab1 AS cor0
----
2156
3575
3869

query I rowsort
SELECT ALL 82 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7809
SELECT ALL - CAST( + + col2 AS SIGNED ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL - CAST ( + + col2 AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT 65 * + 22 FROM tab2 AS cor0
----
1430
1430
1430

query II rowsort
SELECT ALL 28, - col2 AS col0 FROM tab2
----
28
-23
28
-40
28
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT DISTINCT 16 DIV + col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT 16 / + col2 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE + + 78 + + + 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7814
SELECT ALL * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7814
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7815
SELECT DISTINCT + 93 DIV + CAST( - 19 AS SIGNED ) AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT + 93 / + CAST ( - 19 AS INTEGER ) AS col1 FROM tab1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT col1 * + CAST( + + col0 AS SIGNED ) AS col0 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7816
SELECT col1 * + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT col2 * + 81 + - + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 - - 16 AS col1 FROM tab2
----
39
56
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT SUM( ALL 78 ) * - - 20 - + + COUNT( * ) AS col0 FROM tab0
----
4677

skipif mysql # not compatible
query I rowsort label-7819
SELECT SUM ( ALL 78 ) * - - 20 - + + COUNT ( * ) AS col0 FROM tab0
----
4677

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT DISTINCT - MIN( DISTINCT + col0 ) * 71 + + 33 FROM tab0 AS cor0
----
-1032

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT - MIN ( DISTINCT + col0 ) * 71 + + 33 FROM tab0 AS cor0
----
-1032

query I rowsort
SELECT ALL - col1 * - - col0 - + 30 FROM tab2 AS cor0
----
-2376
-4958
-5055

query I rowsort
SELECT - 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7823
SELECT DISTINCT 98, col1 * + 70 - - - col1 AS col0, - + CAST( - col2 AS SIGNED ) * col2 + 84 col1 FROM tab1
----
9 values hashing to 8dc5a6040a98d450d906e987e84e2f40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7823
SELECT DISTINCT 98, col1 * + 70 - - - col1 AS col0, - + CAST ( - col2 AS INTEGER ) * col2 + 84 col1 FROM tab1
----
9 values hashing to 8dc5a6040a98d450d906e987e84e2f40

query II rowsort
SELECT DISTINCT + - col1 AS col2, - 25 - col1 AS col1 FROM tab1 cor0
----
-14
-39
-47
-72
-5
-30

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 cor0 WHERE 55 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL 17 * - 6 * + COUNT( * ) FROM tab2 AS cor0
----
-306

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL 17 * - 6 * + COUNT ( * ) FROM tab2 AS cor0
----
-306

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7828
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + + col1 AS SIGNED ) NOT BETWEEN col0 AND + col1
----
15
81
47

skipif mysql # not compatible
query III rowsort label-7828
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + + col1 AS INTEGER ) NOT BETWEEN col0 AND + col1
----
15
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7829
SELECT ALL + 14 * COUNT( * ) DIV - - COUNT( * ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + 14 * COUNT ( * ) / - - COUNT ( * ) FROM tab2 AS cor0
----
14

query I rowsort
SELECT DISTINCT - + ( - 94 ) * + + col0 FROM tab2 AS cor0
----
4324
6016
7050

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT COUNT( - 51 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7832
SELECT COUNT ( - 51 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col0 FROM tab1 cor0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT + col2 + col1 DIV 62 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7834
SELECT + col2 + col1 / 62 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT MAX( + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT MAX ( + + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL COUNT( * ) * + - 35 AS col2 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL COUNT ( * ) * + - 35 AS col2 FROM tab0 AS cor0
----
-105

query I rowsort
SELECT - col1 * + col0 * - 78 FROM tab2
----
182988
384384
391950

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 39 / + - col2 + + 23 <> NULL
----

query I rowsort
SELECT ALL + - col2 + + 6 FROM tab1 AS cor0
----
-53
-62
-90

query I rowsort
SELECT DISTINCT + - col2 + - 21 + col1 AS col1 FROM tab0 AS cor0
----
-10
-119
13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + col2 + - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT MIN( DISTINCT + 38 ) + - + 71 + - 59 + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7842
SELECT MIN ( DISTINCT + 38 ) + - + 71 + - 59 + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT DISTINCT 84 * 83 * - COUNT( * ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-20919

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT 84 * 83 * - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-20919

query I rowsort
SELECT ALL - col1 * - 15 FROM tab1 AS cor0
----
210
705
75

query I rowsort
SELECT - col2 + 65 FROM tab2 AS cor0
----
25
42
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT DISTINCT + + col1 DIV + col0 + + col1 FROM tab0 AS cor0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT + + col1 / + col0 + + col1 FROM tab0 AS cor0
----
1
21
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7847
SELECT ALL col0 * + + col1 * - - col0 DIV + col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL col0 * + + col1 * - - col0 / + col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT ( - + col0 ) + - col0 AS col0 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7849
SELECT DISTINCT + MAX( 29 ) DIV - - 8 AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT + MAX ( 29 ) / - - 8 AS col2 FROM tab0
----
3

query II rowsort
SELECT 72 + - 20 AS col1, col2 FROM tab2
----
52
23
52
40
52
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7851
SELECT ALL COUNT( * ) DIV + - SUM( DISTINCT + col0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL COUNT ( * ) / + - SUM ( DISTINCT + col0 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT DISTINCT - SUM( ALL + col0 ) + + 27 FROM tab2 AS cor0
----
-158

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - SUM ( ALL + col0 ) + + 27 FROM tab2 AS cor0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT + COUNT( * ) + + 63 AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT + COUNT ( * ) + + 63 AS col1 FROM tab2 AS cor0
----
66

query I rowsort
SELECT DISTINCT + + col0 + + + col2 AS col0 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT 91 * - 6 - col2 FROM tab2 AS cor0
----
-569
-586
-604

query II rowsort
SELECT col2 - + col2 AS col0, - col2 AS col2 FROM tab0 AS cor0
----
0
-10
0
-47
0
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT SUM( - 77 ) FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7857
SELECT SUM ( - 77 ) FROM tab0 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT COUNT( * ) * 49 AS col2 FROM tab2 cor0
----
147

skipif mysql # not compatible
query I rowsort label-7858
SELECT COUNT ( * ) * 49 AS col2 FROM tab2 cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - SUM( + 11 ) col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 37 AND - - 96 / - col2 - + + 36 + - + 21 + col0 * 1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7859
SELECT - SUM ( + 11 ) col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 37 AND - - 96 / - col2 - + + 36 + - + 21 + col0 * 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT DISTINCT - + COUNT( * ) * COUNT( * ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7860
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * ) col1 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - col0, 8 * - col1 * - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT ( + CAST( COUNT( + + col0 ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7862
SELECT ( + CAST ( COUNT ( + + col0 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT DISTINCT - CAST( 40 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT - CAST ( 40 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7864
SELECT - - col1 - + 41 FROM tab1 AS cor0 WHERE NOT 2 NOT IN ( + CAST( NULL AS SIGNED ) / - 68 * col1 + - - col2 * - col0 * 50, - 66, + col1 )
----

skipif mysql # not compatible
query I rowsort label-7864
SELECT - - col1 - + 41 FROM tab1 AS cor0 WHERE NOT 2 NOT IN ( + CAST ( NULL AS INTEGER ) / - 68 * col1 + - - col2 * - col0 * 50, - 66, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT DISTINCT MIN( - col0 ) col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7865
SELECT DISTINCT MIN ( - col0 ) col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7867
SELECT + COUNT( * ) AS col1, + COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-7867
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2
----
3
3

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7869
SELECT ALL 49 + + - COUNT( * ) DIV 2 AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL 49 + + - COUNT ( * ) / 2 AS col0 FROM tab1 AS cor0
----
48

query I rowsort
SELECT - - 77 * col1 + - col2 FROM tab2 AS cor0
----
3904
5101
5889

query I rowsort
SELECT DISTINCT - - ( + - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + 39 * + col1 FROM tab0 AS cor0
----
3159
39
819

query I rowsort
SELECT DISTINCT - col1 * + col0 - + 96 AS col2 FROM tab1 cor0
----
-4373
-521
-810

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7874
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + CAST( NULL AS DECIMAL ) * 14 * + + col0 NOT IN ( 9, ( + + 92 ) * - ( + 2 ), - - col1, col0 ) )
----

skipif mysql # not compatible
query III rowsort label-7874
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + CAST ( NULL AS REAL ) * 14 * + + col0 NOT IN ( 9, ( + + 92 ) * - ( + 2 ), - - col1, col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT - 17 DIV + col0 + + + col1 + + col0 AS col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-7875
SELECT - 17 / + col0 + + + col1 + + col0 AS col0 FROM tab1
----
138
65
90

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON - + 38 > NULL
----

query I rowsort
SELECT - 90 + - - 0 AS col2 FROM tab0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT + 57 + - 87, col2 FROM tab1
----
-30
59
-30
68
-30
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7880
SELECT - COUNT( - + CAST( NULL AS SIGNED ) ) AS col1, - 88 AS col0 FROM tab0 AS cor0
----
0
-88

skipif mysql # not compatible
query II rowsort label-7880
SELECT - COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col1, - 88 AS col0 FROM tab0 AS cor0
----
0
-88

query II rowsort
SELECT DISTINCT + col2 + 65 AS col1, ( col2 ) AS col1 FROM tab2 AS cor0
----
105
40
123
58
88
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) NOT BETWEEN NULL AND col1
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL - + col0 - + CAST( - 23 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-28
-62
-68

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - + col0 - + CAST ( - 23 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-28
-62
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT ALL + AVG ( - ( + CAST( NULL AS SIGNED ) ) ) + - MIN( - ( 93 ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL + AVG ( - ( + CAST ( NULL AS INTEGER ) ) ) + - MIN ( - ( 93 ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab1 WHERE NOT + + col1 + - - col0 IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-7886
SELECT ALL + col2, - col1 + + col1 - + col2 DIV + col0 + + + 1 FROM tab0
----
10
1
47
-2
99
0

skipif mysql # not compatible
query II rowsort label-7886
SELECT ALL + col2, - col1 + + col1 - + col2 / + col0 + + + 1 FROM tab0
----
10
1
47
-2
99
0

query I rowsort
SELECT col0 - col1 * + col2 AS col0 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT 2 - - ( - col0 ) FROM tab2
----
-44
-62
-73

query I rowsort
SELECT ALL - col0 + 55 AS col1 FROM tab2
----
-20
-9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT DISTINCT - col1 * - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - col1 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT DISTINCT - col0 DIV - - 81 + + - ( + 3 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - col0 / - - 81 + + - ( + 3 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT + SUM( DISTINCT - 1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT + SUM ( DISTINCT - 1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT - ( + + COUNT( * ) ) + - - COUNT( * ) FROM tab2 cor0 WHERE NOT col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7893
SELECT - ( + + COUNT ( * ) ) + - - COUNT ( * ) FROM tab2 cor0 WHERE NOT col2 IS NULL
----
0

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NOT - col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT DISTINCT - - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7895
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + ( + ( + + col2 ) ) FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col0 * - 15 col0 FROM tab2
----
15870
38400
65250

query I rowsort
SELECT DISTINCT - col2 * - + col0 AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL + 56 FROM tab2 WHERE NOT - ( col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 - col2 + - col2 * + col2 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 BETWEEN + - col0 * - + col2 + + + col2 AND 73 * + col2 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT ALL + col2 DIV ( + - 29 ) col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7902
SELECT ALL + col2 / ( + - 29 ) col2 FROM tab2 AS cor0
----
-1
-2
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 34 <= NULL
----

query I rowsort
SELECT ALL ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT 17 * - 14 FROM tab2
----
-238
-238
-238

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - + ( + col0 ) + - + col2 = + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT - 60 DIV + COUNT( * ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-7907
SELECT - 60 / + COUNT ( * ) AS col2 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL + COUNT( * ) * - 34 col0 FROM tab1
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7908
SELECT ALL + COUNT ( * ) * - 34 col0 FROM tab1
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT 35 DIV + 44 + + + col2 AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7909
SELECT 35 / + 44 + + + col2 AS col2 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * - 52 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 9c52c7b7bc01a712346dac721002d06c

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE 67 IS NULL
----

query I rowsort
SELECT ALL - col0 + + + col2 + - ( 81 ) * - col2 AS col0 FROM tab1 AS cor0
----
4753
5485
7821

query II rowsort
SELECT ALL - + 84 AS col0, + col0 + - 34 - - + col0 AS col2 FROM tab2 AS cor0
----
-84
116
-84
58
-84
94

query I rowsort
SELECT + 32 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - - col2 - - + ( + col0 ) AS col2 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT + - 80 * col2 - + + col0 AS col0 FROM tab0 AS cor0
----
-3775
-8017
-887

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 8 + - col2 + - col1 <= ( + 45 ) / 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT DISTINCT - COUNT( * ) + COUNT( * ) * + - 66 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) * + - 66 FROM tab2 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT - - MIN( + - col1 ) + + COUNT( * ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7919
SELECT - - MIN ( + - col1 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ALL - col1 - - - 53 - - col0 * 75 FROM tab0
----
6451
7221
991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7921
SELECT - 14 * - CAST( NULL AS SIGNED ) * - - col0 + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT - 14 * - CAST ( NULL AS INTEGER ) * - - col0 + + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7922
SELECT DISTINCT CAST( NULL AS SIGNED ) - - COUNT( * ) + + 89 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7922
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - COUNT ( * ) + + 89 col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT 4 * - col1 AS col1, col1 FROM tab1
----
-188
47
-20
5
-56
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL ( + + COUNT( * ) ) + + 66 AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL ( + + COUNT ( * ) ) + + 66 AS col0 FROM tab1
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-7925
SELECT DISTINCT - - col2 * - 47 AS col2, 41 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1081
0
-1880
0
-2726
0

skipif mysql # not compatible
query II rowsort label-7925
SELECT DISTINCT - - col2 * - 47 AS col2, 41 / + col0 AS col1 FROM tab2 AS cor0
----
-1081
0
-1880
0
-2726
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT COUNT( DISTINCT - ( - col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7926
SELECT COUNT ( DISTINCT - ( - col0 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - 49 FROM tab1 cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT DISTINCT MIN( 18 ) AS col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT MIN ( 18 ) AS col1 FROM tab2 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT + CAST( NULL AS SIGNED ) * - col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7931
SELECT + CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7932
SELECT * FROM tab0 WHERE NOT + CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7932
SELECT * FROM tab0 WHERE NOT + CAST ( col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT - - COUNT( * ) * SUM( - - 87 ) + - - MIN( ALL - - 23 ) AS col1 FROM tab1 AS cor0
----
806

skipif mysql # not compatible
query I rowsort label-7933
SELECT - - COUNT ( * ) * SUM ( - - 87 ) + - - MIN ( ALL - - 23 ) AS col1 FROM tab1 AS cor0
----
806

query I rowsort
SELECT 52 + + col0 FROM tab1 AS cor0
----
103
137
143

query I rowsort
SELECT - ( - 67 ) + - col1 + ( + + col0 ) FROM tab1 AS cor0
----
104
111
147

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 8 + - + 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * 7 FROM tab1
----
329
35
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT + COUNT( * ) + + 85 AS col1 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT + COUNT ( * ) + + 85 AS col1 FROM tab0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT ALL - 16 + 36 * - ( + COUNT( ALL + CAST( + + 8 AS SIGNED ) ) ) AS col0 FROM tab2
----
-124

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - 16 + 36 * - ( + COUNT ( ALL + CAST ( + + 8 AS INTEGER ) ) ) AS col0 FROM tab2
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7940
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT DISTINCT - 41 * + CAST( + 80 AS SIGNED ) + + col2 AS col2 FROM tab1
----
-3184
-3212
-3221

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT - 41 * + CAST ( + 80 AS INTEGER ) + + col2 AS col2 FROM tab1
----
-3184
-3212
-3221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7942
SELECT + 75 + - col0 FROM tab1 WHERE NULL NOT BETWEEN - - 28 / - CAST( - + ( + col0 ) AS SIGNED ) AND col2 - col0 * - col1
----

skipif mysql # not compatible
query I rowsort label-7942
SELECT + 75 + - col0 FROM tab1 WHERE NULL NOT BETWEEN - - 28 / - CAST ( - + ( + col0 ) AS INTEGER ) AND col2 - col0 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 - - col1 FROM tab1 AS cor0 WHERE ( NULL ) > 33 * 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT - ( COUNT( * ) ) * - - 92 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-7945
SELECT - ( COUNT ( * ) ) * - - 92 FROM tab2 AS cor0
----
-276

query I rowsort
SELECT DISTINCT + + 3 + + + 9 AS col0 FROM tab2 AS cor0
----
12

query II rowsort
SELECT DISTINCT - ( - + col1 ) AS col2, col2 + - col0 - - + col1 * - col1 AS col2 FROM tab0 AS cor0
----
1
1
21
-518
81
-6529

query II rowsort
SELECT ALL col2 AS col1, 49 * col1 FROM tab2
----
23
2499
40
3773
58
3283

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT 75 + + + COUNT( * ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT 75 + + + COUNT ( * ) AS col0 FROM tab2
----
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = ( 85 + - 52 * + - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT - CAST( - col0 AS SIGNED ) - + + col2 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-7953
SELECT - CAST ( - col0 AS INTEGER ) - + + col2 FROM tab0 AS cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 - - 58 col1 FROM tab1 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 - - - ( + 94 ) col2 FROM tab2 cor0
----
-108
-108
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT ALL + + COUNT( * ) * ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL + + COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7957
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 74 * - CAST( - 27 AS SIGNED ) * + col2 + + 5, + col1 )
----

skipif mysql # not compatible
query III rowsort label-7957
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 74 * - CAST ( - 27 AS INTEGER ) * + col2 + + 5, + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 51 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - ( col0 ) AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT COUNT( * ) * 83 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-7960
SELECT COUNT ( * ) * 83 FROM tab0
----
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, 29 - col1 col0 FROM tab2
----
46
-22
64
-48
75
-38

query I rowsort
SELECT DISTINCT + col0 * + 78 FROM tab1
----
3978
6630
7098

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND - col0
----

query II rowsort
SELECT col1 * - 3, 62 * - - col2 AS col1 FROM tab0
----
-243
2914
-3
6138
-63
620

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query II rowsort
SELECT - + 54 AS col2, col0 AS col1 FROM tab1 AS cor0
----
-54
51
-54
85
-54
91

query II rowsort
SELECT - 47 * - + 66 AS col0, + col1 AS col2 FROM tab0
----
3102
1
3102
21
3102
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT + + SUM( DISTINCT - col0 ) FROM tab0 WHERE NOT + + 62 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT + + SUM ( DISTINCT - col0 ) FROM tab0 WHERE NOT + + 62 IS NOT NULL
----
NULL

query II rowsort
SELECT 44 AS col1, col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT + SUM( ALL - col0 ) * + COUNT( + col1 ) FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT + SUM ( ALL - col0 ) * + COUNT ( + col1 ) FROM tab2 AS cor0
----
-555

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 80 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col2 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT ALL 21 * col2 FROM tab2
----
1218
483
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7974
SELECT COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7974
SELECT COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
6

query I rowsort
SELECT 6 + + + 99 + - col0 FROM tab0
----
18
8
90

query I rowsort
SELECT col0 + - - 41 * + col0 FROM tab1
----
2142
3570
3822

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 8 * + col0 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7978
SELECT ALL 4 col1, + COUNT( * ) FROM tab0
----
4
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7978
SELECT ALL 4 col1, + COUNT ( * ) FROM tab0
----
4
3

query I rowsort
SELECT ALL + col2 + - 14 * - + 8 AS col1 FROM tab1 cor0
----
171
180
208

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT - - COUNT( * ) + - 16 AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7980
SELECT - - COUNT ( * ) + - 16 AS col0 FROM tab2 AS cor0
----
-13

query II rowsort
SELECT ALL col2 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT + 8 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7983
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT - 55 + + + COUNT( * ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - 55 + + + COUNT ( * ) FROM tab2 AS cor0
----
-52

query I rowsort
SELECT ALL + 31 FROM tab2 AS cor0 WHERE ( NULL ) > col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - - 3 <> NULL OR - + 61 >= ( + ( - 9 ) ) - 48
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7987
SELECT + col0 DIV - 37 + col2 AS col2 FROM tab1 AS cor0
----
57
66
95

skipif mysql # not compatible
query I rowsort label-7987
SELECT + col0 / - 37 + col2 AS col2 FROM tab1 AS cor0
----
57
66
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT CAST( - COUNT( - 3 ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7988
SELECT CAST ( - COUNT ( - 3 ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT DISTINCT CAST( AVG ( ALL + + 81 ) AS SIGNED ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT CAST ( AVG ( ALL + + 81 ) AS INTEGER ) FROM tab1 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 94 col2 FROM tab0 AS cor0
----
94

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 + 93 * - col0 + - 6 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7992
SELECT - col2 DIV - CAST( - - 11 AS SIGNED ) + - 62 AS col1 FROM tab2 WHERE NOT ( + col0 * + + col1 ) IS NULL
----
-57
-59
-60

skipif mysql # not compatible
query I rowsort label-7992
SELECT - col2 / - CAST ( - - 11 AS INTEGER ) + - 62 AS col1 FROM tab2 WHERE NOT ( + col0 * + + col1 ) IS NULL
----
-57
-59
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT MIN( + ( + - col0 ) ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT MIN ( + ( + - col0 ) ) AS col2 FROM tab1
----
-91

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + col0 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT - 54 DIV col1 * + + 81 FROM tab1 AS cor0
----
-243
-81
-810

skipif mysql # not compatible
query I rowsort label-7995
SELECT - 54 / col1 * + + 81 FROM tab1 AS cor0
----
-243
-81
-810

query I rowsort
SELECT + col2 * - col0 * - col0 FROM tab2 AS cor0
----
163840
326250
48668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT + CAST( + - 4 AS SIGNED ) + - 93 + + 4 * + - col0 FROM tab2
----
-281
-353
-397

skipif mysql # not compatible
query I rowsort label-7999
SELECT + CAST ( + - 4 AS INTEGER ) + - 93 + + 4 * + - col0 FROM tab2
----
-281
-353
-397

query I rowsort
SELECT DISTINCT col1 * + col2 * + col1 + - 95 AS col0 FROM tab2
----
237065
260267
59728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + + - 53 FROM tab2 AS cor0
----
-117
-128
-99

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + + - 53 FROM tab2 AS cor0
----
-117
-128
-99

query I rowsort
SELECT col0 + - + col2 + 6 + - + col1 FROM tab1 AS cor0
----
-18
-53
27

query I rowsort
SELECT - - 92 + col0 + col2 AS col1 FROM tab1 cor0
----
236
239
251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 * - col1 * - col0 col2 FROM tab2 AS cor0
----
-197160
-291508
-53981

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8006
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( - - CAST( col1 AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8006
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( - - CAST ( col1 AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 + 55 = - - 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0 AS col0, + 61 FROM tab0 cor0
----
15
61
87
61
97
61

query II rowsort
SELECT DISTINCT + - col1 * - ( - ( + 47 ) ), col0 + 43 * + 90 AS col0 FROM tab2 AS cor0
----
-2397
3916
-3149
3945
-3619
3934

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 < NULL
----
0

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col0 AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
240
7656
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT + col2 DIV + + col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8012
SELECT + col2 / + + col2 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - col0 * ( + + 69 ) AS col0 FROM tab2
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: 
query II rowsort label-8014
SELECT - MAX( DISTINCT - 8 ) AS col1, + 2 FROM tab0
----
8
2

skipif mysql # not compatible
query II rowsort label-8014
SELECT - MAX ( DISTINCT - 8 ) AS col1, + 2 FROM tab0
----
8
2

query I rowsort
SELECT - col1 * 96 * - + col2 FROM tab1
----
129024
28320
306816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8016
SELECT MIN( ALL + CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 99 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 99 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL 17 + + - col2 FROM tab0
----
-30
-82
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT col0 DIV + col0 - 47 + col1 AS col2 FROM tab2
----
21
31
5

skipif mysql # not compatible
query I rowsort label-8019
SELECT col0 / + col0 - 47 + col1 AS col2 FROM tab2
----
21
31
5

query I rowsort
SELECT + + col0 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-145
-2118
60

query I rowsort
SELECT col0 / + + 91 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT + MAX( 84 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8022
SELECT + MAX ( 84 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
84

query I rowsort
SELECT 69 * - 42 FROM tab0
----
-2898
-2898
-2898

query II rowsort
SELECT DISTINCT + + col0, col0 FROM tab1 cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8025
SELECT + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8025
SELECT + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT ALL ( - + 43 ) DIV + col2 * - - 52 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL ( - + 43 ) / + col2 * - - 52 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + col0 * - col2 + - col2 AS col2, - col0 FROM tab1 AS cor0
----
-4992
-51
-5074
-85
-6256
-91

query I rowsort
SELECT - ( - + 52 ) FROM tab0 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query II rowsort label-8030
SELECT ALL + ( + COUNT( * ) ), 97 * + 53 AS col1 FROM tab2
----
3
5141

skipif mysql # not compatible
query II rowsort label-8030
SELECT ALL + ( + COUNT ( * ) ), 97 * + 53 AS col1 FROM tab2
----
3
5141

query I rowsort
SELECT ( + 11 ) FROM tab2
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT + ( + SUM( ALL col2 ) ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8032
SELECT + ( + SUM ( ALL col2 ) ) AS col2 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8033
SELECT + CAST( 70 AS SIGNED ) * 93 * + col2 * - col2, - col1 AS col0 FROM tab2
----
-10416000
-77
-21899640
-67
-3443790
-51

skipif mysql # not compatible
query II rowsort label-8033
SELECT + CAST ( 70 AS INTEGER ) * 93 * + col2 * - col2, - col1 AS col0 FROM tab2
----
-10416000
-77
-21899640
-67
-3443790
-51

query I rowsort
SELECT col0 * + - 10 * col0 FROM tab2
----
-21160
-40960
-56250

query I rowsort
SELECT ALL + 51 AS col0 FROM tab0
----
51
51
51

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 / + col2 + + + ( + 13 ) + - - 88 AND col2
----

query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab0 cor0
----
63

query I rowsort
SELECT DISTINCT - - 72 - - - ( - 35 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 WHERE - 7 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 WHERE - 7 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - - col0 * col0 * - + col1 AS col2 FROM tab2 AS cor0
----
-107916
-315392
-376875

query I rowsort
SELECT col0 * col0 * + 95 AS col2 FROM tab0 AS cor0
----
21375
719055
893855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-8042
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT - CAST( - col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8043
SELECT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ( + + col2 ) + - - 82 AS col2 FROM tab2 AS cor0
----
105
122
140

query I rowsort
SELECT DISTINCT + + 74 * + col0 - col0 FROM tab0 AS cor0
----
1095
6351
7081

query I rowsort
SELECT - + col0 * + col0 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-306
-7590
-9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 35 col1 FROM tab0 AS cor0
----
-14
-34
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL + MAX( + col1 ) col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8048
SELECT ALL + MAX ( + col1 ) col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT - col2 + ( col1 ) * 78 FROM tab0
----
-21
1628
6271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8050
SELECT col1 * - - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT col1 * - - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8051
SELECT DISTINCT + COUNT( * ) AS col2, + 20 AS col1 FROM tab1
----
3
20

skipif mysql # not compatible
query II rowsort label-8051
SELECT DISTINCT + COUNT ( * ) AS col2, + 20 AS col1 FROM tab1
----
3
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col1 - - 67 + + ( - col0 ) + - + col1 * - col2 col1 FROM tab0
----
167
298
3955

query I rowsort
SELECT DISTINCT - col0 + - + col1 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8054
SELECT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8054
SELECT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 94 <> - 31
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 25 NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN + col2 * - - 15 * + 60 AND + 94
----

query I rowsort
SELECT DISTINCT col2 * - + col2 + 28 + + col1 * col1 + - + col0 FROM tab1 AS cor0
----
-2478
-3513
-9043

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab0, tab1 cor0
----
49

query I rowsort
SELECT + - col1 AS col2 FROM tab2 WHERE NOT + - ( - 95 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + COUNT( * ) * + 78 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-8061
SELECT + COUNT ( * ) * + 78 FROM tab0
----
234

query I rowsort
SELECT ALL col0 * - 52 FROM tab2
----
-2392
-3328
-3900

query I rowsort
SELECT - col0 * - 80 FROM tab0
----
1200
6960
7760

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL + 11 DIV col2 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + 11 / col2 AS col2 FROM tab0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 15
----

query I rowsort
SELECT DISTINCT - col2 + - - col0 FROM tab1
----
-45
23
26

query II rowsort
SELECT - col1 * + - col1 * + - col0 - + col0, 16 + col0 AS col0 FROM tab0 AS cor0
----
-194
113
-38454
103
-98430
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT - COUNT( DISTINCT CAST( - col2 AS SIGNED ) ) * MIN( DISTINCT + col1 * - col0 ) AS col2 FROM tab0
----
5481

skipif mysql # not compatible
query I rowsort label-8068
SELECT - COUNT ( DISTINCT CAST ( - col2 AS INTEGER ) ) * MIN ( DISTINCT + col1 * - col0 ) AS col2 FROM tab0
----
5481

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT + COUNT( * ) * - 6 AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-8069
SELECT + COUNT ( * ) * - 6 AS col1 FROM tab0
----
-18

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 = col1 / col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE - col0 / + 85 <> 5 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8072
SELECT COUNT( * ) - COUNT( * ) DIV 63 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8072
SELECT COUNT ( * ) - COUNT ( * ) / 63 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT COUNT( * ) * 85 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-8073
SELECT COUNT ( * ) * 85 FROM tab2
----
255

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT ALL col2 / - ( 25 ) - - 30 AS col2 FROM tab0 WHERE NULL >= - col1 / - col0
----

query I rowsort
SELECT ALL + col0 + 82 * ( col2 * 79 ) FROM tab1
----
382287
440595
621939

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8077
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN + 82 * 95 + col0 AND - CAST( NULL AS SIGNED ) - - 22
----

skipif mysql # not compatible
query III rowsort label-8077
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN + 82 * 95 + col0 AND - CAST ( NULL AS INTEGER ) - - 22
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT col2 / 85 BETWEEN 7 AND - ( 38 )
----
23
40
58

query I rowsort
SELECT col1 * col1 - - col0 FROM tab1
----
110
2300
247

query I rowsort
SELECT + 52 * col2 FROM tab2 WHERE ( col2 ) IS NOT NULL
----
1196
2080
3016

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( col2 * col0 ) NOT BETWEEN + col0 AND + col1
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8082
SELECT COUNT( * ) DIV - MAX( col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8082
SELECT COUNT ( * ) / - MAX ( col1 ) FROM tab1
----
0

query I rowsort
SELECT ALL + col0 * 8 AS col2 FROM tab1
----
408
680
728

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT col0 DIV 36 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8084
SELECT col0 / 36 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8085
SELECT - CAST( NULL AS SIGNED ) / 78 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8085
SELECT - CAST ( NULL AS INTEGER ) / 78 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 * - 87 col1 FROM tab2 WHERE col2 IS NOT NULL
----
-3306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN col1 * 7 AND - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN col1 * 7 AND - CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 78 * + col0 - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT + 74 - - ( + COUNT( * ) + - COUNT( * ) ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + 74 - - ( + COUNT ( * ) + - COUNT ( * ) ) FROM tab0 AS cor0
----
74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 31 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * 67 FROM tab1 cor0
----
-3953
-4556
-6432

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col2 + + col2 AND 23
----

query I rowsort
SELECT 65 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT - ( + 96 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8095
SELECT - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0
----
-9

query I rowsort
SELECT ALL col0 * 31 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1426
1984
2325

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8097
SELECT * FROM tab1 AS cor0 WHERE NOT - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8097
SELECT * FROM tab1 AS cor0 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT DISTINCT + MIN( DISTINCT - col0 ) AS col1 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT + MIN ( DISTINCT - col0 ) AS col1 FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT DISTINCT 18 * COUNT( * ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT 18 * COUNT ( * ) FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT + SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8101
SELECT + SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NOT - col2 * ( + 8 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + 28 AS col0 FROM tab0 AS cor0
----
2268
28
588

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT - MAX( ALL col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 < col0 / + col1
----
-81

skipif mysql # not compatible
query I rowsort label-8104
SELECT - MAX ( ALL col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 < col0 / + col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT + - 66 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8105
SELECT + - 66 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-198

query I rowsort
SELECT DISTINCT ( - 94 ) AS col0 FROM tab0
----
-94

query I rowsort
SELECT DISTINCT + 77 * - col2 AS col2 FROM tab1
----
-4543
-5236
-7392

query III rowsort
SELECT * FROM tab1 WHERE NOT + 25 NOT BETWEEN ( NULL ) AND - col0 * - col2 - 65
----

query I rowsort
SELECT + 95 * + - col2 * - col2 AS col1 FROM tab2
----
152000
319580
50255

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL COUNT( * ) * 16 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL COUNT ( * ) * 16 FROM tab0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8111
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + - ( + col1 ) + col2 AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT DISTINCT - MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT - MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL + ( + ( 47 ) ) FROM tab0 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT ALL + COUNT( ALL + ( CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + COUNT ( ALL + ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8117
SELECT DISTINCT 47 / CAST( NULL AS DECIMAL ) * + 50 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT 47 / CAST ( NULL AS REAL ) * + 50 FROM tab0, tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - + ( - col0 ) ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8119
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT DISTINCT MIN( - 49 ) FROM tab0 WHERE ( NULL NOT BETWEEN + col1 * + 28 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT MIN ( - 49 ) FROM tab0 WHERE ( NULL NOT BETWEEN + col1 * + 28 AND NULL )
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE ( 4 ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL + + 5 + + + CAST( + 65 AS SIGNED ) FROM tab1 cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + + 5 + + + CAST ( + 65 AS INTEGER ) FROM tab1 cor0
----
70
70
70

query I rowsort
SELECT + - 66 - - ( - + col1 ) FROM tab2 AS cor0
----
-117
-133
-143

query I rowsort
SELECT ALL + col0 * + - 5 + col1 FROM tab1 AS cor0
----
-241
-408
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL + + COUNT( 57 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + + COUNT ( 57 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 < 81 OR NULL = - 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT + - ( + MIN( col0 ) ) + COUNT( * ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8127
SELECT + - ( + MIN ( col0 ) ) + COUNT ( * ) FROM tab1 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT DISTINCT + CAST( + ( - 12 ) AS SIGNED ) - + + col2 * 18 FROM tab1
----
-1074
-1236
-1740

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT + CAST ( + ( - 12 ) AS INTEGER ) - + + col2 * 18 FROM tab1
----
-1074
-1236
-1740

query I rowsort
SELECT DISTINCT 15 FROM tab1 WHERE NOT NULL = ( - ( + - col0 ) * + col0 + col1 )
----

query I rowsort
SELECT - ( col1 ) + - col0 AS col2 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8131
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 >= + + 60 * - CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8131
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 >= + + 60 * - CAST ( col2 AS REAL )
----

query I rowsort
SELECT + AVG ( 19 ) AS col0 FROM tab1 WHERE - 35 * + 27 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL - COUNT( * ) * - + 7 - - 59 AS col1 FROM tab1 WHERE NOT NULL < ( NULL )
----
59

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL - COUNT ( * ) * - + 7 - - 59 AS col1 FROM tab1 WHERE NOT NULL < ( NULL )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT + - MAX( - 92 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8134
SELECT + - MAX ( - 92 ) FROM tab2 AS cor0
----
92

query I rowsort
SELECT - + 51 AS col1 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT CAST( + + 12 AS SIGNED ) FROM tab2
----
12
12
12

skipif mysql # not compatible
query I rowsort label-8136
SELECT CAST ( + + 12 AS INTEGER ) FROM tab2
----
12
12
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8137
SELECT + 73 DIV COUNT( * ) * + COUNT( * ) * - - COUNT( * ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-8137
SELECT + 73 / COUNT ( * ) * + COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
216

query I rowsort
SELECT ALL 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - col1 - + 93 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-144
-160
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8140
SELECT - MIN( ALL - + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8140
SELECT - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT 18 IS NOT NULL
----

query II rowsort
SELECT ALL + 37, - col1 AS col0 FROM tab0 AS cor0
----
37
-1
37
-21
37
-81

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - col1, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8144
SELECT + col0 * + + CAST( + 12 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1020
1092
612

skipif mysql # not compatible
query I rowsort label-8144
SELECT + col0 * + + CAST ( + 12 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1020
1092
612

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT + - MAX( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT + - MAX ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT 39 * + COUNT( * ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-8146
SELECT 39 * + COUNT ( * ) FROM tab2 AS cor0
----
117

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT - - col1 NOT BETWEEN ( + 51 ) AND + col1 - 64 AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT + 43 * - - col2 <= 90
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8149
SELECT - - col0 DIV + 72 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8149
SELECT - - col0 / + 72 AS col1 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL - + SUM( DISTINCT col0 ) * SUM( ALL - + col0 ) FROM tab1 AS cor0
----
51529

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - + SUM ( DISTINCT col0 ) * SUM ( ALL - + col0 ) FROM tab1 AS cor0
----
51529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + + 40 * 13 * + + 22 FROM tab1 AS cor0
----
11440
11440
11440

query I rowsort
SELECT + + col1 AS col1 FROM tab2 cor0 WHERE NOT NULL > 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8154
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-8154
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + col2
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * - - col2 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8156
SELECT ALL CAST( NULL AS DECIMAL ) * - - 92 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL CAST ( NULL AS REAL ) * - - 92 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8157
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 * + col2 * col2 FROM tab2
----
-12167
-195112
-64000

query I rowsort
SELECT ALL - ( + 56 ) FROM tab1 WHERE ( - col2 - - - 28 ) IN ( 11 )
----

query I rowsort
SELECT ALL col1 + + - col2 AS col2 FROM tab0
----
-98
11
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col2 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT ALL 60 * - + 89 AS col0 FROM tab1 AS cor0
----
-5340
-5340
-5340

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + MAX( - + 81 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8163
SELECT + MAX ( - + 81 ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 53 * - 74 AND - 60
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE + col1 >= ( + col2 * - + col2 + + + col2 + - col2 )
----
-14
-47
-5

query I rowsort
SELECT ALL - 98 + 33 FROM tab0 AS cor0
----
-65
-65
-65

query II rowsort
SELECT ALL 34 * - col1 + + 65 AS col0, col0 AS col0 FROM tab0 cor0
----
-2689
15
-649
87
31
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT - COUNT( ALL col2 ) - + - MIN( - col2 ) FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8168
SELECT - COUNT ( ALL col2 ) - + - MIN ( - col2 ) FROM tab1 cor0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NOT - 52 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT ALL + CAST( NULL AS SIGNED ) / - 5 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + CAST ( NULL AS INTEGER ) / - 5 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8171
SELECT * FROM tab0 WHERE col0 + - - CAST( - ( col0 ) AS DECIMAL ) * - 91 BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8171
SELECT * FROM tab0 WHERE col0 + - - CAST ( - ( col0 ) AS REAL ) * - 91 BETWEEN col2 AND NULL
----

query I rowsort
SELECT - col1 * + - ( + - 50 ) FROM tab0
----
-1050
-4050
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT col0 DIV ( - col0 ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8173
SELECT col0 / ( - col0 ) AS col2 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + + col2 >= ( + col2 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + col0 ) ) <= ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 42 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT - ( - - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8180
SELECT - ( - - COUNT ( * ) ) AS col1 FROM tab0
----
-3

query II rowsort
SELECT + 79 * col1 AS col0, col2 FROM tab2 AS cor0
----
4029
23
5293
58
6083
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + - 9 <> + col0
----

query I rowsort
SELECT col0 * - 48 AS col0 FROM tab2 AS cor0
----
-2208
-3072
-3600

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT DISTINCT + SUM( + 88 ) + - 82 AS col0 FROM tab0 AS cor0 WHERE NOT + 51 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT + SUM ( + 88 ) + - 82 AS col0 FROM tab0 AS cor0 WHERE NOT + 51 < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8186
SELECT ALL - COUNT( * ) * - CAST( - - 31 AS SIGNED ) col2 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8186
SELECT ALL - COUNT ( * ) * - CAST ( - - 31 AS INTEGER ) col2 FROM tab2 AS cor0
----
93

query I rowsort
SELECT DISTINCT col0 * - + col2 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 69 col0 FROM tab1
----
-4071
-4692
-6624

query I rowsort
SELECT col1 + + 24 AS col2 FROM tab2
----
101
75
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT - 6 + + + COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT - 6 + + + COUNT ( * ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT ALL col1 DIV - 17 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL col1 / - 17 FROM tab1 AS cor0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT DISTINCT + col2 DIV + + col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT + col2 / + + col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 45 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 45 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 88 AS col1 FROM tab0 WHERE - - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8195
SELECT ALL 36 DIV + + 61 + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL 36 / + + 61 + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + 41 * - + 52 + col2 AS col1 FROM tab1 cor0
----
-2036
-2064
-2073

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8197
SELECT - - col2 + - - col0 * + col0 * col1 + - - col0 + CAST( - - col0 AS SIGNED ) AS col0, col1 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
36354
95
36612
79
389457
185

skipif mysql # not compatible
query II rowsort label-8197
SELECT - - col2 + - - col0 * + col0 * col1 + - - col0 + CAST ( - - col0 AS INTEGER ) AS col0, col1 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
36354
95
36612
79
389457
185

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 / + 99 + - col1 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 + col0 col1 FROM tab1 AS cor0
----
-27
13
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT + CAST( - + col0 AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-8200
SELECT + CAST ( - + col0 AS INTEGER ) + - + col1 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT ALL + col2 * + col2 + + 7 AS col2 FROM tab0 AS cor0
----
107
2216
9808

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - 19 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT col0 + + 97 + + 7 DIV - - col0 AS col2 FROM tab0 AS cor0
----
112
184
194

skipif mysql # not compatible
query I rowsort label-8203
SELECT col0 + + 97 + + 7 / - - col0 AS col2 FROM tab0 AS cor0
----
112
184
194

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL COUNT( col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL COUNT ( col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL >= - 51 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8206
SELECT 36 DIV - col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8206
SELECT 36 / - col2 FROM tab2
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 51 * + 0 BETWEEN - 36 * - 42 * + ( + - col0 ) AND NULL )
----

query I rowsort
SELECT - col1 * + + col0 * - + 58 + col1 * + col0 FROM tab2 AS cor0
----
138414
290752
296475

query II rowsort
SELECT + 16 * + - ( - col1 ), - col0 AS col0 FROM tab0 AS cor0
----
1296
-15
16
-97
336
-87

query II rowsort
SELECT DISTINCT - col2, 91 AS col0 FROM tab0
----
-10
91
-47
91
-99
91

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-82

query I rowsort
SELECT + col1 / ( - 11 ) - - col2 FROM tab1 WHERE NOT + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8213
SELECT + CAST( - + 7 AS SIGNED ) + - - col0 * - - col2 AS col0 FROM tab0 cor0
----
698
863
9596

skipif mysql # not compatible
query I rowsort label-8213
SELECT + CAST ( - + 7 AS INTEGER ) + - - col0 * - - col2 AS col0 FROM tab0 cor0
----
698
863
9596

query I rowsort
SELECT col0 + + + 86 AS col2 FROM tab1 cor0
----
137
171
177

query I rowsort
SELECT 96 + - - ( - ( - 59 ) ) * - + col2 FROM tab2 AS cor0
----
-1261
-2264
-3326

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col0 >= + + col0 + - col2 * + + col2 / + 40
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 72 col1 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT 79 * + col2 * 86 FROM tab1
----
400846
461992
652224

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT + col2 DIV + col2 + col0 * ( - + col1 ) AS col1 FROM tab2
----
-2345
-4927
-5024

skipif mysql # not compatible
query I rowsort label-8219
SELECT + col2 / + col2 + col0 * ( - + col1 ) AS col1 FROM tab2
----
-2345
-4927
-5024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + 29 - - col2 AS col1 FROM tab2 AS cor0
----
52
69
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8222
SELECT DISTINCT - MAX( - - ( + + 40 ) ) * - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT - MAX ( - - ( + + 40 ) ) * - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / + col1 BETWEEN - + col0 AND + col1 * col0
----

query I rowsort
SELECT 83 AS col0 FROM tab0 AS cor0 WHERE NOT + 32 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT DISTINCT - + 44 DIV - col1 col2 FROM tab0 cor0
----
0
2
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8225
SELECT DISTINCT - + 44 / - col1 col2 FROM tab0 cor0
----
0
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL + MAX( DISTINCT + - ( - 81 ) ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + MAX ( DISTINCT + - ( - 81 ) ) FROM tab2
----
81

query I rowsort
SELECT DISTINCT col2 + 43 AS col2 FROM tab1 WHERE NOT col2 > NULL
----

query II rowsort
SELECT ALL + 93 AS col2, + col0 FROM tab1
----
93
51
93
85
93
91

query I rowsort
SELECT col2 * + - 84 AS col1 FROM tab1
----
-4956
-5712
-8064

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col1 ) > - 9
----

query II rowsort
SELECT - col2 AS col2, + col0 * col2 AS col1 FROM tab2
----
-23
1058
-40
2560
-58
4350

query I rowsort
SELECT - 37 * + col1 FROM tab1
----
-1739
-185
-518

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8233
SELECT ALL CAST( NULL AS DECIMAL ) * + COUNT( * ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8233
SELECT ALL CAST ( NULL AS REAL ) * + COUNT ( * ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT MIN( - col2 ) * 77 AS col2 FROM tab2
----
-4466

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT MIN ( - col2 ) * 77 AS col2 FROM tab2
----
-4466

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT 24 DIV col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT 24 / col2 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8236
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8236
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT ALL - COUNT( * ) * - CAST( - 84 AS SIGNED ) FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL - COUNT ( * ) * - CAST ( - 84 AS INTEGER ) FROM tab1
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT ALL - col0 DIV + - col0 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8238
SELECT ALL - col0 / + - col0 col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT - - ( + + ( + - SUM( + col1 ) ) ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT - - ( + + ( + - SUM ( + col1 ) ) ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, - col0 * + 56 FROM tab0 AS cor0
----
10
-4872
47
-840
99
-5432

query I rowsort
SELECT + ( - - 53 ) FROM tab0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT ALL + col1 + + col2 * + 93 * 47 * ( col1 ) + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
13462797
16985831
5127257

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL + col1 + + col2 * + 93 * 47 * ( col1 ) + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
13462797
16985831
5127257

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT ( - COUNT( ALL - - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8244
SELECT ( - COUNT ( ALL - - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT + ( - + COUNT( * ) ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8245
SELECT + ( - + COUNT ( * ) ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-3

query I rowsort
SELECT ( - 72 ) FROM tab1 AS cor0
----
-72
-72
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-8247
SELECT + - 77 - col0 DIV col2, + col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-78
67
-78
77
-79
51

skipif mysql # not compatible
query II rowsort label-8247
SELECT + - 77 - col0 / col2, + col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-78
67
-78
77
-79
51

query I rowsort
SELECT - 54 * col2 + col0 AS col2 FROM tab2 AS cor0
----
-1196
-2096
-3057

query I rowsort
SELECT + + 13 * - - col0 + - + col1 AS col1 FROM tab0 AS cor0
----
1110
114
1260

query II rowsort
SELECT ALL - ( + 95 ) AS col0, + col2 AS col2 FROM tab1 AS cor0
----
-95
59
-95
68
-95
96

query I rowsort
SELECT + col1 + + + ( + 56 ) AS col0 FROM tab1 AS cor0
----
103
61
70

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8252
SELECT ALL * FROM tab0 WHERE NULL >= CAST( + - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8252
SELECT ALL * FROM tab0 WHERE NULL >= CAST ( + - col2 AS REAL )
----

query I rowsort
SELECT + col2 + 31 FROM tab1
----
127
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL - SUM( + col2 ) col2 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8254
SELECT ALL - SUM ( + col2 ) col2 FROM tab2
----
-121

query I rowsort
SELECT - col1 + + 46 FROM tab2
----
-21
-31
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8256
SELECT ALL - 48, - 14 - - - MIN( 24 ) AS col1 FROM tab2
----
-48
-38

skipif mysql # not compatible
query II rowsort label-8256
SELECT ALL - 48, - 14 - - - MIN ( 24 ) AS col1 FROM tab2
----
-48
-38

query II rowsort
SELECT + + col0 AS col0, 39 FROM tab0 AS cor0
----
15
39
87
39
97
39

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE 18 + + col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + - 12 * - + col2 - + col0 AS col1 FROM tab1 AS cor0
----
1101
623
725

query II rowsort
SELECT ALL - - col2 AS col2, - col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8261
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col1, CAST( - - col2 AS SIGNED ), + + col0 / + col2, 65 + col2, - + 99 )
----

skipif mysql # not compatible
query III rowsort label-8261
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col1, CAST ( - - col2 AS INTEGER ), + + col0 / + col2, 65 + col2, - + 99 )
----

query I rowsort
SELECT + col1 * + 12 AS col1 FROM tab1 cor0
----
168
564
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 + - + col0 col0 FROM tab1 cor0
----
-60
145
2118

query I rowsort
SELECT + + 65 AS col1 FROM tab2 AS cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col0 FROM tab1 AS cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT - 19 DIV col1 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8266
SELECT - 19 / col1 FROM tab1 AS cor0
----
-1
-3
0

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE col0 / - + col0 - - 77 * + col2 * 42 * + + col2 * + 4 + + 67 IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 72 + + 47 <> col0 - + 69
----

query I rowsort
SELECT DISTINCT - col1 * + + 29 AS col2 FROM tab2
----
-1479
-1943
-2233

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8271
SELECT 62, MAX( DISTINCT + + col2 ) DIV MIN( ALL - + col0 ) * - 45 AS col1 FROM tab1
----
62
45

skipif mysql # not compatible
query II rowsort label-8271
SELECT 62, MAX ( DISTINCT + + col2 ) / MIN ( ALL - + col0 ) * - 45 AS col1 FROM tab1
----
62
45

query I rowsort
SELECT ALL 5 * col1 + ( col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
278
393
425

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL SUM( - 70 ) FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL SUM ( - 70 ) FROM tab2 AS cor0
----
-210

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 25 + + col0 + + + 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 < - ( - 71 ) * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 / 60 AS col0 FROM tab2 cor0 WHERE 11 + + 53 IN ( + col2 )
----

query I rowsort
SELECT - 62 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8279
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-8279
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + + 97 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT 88 + COUNT( DISTINCT - 99 ) col2 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8281
SELECT 88 + COUNT ( DISTINCT - 99 ) col2 FROM tab0 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT DISTINCT - + COUNT( * ) - + 48 - + 89 FROM tab1 cor0
----
-140

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT - + COUNT ( * ) - + 48 - + 89 FROM tab1 cor0
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8283
SELECT + col2 * CAST( NULL AS SIGNED ) AS col0, 76 AS col2 FROM tab0
----
NULL
76
NULL
76
NULL
76

skipif mysql # not compatible
query II rowsort label-8283
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col0, 76 AS col2 FROM tab0
----
NULL
76
NULL
76
NULL
76

query I rowsort
SELECT ALL ( col1 ) * - col0 * - col1 AS col0 FROM tab2
----
119646
336675
379456

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN - col2 * + - 21 * col0 + - + ( + col1 ) + col1 / + + col1 AND - - col2
----

query II rowsort
SELECT - col0 * + col1 AS col0, 4 AS col1 FROM tab1
----
-425
4
-4277
4
-714
4

query I rowsort
SELECT + col2 * + col0 * - 73 FROM tab2
----
-186880
-317550
-77234

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 - + - 91 IS NULL
----

query I rowsort
SELECT DISTINCT 71 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * + 82 AS col0 FROM tab2
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT DISTINCT MIN( ALL - 79 ) FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT MIN ( ALL - 79 ) FROM tab1 AS cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 8 col2 FROM tab1 cor0
----
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - - col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-8295
SELECT DISTINCT + col2, col0 DIV - 97 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-8295
SELECT DISTINCT + col2, col0 / - 97 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT + MAX( - col0 ) AS col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8297
SELECT + MAX ( - col0 ) AS col2 FROM tab0 cor0
----
-15

query II rowsort
SELECT ( col1 ) AS col0, - col2 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-8299
SELECT - 30 DIV + 27, + 0 DIV + + 37 AS col0 FROM tab2
----
-1
0
-1
0
-1
0

skipif mysql # not compatible
query II rowsort label-8299
SELECT - 30 / + 27, + 0 / + + 37 AS col0 FROM tab2
----
-1
0
-1
0
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8301
SELECT ALL col2 DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL col2 / - + col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - col2 col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT 79 * col0 AS col1 FROM tab2
----
3634
5056
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT - + COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col0 * col0 + - col1 * col1 + + + 22
----
0

skipif mysql # not compatible
query I rowsort label-8304
SELECT - + COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col0 * col0 + - col1 * col1 + + + 22
----
0

query I rowsort
SELECT DISTINCT - col0 * - col1 - col0 - col2 + + col0 AS col0 FROM tab0 WHERE NOT 2 IS NULL
----
-2
1168
1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + + 57 FROM tab2
----
103
121
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL - + COUNT( * ) + + - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL - + COUNT ( * ) + + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 40 * + - col0 + 14 FROM tab1 AS cor0
----
-2026
-3386
-3626

query I rowsort
SELECT ALL 43 * - col2 * - 40 + + col1 * 89 AS col1 FROM tab0 AS cor0
----
170369
19069
88049

query I rowsort
SELECT + + col2 + - 39 FROM tab1 AS cor0
----
20
29
57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT - + COUNT( * ) + - + 6 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8313
SELECT - + COUNT ( * ) + - + 6 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL + col1 + + - col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + + 49 + - col0 AS col1 FROM tab2 cor0
----
-15
-26
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 22 * - col1, col1, - + col0 )
----

query I rowsort
SELECT col0 + 65 * col2 AS col0 FROM tab1
----
3920
4511
6291

query III rowsort
SELECT * FROM tab1 WHERE - 28 - - col1 IS NULL
----

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8321
SELECT DISTINCT + 13 * COUNT( * ) + - CAST( NULL AS SIGNED ) / - - 97 AS col1 FROM tab0 WHERE NOT - - col0 NOT BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT + 13 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) / - - 97 AS col1 FROM tab0 WHERE NOT - - col0 NOT BETWEEN col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - SUM( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8322
SELECT - SUM ( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT - - COUNT( * ) * - - COUNT( ALL + col0 ) + COUNT( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT - - COUNT ( * ) * - - COUNT ( ALL + col0 ) + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8325
SELECT DISTINCT 56 AS col0, - 65 + + COUNT( * ) FROM tab2 AS cor0
----
56
-62

skipif mysql # not compatible
query II rowsort label-8325
SELECT DISTINCT 56 AS col0, - 65 + + COUNT ( * ) FROM tab2 AS cor0
----
56
-62

query II rowsort
SELECT - col0, - col0 AS col2 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 38 AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT + ( - COUNT( * ) ) * - - CAST( + 60 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-8328
SELECT + ( - COUNT ( * ) ) * - - CAST ( + 60 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8329
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8330
SELECT DISTINCT - CAST( + AVG ( + - col0 ) AS SIGNED ) AS col0 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT - CAST ( + AVG ( + - col0 ) AS INTEGER ) AS col0 FROM tab0
----
66

query II rowsort
SELECT - 9 * - col2, 82 AS col1 FROM tab2
----
207
82
360
82
522
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8332
SELECT - + 67 * - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-8332
SELECT - + 67 * - col2 / col2 AS col1 FROM tab1 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT - MIN( + col1 ) * - - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8333
SELECT - MIN ( + col1 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT - CAST( 57 AS SIGNED ) FROM tab0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-8335
SELECT - CAST ( 57 AS INTEGER ) FROM tab0
----
-57
-57
-57

query II rowsort
SELECT col1 AS col0, + col0 * col0 FROM tab1
----
14
2601
47
8281
5
7225

query I rowsort
SELECT + ( + - 76 ) AS col0 FROM tab1 AS cor0
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT + CAST( NULL AS SIGNED ) * + 24 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT + CAST ( NULL AS INTEGER ) * + 24 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8339
SELECT + CAST( NULL AS SIGNED ) * + 0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT + CAST ( NULL AS INTEGER ) * + 0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 17 AS col0 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT + MIN( DISTINCT - 28 ) * + + 87 col2 FROM tab2 AS cor0
----
-2436

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8341
SELECT + MIN ( DISTINCT - 28 ) * + + 87 col2 FROM tab2 AS cor0
----
-2436

query II rowsort
SELECT - col1 AS col0, col2 * 43 * + col2 AS col0 FROM tab0 cor0
----
-1
421443
-21
4300
-81
94987

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 45 <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8344
SELECT col0 * + + 37 + - col0 DIV 29 * 54 + col2 AS col1 FROM tab2
----
1671
2300
2725

skipif mysql # not compatible
query I rowsort label-8344
SELECT col0 * + + 37 + - col0 / 29 * 54 + col2 AS col1 FROM tab2
----
1671
2300
2725

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL COUNT( * ) + + 18 + COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL COUNT ( * ) + + 18 + COUNT ( * ) FROM tab2 AS cor0
----
24

query I rowsort
SELECT DISTINCT + col1 * + - col1 * + 92 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-18032
-203228
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT - SUM( - + 36 ) FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-8347
SELECT - SUM ( - + 36 ) FROM tab0 AS cor0
----
108

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE - 97 <> - - 55
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + - 99 * + + col2 - + col2 FROM tab2 AS cor0
----
-2300
-4000
-5800

query I rowsort
SELECT DISTINCT - col2 / col0 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT DISTINCT + CAST( - + 78 AS SIGNED ) col0 FROM tab0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8351
SELECT DISTINCT + CAST ( - + 78 AS INTEGER ) col0 FROM tab0
----
-78

query I rowsort
SELECT ALL - 76 + - ( + col2 ) FROM tab2
----
-116
-134
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT + SUM( DISTINCT + col1 ) + - MAX( - - col0 ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8353
SELECT + SUM ( DISTINCT + col1 ) + - MAX ( - - col0 ) AS col1 FROM tab0
----
6

query I rowsort
SELECT ALL - ( col0 ) * col1 * ( - ( + + 77 ) ) FROM tab0
----
140679
7469
93555

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN + col0 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN 92 AND NULL
----

query I rowsort
SELECT ALL - ( col2 ) * - 36 * + + col1 FROM tab1 cor0
----
10620
115056
48384

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 - - 37 + col2 + ( + 35 ) + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 24 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24

query I rowsort
SELECT - 33 * ( - 38 ) FROM tab2
----
1254
1254
1254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 26 col2, col0 + col0 FROM tab2 AS cor0
----
-26
128
-26
150
-26
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT - 33 DIV + col1 + + - 14 * 31 * + 25 FROM tab2 cor0
----
-10850
-10850
-10850

skipif mysql # not compatible
query I rowsort label-8363
SELECT - 33 / + col1 + + - 14 * 31 * + 25 FROM tab2 cor0
----
-10850
-10850
-10850

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT - SUM( + 67 ) FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8364
SELECT - SUM ( + 67 ) FROM tab0 AS cor0
----
-201

query I rowsort
SELECT DISTINCT - ( 66 ) * 9 + ( - + col2 ) AS col1 FROM tab2
----
-617
-634
-652

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + 17 + - SUM( ALL ( col0 ) ) * - 83 FROM tab1
----
18858

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 17 + - SUM ( ALL ( col0 ) ) * - 83 FROM tab1
----
18858

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + 96 ) AS col2 FROM tab2 WHERE NOT col1 - - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 5 + + col1 AS col1 FROM tab0
----
26
6
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * - + 24 col2 FROM tab1 AS cor0
----
-1224
-2040
-2184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8369
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * - + 24 col2 FROM tab1 AS cor0
----
-1224
-2040
-2184

query I rowsort
SELECT ALL + - ( - col1 ) * - - 99 AS col1 FROM tab1 AS cor0
----
1386
4653
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8371
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8371
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT 98 IS NOT NULL
----

query I rowsort
SELECT 11 + + 10 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN 88 AND - + 53
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT DISTINCT - col2 DIV col1 + - - col0 * col0 AS col2 FROM tab0 AS cor0
----
225
7569
9310

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT - col2 / col1 + - - col0 * col0 AS col2 FROM tab0 AS cor0
----
225
7569
9310

query I rowsort
SELECT ALL col2 - + col2 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 40 + + col1 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
488
58
6536

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT + - MIN( ALL + ( + col0 ) ) + 98 * + - 5 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-539

skipif mysql # not compatible
query I rowsort label-8379
SELECT + - MIN ( ALL + ( + col0 ) ) + 98 * + - 5 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-539

query I rowsort
SELECT + col1 + + col0 + + col1 * + col1 FROM tab1 cor0
----
115
2347
261

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL - 44 - + 5 + - COUNT( + 21 ) AS col2 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL - 44 - + 5 + - COUNT ( + 21 ) AS col2 FROM tab0 AS cor0
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8382
SELECT DISTINCT - col1 col0 FROM tab1 cor0 WHERE + col1 / + CAST( - 31 AS DECIMAL ) IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8382
SELECT DISTINCT - col1 col0 FROM tab1 cor0 WHERE + col1 / + CAST ( - 31 AS REAL ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT + 94 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT + 94 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT + ( COUNT( * ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8384
SELECT DISTINCT + ( COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT + MIN( + 18 ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-8385
SELECT + MIN ( + 18 ) AS col0 FROM tab0
----
18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + 50 NOT IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 78 <= NULL
----

query I rowsort
SELECT col0 * 69 FROM tab0
----
1035
6003
6693

query I rowsort
SELECT DISTINCT 96 * - col1 * 85 AS col2 FROM tab2
----
-416160
-546720
-628320

query II rowsort
SELECT - 41, - col0 FROM tab1 WHERE NOT + 84 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8391
SELECT - - col2 DIV col1 * + col0 DIV - col1 * - + 51 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8391
SELECT - - col2 / col1 * + col0 / - col1 * - + 51 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + 53 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
53
53
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8393
SELECT + COUNT( * ) DIV - + ( - 98 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8393
SELECT + COUNT ( * ) / - + ( - 98 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 55 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
55

query I rowsort
SELECT ( - 80 ) FROM tab1
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT - CAST( + + 41 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif mysql # not compatible
query I rowsort label-8396
SELECT - CAST ( + + 41 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 * - 20 + + col0, + col0 col2 FROM tab2 AS cor0
----
-1105
75
-1116
64
-1134
46

query I rowsort
SELECT + col1 * + 52 AS col1 FROM tab1 cor0
----
2444
260
728

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT COUNT( + 55 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT COUNT ( + 55 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 98 FROM tab1 WHERE NOT col0 <> + 53
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( ( ( NULL ) IS NULL ) ) )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 + - + ( 93 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2 + col1, + col0 + - - col1, + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT MIN( DISTINCT - col1 ) col2 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8404
SELECT MIN ( DISTINCT - col1 ) col2 FROM tab0
----
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - - - 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + - col0 * - + col0 AS col0 FROM tab1 AS cor0
----
2652
7310
8372

query I rowsort
SELECT - + col2 + 64 * - 37 FROM tab2 AS cor0
----
-2391
-2408
-2426

query I rowsort
SELECT col2 * - ( col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + col1 - - + 85 + + col0 * 54 AS col1 FROM tab1 cor0
----
2853
4680
5046

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8410
SELECT + 29 * - CAST( NULL AS DECIMAL ) + - + 19 * + COUNT( DISTINCT - - 81 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT + 29 * - CAST ( NULL AS REAL ) + - + 19 * + COUNT ( DISTINCT - - 81 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + + col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - ( + COUNT( * ) ) - 50 * + COUNT( * ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - ( + COUNT ( * ) ) - 50 * + COUNT ( * ) FROM tab0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

query II rowsort
SELECT col0 + - + col0 AS col1, col1 * col1 AS col2 FROM tab0
----
0
1
0
441
0
6561

query I rowsort
SELECT DISTINCT - col2 + 85 AS col2 FROM tab1
----
-11
17
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL ( - - COUNT( * ) ) - - 23 AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL ( - - COUNT ( * ) ) - - 23 AS col1 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT DISTINCT - - 76 + COUNT( * ) + + 45 AS col1 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT - - 76 + COUNT ( * ) + + 45 AS col1 FROM tab2 AS cor0
----
124

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 42 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 61 col0 FROM tab0
----
-5307
-5917
-915

query I rowsort
SELECT DISTINCT ( + - col1 ) FROM tab2 WHERE NOT ( - col0 ) < NULL
----

query II rowsort
SELECT col0 AS col1, 2 FROM tab2
----
46
2
64
2
75
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8422
SELECT - 54 * + 49 * + col1 AS col0, 46 DIV 40 FROM tab1
----
-124362
1
-13230
1
-37044
1

skipif mysql # not compatible
query II rowsort label-8422
SELECT - 54 * + 49 * + col1 AS col0, 46 / 40 FROM tab1
----
-124362
1
-13230
1
-37044
1

query I rowsort
SELECT ALL - 80 * - 31 FROM tab1
----
2480
2480
2480

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 35 IS NULL
----

query I rowsort
SELECT - col0 * - + 47 AS col0 FROM tab2
----
2162
3008
3525

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT ALL col1 DIV + - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL col1 / + - col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT + 67 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - - col2 - - + 84 FROM tab1 WHERE NOT NULL IS NOT NULL
----
143
152
180

query I rowsort
SELECT DISTINCT 24 + + col0 AS col1 FROM tab1
----
109
115
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8430
SELECT DISTINCT + - ( + SUM( ALL 13 ) ) AS col0, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-117
9

skipif mysql # not compatible
query II rowsort label-8430
SELECT DISTINCT + - ( + SUM ( ALL 13 ) ) AS col0, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-117
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT DISTINCT - - 22 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT - - 22 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT ALL - 41 + - ( + col2 ) + - + col2 FROM tab0 AS cor0
----
-135
-239
-61

query I rowsort
SELECT ALL 67 - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
0
16

query I rowsort
SELECT ALL 7 AS col2 FROM tab1 cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT + ( CAST( NULL AS SIGNED ) ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT + ( CAST ( NULL AS INTEGER ) ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + ( - COUNT( * ) ) + - 39 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8437
SELECT + ( - COUNT ( * ) ) + - 39 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT - ( - COUNT( * ) ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - ( - COUNT ( * ) ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT col1 + 65 + + col1 * + col2 + - CAST( - + 65 AS SIGNED ) + col1 AS col0 FROM tab2
----
1405
3364
4150

skipif mysql # not compatible
query I rowsort label-8439
SELECT col1 + 65 + + col1 * + col2 + - CAST ( - + 65 AS INTEGER ) + col1 AS col0 FROM tab2
----
1405
3364
4150

query I rowsort
SELECT - ( col1 ) + + col2 * - ( - + ( - + 74 ) ) + - col1 FROM tab1
----
-4376
-5126
-7132

onlyif mysql # DIV for integer division: 
query I rowsort label-8441
SELECT DISTINCT 97 DIV col2 AS col0 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT 97 / col2 AS col0 FROM tab2
----
1
2
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8442
SELECT ALL COUNT( * ) + - 24 DIV + 41 + MIN( 66 ) AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL COUNT ( * ) + - 24 / + 41 + MIN ( 66 ) AS col2 FROM tab1
----
69

query I rowsort
SELECT ALL + col1 + 98 FROM tab1
----
103
112
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT COUNT( * ) + + 4 AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-8444
SELECT COUNT ( * ) + + 4 AS col1 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL - COUNT( + col0 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8445
SELECT ALL - COUNT ( + col0 ) col2 FROM tab1
----
-3

query I rowsort
SELECT - col0 + ( + col0 ) + - 99 AS col2 FROM tab0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT DISTINCT - + MIN( DISTINCT + col1 ) + COUNT( * ) FROM tab2 WHERE - + col2 + - col2 + - + col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT - + MIN ( DISTINCT + col1 ) + COUNT ( * ) FROM tab2 WHERE - + col2 + - col2 + - + col1 >= NULL
----
NULL

query II rowsort
SELECT DISTINCT + col0 + col0 * 6 * - col0 * col0 AS col2, 53 AS col0 FROM tab1 AS cor0
----
-3684665
53
-4521335
53
-795855
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT - SUM( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8449
SELECT - SUM ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
227

query II rowsort
SELECT 42 AS col1, col0 AS col1 FROM tab0 AS cor0
----
42
15
42
87
42
97

query I rowsort
SELECT DISTINCT ( + col2 ) - + col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL 30 - - + ( - + col0 ) FROM tab1
----
-21
-55
-61

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + 22 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT - CAST( AVG ( - - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8455
SELECT - CAST ( AVG ( - - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8456
SELECT SUM( ALL - + col0 ) DIV - - 51 AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8456
SELECT SUM ( ALL - + col0 ) / - - 51 AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - ( 74 ) FROM tab2 AS cor0
----
-74
-74
-74

query II rowsort
SELECT - col2, 62 AS col2 FROM tab2 AS cor0
----
-23
62
-40
62
-58
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT + COUNT( ALL - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8459
SELECT + COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8460
SELECT DISTINCT + 56, - COUNT( * ) AS col2 FROM tab1 WHERE ( + col1 IS NOT NULL )
----
56
-3

skipif mysql # not compatible
query II rowsort label-8460
SELECT DISTINCT + 56, - COUNT ( * ) AS col2 FROM tab1 WHERE ( + col1 IS NOT NULL )
----
56
-3

query I rowsort
SELECT DISTINCT + 20 * - col0 AS col2 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8462
SELECT ALL 64 * col2, CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
3008
81
6336
1
640
21

skipif mysql # not compatible
query II rowsort label-8462
SELECT ALL 64 * col2, CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
3008
81
6336
1
640
21

query III rowsort
SELECT * FROM tab1 WHERE NOT + 69 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT ( - 92 * col0 ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT COUNT( DISTINCT + ( col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8465
SELECT COUNT ( DISTINCT + ( col0 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8468
SELECT ALL CAST( NULL AS DECIMAL ) * + - CAST( NULL AS SIGNED ) * + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL CAST ( NULL AS REAL ) * + - CAST ( NULL AS INTEGER ) * + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 51 * - col2 + + col1 FROM tab0 AS cor0
----
-2316
-489
-5048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT ALL + col0 * - + col1 + col0 + - col1 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + col0 * - + col1 + col0 + - col1 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * - - 95 * - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * - - 95 * - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT - + 0 * CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8472
SELECT - + 0 * CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - + col2 AS col0, + 74 * + + col0 AS col0 FROM tab2 AS cor0
----
-23
3404
-40
4736
-58
5550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT ALL - 91 * CAST( + col1 AS SIGNED ) * col0 AS col1 FROM tab1 cor0
----
-38675
-389207
-64974

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - 91 * CAST ( + col1 AS INTEGER ) * col0 AS col1 FROM tab1 cor0
----
-38675
-389207
-64974

query I rowsort
SELECT ALL + - 20 * - 79 AS col0 FROM tab2 cor0
----
1580
1580
1580

query II rowsort
SELECT 56 * col0, - col2 * + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT ( - col0 ) DIV + 11 - 22 - - 28 col1 FROM tab1
----
-1
-2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8478
SELECT ( - col0 ) / + 11 - 22 - - 28 col1 FROM tab1
----
-1
-2
2

query I rowsort
SELECT DISTINCT ( + 12 ) AS col1 FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT DISTINCT - - 74 * + + col2 + - - col0 / + 26 + - - col2 + - 69 * + col2 + - 22 / - col0 FROM tab0 WHERE + - col1 * + 72 + + 27 - col1 <> - - col0 * - CAST( NULL AS SIGNED ) * - col1 + - col1 + + + col2
----

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT - - 74 * + + col2 + - - col0 / + 26 + - - col2 + - 69 * + col2 + - 22 / - col0 FROM tab0 WHERE + - col1 * + 72 + + 27 - col1 <> - - col0 * - CAST ( NULL AS INTEGER ) * - col1 + - col1 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT + COUNT( + col2 ) - - COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8481
SELECT + COUNT ( + col2 ) - - COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT 10 - - COUNT( CAST( NULL AS SIGNED ) ) * - COUNT( * ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8482
SELECT 10 - - COUNT ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) col0 FROM tab0
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - 84 * + 49 BETWEEN - col1 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT DISTINCT + + AVG ( DISTINCT - - col0 ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT + + AVG ( DISTINCT - - col0 ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8485
SELECT - MIN( ALL + CAST( 22 AS SIGNED ) ) + COUNT( * ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8485
SELECT - MIN ( ALL + CAST ( 22 AS INTEGER ) ) + COUNT ( * ) FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8486
SELECT col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT CAST( + col0 AS SIGNED ) * 49 FROM tab1
----
2499
4165
4459

skipif mysql # not compatible
query I rowsort label-8487
SELECT CAST ( + col0 AS INTEGER ) * 49 FROM tab1
----
2499
4165
4459

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT - col1 DIV col0 + - - col0 AS col2 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-8488
SELECT - col1 / col0 + - - col0 AS col2 FROM tab2 AS cor0
----
45
63
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND - 42 * + - col1 + + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 > NULL
----

query II rowsort
SELECT DISTINCT + 53, col2 AS col0 FROM tab1 AS cor0
----
53
59
53
68
53
96

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT - 87 AS col2, - col2 FROM tab2 AS cor0
----
-87
-23
-87
-40
-87
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + + col1 ) IS NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 36 IS NOT NULL
----

query I rowsort
SELECT ( - ( - col0 ) ) * 5 - - col1 FROM tab0
----
156
456
486

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8497
SELECT DISTINCT COUNT( * ), + COUNT( DISTINCT - 17 ) DIV - 78 * + + 92 AS col0 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-8497
SELECT DISTINCT COUNT ( * ), + COUNT ( DISTINCT - 17 ) / - 78 * + + 92 AS col0 FROM tab0
----
3
0

query I rowsort
SELECT ALL + col0 * - 26 * + col1 FROM tab2
----
-128128
-130650
-60996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8499
SELECT + 35, - CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
35
46
35
64
35
75

skipif mysql # not compatible
query II rowsort label-8499
SELECT + 35, - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
35
46
35
64
35
75

query II rowsort
SELECT - col0 AS col0, - col1 AS col2 FROM tab2
----
-46
-51
-64
-77
-75
-67

query II rowsort
SELECT + ( 48 ), col2 AS col0 FROM tab2
----
48
23
48
40
48
58

query II rowsort
SELECT ALL col1 AS col0, 77 * + - col0 + + col2 FROM tab0
----
1
-7370
21
-6689
81
-1108

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL + MIN( DISTINCT + col1 ) col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8503
SELECT ALL + MIN ( DISTINCT + col1 ) col1 FROM tab0 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT ALL 99 * 63 DIV col0 - + col0 col0 FROM tab0 AS cor0
----
-16
-33
400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8504
SELECT ALL 99 * 63 / col0 - + col0 col0 FROM tab0 AS cor0
----
-16
-33
400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT CAST( - - col2 AS SIGNED ) AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8505
SELECT CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8506
SELECT ALL - 38 DIV ( - - 78 ) + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - 38 / ( - - 78 ) + COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT DISTINCT - 98 + + ( - col0 ) + + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-160
-195
-294

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - 98 + + ( - col0 ) + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-160
-195
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT DISTINCT + 75 * - CAST( NULL AS SIGNED ) + + - col2 * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT + 75 * - CAST ( NULL AS INTEGER ) + + - col2 * - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - ( + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - ( + col2 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col2 * - + col2 col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT ALL + COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8511
SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1
----
3
3

query II rowsort
SELECT ALL 25 AS col1, + ( + col0 ) FROM tab1
----
25
51
25
85
25
91

query I rowsort
SELECT ALL 35 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL COUNT( * ) * 62 + - 58 FROM tab1
----
128

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL COUNT ( * ) * 62 + - 58 FROM tab1
----
128

query I rowsort
SELECT DISTINCT + col1 + ( + + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT MIN( ALL + col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8516
SELECT MIN ( ALL + col1 ) col1 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT - 42 - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT - 42 - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - MIN( ALL - 54 ) - COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8518
SELECT - MIN ( ALL - 54 ) - COUNT ( * ) FROM tab0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 66 IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + 85 - - ( - col2 + - col0 ) AS col1 FROM tab0 WHERE NULL < 92
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - 20 * 50 FROM tab1
----
-904
-932
-941

query I rowsort
SELECT DISTINCT col0 + + 77 FROM tab1
----
128
162
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 col2 FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT col2 * 1 - col0 AS col1 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + ( - 78 ) AS col2 FROM tab0
----
-78

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col1 - + col0 < ( 38 + col0 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT COUNT( 75 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8528
SELECT COUNT ( 75 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( 58 ) <= + col2 + col2
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 WHERE + col0 + + 25 = NULL
----

query I rowsort
SELECT + 32 FROM tab2 WHERE ( NULL ) NOT BETWEEN - col0 AND - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * - 81 ) < + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 23 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT DISTINCT + MIN( col1 ) + + MAX( 37 ) FROM tab1 WHERE + col0 + + col0 / col0 IS NOT NULL
----
42

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT + MIN ( col1 ) + + MAX ( 37 ) FROM tab1 WHERE + col0 + + col0 / col0 IS NOT NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT DISTINCT SUM( DISTINCT + 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT SUM ( DISTINCT + 15 ) FROM tab1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8536
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) <= - col1
----

skipif mysql # not compatible
query III rowsort label-8536
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) <= - col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 ) = ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) <= ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 81 / - col1 )
----

query I rowsort
SELECT - ( - 83 ) * + 46 AS col1 FROM tab2 WHERE ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8541
SELECT col1 DIV 58 + col0 FROM tab2
----
46
65
76

skipif mysql # not compatible
query I rowsort label-8541
SELECT col1 / 58 + col0 FROM tab2
----
46
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
81

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
81

query I rowsort
SELECT 21 + + col0 FROM tab2
----
67
85
96

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE 32 NOT IN ( - 4 )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT + COUNT( * ) * + CAST( + 86 AS SIGNED ) + - ( SUM( ALL 18 ) ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT + COUNT ( * ) * + CAST ( + 86 AS INTEGER ) + - ( SUM ( ALL 18 ) ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND + 80
----
NULL

query I rowsort
SELECT + col1 + 69 AS col2 FROM tab0
----
150
70
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT COUNT( * ) + - 91 * COUNT( * ) col1 FROM tab2
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8547
SELECT COUNT ( * ) + - 91 * COUNT ( * ) col1 FROM tab2
----
-270

query I rowsort
SELECT DISTINCT col0 + 4 FROM tab1
----
55
89
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 7 + - 92 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 35 + - col2 FROM tab1 AS cor0
----
-103
-131
-94

query I rowsort
SELECT ALL - 46 + col1 AS col1 FROM tab0 AS cor0
----
-25
-45
35

query I rowsort
SELECT DISTINCT + + col1 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL - - 2 * + 69 - + COUNT( DISTINCT 29 ) AS col2 FROM tab1 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - - 2 * + 69 - + COUNT ( DISTINCT 29 ) AS col2 FROM tab1 AS cor0
----
137

query I rowsort
SELECT + col0 + - col2 FROM tab0 AS cor0 WHERE col2 / + col1 NOT IN ( - col0 )
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL SUM( DISTINCT - 66 ) AS col0 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL SUM ( DISTINCT - 66 ) AS col0 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT 36 - 5 AS col0 FROM tab1
----
31
31
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) * + col0 IN ( col1 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + 99 ) - - 9 * - col2 FROM tab0
----
-324
-792
9

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN 22 + 7 * 2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8561
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 93 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8561
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 93 col1 FROM tab0
----
NULL

query I rowsort
SELECT 85 + - col1 + - col0 AS col1 FROM tab2
----
-12
-56
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT COUNT( + col2 ) + 57 AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-8563
SELECT COUNT ( + col2 ) + 57 AS col0 FROM tab0
----
60

query I rowsort
SELECT ALL + 15 + + 49 FROM tab2
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8565
SELECT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab0 WHERE ( NULL ) <= 65
----

skipif mysql # not compatible
query I rowsort label-8565
SELECT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab0 WHERE ( NULL ) <= 65
----

query I rowsort
SELECT ALL + ( - + 70 ) + - col2 FROM tab1 AS cor0
----
-129
-138
-166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8567
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 + + col0 AND CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8567
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 + + col0 AND CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT ALL 88 + - col2 AS col1 FROM tab1 AS cor0
----
-8
20
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab0 AS cor0 WHERE ( + col0 ) NOT BETWEEN col2 * + ( - col0 * - col0 ) AND ( NULL )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE ( + col0 ) NOT BETWEEN col2 * + ( - col0 * - col0 ) AND ( NULL )
----
1
21
81

query I rowsort
SELECT DISTINCT - + col0 * + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT + - ( + - col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - ( col2 ) ) AND 30 * col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 - ( + 12 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 80 * - 94 FROM tab2 AS cor0 WHERE + 48 IS NOT NULL
----
-7520
-7520
-7520

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8575
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL + - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col1 * - 5 AS col1 FROM tab1
----
-235
-25
-70

query I rowsort
SELECT 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 29794915b585eea848ad670075452c88

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 23 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8579
SELECT DISTINCT 4 DIV - MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT 4 / - MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39, ( col2 ) col0 FROM tab1 AS cor0
----
39
59
39
68
39
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 * + col2 * + col1 ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT - MIN( ALL - 84 ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-8582
SELECT - MIN ( ALL - 84 ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IS NULL OR + col2 * 74 + col2 < ( 43 * 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 4 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4
4
4

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT COUNT( * ) * ( + 55 ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT COUNT ( * ) * ( + 55 ) FROM tab1
----
165

query I rowsort
SELECT ( - + col0 ) * col0 * col0 AS col1 FROM tab0
----
-3375
-658503
-912673

query I rowsort
SELECT DISTINCT - 8 + + col2 FROM tab0
----
2
39
91

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 <> + ( col2 ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT ALL COUNT( * ) * + COUNT( ALL col0 ) + 66 AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL COUNT ( * ) * + COUNT ( ALL col0 ) + 66 AS col0 FROM tab2
----
75

query I rowsort
SELECT + col0 + - col0 - - - 48 * - - col0 AS col1 FROM tab1
----
-2448
-4080
-4368

query I rowsort
SELECT ALL col2 + + - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IN ( + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 44 AS col1 FROM tab1 cor0
----
-44
-44
-44

query I rowsort
SELECT ALL - - 91 * - col0 FROM tab0 AS cor0 WHERE col2 - col0 IS NOT NULL
----
-1365
-7917
-8827

query I rowsort
SELECT + col2 * ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL + + 50 * + COUNT( * ) + + CAST( NULL AS SIGNED ) + + 88 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL + + 50 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 88 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT + + COUNT( * ), - 57 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9
-57

skipif mysql # not compatible
query II rowsort label-8599
SELECT + + COUNT ( * ), - 57 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8600
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8600
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 - + + col0 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8602
SELECT ALL - 78 + - - ( COUNT( * ) ) AS col2, 27 AS col0 FROM tab2 AS cor0
----
-75
27

skipif mysql # not compatible
query II rowsort label-8602
SELECT ALL - 78 + - - ( COUNT ( * ) ) AS col2, 27 AS col0 FROM tab2 AS cor0
----
-75
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT ALL col1 - + CAST( + col2 AS SIGNED ) + 16 FROM tab0 AS cor0
----
-82
27
50

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL col1 - + CAST ( + col2 AS INTEGER ) + 16 FROM tab0 AS cor0
----
-82
27
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT + col2 DIV - col0 + + 78 - col1 DIV - + 11 AS col2 FROM tab2 AS cor0
----
82
84
85

skipif mysql # not compatible
query I rowsort label-8604
SELECT + col2 / - col0 + + 78 - col1 / - + 11 AS col2 FROM tab2 AS cor0
----
82
84
85

query I rowsort
SELECT ALL + col1 - + - 76 + + + col2 AS col1 FROM tab0 AS cor0
----
107
176
204

query II rowsort
SELECT - col1 + col0 + - - col1, - col0 AS col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT ALL + 55 - + - col2 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
253
275
3909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col1 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT ALL - 69 AS col2 FROM tab1 cor0 WHERE NOT + col2 IS NULL
----
-69
-69
-69

query I rowsort
SELECT + col1 + - - col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT - col1 - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8612
SELECT - + MIN( DISTINCT - 32 ) + - ( - - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT - + MIN ( DISTINCT - 32 ) + - ( - - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8613
SELECT * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8613
SELECT * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) = ( NULL )
----

query I rowsort
SELECT - 72 + - - 33 AS col0 FROM tab1
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL MIN( + 56 ) col1 FROM tab0 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8615
SELECT ALL MIN ( + 56 ) col1 FROM tab0 WHERE NOT ( NULL IS NULL )
----
NULL

query II rowsort
SELECT col1 AS col2, - 17 + - col2 AS col0 FROM tab0
----
1
-116
21
-27
81
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT DISTINCT + 81 - + - MAX( + col2 ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + 81 - + - MAX ( + col2 ) FROM tab0
----
180

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 81 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col1 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT - COUNT( DISTINCT - 13 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8620
SELECT - COUNT ( DISTINCT - 13 ) FROM tab0 cor0
----
-1

query I rowsort
SELECT + 11 AS col2 FROM tab1 cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + - COUNT( ( - + col0 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8622
SELECT + - COUNT ( ( - + col0 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT CAST( + + ( - 77 ) AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-8623
SELECT CAST ( + + ( - 77 ) AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 + col0 + 25 * - col1 col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-1115
-330
-71

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( col0 * - col0 ) IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( ( - + col1 ) )
----

query II rowsort
SELECT DISTINCT - - ( + - 60 ) AS col2, - col0 FROM tab0 AS cor0
----
-60
-15
-60
-87
-60
-97

query I rowsort
SELECT - + col1 * 20 FROM tab0 AS cor0
----
-1620
-20
-420

query II rowsort
SELECT ALL + col2 * - col1, + 56 * + col2 AS col2 FROM tab2 AS cor0
----
-1173
1288
-3080
2240
-3886
3248

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 65 * + col0 NOT BETWEEN ( + - 63 * col2 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - - COUNT( * ) * + 9 + MAX( ALL + - 45 ) AS col0 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8631
SELECT - - COUNT ( * ) * + 9 + MAX ( ALL + - 45 ) AS col0 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT + ( + col2 ) * + - col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 96 / 3 + - 47
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 2 * 23 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 * + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * 30 FROM tab2
----
1200
1740
690

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8636
SELECT - 40 * + ( + col1 ) * - CAST( + col0 - + 4 AS DECIMAL ) FROM tab0 WHERE NOT col0 * ( col0 ) - - col2 NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8636
SELECT - 40 * + ( + col1 ) * - CAST ( + col0 - + 4 AS REAL ) FROM tab0 WHERE NOT col0 * ( col0 ) - - col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ALL - COUNT( ALL - 19 ) * - COUNT( * ) + - 38 AS col0 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL - COUNT ( ALL - 19 ) * - COUNT ( * ) + - 38 AS col0 FROM tab0
----
-29

query I rowsort
SELECT DISTINCT + 48 * ( + col1 ) * + col2 - col0 FROM tab2
----
147776
186453
56258

query I rowsort
SELECT + 41 + + - col2 + + col2 AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
41
41
41

query II rowsort
SELECT col1, - ( + 27 ) AS col2 FROM tab0
----
1
-27
21
-27
81
-27

query I rowsort
SELECT - col0 - - 93 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT CAST( 45 AS SIGNED ) AS col1 FROM tab2
----
45
45
45

skipif mysql # not compatible
query I rowsort label-8642
SELECT CAST ( 45 AS INTEGER ) AS col1 FROM tab2
----
45
45
45

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( col0, + col1 )
----

query I rowsort
SELECT DISTINCT + ( + col0 ) + + ( + col2 ) + + + col1 AS col2 FROM tab0
----
118
143
197

query III rowsort
SELECT * FROM tab2 WHERE 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 - + col2 * - ( - col0 ) FROM tab1 WHERE + - 37 NOT IN ( + - 11 )
----
-4845
-4930
-6097

query II rowsort
SELECT DISTINCT col0 + 20 * col0 AS col2, - 56 AS col1 FROM tab2
----
1344
-56
1575
-56
966
-56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 + 61 <= col2 * + col0 - - - 3
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT ( ( NOT - 69 * + col1 BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT 13 + + 30 AS col1 FROM tab2
----
43
43
43

query I rowsort
SELECT ALL ( - + 61 ) + - col2 FROM tab0
----
-108
-160
-71

query I rowsort
SELECT DISTINCT - + 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 + + + 1 + col1 BETWEEN ( + - col0 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col0 / - ( + + col2 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8655
SELECT DISTINCT col0 DIV 90 + - + 84 FROM tab0 cor0
----
-83
-84

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT col0 / 90 + - + 84 FROM tab0 cor0
----
-83
-84

query I rowsort
SELECT ALL - - col1 + 18 + col0 FROM tab2 AS cor0
----
115
159
160

query I rowsort
SELECT col2 * + - 47 FROM tab0 AS cor0
----
-2209
-4653
-470

onlyif mysql # aggregate syntax: 
query II rowsort label-8658
SELECT ALL 63 * - COUNT( * ) - + COUNT( - col0 ) AS col2, + COUNT( * ) * - 97 FROM tab0 AS cor0
----
-192
-291

skipif mysql # not compatible
query II rowsort label-8658
SELECT ALL 63 * - COUNT ( * ) - + COUNT ( - col0 ) AS col2, + COUNT ( * ) * - 97 FROM tab0 AS cor0
----
-192
-291

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + - ( + 54 ) BETWEEN ( col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 AS cor0 WHERE 65 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT DISTINCT - + 47 DIV col0 + - 35 AS col1 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT - + 47 / col0 + - 35 AS col1 FROM tab1 AS cor0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT - - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE ( col0 * col2 ) BETWEEN col1 * - 11 * + - col1 AND - + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8662
SELECT - - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE ( col0 * col2 ) BETWEEN col1 * - 11 * + - col1 AND - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT COUNT( DISTINCT col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8664
SELECT COUNT ( DISTINCT col2 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8665
SELECT COUNT( * ) * + COUNT( * ) DIV 37 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8665
SELECT COUNT ( * ) * + COUNT ( * ) / 37 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT + MIN( ALL - - 65 ) AS col1 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-8666
SELECT + MIN ( ALL - - 65 ) AS col1 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - MIN( - 42 ) AS col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-8667
SELECT - MIN ( - 42 ) AS col1 FROM tab2
----
42

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 77 + + + 46 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + ( - + MIN( ALL - col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8669
SELECT + ( - + MIN ( ALL - col1 ) ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT COUNT( DISTINCT - 37 ) * - COUNT( * ) - - - ( - COUNT( * ) ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8670
SELECT COUNT ( DISTINCT - 37 ) * - COUNT ( * ) - - - ( - COUNT ( * ) ) col2 FROM tab1
----
0

query I rowsort
SELECT col0 * + - col0 FROM tab2 AS cor0 WHERE NOT col2 / - - col2 BETWEEN NULL AND - col1
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col2 FROM tab2 AS cor0
----
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 * - - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL SUM( DISTINCT 53 ) * + 3 FROM tab1 cor0
----
159

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL SUM ( DISTINCT 53 ) * + 3 FROM tab1 cor0
----
159

query I rowsort
SELECT + col2 AS col0 FROM tab1 cor0 WHERE NOT - col1 * - ( + col1 ) <= + ( + 43 ) + col2 + col0
----
68
96

query I rowsort
SELECT ALL + + 4 / + col1 + - 25 + col1 AS col1 FROM tab0 WHERE - - 20 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < + 92 * col2 - - col0
----

query I rowsort
SELECT ALL + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL + 13 * - COUNT( * ) col1 FROM tab0 cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8679
SELECT ALL + 13 * - COUNT ( * ) col1 FROM tab0 cor0
----
-39

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 col1 * + 25 * + col0 FROM tab1 AS cor0 WHERE NOT - 74 + + - col0 + + + col0 * + col1 + + 11 < + col1 + + col2
----
10625
106925
17850

query I rowsort
SELECT DISTINCT + - 31 * - - col2 FROM tab2 cor0
----
-1240
-1798
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT + 30 * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8683
SELECT + 30 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-90

query II rowsort
SELECT + - col2 AS col2, - col2 AS col1 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 89 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - - col1 AS col0 FROM tab1
----
196
2209
25

query III rowsort
SELECT * FROM tab1 WHERE + - col2 + - col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT + 61 + 50 - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-8688
SELECT + 61 + 50 - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT - 13 + COUNT( * ) col2 FROM tab2
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8689
SELECT DISTINCT - 13 + COUNT ( * ) col2 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL COUNT( - 84 ) + - ( COUNT( * ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL COUNT ( - 84 ) + - ( COUNT ( * ) ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8691
SELECT - 92 * + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT - 92 * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + ( + + col1 ), col1 + - col2 AS col2 FROM tab1 AS cor0
----
14
-82
47
-21
5
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 + + col0 col0 FROM tab2 AS cor0
----
-20
-38
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) BETWEEN - col0 AND - col0 / + - col1 + - col1 + ( - - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-8695
SELECT COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) BETWEEN - col0 AND - col0 / + - col1 + - col1 + ( - - 92 )
----
0

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE - col1 + - col1 > - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col0 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT DISTINCT - COUNT( ALL col0 ) * MAX( ALL - col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT - COUNT ( ALL col0 ) * MAX ( ALL - col1 ) FROM tab2 AS cor0
----
153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 80 + - 64 * + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8700
SELECT ALL + - 80, + 52 * 79 AS col0, - CAST( NULL AS SIGNED ) * - col2 / - 26 FROM tab2 AS cor0 WHERE ( NOT NULL <= NULL )
----

skipif mysql # not compatible
query III rowsort label-8700
SELECT ALL + - 80, + 52 * 79 AS col0, - CAST ( NULL AS INTEGER ) * - col2 / - 26 FROM tab2 AS cor0 WHERE ( NOT NULL <= NULL )
----

query I rowsort
SELECT DISTINCT - + col2 + + 7 FROM tab2 AS cor0
----
-16
-33
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * + + 53 col0 FROM tab0 AS cor0
----
-2703
-2703
-2703

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT MAX( - + 78 ) col1 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8703
SELECT DISTINCT MAX ( - + 78 ) col1 FROM tab1 AS cor0
----
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-8704
SELECT + col0, 18 DIV col0 FROM tab0 AS cor0
----
15
1
87
0
97
0

skipif mysql # not compatible
query II rowsort label-8704
SELECT + col0, 18 / col0 FROM tab0 AS cor0
----
15
1
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT DISTINCT MAX( + + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT MAX ( + + col0 ) AS col0 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT DISTINCT - COUNT( * ) * + + 81 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT - COUNT ( * ) * + + 81 FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT ALL SUM( + 92 ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL SUM ( + 92 ) FROM tab1
----
276

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8709
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 / + 92 / - + CAST( - + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8709
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 / + 92 / - + CAST ( - + col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + ( - col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + - col2 + + ( + - 30 ) FROM tab1 AS cor0
----
-126
-89
-98

query I rowsort
SELECT DISTINCT + 25 + - - col2 FROM tab0 AS cor0
----
124
35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + COUNT( * ) + + MIN( + - 35 ) AS col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8714
SELECT + COUNT ( * ) + + MIN ( + - 35 ) AS col0 FROM tab0 AS cor0
----
-32

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT + COUNT( ALL col0 ) + COUNT( * ) * + - ( + + 27 ) FROM tab0 AS cor0 WHERE NULL <> 30
----
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT + COUNT ( ALL col0 ) + COUNT ( * ) * + - ( + + 27 ) FROM tab0 AS cor0 WHERE NULL <> 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT + - col1 DIV - col0 * + + col1 - - + 69 FROM tab1 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-8717
SELECT + - col1 / - col0 * + + col1 - - + 69 FROM tab1 AS cor0
----
69
69
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8718
SELECT - - COUNT( col1 ) * 2 AS col1, CAST( - + COUNT( * ) AS SIGNED ) col1 FROM tab2 AS cor0
----
6
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8718
SELECT - - COUNT ( col1 ) * 2 AS col1, CAST ( - + COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
6
-3

query I rowsort
SELECT DISTINCT 27 * + + col0 FROM tab0 AS cor0
----
2349
2619
405

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 67 * - col0 + col0 + 94 AND col1 OR NOT + col2 - + - col0 - - col0 BETWEEN NULL AND ( col0 * - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 54, - col2 AS col1 FROM tab2
----
54
-23
54
-40
54
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8722
SELECT + col0 DIV + - 78 AS col2 FROM tab1 WHERE ( + CAST( + col2 AS SIGNED ) + - - 34 ) IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8722
SELECT + col0 / + - 78 AS col2 FROM tab1 WHERE ( + CAST ( + col2 AS INTEGER ) + - - 34 ) IS NOT NULL
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 WHERE - col2 - - + 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL MAX( ALL 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL MAX ( ALL 52 ) FROM tab1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8725
SELECT - 5 col1, CAST( + - 10 AS SIGNED ) AS col1 FROM tab1
----
-5
-10
-5
-10
-5
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8725
SELECT - 5 col1, CAST ( + - 10 AS INTEGER ) AS col1 FROM tab1
----
-5
-10
-5
-10
-5
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-8726
SELECT - col2 * 45 - - col0 DIV - col0 AS col0, ( + col1 ) + + + 44 + + - col0 AS col0 FROM tab2
----
-1036
49
-1801
57
-2611
36

skipif mysql # not compatible
query II rowsort label-8726
SELECT - col2 * 45 - - col0 / - col0 AS col0, ( + col1 ) + + + 44 + + - col0 AS col0 FROM tab2
----
-1036
49
-1801
57
-2611
36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < col1 AND col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8728
SELECT col1 + - CAST( NULL AS SIGNED ) + - 80 * - col2 / + col0 * + col1 AS col2, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8728
SELECT col1 + - CAST ( NULL AS INTEGER ) + - 80 * - col2 / + col0 * + col1 AS col2, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8729
SELECT ALL + ( - 21 ) + - - CAST( + + col0 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
684
849
9582

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + ( - 21 ) + - - CAST ( + + col0 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
684
849
9582

query I rowsort
SELECT DISTINCT + col2 + col2 + - col0 AS col2 FROM tab2 AS cor0
----
0
16
41

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 10, + 56 col2 FROM tab2 WHERE NOT - 13 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT 80 DIV col2 * 98 AS col2 FROM tab2
----
196
294
98

skipif mysql # not compatible
query I rowsort label-8733
SELECT 80 / col2 * 98 AS col2 FROM tab2
----
196
294
98

query II rowsort
SELECT - col0 * + 64, col2 + 35 AS col1 FROM tab1
----
-3264
131
-5440
94
-5824
103

query I rowsort
SELECT + col2 * - - 36 FROM tab1
----
2124
2448
3456

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * + 0 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT + + ( MAX( ALL + col0 ) ) * - 91 FROM tab1 AS cor0
----
-8281

skipif mysql # not compatible
query I rowsort label-8738
SELECT + + ( MAX ( ALL + col0 ) ) * - 91 FROM tab1 AS cor0
----
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT ALL 95 * + col2 + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE 53 + + col0 + + col1 / col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL 95 * + col2 + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE 53 + + col0 + + col1 / col2 <= NULL
----

query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab1 AS cor0 WHERE - col0 > - col2 - + col1 + - + col0
----
80

query I rowsort
SELECT + ( 17 ) AS col2 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8742
SELECT + COUNT( DISTINCT CAST( - col1 AS SIGNED ) ) AS col2, - 47 AS col1 FROM tab2
----
3
-47

skipif mysql # not compatible
query II rowsort label-8742
SELECT + COUNT ( DISTINCT CAST ( - col1 AS INTEGER ) ) AS col2, - 47 AS col1 FROM tab2
----
3
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8743
SELECT + CAST( NULL AS DECIMAL ) * - col1 * + + col0 * + 46 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT + CAST ( NULL AS REAL ) * - col1 * + + col0 * + 46 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 * col2 + + col1 > - + col0 + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 56 * + ( - + col2 ), + col0 AS col2 FROM tab0
----
-2632
15
-5544
97
-560
87

query I rowsort
SELECT DISTINCT + col1 * - col0 * - 26 * - 78 FROM tab2
----
-10190700
-4757688
-9993984

query II rowsort
SELECT - col2 * ( - col0 ) AS col1, 98 FROM tab1
----
4896
98
5015
98
6188
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL 16 * + COUNT( * ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL 16 * + COUNT ( * ) AS col1 FROM tab1
----
48

query I rowsort
SELECT DISTINCT + ( + 49 ) AS col1 FROM tab2
----
49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - 56 / + col0 + + ( - 94 ) * + col0 AND + col0 * - ( 92 ) + col2 + - 30
----

query II rowsort
SELECT DISTINCT - col2, 45 + + + col0 AS col0 FROM tab1 AS cor0
----
-59
130
-68
136
-96
96

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= 81
----

query I rowsort
SELECT col1 * + 27 AS col0 FROM tab1
----
1269
135
378

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 34 * col0 * 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT DISTINCT - COUNT( DISTINCT - col2 ) * - 23 + + 95 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
95

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) * - 23 + + 95 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT 70 * - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-8756
SELECT 70 * - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-207

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + ( + col2 ) = + - 89
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT - col1 DIV + 96 + - col0 AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8759
SELECT - col1 / + 96 + - col0 AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + ( col0 ) + + - col1 * - 22 FROM tab0
----
119
1797
549

query I rowsort
SELECT DISTINCT + 24 + - + col0 FROM tab1 AS cor0
----
-27
-61
-67

query I rowsort
SELECT DISTINCT col2 - + ( ( + 20 ) ) FROM tab0 AS cor0
----
-10
27
79

query I rowsort
SELECT + 36 * - - col2 - - 56 AS col1 FROM tab0 cor0
----
1748
3620
416

query I rowsort
SELECT - - 51 - - col1 FROM tab0 AS cor0
----
132
52
72

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8765
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-8765
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col0 FROM tab1 WHERE - col2 - + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + 59 * col1 AS col2 FROM tab2
----
3009
3953
4543

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < NULL OR NOT NULL BETWEEN - col1 AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8769
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - COUNT( 91 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - COUNT ( 91 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8770
SELECT - COUNT( DISTINCT 54 ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT - COUNT ( DISTINCT 54 ) * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 38 ) FROM tab1 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * 60 * 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col2 * + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col1 ) < - 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + - 85, + 81 * + - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8776
SELECT ALL COUNT( * ) * + 3 AS col0, 73 FROM tab1
----
9
73

skipif mysql # not compatible
query II rowsort label-8776
SELECT ALL COUNT ( * ) * + 3 AS col0, 73 FROM tab1
----
9
73

query II rowsort
SELECT col2, 40 AS col1 FROM tab2 WHERE col2 * - 39 < NULL AND ( col2 - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - col0 * - col0 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT 57 FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) NOT BETWEEN - col0 AND + + 18
----

skipif mysql # not compatible
query I rowsort label-8779
SELECT 57 FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) NOT BETWEEN - col0 AND + + 18
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT - col2 * - col0 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col2 AS col0, + 96 * + - 87 col2 FROM tab2
----
1600
-8352
3364
-8352
529
-8352

query I rowsort
SELECT DISTINCT col1 * ( + ( col1 ) ) FROM tab2
----
2601
4489
5929

query II rowsort
SELECT + + col2 * + 70 AS col2, col0 + + col2 FROM tab2 cor0
----
1610
69
2800
104
4060
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col0 FROM tab0 AS cor0
----
10

query II rowsort
SELECT - 71 * - col0, col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3621
51
6035
85
6461
91

query II rowsort
SELECT + col2 * + col0, col1 FROM tab0 AS cor0
----
705
81
870
21
9603
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8787
SELECT DISTINCT - 91 AS col2, + MIN( - + 98 ) FROM tab1
----
-91
-98

skipif mysql # not compatible
query II rowsort label-8787
SELECT DISTINCT - 91 AS col2, + MIN ( - + 98 ) FROM tab1
----
-91
-98

query I rowsort
SELECT ( - 32 ) + + - col0 * + col1 FROM tab1 AS cor0
----
-4309
-457
-746

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT - 71 + MIN( ALL - col2 ) * - 23 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
3931

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT - 71 + MIN ( ALL - col2 ) * - 23 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3931

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT + COUNT( + + 88 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8790
SELECT + COUNT ( + + 88 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT DISTINCT + - MIN( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + - MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT + 33 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - - MIN( DISTINCT 28 ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8793
SELECT - - MIN ( DISTINCT 28 ) FROM tab1 AS cor0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT col2 DIV - - col1 + + 56 FROM tab2 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-8794
SELECT col2 / - - col1 + + 56 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT DISTINCT - + col1 * - col0 * - 80 * col2 + col1 DIV 20 AS col0 FROM tab0 cor0
----
-1461599
-4568396
-768240

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT - + col1 * - col0 * - 80 * col2 + col1 / 20 AS col0 FROM tab0 cor0
----
-1461599
-4568396
-768240

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 78 - + 61 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT + ( CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-8797
SELECT + ( CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 66 ) BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8799
SELECT CAST( NULL AS SIGNED ) - CAST( - + COUNT( * ) AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8799
SELECT CAST ( NULL AS INTEGER ) - CAST ( - + COUNT ( * ) AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT DISTINCT - 64 DIV + 58 + + col2 AS col1 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT - 64 / + 58 + + col2 AS col1 FROM tab2
----
22
39
57

query I rowsort
SELECT + - 32 AS col2 FROM tab2 WHERE + + ( + 13 ) IN ( + col1, - col0 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT COUNT( * ) - + 35 * 95 FROM tab2
----
-3322

skipif mysql # not compatible
query I rowsort label-8802
SELECT COUNT ( * ) - + 35 * 95 FROM tab2
----
-3322

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT - col0 DIV - col2 FROM tab2 WHERE - col2 NOT BETWEEN + col1 AND col0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8803
SELECT - col0 / - col2 FROM tab2 WHERE - col2 NOT BETWEEN + col1 AND col0
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8804
SELECT + 96 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT + 96 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 + + 48 col1 FROM tab0
----
48
48
48

query I rowsort
SELECT DISTINCT - 47 + - 26 FROM tab0 AS cor0
----
-73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 27 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT COUNT( * ) DIV - 59 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8808
SELECT COUNT ( * ) / - 59 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 - - col1 / ( - + col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 * - + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT ( - - 99 ) FROM tab1
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8813
SELECT - + CAST( 51 AS SIGNED ) - + - col2 FROM tab2 WHERE NOT + 61 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8813
SELECT - + CAST ( 51 AS INTEGER ) - + - col2 FROM tab2 WHERE NOT + 61 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8814
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + ( + COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + ( + COUNT ( * ) ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT 9 + + col0 AS col1, + ( + + 98 ) AS col0, + - col2 AS col0 FROM tab1
----
9 values hashing to 0d574e98af0157d073ae90b65783c793

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL COUNT( 42 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL COUNT ( 42 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + - 2 + - 6 FROM tab2 AS cor0
----
-8

query II rowsort
SELECT + col1 * + + ( ( + - col1 ) ) * - + col1 * + col2 * - 88 - + + col0, 52 FROM tab2 AS cor0 WHERE 4 * 32 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT + 90 * - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-810

skipif mysql # not compatible
query I rowsort label-8819
SELECT + 90 * - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-810

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8820
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( + col0 AS DECIMAL ) + col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-8820
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( + col0 AS REAL ) + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT - COUNT( + - col1 ) + + - 27 AS col1 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8821
SELECT - COUNT ( + - col1 ) + + - 27 AS col1 FROM tab2 AS cor0
----
-30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT - COUNT( * ) - ( + - MIN( ( - col1 ) ) ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - COUNT ( * ) - ( + - MIN ( ( - col1 ) ) ) FROM tab1 AS cor0
----
-50

query I rowsort
SELECT - col0 + + col2 * + + col0 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT ALL ( - + col2 ) * + 19 AS col2 FROM tab1 AS cor0
----
-1121
-1292
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL - COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT - + ( + - col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + col2 + + - col2 * - 69 FROM tab0 AS cor0
----
3290
6930
700

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT 47 * + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
423

skipif mysql # not compatible
query I rowsort label-8830
SELECT 47 * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT - COUNT( * ) * - 48 AS col2 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-8831
SELECT - COUNT ( * ) * - 48 AS col2 FROM tab2
----
144

query I rowsort
SELECT DISTINCT 27 + - 56 + - 13 * + - 87 AS col1 FROM tab2
----
1102

query III rowsort
SELECT * FROM tab0 WHERE + - 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 65 * 45 - - + 15 - - col1 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
2941
1
2961
21
3021
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL MAX( - + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL MAX ( - + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-8836
SELECT + 30 DIV - ( + 70 ), col1 FROM tab2 cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-8836
SELECT + 30 / - ( + 70 ), col1 FROM tab2 cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8837
SELECT - 44 AS col0, - COUNT( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-44
-3

skipif mysql # not compatible
query II rowsort label-8837
SELECT - 44 AS col0, - COUNT ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-44
-3

query II rowsort
SELECT ALL + col2, - 93 AS col1 FROM tab2 AS cor0
----
23
-93
40
-93
58
-93

query I rowsort
SELECT ( - col1 ) * + + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - 72 * + + 4 FROM tab1 AS cor0
----
-288
-288
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT + COUNT( * ) * MAX( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8841
SELECT + COUNT ( * ) * MAX ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8842
SELECT - CAST( - - col1 AS SIGNED ) AS col2, 11 AS col0 FROM tab2 AS cor0
----
-51
11
-67
11
-77
11

skipif mysql # not compatible
query II rowsort label-8842
SELECT - CAST ( - - col1 AS INTEGER ) AS col2, 11 AS col0 FROM tab2 AS cor0
----
-51
11
-67
11
-77
11

query I rowsort
SELECT ALL + + 51 AS col1 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + col0 * 66 FROM tab2 AS cor0
----
3036
4224
4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 WHERE - + col0 - - col0 IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT DISTINCT + 84, 29 AS col0 FROM tab1
----
84
29

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 19 + + col0 IS NULL
----

query II rowsort
SELECT ALL - col1 + 65, + col2 * + 31 + - col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN col2 + - + 58 AND NULL
----

query II rowsort
SELECT + 39, - 29 + ( + + col2 ) AS col1 FROM tab2
----
39
-6
39
11
39
29

query I rowsort
SELECT ALL - col1 + - + 3 FROM tab2
----
-54
-70
-80

query I rowsort
SELECT + col1 * - + 71 AS col2 FROM tab0 cor0
----
-1491
-5751
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-8853
SELECT - col2, col1 DIV + 69 + 89 + col0 AS col0 FROM tab0 AS cor0
----
-10
176
-47
105
-99
186

skipif mysql # not compatible
query II rowsort label-8853
SELECT - col2, col1 / + 69 + 89 + col0 AS col0 FROM tab0 AS cor0
----
-10
176
-47
105
-99
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8854
SELECT ALL - + 34 * - ( - - 3 ) - col2 + ( + CAST( - col2 AS SIGNED ) ) FROM tab2 cor0
----
-14
22
56

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL - + 34 * - ( - - 3 ) - col2 + ( + CAST ( - col2 AS INTEGER ) ) FROM tab2 cor0
----
-14
22
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8855
SELECT ALL + + COUNT( * ), - 29 DIV - + 65 * COUNT( col0 ) AS col1 FROM tab0 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-8855
SELECT ALL + + COUNT ( * ), - 29 / - + 65 * COUNT ( col0 ) AS col1 FROM tab0 cor0
----
3
0

query II rowsort
SELECT DISTINCT col1 AS col0, + col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT + col2 * 12 + - 48 AS col0 FROM tab1
----
1104
660
768

query II rowsort
SELECT DISTINCT ( + 43 ), - 77 + 63 * - 34 FROM tab0 WHERE - col0 BETWEEN NULL AND col1 * - 5
----

query II rowsort
SELECT + col2, col2 * - col0 FROM tab0
----
10
-870
47
-705
99
-9603

query II rowsort
SELECT + 32 AS col2, col0 * 93 * + col1 AS col2 FROM tab0 AS cor0
----
32
112995
32
169911
32
9021

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL IN ( + col1, - col1, - 8 + - ( col2 ), 25 * + col2 * + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8862
SELECT ALL - CAST( NULL AS SIGNED ) * 62 + + col1 * + 18 * - CAST( - col0 AS DECIMAL ) * 98 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - CAST ( NULL AS INTEGER ) * 62 + + col1 * + 18 * - CAST ( - col0 AS REAL ) * 98 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8864
SELECT + 53, - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
53
NULL
53
NULL
53
NULL

skipif mysql # not compatible
query II rowsort label-8864
SELECT + 53, - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
53
NULL
53
NULL
53
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( ( NOT + col2 + 8 IS NOT NULL ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 85 - col0 < 32
----

query I rowsort
SELECT DISTINCT + 35 FROM tab2 AS cor0 WHERE ( + 22 IS NULL )
----

query I rowsort
SELECT ALL + 81 - col0 AS col2 FROM tab0
----
-16
-6
66

query I rowsort
SELECT 1 - - col0 FROM tab1
----
52
86
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT col0 DIV - ( - col2 ) + - + ( - col1 ) DIV - 9 AS col2 FROM tab2
----
-3
-6
-7

skipif mysql # not compatible
query I rowsort label-8870
SELECT col0 / - ( - col2 ) + - + ( - col1 ) / - 9 AS col2 FROM tab2
----
-3
-6
-7

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT + + col1 * - 31 * + 31 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT DISTINCT - COUNT( - col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT - COUNT ( - col0 ) AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 60 col0 FROM tab0
----
1260
4860
60

query II rowsort
SELECT DISTINCT - col2 AS col2, - ( + col1 ) FROM tab1
----
-59
-5
-68
-47
-96
-14

query I rowsort
SELECT + col0 * - 81 FROM tab0
----
-1215
-7047
-7857

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col1 * + + col1, + 12 )
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 96 <= - 58 + + 58
----

query I rowsort
SELECT + + 91 AS col2 FROM tab2 cor0
----
91
91
91

query I rowsort
SELECT DISTINCT - 30 * - - col2 FROM tab1 AS cor0
----
-1770
-2040
-2880

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT col2 DIV + col0 + - 44 AS col2 FROM tab0
----
-41
-43
-44

skipif mysql # not compatible
query I rowsort label-8880
SELECT col2 / + col0 + - 44 AS col2 FROM tab0
----
-41
-43
-44

query I rowsort
SELECT - col1 * col2 + ( + 36 ) FROM tab2
----
-1137
-3044
-3850

query I rowsort
SELECT - col0 + 80 FROM tab0
----
-17
-7
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8883
SELECT DISTINCT + SUM( CAST( + col2 AS SIGNED ) ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8883
SELECT DISTINCT + SUM ( CAST ( + col2 AS INTEGER ) ) col1 FROM tab1
----
223

query I rowsort
SELECT col0 + 96 * + - col0 AS col1 FROM tab2
----
-4370
-6080
-7125

query I rowsort
SELECT ALL + 11 AS col0 FROM tab2 WHERE col2 * - ( - col0 ) IS NOT NULL
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT DISTINCT COUNT( * ) + + 76 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT COUNT ( * ) + + 76 FROM tab2
----
79

query I rowsort
SELECT ALL col2 + + ( + + col1 ) FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 AS cor0 WHERE NOT ( NOT - + col1 + - col0 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT + col2 FROM tab1 AS cor0 WHERE ( NOT ( ( NOT CAST( NULL AS SIGNED ) <> + col0 / - - 52 ) ) )
----

skipif mysql # not compatible
query I rowsort label-8890
SELECT + col2 FROM tab1 AS cor0 WHERE ( NOT ( ( NOT CAST ( NULL AS INTEGER ) <> + col0 / - - 52 ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 - + 42 * 96 * - - 65 * 69 * - col1 > + 55 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
55

query I rowsort
SELECT + 36 + + col1 FROM tab2 cor0
----
103
113
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8894
SELECT + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) > 32 + col0 + + col0
----

query II rowsort
SELECT ALL ( 91 ) AS col2, + ( + col1 ) FROM tab1
----
91
14
91
47
91
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT ALL + ( + 0 ) * - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL + ( + 0 ) * - COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8900
SELECT ALL 6 DIV - 59 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL 6 / - 59 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT ALL + col0 * + - CAST( - + 13 AS SIGNED ) FROM tab1 AS cor0
----
1105
1183
663

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + col0 * + - CAST ( - + 13 AS INTEGER ) FROM tab1 AS cor0
----
1105
1183
663

query I rowsort
SELECT DISTINCT + 81 * - + 99 AS col0 FROM tab0 AS cor0
----
-8019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT - - COUNT( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT - - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8904
SELECT DISTINCT + - COUNT( * ), + SUM( col0 ) col1 FROM tab0 AS cor0
----
-3
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8904
SELECT DISTINCT + - COUNT ( * ), + SUM ( col0 ) col1 FROM tab0 AS cor0
----
-3
199

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT - SUM( col2 ) col1 FROM tab0 WHERE NOT - col1 * col2 > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8905
SELECT - SUM ( col2 ) col1 FROM tab0 WHERE NOT - col1 * col2 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT DISTINCT COUNT( * ) * - - ( - - 5 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT COUNT ( * ) * - - ( - - 5 ) FROM tab1
----
15

query I rowsort
SELECT col0 + - col1 - + col0 AS col0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE + 4 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT DISTINCT MAX( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT MAX ( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 col0 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE - + col2 * + col0 <= + - 83 * + col2 + - col1 + - col2 * + + ( + col0 ) * 11 + - col1 + - 97
----

query II rowsort
SELECT DISTINCT 88 AS col2, 62 AS col1 FROM tab0
----
88
62

query III rowsort
SELECT * FROM tab0 WHERE col0 / col1 + - + col0 + - + col0 / + - col0 NOT BETWEEN + 13 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + + 95 AS col1 FROM tab1
----
154
163
191

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 NOT BETWEEN - col2 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + - 37 FROM tab0
----
-118
-38
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT col2 DIV - 52 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8917
SELECT col2 / - 52 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT - COUNT( * ) FROM tab2 WHERE NULL >= col2 * 67
----
0

skipif mysql # not compatible
query I rowsort label-8918
SELECT - COUNT ( * ) FROM tab2 WHERE NULL >= col2 * 67
----
0

query II rowsort
SELECT col1, - 47 FROM tab2
----
51
-47
67
-47
77
-47

query I rowsort
SELECT 17 + + 27 FROM tab1
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL + COUNT( * ) + 0 col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8921
SELECT ALL + COUNT ( * ) + 0 col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 20 ) - 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT - COUNT( * ) * + 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 43 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - COUNT ( * ) * + 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 43 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT MAX( + 82 ) AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-8924
SELECT MAX ( + 82 ) AS col2 FROM tab0
----
82

query I rowsort
SELECT DISTINCT col0 + 30 + - ( + col0 ) FROM tab1 AS cor0
----
30

query I rowsort
SELECT DISTINCT 0 - + col1 - + col2 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT + + COUNT( * ) - + + 83 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-8927
SELECT + + COUNT ( * ) - + + 83 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT ALL - col2 - + col0 AS col0 FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - 32 * col2 * - - 25 + - col1 * + + col2 AS col2 FROM tab0 cor0
----
-41407
-79299
-8210

query I rowsort
SELECT - - col1 - col1 AS col1 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * 59 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8932
SELECT ALL - CAST( + col0 AS SIGNED ), col1 * 33 AS col0 FROM tab0 AS cor0
----
-15
2673
-87
693
-97
33

skipif mysql # not compatible
query II rowsort label-8932
SELECT ALL - CAST ( + col0 AS INTEGER ), col1 * 33 AS col0 FROM tab0 AS cor0
----
-15
2673
-87
693
-97
33

query I rowsort
SELECT DISTINCT col0 * - 17 FROM tab2
----
-1088
-1275
-782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8934
SELECT CAST( NULL AS SIGNED ), - col0 + col0 * - col2 AS col0 FROM tab1
----
NULL
-4947
NULL
-5100
NULL
-6279

skipif mysql # not compatible
query II rowsort label-8934
SELECT CAST ( NULL AS INTEGER ), - col0 + col0 * - col2 AS col0 FROM tab1
----
NULL
-4947
NULL
-5100
NULL
-6279

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 + + col2 * - - col2 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 1 * + col1 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 36 + + - col2 <= ( NULL )
----

query I rowsort
SELECT ALL col0 * - 94 AS col2 FROM tab0
----
-1410
-8178
-9118

query I rowsort
SELECT col2 * - - col0 AS col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT DISTINCT + SUM( + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT + SUM ( + col0 ) FROM tab2
----
185

query I rowsort
SELECT ALL 39 * - + col1 - - 21 AS col2 FROM tab2 cor0
----
-1968
-2592
-2982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 36 col2, col2 * 0 - col0 FROM tab1
----
-36
-51
-36
-85
-36
-91

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE - 26 IS NULL
----

query I rowsort
SELECT ( + - 45 ) AS col0 FROM tab2
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT SUM( ( - col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8945
SELECT SUM ( ( - col0 ) ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-8946
SELECT 99 AS col1, - COUNT( * ) FROM tab1
----
99
-3

skipif mysql # not compatible
query II rowsort label-8946
SELECT 99 AS col1, - COUNT ( * ) FROM tab1
----
99
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8947
SELECT DISTINCT - col1 AS col2, - col0 DIV - col2 FROM tab0
----
-1
0
-21
8
-81
0

skipif mysql # not compatible
query II rowsort label-8947
SELECT DISTINCT - col1 AS col2, - col0 / - col2 FROM tab0
----
-1
0
-21
8
-81
0

query I rowsort
SELECT ALL col1 + + - 77 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-26
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT col0 * - + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8949
SELECT col0 * - + col2 / + col2 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - col2 + - ( 21 ) FROM tab1 AS cor0
----
-117
-80
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT - col2 + - 85 + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT - col2 + - 85 + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT MAX( DISTINCT - + col0 ) + - - COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8952
SELECT MAX ( DISTINCT - + col0 ) + - - COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT + col2 + 12 + + - col0 AS col2 FROM tab1
----
-11
-14
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT ALL col0 * - + col1 + - 91 + + col0 - + 7 + - - col1 DIV + col2 * - 39 FROM tab1
----
-4284
-438
-761

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL col0 * - + col1 + - 91 + + col0 - + 7 + - - col1 / + col2 * - 39 FROM tab1
----
-4284
-438
-761

query I rowsort
SELECT DISTINCT - col0 * 73 + - col2 FROM tab2 WHERE NOT - col0 - - col0 + col2 + + - 53 / + - col1 + + 24 / - col2 / + col2 NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 35 * - col0 + + col1 FROM tab2
----
1661
2317
2692

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8958
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) * ( + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8958
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 65 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT DISTINCT CAST( - 47 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * 56 + - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT CAST ( - 47 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * 56 + - + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - 57
----

query I rowsort
SELECT + - 12 - - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-4289
-437
-726

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 = + ( + 47 )
----
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8964
SELECT - 36 - + + CAST( NULL AS DECIMAL ) / + ( COUNT( + 29 ) ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8964
SELECT - 36 - + + CAST ( NULL AS REAL ) / + ( COUNT ( + 29 ) ) col0 FROM tab2
----
NULL

query I rowsort
SELECT - 15 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT ALL 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL COUNT( * ) + 74 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL COUNT ( * ) + 74 FROM tab0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( 48 ) IS NOT NULL AND ( 18 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( + col0 ) * + col0 FROM tab0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 = 16
----

query II rowsort
SELECT - 58 AS col0, - col1 * - 53 + + 75 * + + col1 FROM tab2 AS cor0
----
-58
6528
-58
8576
-58
9856

query I rowsort
SELECT ALL - - ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8973
SELECT - 81 DIV + COUNT( * ) col1 FROM tab2 cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8973
SELECT - 81 / + COUNT ( * ) col1 FROM tab2 cor0
----
-27

query I rowsort
SELECT + 56 * 36 AS col1 FROM tab1 AS cor0
----
2016
2016
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT + SUM( - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8975
SELECT + SUM ( - col2 ) AS col1 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
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-8976
SELECT ALL + COUNT ( * ) * ( COUNT ( * ) ) col1 FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + - SUM( DISTINCT 74 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8979
SELECT + - SUM ( DISTINCT 74 ) FROM tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 78 = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8982
SELECT DISTINCT - - MAX( ALL col1 ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT - - MAX ( ALL col1 ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL - SUM( - - 24 ) + 32 AS col0 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL - SUM ( - - 24 ) + 32 AS col0 FROM tab1 AS cor0
----
-40

query II rowsort
SELECT + - col0, col2 AS col1 FROM tab0 cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT DISTINCT + SUM( DISTINCT col1 ) DIV + 96 + - 11 + 28 + - COUNT( * ) col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8985
SELECT DISTINCT + SUM ( DISTINCT col1 ) / + 96 + - 11 + 28 + - COUNT ( * ) col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL + 23 * - COUNT( * ) FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL + 23 * - COUNT ( * ) FROM tab2 cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT ALL - 93 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL - 93 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) / - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) / - col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8989
SELECT ALL + col0 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + col0 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT ALL + 76 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + col1 + + 59 * - CAST( NULL AS SIGNED ) * + 23 * col2 / + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + 76 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + col1 + + 59 * - CAST ( NULL AS INTEGER ) * + 23 * col2 / + col0 IS NULL
----

query II rowsort
SELECT + col1 AS col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT - col1 FROM tab1 WHERE + col1 IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 * - 43 * - col2 * col2 col1 FROM tab2
----
-10993552
-1728772
-5228800

query II rowsort
SELECT + ( - col2 ) AS col2, col2 * - + col0 / + 57 AS col2 FROM tab2 WHERE col1 BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL col1 + - 92 AS col2 FROM tab1
----
-45
-78
-87

query I rowsort
SELECT DISTINCT col0 - - + 81 AS col0 FROM tab2
----
127
145
156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT - 18 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8998
SELECT - 18 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 60 >= - 24 * - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT col0 DIV - 53 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9000
SELECT col0 / - 53 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9001
SELECT - COUNT( DISTINCT + + 3 ) AS col2, + MAX( - - col2 ) FROM tab0 cor0
----
-1
99

skipif mysql # not compatible
query II rowsort label-9001
SELECT - COUNT ( DISTINCT + + 3 ) AS col2, + MAX ( - - col2 ) FROM tab0 cor0
----
-1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT 77 + - CAST( 96 AS SIGNED ) + + 66 + - col2 * - col0 FROM tab1 AS cor0 WHERE NOT NULL < col0 + - col2
----

skipif mysql # not compatible
query I rowsort label-9002
SELECT 77 + - CAST ( 96 AS INTEGER ) + + 66 + - col2 * - col0 FROM tab1 AS cor0 WHERE NOT NULL < col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL - MAX( 75 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - MAX ( 75 ) FROM tab0 AS cor0
----
-75

query I rowsort
SELECT ALL ( - ( - col1 ) ) AS col1 FROM tab0 cor0
----
1
21
81

query II rowsort
SELECT - 46, + col1 FROM tab0 cor0 WHERE NOT + 6 >= ( - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT DISTINCT SUM( DISTINCT - 72 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT SUM ( DISTINCT - 72 ) FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT SUM( DISTINCT - + ( + col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9008
SELECT SUM ( DISTINCT - + ( + col2 ) ) FROM tab2
----
-121

query I rowsort
SELECT DISTINCT ( + 25 ) AS col0 FROM tab0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT - col1 * + - CAST( + ( - - 90 ) AS SIGNED ) AS col1 FROM tab2
----
4590
6030
6930

skipif mysql # not compatible
query I rowsort label-9010
SELECT - col1 * + - CAST ( + ( - - 90 ) AS INTEGER ) AS col1 FROM tab2
----
4590
6030
6930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9011
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL - + COUNT( ALL + 72 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9012
SELECT ALL - + COUNT ( ALL + 72 ) col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT + 23 - 37 AS col0 FROM tab2
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT COUNT( - ( 72 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9015
SELECT COUNT ( - ( 72 ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 - + col0 col2 FROM tab2
----
-59
-77
-88

query I rowsort
SELECT DISTINCT col2 * col1 AS col1 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT 51 AS col0 FROM tab0 WHERE NOT ( 57 ) <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 * col2 col2 FROM tab2
----
2116
3680
5336

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 90 ) < col1 + col2
----
51
14
96
91
47
68

query I rowsort
SELECT + col2 * - ( + 31 ) FROM tab2
----
-1240
-1798
-713

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9022
SELECT ALL COUNT( * ) DIV + 89 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL COUNT ( * ) / + 89 AS col1 FROM tab1
----
0

query I rowsort
SELECT + 69 AS col0 FROM tab0 WHERE NOT NULL IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 / col0 - + 35 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT ALL - 15 + + 13 / + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL - 15 + + 13 / + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 * - ( 23 ) FROM tab0
----
-1081
-2277
-230

query I rowsort
SELECT - 95 * + col2 AS col0 FROM tab2
----
-2185
-3800
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT + COUNT( * ) * - MAX( 35 ) AS col0 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-9028
SELECT + COUNT ( * ) * - MAX ( 35 ) AS col0 FROM tab2
----
-105

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9030
SELECT ALL * FROM tab0 WHERE NOT CAST( - col1 AS SIGNED ) / col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9030
SELECT ALL * FROM tab0 WHERE NOT CAST ( - col1 AS INTEGER ) / col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 29 AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( col1 ) AND - 60
----

query I rowsort
SELECT DISTINCT col0 * 7 AS col1 FROM tab2
----
322
448
525

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT col1 ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col1 + - 93 * + col2 )
----
NULL

query I rowsort
SELECT DISTINCT 21 * col1 AS col0 FROM tab1
----
105
294
987

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9035
SELECT - col0 - - CAST( 92 - ( CAST( NULL AS DECIMAL ) - - 97 ) * col1 AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT - col0 - - CAST ( 92 - ( CAST ( NULL AS REAL ) - - 97 ) * col1 AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 50 - col2 AS col1 FROM tab0 AS cor0
----
-49
3
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT SUM( ALL - col1 ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT SUM ( ALL - col1 ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-100

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-9039
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 72 / + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * col2 IS NULL
----

query I rowsort
SELECT ALL 39 + + 94 AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NOT 7 / + col0 + + col1 NOT IN ( col1 + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT col2 DIV 52 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9044
SELECT col2 / 52 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + col0 * col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col2 / + col0 ) AND ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( col1 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 98 ) NOT BETWEEN 56 * + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL COUNT( ALL + ( + ( + col2 ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL COUNT ( ALL + ( + ( + col2 ) ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT - - 58 DIV 31 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9050
SELECT - - 58 / 31 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - + 43 * - col0 FROM tab0 AS cor0
----
3741
4171
645

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT - - COUNT( DISTINCT ( col1 ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9052
SELECT - - COUNT ( DISTINCT ( col1 ) ) AS col1 FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 40 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 >= col2 - col2 * - col2
----

query I rowsort
SELECT DISTINCT col2 + + ( + col0 ) FROM tab0 WHERE ( NULL ) IN ( col2 )
----

query I rowsort
SELECT 68 FROM tab0 WHERE NOT 43 > col1
----
68

query I rowsort
SELECT ALL + col2 + + - 56 FROM tab2 AS cor0
----
-16
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 97 + - col2 * col1 FROM tab1
----
-1247
-198
-3099

query I rowsort
SELECT + + 4 + 77 AS col2 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 8 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - 45 * col2 = NULL
----

query I rowsort
SELECT - ( 2 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL + ( + + 3 ) + + col2 FROM tab1 AS cor0
----
62
71
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9065
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - CAST( 49 AS SIGNED ) AND 8 + + 62
----
0

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - CAST ( 49 AS INTEGER ) AND 8 + + 62
----
0

query I rowsort
SELECT ALL + 80 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
80
80
80

query I rowsort
SELECT DISTINCT 13 + + col1 AS col1 FROM tab2 AS cor0
----
64
80
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 65 * col2 + 3 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + col0 + - 60 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab1 AS cor0 WHERE ( + col1 ) IN ( + col2 + 95 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT + - ( - 25 ) DIV + col0 - - ( + col0 ) - - col2 col0 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9071
SELECT + - ( - 25 ) / + col0 - - ( + col0 ) - - col2 col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - 78 - col1 = + 79
----
0

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - 78 - col1 = + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT DISTINCT MAX( DISTINCT - ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT MAX ( DISTINCT - ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT - 92 - + SUM( - 74 ) FROM tab0
----
130

skipif mysql # not compatible
query I rowsort label-9074
SELECT - 92 - + SUM ( - 74 ) FROM tab0
----
130

query I rowsort
SELECT ALL - col2 - 64 AS col2 FROM tab2
----
-104
-122
-87

query I rowsort
SELECT ALL + 26 * + + 77 * - - col1 * + col0 + ( + 93 ) FROM tab0
----
194287
2432523
3657747

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT COUNT( * ) FROM tab1 WHERE + + col2 <> ( 54 + - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-9077
SELECT COUNT ( * ) FROM tab1 WHERE + + col2 <> ( 54 + - col0 )
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 0 IS NULL AND NULL NOT BETWEEN NULL AND - 89
----

query I rowsort
SELECT 79 + - col1 / - col1 FROM tab1 WHERE col2 BETWEEN ( NULL ) AND - col0 / - 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9080
SELECT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-9080
SELECT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT + col2 + + 55 FROM tab1
----
114
123
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * - col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1150
3040
3828

query I rowsort
SELECT - col2 * col2 - - col1 FROM tab1 AS cor0
----
-3476
-4577
-9202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT col0 * 34 + col0 FROM tab1 AS cor0 WHERE NOT 50 + + + CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9084
SELECT col0 * 34 + col0 FROM tab1 AS cor0 WHERE NOT 50 + + + CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT 37 * + COUNT( * ) AS col1 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-9085
SELECT 37 * + COUNT ( * ) AS col1 FROM tab2
----
111

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NOT NULL OR NOT 89 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 32 * 16 <> 73 * + - ( - 42 )
----

query I rowsort
SELECT - - col2 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT ALL + ( - MAX( DISTINCT + - col0 ) ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL + ( - MAX ( DISTINCT + - col0 ) ) FROM tab0 cor0
----
15

query II rowsort
SELECT + col0 AS col1, + 13 * col1 AS col1 FROM tab2 cor0
----
46
663
64
1001
75
871

query I rowsort
SELECT ALL + ( 47 ) FROM tab0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9092
SELECT DISTINCT * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9092
SELECT DISTINCT * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) <> ( NULL )
----

query II rowsort
SELECT col1 + - col1 AS col0, + 25 + col2 AS col1 FROM tab0
----
0
124
0
35
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT - ( + SUM( ALL + 91 ) ) AS col1 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT - ( + SUM ( ALL + 91 ) ) AS col1 FROM tab0
----
-273

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND - + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT MIN( + ( + 10 ) ) AS col0 FROM tab0 WHERE col1 IN ( - 70 + + 90 + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT MIN ( + ( + 10 ) ) AS col0 FROM tab0 WHERE col1 IN ( - 70 + + 90 + - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT DISTINCT - col1 * + + col0 + + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT - col1 * + + col0 + + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT MAX( ALL - 56 ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9098
SELECT MAX ( ALL - 56 ) FROM tab0 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9099
SELECT - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT - 40 * + col0 AS col0 FROM tab0 cor0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT + MIN( col1 ) * + 57 + SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-9101
SELECT + MIN ( col1 ) * + 57 + SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
213

query I rowsort
SELECT - 29 * ( col0 ) FROM tab1
----
-1479
-2465
-2639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT DISTINCT col1 + + CAST( - col2 AS SIGNED ) FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT col1 + + CAST ( - col2 AS INTEGER ) FROM tab2
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 82 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT ALL - - col1 * - col2 * + - col0 * col0 + col1 DIV col0 AS col2 FROM tab0 AS cor0 WHERE + 11 + + 13 IS NOT NULL
----
1589490
856580
931491

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL - - col1 * - col2 * + - col0 * col0 + col1 / col0 AS col2 FROM tab0 AS cor0 WHERE + 11 + + 13 IS NOT NULL
----
1589490
856580
931491

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND + 18
----

query I rowsort
SELECT DISTINCT + col0 / - col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) + - col0 FROM tab2 WHERE NOT NULL IN ( - + ( - 98 ) * - - col2 )
----

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) + - col0 FROM tab2 WHERE NOT NULL IN ( - + ( - 98 ) * - - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT - 56 * - - 46 AS col1 FROM tab2
----
-2576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - col0 AS col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL + COUNT( - 90 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL + COUNT ( - 90 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT DISTINCT - COUNT( * ) AS col0, + 2 AS col0 FROM tab1
----
-3
2

skipif mysql # not compatible
query II rowsort label-9114
SELECT DISTINCT - COUNT ( * ) AS col0, + 2 AS col0 FROM tab1
----
-3
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT COUNT( * ) DIV 22 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9115
SELECT COUNT ( * ) / 22 AS col1 FROM tab0
----
0

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT ( + - col2 * - 3 ) NOT BETWEEN ( + - 36 ) AND ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9117
SELECT + ( + - 92 ) DIV COUNT( * ) * - 78 AS col2 FROM tab0 AS cor0
----
2340

skipif mysql # not compatible
query I rowsort label-9117
SELECT + ( + - 92 ) / COUNT ( * ) * - 78 AS col2 FROM tab0 AS cor0
----
2340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT ALL - 77 * ( - - col1 ) + - CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL - 77 * ( - - col1 ) + - CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + + ( + 66 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT + 37 DIV 77 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT + 37 / 77 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL - + COUNT( * ) + 15 FROM tab1 WHERE ( NOT + 43 IS NULL )
----
12

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL - + COUNT ( * ) + 15 FROM tab1 WHERE ( NOT + 43 IS NULL )
----
12

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( 23 ) ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 * - 14 FROM tab1 AS cor0
----
-1190
-1274
-714

query I rowsort
SELECT - 35 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - ( - + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9126
SELECT COUNT( * ) * - 41 AS col0, 98 * 14 AS col1 FROM tab2 AS cor0
----
-123
1372

skipif mysql # not compatible
query II rowsort label-9126
SELECT COUNT ( * ) * - 41 AS col0, 98 * 14 AS col1 FROM tab2 AS cor0
----
-123
1372

query I rowsort
SELECT - + 4 * - - col1 - 88 FROM tab1 AS cor0
----
-108
-144
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT DISTINCT + + CAST( + + 26 AS SIGNED ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT + + CAST ( + + 26 AS INTEGER ) FROM tab1 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL + - 76 * + - MAX( ALL + col2 ) FROM tab0 cor0
----
7524

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL + - 76 * + - MAX ( ALL + col2 ) FROM tab0 cor0
----
7524

query I rowsort
SELECT DISTINCT - col2 * - - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT col2 * - 67 AS col2 FROM tab0
----
-3149
-6633
-670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col2, - col0 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 82, - col2 AS col2 FROM tab0
----
82
-10
82
-47
82
-99

query III rowsort
SELECT * FROM tab2 WHERE 78 * + - ( + 20 ) IS NULL
----

query II rowsort
SELECT ALL - - col1 + - col2 * - 88 AS col2, col0 AS col2 FROM tab2 AS cor0
----
2075
46
3597
64
5171
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT + CAST( NULL AS SIGNED ) * col2 / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT + CAST ( NULL AS INTEGER ) * col2 / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col2 ) * col1 + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT DISTINCT + col1 * + col1 - - 25 FROM tab2 AS cor0
----
2626
4514
5954

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9139
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 82 AND CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9139
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 82 AND CAST ( + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT COUNT( * ) * 96 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT COUNT ( * ) * 96 FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT - - SUM( DISTINCT + 51 ) * - + COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9141
SELECT - - SUM ( DISTINCT + 51 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT + ( - 1 ) FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + 36 / - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + - SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9144
SELECT + - SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT + 78 - - - col2 + - col1 FROM tab1 AS cor0
----
-32
-37
14

query I rowsort
SELECT ALL 50 + + col0 FROM tab1 AS cor0
----
101
135
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + + col2 * - col0 * + col2 * + - 72 col1 FROM tab0 cor0
----
-2385673
-626390
-68450085

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9149
SELECT * FROM tab2 WHERE NOT CAST( + col2 AS DECIMAL ) - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9149
SELECT * FROM tab2 WHERE NOT CAST ( + col2 AS REAL ) - col0 IS NOT NULL
----

query I rowsort
SELECT + 12 * + col2 AS col1 FROM tab2
----
276
480
696

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT - 60 * + - COUNT( * ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-9151
SELECT - 60 * + - COUNT ( * ) FROM tab0
----
180

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT COUNT( - col2 ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9153
SELECT COUNT ( - col2 ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT - 45 * + + COUNT( * ) AS col1 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-9154
SELECT - 45 * + + COUNT ( * ) AS col1 FROM tab0
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9155
SELECT 22 DIV COUNT( * ) AS col2, - 76 * + 53 FROM tab1
----
7
-4028

skipif mysql # not compatible
query II rowsort label-9155
SELECT 22 / COUNT ( * ) AS col2, - 76 * + 53 FROM tab1
----
7
-4028

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 IN ( - + ( col0 ) * + - ( + + col1 ), - col0, ( - col1 ) + 38 * + 34 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL - ( + + MIN( ALL - col1 ) ) * 84 AS col0 FROM tab1 AS cor0
----
3948

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL - ( + + MIN ( ALL - col1 ) ) * 84 AS col0 FROM tab1 AS cor0
----
3948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col1 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query II rowsort label-9160
SELECT DISTINCT ( + - col1 ) + + + col0 AS col0, - 3 DIV + ( 96 ) * col2 + - + col2 + + ( col1 ) AS col1 FROM tab2 cor0
----
-13
37
-5
28
8
9

skipif mysql # not compatible
query II rowsort label-9160
SELECT DISTINCT ( + - col1 ) + + + col0 AS col0, - 3 / + ( 96 ) * col2 + - + col2 + + ( col1 ) AS col1 FROM tab2 cor0
----
-13
37
-5
28
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL - SUM( DISTINCT + - 49 ) AS col0 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - SUM ( DISTINCT + - 49 ) AS col0 FROM tab1 AS cor0
----
49

query II rowsort
SELECT DISTINCT + - col0, + 72 * + + col2 FROM tab1 AS cor0 WHERE NOT NULL = col2
----

query II rowsort
SELECT ALL + col1, col2 * - col2 * col1 FROM tab1 cor0
----
14
-129024
47
-217328
5
-17405

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN ( NULL ) AND - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 77 + + col0 - + + col0 AS col0 FROM tab0 AS cor0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 * 88 col0 FROM tab0
----
106920
160776
8536

query I rowsort
SELECT DISTINCT col1 + + + col2 - + col0 FROM tab2
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT - ( - COUNT( * ) ) + + 2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-9168
SELECT - ( - COUNT ( * ) ) + + 2 FROM tab2
----
5

query I rowsort
SELECT ALL 86 FROM tab1 WHERE NOT NULL = NULL OR - 18 * + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9170
SELECT + MIN( + ( - 67 ) ) + + - CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT + MIN ( + ( - 67 ) ) + + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 + ( + + col0 ) AS col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT COUNT( * ) + COUNT( ALL - - col2 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9172
SELECT COUNT ( * ) + COUNT ( ALL - - col2 ) FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 - 72 * - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 - 72 * - col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - + col0 ) + - + 27 col2 FROM tab2 AS cor0
----
19
37
48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 59, - 86, - col0 * - 73 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9176
SELECT ALL + col2 DIV - + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL + col2 / - + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL - ( col1 ) + + + col0 AS col1, - col2 AS col1 FROM tab2
----
-13
-40
-5
-23
8
-58

query III rowsort
SELECT * FROM tab2 WHERE 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 70 FROM tab2 WHERE NOT 52 IS NULL
----
-70

query I rowsort
SELECT 59 + + col2 FROM tab2 AS cor0
----
117
82
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT 93 + - MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-9182
SELECT 93 + - MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 14 col1 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT - + COUNT( ALL + 52 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT - + COUNT ( ALL + 52 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) < col0 * + + col0
----

query I rowsort
SELECT + ( - - 1 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col1 * + - 31 FROM tab2 AS cor0
----
-1581
-2077
-2387

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 + - - 14 BETWEEN NULL AND ( - + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-9188
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 + - - 14 BETWEEN NULL AND ( - + col0 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col0 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT MAX( DISTINCT col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9190
SELECT MAX ( DISTINCT col2 ) AS col0 FROM tab2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT DISTINCT + 44 DIV - col0 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT + 44 / - col0 FROM tab0
----
-2
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN 0 AND col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL + - SUM( DISTINCT + col2 ) col1 FROM tab1 WHERE NOT col0 IS NULL
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9193
SELECT ALL + - SUM ( DISTINCT + col2 ) col1 FROM tab1 WHERE NOT col0 IS NULL
----
-223

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 NOT BETWEEN NULL AND + col2 + - col0
----

query II rowsort
SELECT DISTINCT ( - col1 ) AS col2, - 52 FROM tab2
----
-51
-52
-67
-52
-77
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL COUNT( - + 41 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL COUNT ( - + 41 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL MIN( ALL - 53 ) AS col2 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL MIN ( ALL - 53 ) AS col2 FROM tab2
----
-53

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT col0 <> - - 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 = ( - - col0 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9200
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 = ( - - col0 ) )
----
-3

query I rowsort
SELECT + - col2 * - 67 FROM tab1 AS cor0
----
3953
4556
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT MIN( - + ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT MIN ( - + ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT DISTINCT MAX( ALL + ( + 7 ) ) AS col2 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT MAX ( ALL + ( + 7 ) ) AS col2 FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT - 64 + - COUNT( * ) / - MAX( DISTINCT - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT - 64 + - COUNT ( * ) / - MAX ( DISTINCT - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 17 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # aggregate syntax: 
query II rowsort label-9206
SELECT DISTINCT MAX( - + col0 ) AS col2, MAX( DISTINCT + col2 ) FROM tab2
----
-46
58

skipif mysql # not compatible
query II rowsort label-9206
SELECT DISTINCT MAX ( - + col0 ) AS col2, MAX ( DISTINCT + col2 ) FROM tab2
----
-46
58

query I rowsort
SELECT DISTINCT col0 + - 7 + col1 * + col1 + 15 * + col0 FROM tab1
----
1005
1378
3658

query I rowsort
SELECT + col2 + col1 * - 99 FROM tab0 AS cor0
----
-2069
-7972
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT DISTINCT COUNT( DISTINCT + 92 ) FROM tab2 cor0 WHERE NOT ( NULL ) > - - col2
----
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT COUNT ( DISTINCT + 92 ) FROM tab2 cor0 WHERE NOT ( NULL ) > - - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9210
SELECT * FROM tab0 AS cor0 WHERE NULL = ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9210
SELECT * FROM tab0 AS cor0 WHERE NULL = ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9211
SELECT ALL + 69 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + 69 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * + + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 47 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= 74
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, - 22 AS col1 FROM tab2
----
23
-22
40
-22
58
-22

query II rowsort
SELECT ALL + 8 AS col2, col0 FROM tab0
----
8
15
8
87
8
97

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL + SUM( DISTINCT col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + SUM ( DISTINCT col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9219
SELECT DISTINCT + col1 AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-9219
SELECT DISTINCT + col1 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9220
SELECT ALL - COUNT( * ) + + - CAST( NULL AS DECIMAL ) - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - COUNT ( * ) + + - CAST ( NULL AS REAL ) - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - COUNT( * ) * 17 + - + 98 FROM tab0
----
-149

skipif mysql # not compatible
query I rowsort label-9222
SELECT - COUNT ( * ) * 17 + - + 98 FROM tab0
----
-149

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - + col1 AND + 62
----

query I rowsort
SELECT + col2 + - col0 * - - col0 FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT ALL 60 + col1 FROM tab0 AS cor0
----
141
61
81

query I rowsort
SELECT 10 AS col0 FROM tab1 cor0 WHERE ( 32 ) IS NOT NULL
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 - col2 + col1 + - col2 col1, - col1 + + 82 FROM tab0 AS cor0
----
-296
81
-60
1
-9
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT + ( - SUM( ( col1 ) ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + ( - SUM ( ( col1 ) ) ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT col1 * + - col1 * col1 FROM tab1
----
-103823
-125
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT + COUNT( col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT + COUNT ( col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0, COUNT( * ) * + ( + COUNT( * ) ) FROM tab0 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-9231
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0, COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT DISTINCT + - ( + col2 ) DIV + - 71 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT + - ( + col2 ) / + - 71 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL + SUM( 85 ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL + SUM ( 85 ) FROM tab0
----
255

query I rowsort
SELECT DISTINCT - 95 * + + 10 * 89 FROM tab2
----
-84550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col1 FROM tab2
----
-51
-51
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9236
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9237
SELECT ALL CAST( - 74 AS SIGNED ) * - col0, - col1 AS col2 FROM tab1
----
3774
-14
6290
-5
6734
-47

skipif mysql # not compatible
query II rowsort label-9237
SELECT ALL CAST ( - 74 AS INTEGER ) * - col0, - col1 AS col2 FROM tab1
----
3774
-14
6290
-5
6734
-47

query III rowsort
SELECT ALL * FROM tab0 WHERE 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT + COUNT( * ) * MAX( + 61 ) AS col0 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT + COUNT ( * ) * MAX ( + 61 ) AS col0 FROM tab0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL - - 24 * - COUNT( * ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - - 24 * - COUNT ( * ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT + col2 * + 35 AS col1 FROM tab2 AS cor0
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT - COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9243
SELECT - COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT MIN( DISTINCT + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9244
SELECT MIN ( DISTINCT + col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9245
SELECT DISTINCT * FROM tab0 WHERE - col0 / + + CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-9245
SELECT DISTINCT * FROM tab0 WHERE - col0 / + + CAST ( NULL AS REAL ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9246
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col0 * - col0 + + col2 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT - - col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9249
SELECT + 90 * - CAST( - - 16 AS SIGNED ) DIV 46 DIV - + col2 + - 45 + 37 FROM tab1 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-9249
SELECT + 90 * - CAST ( - - 16 AS INTEGER ) / 46 / - + col2 + - 45 + 37 FROM tab1 AS cor0
----
-8
-8
-8

query II rowsort
SELECT - col1, col0 + ( - - col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT ALL + col1 + - col1 DIV + - 39 col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9251
SELECT ALL + col1 + - col1 / + - 39 col1 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT + + MIN( + + col2 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9252
SELECT + + MIN ( + + col2 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
20

query I rowsort
SELECT + - col1 + + 3 AS col2 FROM tab1 AS cor0
----
-11
-2
-44

query I rowsort
SELECT DISTINCT + + 28 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( col2 ) + + col2 + col0 * + - 56 FROM tab1
----
-2664
-4642
-4960

query II rowsort
SELECT + col0 + + 10, col1 FROM tab2
----
56
51
74
77
85
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9257
SELECT - CAST( NULL AS DECIMAL ) * MAX( DISTINCT - col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT - CAST ( NULL AS REAL ) * MAX ( DISTINCT - col1 ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9258
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) + + CAST( + + AVG ( ALL + col1 ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - ( + CAST ( NULL AS REAL ) ) + + CAST ( + + AVG ( ALL + col1 ) AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9259
SELECT DISTINCT * FROM tab2 WHERE col0 * col2 * + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9259
SELECT DISTINCT * FROM tab2 WHERE col0 * col2 * + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT - COUNT( * ) + - 37 + COUNT( * ) col1 FROM tab2
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9260
SELECT DISTINCT - COUNT ( * ) + - 37 + COUNT ( * ) col1 FROM tab2
----
-37

query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL 31 + ( + 28 ) * + + 61 * + col2 * - - col0 FROM tab0 cor0
----
1204171
1485991
16401955

query I rowsort
SELECT + col2 - + + col2 + + col0 * + + 96 + 96 * + col2 * + 99 FROM tab2 AS cor0
----
223008
386304
558432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT col0 * - - ( - + col0 ) - - + col2 AS col0 FROM tab2 AS cor0
----
-2093
-4056
-5567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9266
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE 25 * - + 37 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE 25 * - + 37 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 17 - col0 + - 69 FROM tab1 WHERE NOT - 1 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9268
SELECT ALL 2 DIV + 35 * 42 + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL 2 / + 35 * 42 + COUNT ( * ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col0 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 * - col0 + - - 21 + - + col0 NOT BETWEEN NULL AND + + 52
----

query I rowsort
SELECT - - ( + + ( + col2 ) ) * + + col1 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT - col1 AS col1, 19 FROM tab1 AS cor0
----
-14
19
-47
19
-5
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT - COUNT( 56 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9273
SELECT - COUNT ( 56 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT DISTINCT - MAX( ALL - CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9275
SELECT ALL - MAX( ALL - - col0 ) DIV + - SUM( + 63 ) * COUNT( * ) * - - 99 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL - MAX ( ALL - - col0 ) / + - SUM ( + 63 ) * COUNT ( * ) * - - 99 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT COUNT( * ) * - SUM( - col2 ) col2 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9277
SELECT COUNT ( * ) * - SUM ( - col2 ) col2 FROM tab0 AS cor0
----
468

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * - 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT + MAX( ALL - col2 ) + 27 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9280
SELECT + MAX ( ALL - col2 ) + 27 FROM tab2 AS cor0
----
4

query I rowsort
SELECT - + 78 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL - COUNT( * ) + 82 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - COUNT ( * ) + 82 FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT + - COUNT( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9283
SELECT + - COUNT ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9284
SELECT DISTINCT + col2 AS col0, 45 * - + 10 + - - col2 * - col1 * + + 28 - + + CAST( + col2 AS SIGNED ) * + - col0 FROM tab1 AS cor0 WHERE NOT - 45 + - col1 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9284
SELECT DISTINCT + col2 AS col0, 45 * - + 10 + - - col2 * - col1 * + + 28 - + + CAST ( + col2 AS INTEGER ) * + - col0 FROM tab1 AS cor0 WHERE NOT - 45 + - col1 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL COUNT( * ) + - + MIN( + col2 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL COUNT ( * ) + - + MIN ( + col2 ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT DISTINCT + 74 - + col0 FROM tab1
----
-11
-17
23

query I rowsort
SELECT ALL ( - - col2 ) AS col1 FROM tab1
----
59
68
96

query II rowsort
SELECT DISTINCT + col0 AS col2, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT 18 - + + 37 AS col2, + 85 AS col0 FROM tab2
----
-19
85
-19
85
-19
85

query II rowsort
SELECT DISTINCT col1, col0 + 71 FROM tab0
----
1
168
21
158
81
86

query I rowsort
SELECT ALL col1 * col0 + col1 + - col1 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query II rowsort label-9292
SELECT ALL - ( col1 ) - - 99 DIV - 14, + col2 FROM tab0
----
-28
10
-8
99
-88
47

skipif mysql # not compatible
query II rowsort label-9292
SELECT ALL - ( col1 ) - - 99 / - 14, + col2 FROM tab0
----
-28
10
-8
99
-88
47

query I rowsort
SELECT - 42 + + + col2 * + + 49 FROM tab2
----
1085
1918
2800

query I rowsort
SELECT DISTINCT ( + col2 ) - col0 * col0 FROM tab2 AS cor0
----
-2093
-4056
-5567

query I rowsort
SELECT ALL 27 * + + col0 FROM tab1
----
1377
2295
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT - COUNT( * ) * + COUNT( ALL 27 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9296
SELECT - COUNT ( * ) * + COUNT ( ALL 27 ) FROM tab2
----
-9

query I rowsort
SELECT ALL 9 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT DISTINCT - MIN( col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - MIN ( col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT SUM( + 15 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9299
SELECT SUM ( + 15 ) FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT ALL 11 DIV + COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL 11 / + COUNT ( * ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 * - + col1 col2 FROM tab2
----
-3060
-4020
-4620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT CAST( + 70 AS SIGNED ) FROM tab1
----
70
70
70

skipif mysql # not compatible
query I rowsort label-9302
SELECT CAST ( + 70 AS INTEGER ) FROM tab1
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2 col2, col2 FROM tab0
----
2
10
2
47
2
99

query I rowsort
SELECT ALL + col1 * + + col1 AS col1 FROM tab1
----
196
2209
25

query II rowsort
SELECT ALL col0 AS col1, 9 AS col1 FROM tab0
----
15
9
87
9
97
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT DISTINCT - col0 / CAST( 90 AS SIGNED ) FROM tab1 WHERE + 16 * + - ( + CAST( NULL AS SIGNED ) ) NOT IN ( - - 5 )
----

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT - col0 / CAST ( 90 AS INTEGER ) FROM tab1 WHERE + 16 * + - ( + CAST ( NULL AS INTEGER ) ) NOT IN ( - - 5 )
----

query I rowsort
SELECT ALL + + 16 FROM tab1 cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL + - MAX( DISTINCT col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL + - MAX ( DISTINCT col0 ) FROM tab1 cor0
----
-91

query I rowsort
SELECT - col1 * + 31 FROM tab2 AS cor0
----
-1581
-2077
-2387

query I rowsort
SELECT - col2 * - 42 AS col2 FROM tab2 AS cor0
----
1680
2436
966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL 19 + - - col1 * - - 97 + + CAST( - 49 AS SIGNED ) FROM tab0
----
2007
67
7827

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL 19 + - - col1 * - - 97 + + CAST ( - 49 AS INTEGER ) FROM tab0
----
2007
67
7827

query I rowsort
SELECT DISTINCT + + 28 + - col1 FROM tab0 cor0
----
-53
27
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL - SUM( col0 ) * 60 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-13620

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - SUM ( col0 ) * 60 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-13620

query I rowsort
SELECT ALL - col0 - + col1 + + col2 AS col1 FROM tab1 cor0
----
-31
-70
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT + SUM( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT + SUM ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT - 28 + CAST( - - 8 AS SIGNED ) * - col1 - - col1 FROM tab1 AS cor0
----
-126
-357
-63

skipif mysql # not compatible
query I rowsort label-9316
SELECT - 28 + CAST ( - - 8 AS INTEGER ) * - col1 - - col1 FROM tab1 AS cor0
----
-126
-357
-63

query I rowsort
SELECT + + col1 + - - 41 FROM tab0 AS cor0
----
122
42
62

query II rowsort
SELECT col0 + col1 AS col1, col0 AS col0 FROM tab1 AS cor0
----
138
91
65
51
90
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9319
SELECT + 86 DIV col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9319
SELECT + 86 / col2 FROM tab2
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9320
SELECT ALL col1 DIV - 85 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL col1 / - 85 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 4 - + col1 AS col1 FROM tab2
----
-47
-63
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT DISTINCT - COUNT( DISTINCT - - col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT - COUNT ( DISTINCT - - col2 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT 74 AS col1 FROM tab0 WHERE - - 97 IS NOT NULL
----
74
74
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9324
SELECT - ( + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9324
SELECT - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9325
SELECT 52 AS col0, CAST( NULL AS SIGNED ), + col1 + - + col0 AS col2 FROM tab2
----
9 values hashing to be928e61907bcbc211295257f5816197

skipif mysql # not compatible
query III rowsort label-9325
SELECT 52 AS col0, CAST ( NULL AS INTEGER ), + col1 + - + col0 AS col2 FROM tab2
----
9 values hashing to be928e61907bcbc211295257f5816197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9326
SELECT DISTINCT + COUNT( * ) DIV 60 FROM tab2 WHERE NOT - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT + COUNT ( * ) / 60 FROM tab2 WHERE NOT - col0 IS NULL
----
0

query I rowsort
SELECT - + 47 + 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query II rowsort label-9328
SELECT ALL + 30 AS col2, COUNT( * ) FROM tab2 WHERE NOT + - 82 NOT IN ( 62, col2, + - col0, - col0 + + 73, + 21 * + - col0 )
----
30
0

skipif mysql # not compatible
query II rowsort label-9328
SELECT ALL + 30 AS col2, COUNT ( * ) FROM tab2 WHERE NOT + - 82 NOT IN ( 62, col2, + - col0, - col0 + + 73, + 21 * + - col0 )
----
30
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9329
SELECT DISTINCT + + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9329
SELECT DISTINCT + + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 33 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 79 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-4661
-5372
-7584

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT - + MAX( ALL col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT - + MAX ( ALL col1 ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT 41 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE - 67 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE ( - 54 ) NOT BETWEEN ( 84 ) AND 25
----
23
40
58

query I rowsort
SELECT DISTINCT - col1 * - 51 * - + col1 - - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT DISTINCT + CAST( 38 AS SIGNED ) * - - 69 + + CAST( + col0 AS SIGNED ) + - col0 FROM tab1
----
2622

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT + CAST ( 38 AS INTEGER ) * - - 69 + + CAST ( + col0 AS INTEGER ) + - col0 FROM tab1
----
2622

query II rowsort
SELECT ALL col0 + + - col0 AS col1, 20 FROM tab1
----
0
20
0
20
0
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 + ( 50 ) + + 14 col2 FROM tab1
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9340
SELECT + CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9340
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 + + - ( - col0 ) * - col1 col1 FROM tab0
----
-1311
-1923
-193

query I rowsort
SELECT DISTINCT col0 + 1 * - - col1 AS col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT + - ( - - COUNT( * ) ) + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9343
SELECT + - ( - - COUNT ( * ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( + col0 )
----

query I rowsort
SELECT + col1 + - + 6 AS col2 FROM tab2
----
45
61
71

query I rowsort
SELECT ALL + 82 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - - col1 + 75 AS col0 FROM tab1 AS cor0
----
122
80
89

query I rowsort
SELECT DISTINCT + col2 + 92 * 14 * - 96 AS col0 FROM tab0 AS cor0
----
-123549
-123601
-123638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9349
SELECT DISTINCT + COUNT( * ) DIV - - 28 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT + COUNT ( * ) / - - 28 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 - + 95 + - + col2 * ( - col2 ) FROM tab0 AS cor0
----
2129
92
9803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT ALL ( - col0 ) + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL ( - col0 ) + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-104
-133
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 20 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT col0 * - col1 * col0 AS col0 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT + 81 * - - MAX( DISTINCT - col0 ) AS col0 FROM tab2
----
-3726

skipif mysql # not compatible
query I rowsort label-9355
SELECT + 81 * - - MAX ( DISTINCT - col0 ) AS col0 FROM tab2
----
-3726

query I rowsort
SELECT 5 * - - col0 AS col0 FROM tab2
----
230
320
375

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT + SUM( ALL + col2 ) * + + COUNT( * ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT + SUM ( ALL + col2 ) * + + COUNT ( * ) FROM tab2
----
363

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9358
SELECT - CAST( - 49 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL < + col1
----

skipif mysql # not compatible
query I rowsort label-9358
SELECT - CAST ( - 49 AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL < + col1
----

query I rowsort
SELECT DISTINCT + 61 * col2 FROM tab1 cor0
----
3599
4148
5856

query II rowsort
SELECT ALL - col2 AS col0, col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - - 95 IS NULL
----

query I rowsort
SELECT 2 * col0 AS col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT SUM( - 31 ) - MIN( + - 11 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-268

skipif mysql # not compatible
query I rowsort label-9363
SELECT SUM ( - 31 ) - MIN ( + - 11 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-268

query I rowsort
SELECT DISTINCT col2 * col2 * - + 14 AS col1 FROM tab2 AS cor0
----
-22400
-47096
-7406

query I rowsort
SELECT ALL ( + 71 ) FROM tab2 cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT ALL - - CAST( NULL AS SIGNED ) * - + 69 + + - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL - - CAST ( NULL AS INTEGER ) * - + 69 + + - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 col1 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - 1 + - 34 AS col1 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT DISTINCT + MAX( + - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT + MAX ( + - col2 ) AS col2 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT DISTINCT - col0 / - CAST( NULL AS SIGNED ) + - 84 * - col1 FROM tab0 WHERE + 78 + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT - col0 / - CAST ( NULL AS INTEGER ) + - 84 * - col1 FROM tab0 WHERE + 78 + col2 = NULL
----

query I rowsort
SELECT + col0 + - ( + 42 ) * + col1 AS col1 FROM tab0
----
-3387
-795
55

query II rowsort
SELECT DISTINCT 29, ( col1 ) FROM tab1
----
29
14
29
47
29
5

query I rowsort
SELECT - ( - - 77 ) + col0 FROM tab1
----
-26
14
8

query I rowsort
SELECT + col2 + - col0 + col2 FROM tab0
----
-67
101
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT ALL 35 col2, + COUNT( * ) FROM tab0 AS cor0
----
35
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9375
SELECT ALL 35 col2, + COUNT ( * ) FROM tab0 AS cor0
----
35
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 73 * - - 29 * + col1 <= ( - 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + + col0 - col2 AS col1 FROM tab2
----
101
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT + 4 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9378
SELECT + 4 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 92 - 5 col2, - 31 AS col0 FROM tab2 AS cor0
----
87
-31
87
-31
87
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-9380
SELECT DISTINCT - 97, - ( + 22 ) * - ( + MAX( ALL + 58 ) ) AS col1 FROM tab1
----
-97
1276

skipif mysql # not compatible
query II rowsort label-9380
SELECT DISTINCT - 97, - ( + 22 ) * - ( + MAX ( ALL + 58 ) ) AS col1 FROM tab1
----
-97
1276

query II rowsort
SELECT - ( - col2 ) * - col0, col1 FROM tab0
----
-705
81
-870
21
-9603
1

query I rowsort
SELECT DISTINCT - col2 * + 73 FROM tab2
----
-1679
-2920
-4234

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - - 93 * - col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT 46 AS col0 FROM tab0 WHERE NOT 29 <> - col2
----

query I rowsort
SELECT DISTINCT - - ( - + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9387
SELECT ALL + COUNT( * ) DIV 18 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL + COUNT ( * ) / 18 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 68 * - col1 + + col2 = NULL
----

query I rowsort
SELECT 71 + - col2 AS col2 FROM tab0
----
-28
24
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT ALL - 94 + - CAST( 29 AS SIGNED ) FROM tab1 AS cor0
----
-123
-123
-123

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - 94 + - CAST ( 29 AS INTEGER ) FROM tab1 AS cor0
----
-123
-123
-123

query I rowsort
SELECT + 8 * col1 - + col0 + - col2 FROM tab0 cor0
----
-188
586
71

query I rowsort
SELECT col2 * - col0 - + col2 * 46 AS col1 FROM tab0 AS cor0
----
-1330
-14157
-2867

query I rowsort
SELECT ALL - ( - 26 ) AS col2 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL SUM( + 17 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL SUM ( + 17 ) AS col2 FROM tab1 cor0
----
51

query I rowsort
SELECT ALL ( + 91 ) AS col0 FROM tab0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT DISTINCT MIN( col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT MIN ( col2 ) AS col1 FROM tab0
----
10

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 < col2 * + 26 + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 54 + + 21 AS col1 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9400
SELECT - col1 * col0 + + + CAST( - col1 AS SIGNED ) + col0 - - 94 + 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-9400
SELECT - col1 * col0 + + + CAST ( - col1 AS INTEGER ) + col0 - - 94 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = 12
----

query I rowsort
SELECT DISTINCT + col0 + - col2 + 60 AS col1 FROM tab0
----
137
28
58

query I rowsort
SELECT ALL + 24 + - col2 FROM tab2
----
-16
-34
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT - CAST( + col1 AS SIGNED ) * + col0 - - 81 FROM tab2
----
-2265
-4847
-4944

skipif mysql # not compatible
query I rowsort label-9404
SELECT - CAST ( + col1 AS INTEGER ) * + col0 - - 81 FROM tab2
----
-2265
-4847
-4944

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT ALL col0 * + col2 DIV col2 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL col0 * + col2 / col2 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ( - - col0 ) - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + ( col2 ) / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL + 66 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + 66 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT + 17 * + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) + - 69 + - col2 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-9411
SELECT + 17 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) + - 69 + - col2 IS NULL
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - - COUNT( col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9412
SELECT - - COUNT ( col0 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 79 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
-79
51
-79
67
-79
77

query II rowsort
SELECT DISTINCT + 95 * - + ( + 80 ), - col1 * + 33 AS col1 FROM tab0
----
-7600
-2673
-7600
-33
-7600
-693

query I rowsort
SELECT DISTINCT col0 * + col1 * - col2 AS col2 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT CAST( - + 2 AS SIGNED ) AS col0 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9416
SELECT CAST ( - + 2 AS INTEGER ) AS col0 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT col1 * + - col2 * - + col1 * + + col2 FROM tab2
----
1375929
15100996
9486400

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * - - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab1 AS cor0 WHERE + 43 * + - 82 IS NOT NULL
----
4

query I rowsort
SELECT - + ( 92 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9421
SELECT CAST( NULL AS DECIMAL ) / ( - + COUNT( * ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT CAST ( NULL AS REAL ) / ( - + COUNT ( * ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 8 * + col2 FROM tab2
----
184
320
464

query I rowsort
SELECT ALL + + col0 * - col2 + - col1 AS col0 FROM tab1 WHERE + col2 <= - col0
----

query II rowsort
SELECT DISTINCT - 84 AS col1, - col2 FROM tab1
----
-84
-59
-84
-68
-84
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) FROM tab1 WHERE NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) FROM tab1 WHERE NULL >= col2
----
0

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab2 cor0
----
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + col0 / 13 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL COUNT( - - 54 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL COUNT ( - - 54 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + 69 FROM tab2 cor0 WHERE 26 IS NOT NULL
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col1 FROM tab2 AS cor0 WHERE NULL <> col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT - COUNT( * ) + - - CAST( NULL AS SIGNED ) + + - 72 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - 72 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT - 83 DIV - col0 + col2 + + col2 + + - col2 * + col0 + col0 AS col1 FROM tab0
----
-591
-763
-9308

skipif mysql # not compatible
query I rowsort label-9433
SELECT - 83 / - col0 + col2 + + col2 + + - col2 * + col0 + col0 AS col1 FROM tab0
----
-591
-763
-9308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 15 col2 FROM tab1
----
-100
-106
-66

query III rowsort
SELECT * FROM tab1 WHERE + + ( - 92 ) * - + col2 >= ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + col1 + - col1 AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT DISTINCT COUNT( * ) * + 48 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT COUNT ( * ) * + 48 FROM tab1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 99 - + - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 99 - + - col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 - - + col1 + - + col2 * col1 + col2 * + - col1 + - + col0 + - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9440
SELECT DISTINCT - COUNT( * ) DIV COUNT( col2 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - COUNT ( * ) / COUNT ( col2 ) AS col1 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE - - col1 * - ( ( + col2 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT COUNT( * ) AS col2 FROM tab0 WHERE - - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9442
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE - - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9443
SELECT + CAST( - 4 AS SIGNED ) AS col0, col2 AS col2 FROM tab0 AS cor0
----
-4
10
-4
47
-4
99

skipif mysql # not compatible
query II rowsort label-9443
SELECT + CAST ( - 4 AS INTEGER ) AS col0, col2 AS col2 FROM tab0 AS cor0
----
-4
10
-4
47
-4
99

query I rowsort
SELECT DISTINCT col2 * col0 + - col0 + - col1 * - col2 + - + col0 + col1 FROM tab2 AS cor0
----
2190
5589
8153

query I rowsort
SELECT DISTINCT col0 - - 53 - col1 AS col2 FROM tab2
----
40
48
61

query I rowsort
SELECT col0 + + - ( col0 ) FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 IN ( - col2 + - col0 * 7, + col0 + + col1 * + col0, ( + + col0 ) - + 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT MAX( col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9448
SELECT MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
97

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 AS col1 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT COUNT( * ) * - 61 FROM tab2 AS cor0 WHERE - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT COUNT ( * ) * - 61 FROM tab2 AS cor0 WHERE - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

query I rowsort
SELECT - 17 * + col0 FROM tab1 AS cor0 WHERE NOT ( - 19 ) + - col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9452
SELECT ALL - 21 * + 62 * - 25 * CAST( NULL AS SIGNED ) + + ( - - 99 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL - 21 * + 62 * - 25 * CAST ( NULL AS INTEGER ) + + ( - - 99 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9453
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, MIN( - col1 ) FROM tab2
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-9453
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, MIN ( - col1 ) FROM tab2
----
NULL
-77

query I rowsort
SELECT + col2 * + 11 FROM tab0
----
1089
110
517

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 82 * + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT COUNT( - col1 ) * + + 8 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-9456
SELECT COUNT ( - col1 ) * + + 8 FROM tab0
----
24

query I rowsort
SELECT DISTINCT 66 * + + col0 AS col2 FROM tab0
----
5742
6402
990

query II rowsort
SELECT ALL col0, - 99 AS col0 FROM tab1 AS cor0
----
51
-99
85
-99
91
-99

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 66 NOT BETWEEN - col2 AND + ( + col2 )
----
-99

query I rowsort
SELECT DISTINCT 36 * - col2 FROM tab2
----
-1440
-2088
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 + col0 col0 FROM tab0 AS cor0
----
141
151
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE 73 * - 34 + - 67 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9462
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE 73 * - 34 + - 67 IS NULL
----

query II rowsort
SELECT + ( - col0 ) AS col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT - COUNT( * ) * 72 AS col1 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9464
SELECT - COUNT ( * ) * 72 AS col1 FROM tab0 AS cor0
----
-216

query I rowsort
SELECT ALL + col2 * 68 * - - col2 FROM tab1 AS cor0
----
236708
314432
626688

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN - col2 * col1 AND - - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT ALL - - 12 * + + col1 FROM tab0 cor0
----
12
252
972

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - 51 + 17 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT col2 + - 97 FROM tab2
----
-39
-57
-74

query I rowsort
SELECT DISTINCT + 25 + - 51 AS col0 FROM tab2
----
-26

query II rowsort
SELECT col0 * + + col0 + - ( col1 ), col1 AS col2 FROM tab0
----
144
81
7548
21
9408
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT - 84 + MIN( + + 55 ) AS col0 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-9474
SELECT - 84 + MIN ( + + 55 ) AS col0 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT DISTINCT col2 - - 4 FROM tab1 AS cor0
----
100
63
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9476
SELECT ALL + COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) - - COUNT( * ) col0 FROM tab1 cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9476
SELECT ALL + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) - - COUNT ( * ) col0 FROM tab1 cor0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + - col0 IS NULL OR col2 <= - + 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT ALL 21 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL 21 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * col0 + col2 FROM tab1 WHERE NOT col2 / col1 IN ( ( - 38 ) * + 22 )
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT - MAX( 26 ) AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-9480
SELECT - MAX ( 26 ) AS col1 FROM tab0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT COUNT( * ) + - 42 * 33 col2 FROM tab1 WHERE + col2 IS NULL
----
-1386

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9481
SELECT COUNT ( * ) + - 42 * 33 col2 FROM tab1 WHERE + col2 IS NULL
----
-1386

query I rowsort
SELECT 54 * col2 - + col2 AS col2 FROM tab0
----
2491
5247
530

query I rowsort
SELECT 85 * col0 - + 52 AS col0 FROM tab1
----
4283
7173
7683

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT DISTINCT 9 DIV + col2 + + col0 DIV col0 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT 9 / + col2 + + col0 / col0 AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT - MAX( col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9485
SELECT - MAX ( col1 ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT - col2 + ( + col0 + col2 ) FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + 35 * - col1 FROM tab1 WHERE NULL IS NULL
----
-1645
-175
-490

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT ( - col0 ) + - col2 * col1 AS col0 FROM tab1
----
-1395
-3287
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( col1 ) ) col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ( - 87 ) + - 10 AS col2 FROM tab2
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT - ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT - ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 57 NOT BETWEEN ( 61 ) AND col2 + - col2
----

query I rowsort
SELECT - 16 * col0 AS col1 FROM tab1 WHERE col0 * + col1 < ( NULL )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT DISTINCT col1 + 97 AS col2 FROM tab0
----
118
178
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL + ( + MAX( - col2 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + ( + MAX ( - col2 ) ) AS col0 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT - CAST( + col0 AS SIGNED ) * col2 AS col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-9498
SELECT - CAST ( + col0 AS INTEGER ) * col2 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT + 73 * COUNT( * ) col0 FROM tab0
----
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9499
SELECT + 73 * COUNT ( * ) col0 FROM tab0
----
219

query I rowsort
SELECT DISTINCT - col2 + 45 * - col1 FROM tab2
----
-2318
-3073
-3505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL ( + col0 ) + - col1 FROM tab2 WHERE col1 > col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL ( + col0 ) + - col1 FROM tab2 WHERE col1 > col1 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT - COUNT( * ) - 11 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-9502
SELECT - COUNT ( * ) - 11 FROM tab1
----
-14

query III rowsort
SELECT * FROM tab1 WHERE col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * 1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col1 + + 31
----
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT - ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col1 + + 31
----
0

query I rowsort
SELECT DISTINCT + ( 65 ) AS col1 FROM tab2 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9507
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( + ( - CAST( NULL AS SIGNED ) ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-9507
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( + ( - CAST ( NULL AS INTEGER ) ) * col2 )
----

query I rowsort
SELECT ALL + 96 * 76 AS col2 FROM tab1 AS cor0
----
7296
7296
7296

query I rowsort
SELECT col2 - + col0 / 12 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT DISTINCT - CAST( + 1 AS SIGNED ) * + 34 AS col2 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT - CAST ( + 1 AS INTEGER ) * + 34 AS col2 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT - ( + 27 ) * col1 FROM tab0 cor0
----
-2187
-27
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT + MAX( 80 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-9512
SELECT + MAX ( 80 ) FROM tab0
----
80

query I rowsort
SELECT + col2 * 97 FROM tab1
----
5723
6596
9312

query I rowsort
SELECT ALL + 13 * - 57 AS col1 FROM tab1
----
-741
-741
-741

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT DISTINCT 41 DIV + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
2
8

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT 41 / + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
2
8

query I rowsort
SELECT ALL + col2 + - col0 * - col0 AS col1 FROM tab1 AS cor0
----
2697
7284
8349

query I rowsort
SELECT + - ( 92 ) + - col1 AS col1 FROM tab1 cor0
----
-106
-139
-97

query I rowsort
SELECT DISTINCT - col0 * + ( col1 * col1 ) AS col0 FROM tab1 AS cor0 WHERE ( - col1 + col2 ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT DISTINCT col1 + - ( - col1 - 70 * + 63 ) DIV col2 AS col2 FROM tab0 cor0
----
176
45
464

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT col1 + - ( - col1 - 70 * + 63 ) / col2 AS col2 FROM tab0 cor0
----
176
45
464

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col0 > ( col0 * col2 )
----

query I rowsort
SELECT - 89 + col2 FROM tab2 AS cor0
----
-31
-49
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL + MAX( ALL 34 ) * COUNT( * ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL + MAX ( ALL 34 ) * COUNT ( * ) FROM tab2 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( 33 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9523
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( 33 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT + 97 + - COUNT( * ) FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-9524
SELECT + 97 + - COUNT ( * ) FROM tab0 cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL - + MAX( col2 ) col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9525
SELECT ALL - + MAX ( col2 ) col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT ( + 0 ) * - col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE col1 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT col1 * col1 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9529
SELECT ALL - COUNT( * ) DIV + + ( ( + SUM( ALL col0 ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL - COUNT ( * ) / + + ( ( + SUM ( ALL col0 ) ) ) FROM tab0
----
0

query I rowsort
SELECT ALL - 96 * - 91 + col1 AS col0 FROM tab2
----
8787
8803
8813

query I rowsort
SELECT ( 34 ) AS col1 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT 29 DIV + 30 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9532
SELECT 29 / + 30 col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9533
SELECT 47 * - COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9533
SELECT 47 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 * ( + ( 33 ) ) * + col1 + - 93 FROM tab1
----
6375
72804
732

query I rowsort
SELECT ALL - 77 * 36 + + ( - 50 ) FROM tab2 AS cor0
----
-2822
-2822
-2822

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT - COUNT( ALL + + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9536
SELECT - COUNT ( ALL + + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - 57 AS col2 FROM tab0
----
-57
-57
-57

query II rowsort
SELECT + col0 AS col0, - col2 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT col1 + col2 AS col1 FROM tab0 WHERE NOT NULL <> - - col0
----

query I rowsort
SELECT + col2 * + col2 + - - 32 + col0 FROM tab0 AS cor0
----
219
2256
9930

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT 46 DIV + + 87 + - ( - 24 ) * - col2 FROM tab0 AS cor0
----
-1128
-2376
-240

skipif mysql # not compatible
query I rowsort label-9541
SELECT 46 / + + 87 + - ( - 24 ) * - col2 FROM tab0 AS cor0
----
-1128
-2376
-240

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT 64 <= NULL
----

query I rowsort
SELECT col0 - + 20 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
31
65
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9544
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col2, + 23 AS col2 FROM tab1
----
59
23
68
23
96
23

skipif mysql # not compatible
query II rowsort label-9544
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col2, + 23 AS col2 FROM tab1
----
59
23
68
23
96
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9545
SELECT ALL + 31 + col0, CAST( + 14 AS SIGNED ) AS col2 FROM tab0
----
118
14
128
14
46
14

skipif mysql # not compatible
query II rowsort label-9545
SELECT ALL + 31 + col0, CAST ( + 14 AS INTEGER ) AS col2 FROM tab0
----
118
14
128
14
46
14

query I rowsort
SELECT ALL - ( + - 96 ) + - 95 FROM tab0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 77 * + 76 AS col2 FROM tab0 WHERE - - 84 = NULL
----

query I rowsort
SELECT DISTINCT + + 99 * + col0 AS col1 FROM tab2 AS cor0
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL ( - COUNT( * ) ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9550
SELECT ALL ( - COUNT ( * ) ) col1 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT MAX( ALL col0 ) col2 FROM tab0 WHERE - col0 IS NOT NULL
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9551
SELECT MAX ( ALL col0 ) col2 FROM tab0 WHERE - col0 IS NOT NULL
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9552
SELECT * FROM tab0 WHERE col2 + + + col0 + + 1 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9552
SELECT * FROM tab0 WHERE col2 + + + col0 + + 1 >= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9553
SELECT * FROM tab2 WHERE ( - 43 ) = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9553
SELECT * FROM tab2 WHERE ( - 43 ) = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - col1 + + col1 + + 52 * + + col2 FROM tab0 AS cor0
----
2444
5148
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - col1 + col1 col1 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - + ( + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE + col1 + + col0 BETWEEN col0 + col0 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - SUM( DISTINCT 81 ) AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9560
SELECT - SUM ( DISTINCT 81 ) AS col2 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT ALL + 93 * + col0 - col0 FROM tab2
----
4232
5888
6900

query II rowsort
SELECT ALL - col1 AS col1, 35 * - col2 FROM tab1
----
-14
-3360
-47
-2380
-5
-2065

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT 76 * ( + COUNT( - - col2 ) ) AS col0 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT 76 * ( + COUNT ( - - col2 ) ) AS col0 FROM tab1
----
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col0 FROM tab1, tab0 cor0 WHERE NULL IS NULL
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9565
SELECT + MAX( + + col2 ) + + SUM( DISTINCT + col2 ) + + 14 * 45 DIV - COUNT( * ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9565
SELECT + MAX ( + + col2 ) + + SUM ( DISTINCT + col2 ) + + 14 * 45 / - COUNT ( * ) AS col2 FROM tab0
----
45

query I rowsort
SELECT 98 + + col2 FROM tab2
----
121
138
156

query I rowsort
SELECT 60 + - col2 FROM tab0 WHERE NULL BETWEEN 22 AND - col0 * - 60 + - 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * col0 + + - col1 col0 FROM tab2
----
547
755
908

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL + COUNT( * ) col1 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9569
SELECT ALL + COUNT ( * ) col1 FROM tab0, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9570
SELECT ALL - MIN( DISTINCT CAST( + - col1 AS SIGNED ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL - MIN ( DISTINCT CAST ( + - col1 AS INTEGER ) ) FROM tab2
----
77

query I rowsort
SELECT ( col0 ) FROM tab0 WHERE NOT ( ( - col2 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 29 * col0 AS col1 FROM tab1
----
-1479
-2465
-2639

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + + - ( 82 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + + - ( 82 ) FROM tab0 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 61 * col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 22 + - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + AVG ( DISTINCT - 23 ) + - 74 / + - 86 * - ( - 62 ) * 80 AS col0 FROM tab0 WHERE NOT NULL > NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col2 FROM tab1
----
12
12
12

query I rowsort
SELECT 43 + + - 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 * - col2 / col1 - - col1 + + 49 ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 * + 54 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 * + 54 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col2 ) FROM tab1 AS cor0 WHERE NOT ( - + 53 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + 15
----

query I rowsort
SELECT - ( - + col1 ) + col2 * - - col0 AS col1 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT ALL - 23 + ( - col2 ) FROM tab2
----
-46
-63
-81

query I rowsort
SELECT + 0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col1 + 80 FROM tab1
----
33
66
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 84 - - col2 col2 FROM tab1
----
84

query I rowsort
SELECT ALL 68 + - + col2 FROM tab0
----
-31
21
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE col0 * - - col2 * + + 82 * - - col1 NOT BETWEEN col0 - + + col2 * col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9591
SELECT ALL - 23 AS col1, COUNT( + ( + - col0 ) ) * COUNT( * ) AS col2 FROM tab1 cor0
----
-23
9

skipif mysql # not compatible
query II rowsort label-9591
SELECT ALL - 23 AS col1, COUNT ( + ( + - col0 ) ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
-23
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT ALL - CAST( NULL AS SIGNED ) * - - 35 + + 11 + - - col1 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-9592
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 35 + + 11 + - - col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 21 col1 FROM tab2 AS cor0
----
21
21
21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 86 + - col0, - 25 * - - 30 AS col2 FROM tab2
----
-132
-750
-150
-750
-161
-750

query I rowsort
SELECT + ( - col2 ) + + 58 AS col2 FROM tab1 AS cor0
----
-1
-10
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col0 FROM tab2 cor0 WHERE + col0 * 58 / + + 66 IN ( col1 + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9598
SELECT + + CAST( NULL AS SIGNED ) + COUNT( 87 ) * - 29 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT + + CAST ( NULL AS INTEGER ) + COUNT ( 87 ) * - 29 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9599
SELECT + - MAX( + 18 ) AS col2, SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
-18
-103

skipif mysql # not compatible
query II rowsort label-9599
SELECT + - MAX ( + 18 ) AS col2, SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-18
-103

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL - + MIN( + 43 ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - + MIN ( + 43 ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - SUM( ALL - - 3 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9602
SELECT - SUM ( ALL - - 3 ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT DISTINCT - COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 13 * col2 * ( + - col2 ) FROM tab0
----
-127413
-1300
-28717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 52 col2 FROM tab0
----
-2444
-5148
-520

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - - col0 + + col1
----

query I rowsort
SELECT DISTINCT 70 FROM tab2 WHERE - + 10 NOT BETWEEN col0 AND NULL
----
70

query I rowsort
SELECT ALL + col0 * - - col1 * - + col0 AS col2 FROM tab2
----
-107916
-315392
-376875

query II rowsort
SELECT col2 AS col2, ( + col0 ) FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - 75 FROM tab1 cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL 31 * col0 * col2 AS col2 FROM tab2
----
134850
32798
79360

query I rowsort
SELECT ALL col2 * - - col0 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9614
SELECT + col0 col0, + 5 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9614
SELECT + col0 col0, + 5 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 ) IN ( - 36 * + col0 + - - col0 * - 52 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab0 cor0 WHERE NULL >= + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 14 IN ( + col2, - 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT - col2 DIV ( ( ( col1 ) ) ) col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9618
SELECT - col2 / ( ( ( col1 ) ) ) col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - 39 AS col2, col0 * col2 FROM tab2 AS cor0
----
-39
1058
-39
2560
-39
4350

query I rowsort
SELECT DISTINCT - 66 * + col2 + - col0 FROM tab0 AS cor0
----
-3117
-6631
-747

query I rowsort
SELECT DISTINCT col1 * - ( + + col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT + ( 66 ) IS NOT NULL
----

query II rowsort
SELECT 58 * col1 + col0 AS col1, 56 AS col1 FROM tab2
----
3004
56
3961
56
4530
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT DISTINCT COUNT( * ) + - 62 AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT COUNT ( * ) + - 62 AS col1 FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT ALL + col2 DIV + col0 + + col0 AS col0 FROM tab0 AS cor0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + col2 / + col0 + + col0 AS col0 FROM tab0 AS cor0
----
18
87
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT DISTINCT + - col1 + - 56 DIV - - col2 + col2 AS col1 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT + - col1 + - 56 / - - col2 + col2 AS col1 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col1 + + col0 + + col2 * + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT DISTINCT COUNT( DISTINCT + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT COUNT ( DISTINCT + col1 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL - SUM( DISTINCT col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - SUM ( DISTINCT col0 ) AS col1 FROM tab2
----
-185

query II rowsort
SELECT ALL col1, col0 + + + col0 FROM tab2
----
51
92
67
150
77
128

query III rowsort
SELECT * FROM tab0 WHERE col2 * - col1 - - - 12 NOT IN ( + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 3 AS col2 FROM tab2 WHERE 2 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + + 65 FROM tab2 AS cor0
----
25
42
7

query II rowsort
SELECT + + ( col0 ) - col1 AS col2, - 99 AS col1 FROM tab0 AS cor0
----
-66
-99
66
-99
96
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + 34 + col0 >= col1 + + 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 * col1 - - + 54, 76 + - col0 AS col0 FROM tab1 AS cor0
----
2263
-15
250
25
79
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - ( 56 ) AND - - 66 * + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT - MAX( - 3 ) FROM tab1 WHERE NOT - - col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT - MAX ( - 3 ) FROM tab1 WHERE NOT - - col0 <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9639
SELECT CAST( + + ( + col2 ) AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9639
SELECT CAST ( + + ( + col2 ) AS INTEGER ) AS col0 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( - col0 ) + col2 * col2 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL <= col2 OR + 61 + + + 41 NOT BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT col0 * 46 FROM tab1
----
2346
3910
4186

onlyif mysql # aggregate syntax: 
query II rowsort label-9643
SELECT DISTINCT MAX( DISTINCT - + col1 ) AS col0, ( COUNT( * ) ) FROM tab1
----
-5
3

skipif mysql # not compatible
query II rowsort label-9643
SELECT DISTINCT MAX ( DISTINCT - + col1 ) AS col0, ( COUNT ( * ) ) FROM tab1
----
-5
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 81 = 20 * + - col1 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL + MIN( DISTINCT + col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL + MIN ( DISTINCT + col1 ) FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL + COUNT( * ) * + - 46 * + - CAST( NULL AS SIGNED ) + + COUNT( * ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9646
SELECT ALL + COUNT ( * ) * + - 46 * + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9647
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 FROM tab1
----
NULL

query II rowsort
SELECT col2 AS col2, - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT ALL ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - - SUM( ALL 16 ) + COUNT( * ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9653
SELECT - - SUM ( ALL 16 ) + COUNT ( * ) FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9654
SELECT - COUNT( * ) AS col1, AVG ( ALL + col1 ) col1 FROM tab2 AS cor0 WHERE 62 > col1 * + col1
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9654
SELECT - COUNT ( * ) AS col1, AVG ( ALL + col1 ) col1 FROM tab2 AS cor0 WHERE 62 > col1 * + col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL - - 63 * + 24 * ( COUNT( * ) ) FROM tab2 AS cor0
----
4536

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL - - 63 * + 24 * ( COUNT ( * ) ) FROM tab2 AS cor0
----
4536

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 >= + 35
----
46
51
23

query I rowsort
SELECT 94 + col1 AS col2 FROM tab2 AS cor0
----
145
161
171

query I rowsort
SELECT - - 5 + - - col0 FROM tab1 AS cor0
----
56
90
96

query I rowsort
SELECT 75 + + col0 FROM tab2 cor0
----
121
139
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL - MIN( DISTINCT - col1 ) * - - 12 FROM tab0
----
972

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL - MIN ( DISTINCT - col1 ) * - - 12 FROM tab0
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - 29 + COUNT( + col2 ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-9661
SELECT - 29 + COUNT ( + col2 ) FROM tab1
----
-26

query I rowsort
SELECT DISTINCT - col1 * ( 65 ) FROM tab2
----
-3315
-4355
-5005

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT COUNT( * ) FROM tab0 WHERE + - 90 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9664
SELECT COUNT ( * ) FROM tab0 WHERE + - 90 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( + col2 ) * col0 col1 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT 13 * + col0 * col2 * + col2 + - 60 AS col0 FROM tab0
----
113040
12359001
430695

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 47 / col1 * + - 67 / col2 * + - col0 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9668
SELECT ALL CAST( NULL AS SIGNED ) * + MIN( ALL col1 ) + + 84 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL CAST ( NULL AS INTEGER ) * + MIN ( ALL col1 ) + + 84 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> + 61 * col0 * - col2 * - col1 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9670
SELECT DISTINCT + col2 * + - col2 DIV + col2 + + col2, col1 - + CAST( + - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
10
0
28
0
94

skipif mysql # not compatible
query II rowsort label-9670
SELECT DISTINCT + col2 * + - col2 / + col2 + + col2, col1 - + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
10
0
28
0
94

query II rowsort
SELECT - - 13 * + + col1 - - + col0 + col1 AS col1, - col1 + + 0 AS col0 FROM tab0 AS cor0
----
111
-1
1149
-81
381
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9672
SELECT ALL * FROM tab2 cor0 WHERE - 6 IN ( col2, ( col2 ) / - 20 + - + 51, CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9672
SELECT ALL * FROM tab2 cor0 WHERE - 6 IN ( col2, ( col2 ) / - 20 + - + 51, CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9673
SELECT DISTINCT 15 / + + CAST( NULL AS SIGNED ) col2, - col0 * - + ( + col1 ) AS col1 FROM tab0
----
NULL
1215
NULL
1827
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9673
SELECT DISTINCT 15 / + + CAST ( NULL AS INTEGER ) col2, - col0 * - + ( + col1 ) AS col1 FROM tab0
----
NULL
1215
NULL
1827
NULL
97

query II rowsort
SELECT - ( - col0 ) * - 73 + col0 * - col0 - - 55 + - + col2, + col2 FROM tab0
----
-1312
47
-13875
10
-16534
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9675
SELECT ALL 99 DIV - - col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL 99 / - - col0 FROM tab2
----
1
1
2

query I rowsort
SELECT DISTINCT + ( + col0 ) * 16 * - ( - - col2 ) + 65 FROM tab1
----
-78271
-80175
-98943

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + ( 90 )
----

query I rowsort
SELECT ALL + ( - - col2 ) + - - 39 FROM tab0 AS cor0 WHERE NOT col0 * - col2 IN ( + col2, col1 * col2, + - col2, + - 67 - - col1 )
----
138
49
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9679
SELECT ALL - SUM( ALL + + col1 ) AS col0, - COUNT( * ) FROM tab0 cor0
----
-103
-3

skipif mysql # not compatible
query II rowsort label-9679
SELECT ALL - SUM ( ALL + + col1 ) AS col0, - COUNT ( * ) FROM tab0 cor0
----
-103
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT DISTINCT - + MIN( - 26 ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - + MIN ( - 26 ) AS col2 FROM tab2 AS cor0
----
26

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE - ( col0 ) * + 47 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - col2 ) IN ( - + 18, - col0 / + ( + - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 / + col2 + + col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 17 * + - col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + ( - - col1 ) IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9687
SELECT ALL 63 AS col1, - MIN( ALL - 78 ) AS col0 FROM tab1
----
63
78

skipif mysql # not compatible
query II rowsort label-9687
SELECT ALL 63 AS col1, - MIN ( ALL - 78 ) AS col0 FROM tab1
----
63
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9688
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IN ( col1, col0 + col1 )
----

skipif mysql # not compatible
query I rowsort label-9688
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IN ( col1, col0 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 11 / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9690
SELECT 52 DIV - 14 AS col1 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-9690
SELECT 52 / - 14 AS col1 FROM tab1
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT 59 * + - COUNT( * ) * - COUNT( * ) FROM tab2
----
531

skipif mysql # not compatible
query I rowsort label-9691
SELECT 59 * + - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
531

query I rowsort
SELECT 75 * + 57 AS col2 FROM tab2 AS cor0
----
4275
4275
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT DISTINCT col0 FROM tab0 cor0 WHERE - 22 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT col0 FROM tab0 cor0 WHERE - 22 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - col0 ) + + col1 * - col0 FROM tab0
----
-1230
-1914
-194

onlyif mysql # DIV for integer division: 
query I rowsort label-9695
SELECT ALL - col1 + col0 + col0 DIV - 62 FROM tab2 AS cor0
----
-14
-5
7

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - col1 + col0 + col0 / - 62 FROM tab2 AS cor0
----
-14
-5
7

query I rowsort
SELECT ALL - - col2 * - - col1 * - - 29 + - col2 FROM tab1 AS cor0
----
38880
8496
92616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 + - col2 col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * col1 * + + 2 * - col0 AND + - 64
----

query I rowsort
SELECT DISTINCT + 31 + + + col1 * + col0 + ( - col1 ) AS col0 FROM tab2 AS cor0
----
2326
4882
4989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT - col2 * + + 35 + + col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT - col2 * + + 35 + + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT COUNT( DISTINCT col2 ) * + COUNT( * ) * 71 FROM tab2 AS cor0
----
639

skipif mysql # not compatible
query I rowsort label-9700
SELECT COUNT ( DISTINCT col2 ) * + COUNT ( * ) * 71 FROM tab2 AS cor0
----
639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9701
SELECT - CAST( NULL AS SIGNED ) * ( + COUNT( * ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT - CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 87 + - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
146
155
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 WHERE ( + 83 ) IS NULL
----

query I rowsort
SELECT ALL col0 + + - col1 AS col2 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT - ( 89 ) FROM tab0
----
-89

query I rowsort
SELECT col1 + - 80 FROM tab2
----
-13
-29
-3

query I rowsort
SELECT DISTINCT 11 + - col0 FROM tab1
----
-40
-74
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT 24 + - + 75 * + COUNT( * ) FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT 24 + - + 75 * + COUNT ( * ) FROM tab1
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - ( 79 ) + COUNT( * ) * + COUNT( * ) + - 25 AS col0 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-9709
SELECT - ( 79 ) + COUNT ( * ) * + COUNT ( * ) + - 25 AS col0 FROM tab0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 NOT BETWEEN + 82 - + 24 AND - + 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 + - col1 col2 FROM tab1
----
44
77
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 86 + - col1 col0 FROM tab0 AS cor0
----
-107
-167
-87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + - - 71 = - col0 / + 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT - - 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query II rowsort label-9717
SELECT + 17, COUNT( * ) AS col0 FROM tab2
----
17
3

skipif mysql # not compatible
query II rowsort label-9717
SELECT + 17, COUNT ( * ) AS col0 FROM tab2
----
17
3

query I rowsort
SELECT ALL 51 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9719
SELECT - COUNT( ( - - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9719
SELECT - COUNT ( ( - - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 + 71, - 17, - col1 * + + col2, - col2 + col1 )
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
51
85
91

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab2 AS cor0 WHERE 58 BETWEEN ( - + 1 ) AND ( NULL )
----

query II rowsort
SELECT ALL - col2 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

query II rowsort
SELECT - col2 AS col0, + 9 FROM tab0 AS cor0
----
-10
9
-47
9
-99
9

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT DISTINCT SUM( ALL + 24 ) col0 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9726
SELECT DISTINCT SUM ( ALL + 24 ) col0 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT - MAX( ALL 39 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-9727
SELECT - MAX ( ALL 39 ) FROM tab2
----
-39

query I rowsort
SELECT ALL - col0 + - + col1 FROM tab1 WHERE NULL > + - 81 * + col2
----

query II rowsort
SELECT + col2 * + - col1, 44 AS col0 FROM tab0
----
-210
44
-3807
44
-99
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT DISTINCT col1 DIV - - 14 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT col1 / - - 14 FROM tab2
----
3
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT - COUNT( * ) * - - 1 AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9731
SELECT - COUNT ( * ) * - - 1 AS col0 FROM tab1
----
-3

query I rowsort
SELECT + - 58 * - 14 FROM tab2 AS cor0
----
812
812
812

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + COUNT( * ) * + + 14 col2 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9733
SELECT + COUNT ( * ) * + + 14 col2 FROM tab1 AS cor0
----
42

query I rowsort
SELECT DISTINCT - 45 FROM tab0 AS cor0 WHERE NOT ( - col0 / + 69 IS NULL )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9735
SELECT ALL - CAST( - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - CAST ( - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT MAX( ALL + + 88 ) AS col2 FROM tab2 cor0
----
88

skipif mysql # not compatible
query I rowsort label-9736
SELECT MAX ( ALL + + 88 ) AS col2 FROM tab2 cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9738
SELECT MAX( + - 47 ) AS col0, - 92 * + MAX( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-47
-6900

skipif mysql # not compatible
query II rowsort label-9738
SELECT MAX ( + - 47 ) AS col0, - 92 * + MAX ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-47
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT + SUM( DISTINCT + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9739
SELECT + SUM ( DISTINCT + col0 ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT - COUNT( * ) FROM tab1 WHERE - - 97 = 17
----
0

skipif mysql # not compatible
query I rowsort label-9741
SELECT - COUNT ( * ) FROM tab1 WHERE - - 97 = 17
----
0

query I rowsort
SELECT col0 + - 0 + + + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT + + col2 * + + col2 * - col0 * col2 + col0 AS col0 FROM tab1 AS cor0
----
-17457130
-28613221
-45121485

query II rowsort
SELECT ALL + col0, 90 AS col1 FROM tab0 AS cor0
----
15
90
87
90
97
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT + COUNT( * ) + - 66 * + + COUNT( * ) AS col0 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-9745
SELECT + COUNT ( * ) + - 66 * + + COUNT ( * ) AS col0 FROM tab0
----
-195

query I rowsort
SELECT col2 * + ( + - 47 ) AS col0 FROM tab1
----
-2773
-3196
-4512

query I rowsort
SELECT DISTINCT 58 * - col2 + - + col0 * - 95 AS col1 FROM tab0
----
-1301
3473
7685

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9748
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT MIN( DISTINCT - 29 ) AS col2 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-9749
SELECT MIN ( DISTINCT - 29 ) AS col2 FROM tab1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT - COUNT( * ) + - 38 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-38

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - COUNT ( * ) + - 38 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-38

query I rowsort
SELECT DISTINCT + 58 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( 16 ) - + + col2 AS col2 FROM tab1 AS cor0
----
-43
-52
-80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 67 ) NOT IN ( col1, col0 - + 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + 38 FROM tab2
----
1938
2546
2926

query I rowsort
SELECT + ( - 37 ) AS col1 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9756
SELECT - 49 DIV MIN( ALL - - col2 ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
-4
3

skipif mysql # not compatible
query II rowsort label-9756
SELECT - 49 / MIN ( ALL - - col2 ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-4
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9757
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9757
SELECT ALL CAST ( NULL AS REAL ) AS col2, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query II rowsort
SELECT DISTINCT + - col2 AS col1, col2 + + + col0 * - + 10 AS col2 FROM tab2 AS cor0
----
-23
-437
-40
-600
-58
-692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT ALL col2 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL col2 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL SUM( DISTINCT col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL SUM ( DISTINCT col1 ) FROM tab1
----
66

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <> - col1 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col2 ) BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT ALL col1 DIV col0 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9764
SELECT ALL col1 / col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * - 9 FROM tab2
----
-207
-360
-522

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9766
SELECT DISTINCT 12 * + col0, CAST( - col2 AS SIGNED ) col0 FROM tab2
----
552
-23
768
-40
900
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9766
SELECT DISTINCT 12 * + col0, CAST ( - col2 AS INTEGER ) col0 FROM tab2
----
552
-23
768
-40
900
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9767
SELECT DISTINCT col0 AS col0, - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9767
SELECT DISTINCT col0 AS col0, - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0 WHERE NOT col0 * - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 15 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9773
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 41 + CAST( - col0 AS SIGNED ) - + 2 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9773
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 41 + CAST ( - col0 AS INTEGER ) - + 2 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL + SUM( + ( - col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + SUM ( + ( - col2 ) ) FROM tab1
----
-223

query I rowsort
SELECT col0 - + + 93 + - - col0 + - 23 + - - col1 * - - 67 AS col2 FROM tab2
----
3393
4523
5171

query I rowsort
SELECT ALL + col0 * 69 * - 10 * - col2 / - - 1 AS col0 FROM tab0 WHERE col0 BETWEEN + - col1 AND NULL AND - 28 >= ( col1 )
----

query II rowsort
SELECT + 98 + - ( + 11 ) AS col0, 87 AS col0 FROM tab1
----
87
87
87
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL SUM( DISTINCT + ( + col0 ) ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL SUM ( DISTINCT + ( + col0 ) ) AS col0 FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9779
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 WHERE - - 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col0 ) + + + col1 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT DISTINCT 31 + COUNT( * ) AS col0 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT 31 + COUNT ( * ) AS col0 FROM tab0
----
34

query I rowsort
SELECT 30 + - 87 + + col0 - - 31 FROM tab1
----
25
59
65

query I rowsort
SELECT - 29 + - ( col1 ) FROM tab2 AS cor0 WHERE NOT col2 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT 19 * SUM( - + 15 ) AS col1 FROM tab0
----
-855

skipif mysql # not compatible
query I rowsort label-9785
SELECT 19 * SUM ( - + 15 ) AS col1 FROM tab0
----
-855

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 * - ( + - col2 ) IS NULL
----

query II rowsort
SELECT - col1, + col0 * col2 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

query I rowsort
SELECT - 65 * - + col1 FROM tab1 cor0
----
3055
325
910

query I rowsort
SELECT col0 * + col2 + + + col2 FROM tab2 AS cor0
----
1081
2600
4408

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + col2 - - col2
----

query I rowsort
SELECT DISTINCT + - ( + - col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL - 9 * COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL - 9 * COUNT ( * ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + ( 73 ) AS col0 FROM tab2 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9794
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT ( MAX( - - col0 ) ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9795
SELECT ( MAX ( - - col0 ) ) AS col2 FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col0 <= - 33
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col0 <= - 33
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 54 col1 FROM tab1
----
113
122
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL COUNT( * ) * - 43 AS col0 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL COUNT ( * ) * - 43 AS col0 FROM tab1
----
-129

onlyif mysql # DIV for integer division: 
query II rowsort label-9800
SELECT ALL - col0 DIV - + col0 + - - col2, - ( + col1 ) * 75 + col2 AS col0 FROM tab0
----
100
24
11
-1565
48
-6028

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL - col0 / - + col0 + - - col2, - ( + col1 ) * 75 + col2 AS col0 FROM tab0
----
100
24
11
-1565
48
-6028

query I rowsort
SELECT DISTINCT col2 * - 53 FROM tab1
----
-3127
-3604
-5088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 + + + col0 col2 FROM tab1
----
14
48
54

query II rowsort
SELECT - col1 + + col1 * 56, 88 * + col1 AS col2 FROM tab0
----
1155
1848
4455
7128
55
88

onlyif mysql # aggregate syntax: 
query II rowsort label-9804
SELECT - COUNT( * ) + - + COUNT( * ) * - - 12, - COUNT( - 78 ) AS col2 FROM tab1
----
-39
-3

skipif mysql # not compatible
query II rowsort label-9804
SELECT - COUNT ( * ) + - + COUNT ( * ) * - - 12, - COUNT ( - 78 ) AS col2 FROM tab1
----
-39
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9805
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT ALL col1 DIV - ( - 48 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL col1 / - ( - 48 ) FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + - - 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 * 11 + - + 7 * + col2 * 81 FROM tab2
----
-12161
-21800
-32006

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 80 > NULL
----

query I rowsort
SELECT DISTINCT + + col1 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT ALL - + 72 FROM tab0 cor0
----
-72
-72
-72

query II rowsort
SELECT col0, col2 AS col1 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 15 * + + 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 65 + + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-65
-65
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT - col0 DIV + + col1 + - - col1 AS col1 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-9816
SELECT - col0 / + + col1 + - - col1 AS col1 FROM tab2 AS cor0
----
51
66
77

query I rowsort
SELECT DISTINCT - - col0 * 75 - + + col0 - + + col2 - + 66 * - col2 + + 9 AS col2 FROM tab0 cor0
----
13622
4174
7097

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT + - 46 + + COUNT( ALL - 42 ) FROM tab0 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9818
SELECT + - 46 + + COUNT ( ALL - 42 ) FROM tab0 cor0
----
-43

query I rowsort
SELECT ALL col1 * + - 70 AS col0 FROM tab2 AS cor0
----
-3570
-4690
-5390

query I rowsort
SELECT + 32 * + col0 AS col2 FROM tab1 AS cor0
----
1632
2720
2912

query I rowsort
SELECT - - 92 * + + 1 + - col2 + - + col1 * + + col2 + + + col2 * col2 FROM tab1 AS cor0
----
1452
3219
7868

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT + 75 * + COUNT( ALL - col2 ) AS col1 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-9823
SELECT + 75 * + COUNT ( ALL - col2 ) AS col1 FROM tab1
----
225

query I rowsort
SELECT - col2 * col2 + 74 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col2 - - - 4, - 49 / + col2 * - col1 FROM tab0 WHERE 96 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 63 col2 FROM tab2
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL - MAX( ( - ( col0 ) ) ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL - MAX ( ( - ( col0 ) ) ) AS col2 FROM tab0 cor0
----
15

query II rowsort
SELECT DISTINCT 27, - col1 FROM tab1 AS cor0 WHERE NULL = - col2 + + ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 46 col1 FROM tab0 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + + ( 95 ) AS col2 FROM tab1 AS cor0
----
95

query I rowsort
SELECT + - 11 * - - 79 FROM tab2 AS cor0
----
-869
-869
-869

query I rowsort
SELECT - - 41 * - col1 AS col1 FROM tab0 AS cor0
----
-3321
-41
-861

query I rowsort
SELECT DISTINCT + - 14 AS col0 FROM tab0 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9836
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + + col1 ) + col1 + + 49 >= + col0 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9836
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + + col1 ) + col1 + + 49 >= + col0 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT ( - SUM( + col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT ( - SUM ( + col0 ) ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT 40 * + 48 * + col1 * ( col0 ) AS col2 FROM tab0 AS cor0
----
186240
2332800
3507840

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 4 <> NULL
----

query II rowsort
SELECT - 64, + col1 AS col1 FROM tab2 AS cor0
----
-64
51
-64
67
-64
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9841
SELECT - + CAST( NULL AS SIGNED ) / - + col2 - + + col0, 36 col2 FROM tab2 AS cor0 WHERE NOT - 57 BETWEEN NULL AND + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9841
SELECT - + CAST ( NULL AS INTEGER ) / - + col2 - + + col0, 36 col2 FROM tab2 AS cor0 WHERE NOT - 57 BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL - col2 * - col2 * - + col2 FROM tab0
----
-1000
-103823
-970299

query I rowsort
SELECT DISTINCT + ( - - 62 ) * + col0 FROM tab2
----
2852
3968
4650

query I rowsort
SELECT DISTINCT + col1 + + + 75 + + 23 FROM tab1
----
103
112
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL - ( - + COUNT( * ) ) + - 36 AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL - ( - + COUNT ( * ) ) + - 36 AS col0 FROM tab0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT + ( SUM( ALL - 50 ) ) AS col2 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-9846
SELECT + ( SUM ( ALL - 50 ) ) AS col2 FROM tab2
----
-150

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 22 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT ALL col0 DIV - 85 * col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL col0 / - 85 * col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL - MAX( ALL ( - col1 ) ) * + + COUNT( ALL col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - MAX ( ALL ( - col1 ) ) * + + COUNT ( ALL col1 ) FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 82 ) >= 97 * + + 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9851
SELECT - col0 DIV col0 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9851
SELECT - col0 / col0 / + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL + MAX( - 10 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL + MAX ( - 10 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col0 + - col2 + - + col0 col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT DISTINCT + col0 * - + 59 - - ( + col1 ) + col0 * col0 * - - col0 AS col0 FROM tab2 AS cor0
----
258445
417517
94673

query I rowsort
SELECT - - 68 - + 73 AS col0 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - MIN( col0 ) - - 63 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9856
SELECT - MIN ( col0 ) - - 63 FROM tab2 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9857
SELECT * FROM tab2 AS cor0 WHERE + CAST( - + 99 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9857
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - + 99 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - 11 * + 68 AND NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, ( - col2 ) AS col1 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT 66 * - col1 * col0 AS col0 FROM tab0
----
-120582
-6402
-80190

query II rowsort
SELECT + col2 AS col1, - col2 AS col1 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT ALL - col1 * + 42 AS col2 FROM tab2
----
-2142
-2814
-3234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT - CAST( NULL AS SIGNED ) * + 58 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT - CAST ( NULL AS INTEGER ) * + 58 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( + + 5 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + MIN( + + 18 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9865
SELECT + MIN ( + + 18 ) FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + COUNT( + col0 ) FROM tab1 WHERE NOT 48 + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9866
SELECT + COUNT ( + col0 ) FROM tab1 WHERE NOT 48 + col0 IS NOT NULL
----
0

query I rowsort
SELECT + - ( + col1 ) * - 52 + + col2 FROM tab1 AS cor0
----
2512
319
824

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL + 24 * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + 24 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT DISTINCT + 74 + + - col0 FROM tab2 AS cor0
----
-1
10
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT + SUM( ALL + col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT + SUM ( ALL + col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT + ( 68 ) + + - 63 + - col2 FROM tab2 AS cor0
----
-18
-35
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT DISTINCT + 11 * - COUNT( * ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT + 11 * - COUNT ( * ) FROM tab2 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9873
SELECT DISTINCT + CAST( NULL AS SIGNED ), ( - col0 ) AS col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-9873
SELECT DISTINCT + CAST ( NULL AS INTEGER ), ( - col0 ) AS col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT 47 + + 60 FROM tab1
----
107
107
107

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT 18 DIV + - col2 + - + ( 32 ) AS col0 FROM tab2
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-9875
SELECT 18 / + - col2 + - + ( 32 ) AS col0 FROM tab2
----
-32
-32
-32

query I rowsort
SELECT col1 * + col1 + 6 FROM tab0
----
447
6567
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT ALL + CAST( - col1 AS SIGNED ) col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9877
SELECT ALL + CAST ( - col1 AS INTEGER ) col0 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT DISTINCT - col0 AS col2, 57 AS col0 FROM tab0
----
-15
57
-87
57
-97
57

query III rowsort
SELECT * FROM tab1 WHERE 83 = + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9880
SELECT col1 AS col2, 68 DIV - col1 FROM tab2
----
51
-1
67
-1
77
0

skipif mysql # not compatible
query II rowsort label-9880
SELECT col1 AS col2, 68 / - col1 FROM tab2
----
51
-1
67
-1
77
0

query II rowsort
SELECT + col0, - col1 AS col2 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT + MIN( ALL col0 ) + - 42 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT + MIN ( ALL col0 ) + - 42 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 23 * - col2 FROM tab2 AS cor0
----
-1334
-529
-920

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT + COUNT( * ) * + 85 col1 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9885
SELECT + COUNT ( * ) * + 85 col1 FROM tab0 AS cor0
----
255

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9887
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + col0 + + ( - ( - col1 ) ) FROM tab1
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT ALL + 73 * - 47 + - - 79 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) < + col0
----

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL + 73 * - 47 + - - 79 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) < + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9891
SELECT DISTINCT + - col2 FROM tab1 cor0 WHERE CAST( + 36 AS DECIMAL ) - - + 23 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT + - col2 FROM tab1 cor0 WHERE CAST ( + 36 AS REAL ) - - + 23 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - col2 - + - 66 FROM tab0 AS cor0
----
-33
19
56

query I rowsort
SELECT + 40 * ( - col0 ) FROM tab0 AS cor0
----
-3480
-3880
-600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9894
SELECT DISTINCT + CAST( NULL AS SIGNED ), + 42 col1 FROM tab1
----
NULL
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9894
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + 42 col1 FROM tab1
----
NULL
42

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + 31 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 0 * - col2 + - 84 + + + 82 + - 63 * - - col0 = + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL - COUNT( + col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL - COUNT ( + col2 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT ALL + + col0 DIV + - col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + + col0 / + - col2 FROM tab0 AS cor0
----
-8
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + col0 + col0 - - - 83 - - col2 * - - 64 >= + col1
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 + - - ( + + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - + 48 ) FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT - SUM( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9902
SELECT - SUM ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT DISTINCT + 83, - col0 AS col2 FROM tab0 AS cor0
----
83
-15
83
-87
83
-97

query I rowsort
SELECT ALL + col0 + + 59 + - col0 AS col1 FROM tab0 AS cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 63 col0, - 41 AS col1 FROM tab2 AS cor0
----
63
-41

query I rowsort
SELECT ALL col0 / + - 16 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 72 AND + 5 + - + col2 + + col0 * - 65 * + - col2 * + 86 + 29 / + 64
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT + 40 DIV - 74 * - + col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9907
SELECT + 40 / - 74 * - + col1 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT 64 + + - col0 FROM tab2
----
-11
0
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9909
SELECT col1 + col0 * col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT col1 + col0 * col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + ( - + col2 ) FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT + ( - col0 ) + - + 79 AS col1 FROM tab0 AS cor0
----
-166
-176
-94

query I rowsort
SELECT + 23 * 40 + + + col0 * - - 65 + + 38 FROM tab1 AS cor0
----
4273
6483
6873

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT DISTINCT - SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT - SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT + + ( - 6 ) FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT - + 84 + + col0 * col1 FROM tab2 AS cor0 WHERE NOT 7 + ( + - ( - + CAST( col2 AS SIGNED ) ) ) IS NULL
----
2262
4844
4941

skipif mysql # not compatible
query I rowsort label-9916
SELECT - + 84 + + col0 * col1 FROM tab2 AS cor0 WHERE NOT 7 + ( + - ( - + CAST ( col2 AS INTEGER ) ) ) IS NULL
----
2262
4844
4941

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9918
SELECT - col1, col0 DIV + col2 col0 FROM tab1 AS cor0
----
-14
0
-47
1
-5
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9918
SELECT - col1, col0 / + col2 col0 FROM tab1 AS cor0
----
-14
0
-47
1
-5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - COUNT( * ) * - 33 AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9919
SELECT - COUNT ( * ) * - 33 AS col1 FROM tab2 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT ALL + 77 * - + CAST( + col0 AS SIGNED ) FROM tab2
----
-3542
-4928
-5775

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL + 77 * - + CAST ( + col0 AS INTEGER ) FROM tab2
----
-3542
-4928
-5775

query I rowsort
SELECT DISTINCT + 36 - + AVG ( - col1 ) FROM tab0 WHERE NOT + 37 NOT IN ( + col1 )
----
NULL

query I rowsort
SELECT DISTINCT 0 * - 24 AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 55 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 < - col1
----

query I rowsort
SELECT ALL - 26 + col0 * + - ( - - 52 ) FROM tab0 AS cor0
----
-4550
-5070
-806

query I rowsort
SELECT col0 + - col1 - + + 23 * col2 AS col2 FROM tab2 AS cor0
----
-1326
-534
-933

query I rowsort
SELECT + + col0 * + + col1 + + 79 AS col1 FROM tab1 AS cor0
----
4356
504
793

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND + col2 * - col0
----

query II rowsort
SELECT DISTINCT - col1, + col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( + col0 * - 43 )
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT + col1 + + col0 + col1 * - col0 * 28 AS col0 FROM tab0
----
-2618
-33924
-51048

query I rowsort
SELECT ( - - 85 ) + 45 FROM tab0
----
130
130
130

query I rowsort
SELECT + 99 + 12 FROM tab2
----
111
111
111

query II rowsort
SELECT DISTINCT + col0 AS col2, ( + 38 ) AS col0 FROM tab0
----
15
38
87
38
97
38

query I rowsort
SELECT - col1 * + + 56 * + 46 FROM tab2
----
-131376
-172592
-198352

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9935
SELECT + 83 DIV - 78, COUNT( * ) AS col0 FROM tab1
----
-1
3

skipif mysql # not compatible
query II rowsort label-9935
SELECT + 83 / - 78, COUNT ( * ) AS col0 FROM tab1
----
-1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9936
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + - COUNT( * ) AS col2 FROM tab1 WHERE NOT + 1 + + col1 >= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 1 + + col1 >= + col1
----
NULL

query I rowsort
SELECT DISTINCT + 49 + + ( - col2 ) FROM tab1
----
-10
-19
-47

query II rowsort
SELECT - 67 AS col2, + col2 * 59 AS col2 FROM tab1 WHERE + 17 IS NOT NULL
----
-67
3481
-67
4012
-67
5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT CAST( NULL AS SIGNED ) * - - col1 * - col0 - col0 FROM tab0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT CAST ( NULL AS INTEGER ) * - - col1 * - col0 - col0 FROM tab0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT - SUM( ALL - col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT - SUM ( ALL - col0 ) FROM tab1 cor0
----
227

query I rowsort
SELECT - 83 - - - 57 FROM tab1 AS cor0
----
-140
-140
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE + + col2 + + + col2 + col1 <= col0
----
0

skipif mysql # not compatible
query I rowsort label-9942
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE + + col2 + + + col2 + col1 <= col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ( + col1 ) * - 46 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2162
-230
-644

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 IS NULL
----

query I rowsort
SELECT col1 * - + 39 + - col0 FROM tab2 AS cor0
----
-2035
-2688
-3067

query I rowsort
SELECT ALL ( + 56 ) FROM tab1 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT - SUM( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9948
SELECT - SUM ( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL - ( - col2 ) * 81 AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9950
SELECT MAX( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT MAX ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 89 AS col0 FROM tab2 cor0
----
89
89
89

query I rowsort
SELECT ALL 55 * - col1 AS col2 FROM tab2
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT DISTINCT - 43 * + MAX( + - col0 ) AS col0 FROM tab2
----
1978

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT - 43 * + MAX ( + - col0 ) AS col0 FROM tab2
----
1978

query I rowsort
SELECT DISTINCT col1 * + ( + - col0 ) * col1 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT - ( - + col1 ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT DISTINCT + 97 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + 97 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 68 NOT IN ( - - 38 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - - 81 ) FROM tab0 AS cor0
----
81
81
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT DISTINCT COUNT( * ) * 35 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT COUNT ( * ) * 35 FROM tab2 AS cor0
----
105

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( - col1 * col2 ) AND 46
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT 82 * COUNT( * ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-9964
SELECT 82 * COUNT ( * ) FROM tab0
----
246

query I rowsort
SELECT 19 * col2 AS col0 FROM tab1
----
1121
1292
1824

query I rowsort
SELECT + 87 * col2 FROM tab0
----
4089
8613
870

query I rowsort
SELECT ALL - 62 * 4 AS col0 FROM tab1
----
-248
-248
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL - ( - COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL - ( - COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= 52
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT ALL col2 - + 38 DIV + col0 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL col2 - + 38 / + col0 AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL ( - MAX( ALL col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL ( - MAX ( ALL col0 ) ) FROM tab2
----
-75

query I rowsort
SELECT ALL + 78 FROM tab0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 50 * col2 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + + 42 AS col2 FROM tab2
----
-16
19
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT - 50 * + COUNT( * ) AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-9977
SELECT - 50 * + COUNT ( * ) AS col1 FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT - ( + 12 ) * + COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-9978
SELECT - ( + 12 ) * + COUNT ( * ) FROM tab0
----
-36

query I rowsort
SELECT DISTINCT + 87 + 5 * 80 FROM tab2 cor0
----
487

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 14 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 > ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT ALL col0 DIV - 32 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL col0 / - 32 FROM tab0
----
-2
-3
0

query I rowsort
SELECT AVG ( ALL 71 ) AS col1 FROM tab1 WHERE NOT + col2 + - 88 IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 * - 21 FROM tab0
----
1701
21
441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9985
SELECT COUNT( ALL col0 ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9985
SELECT COUNT ( ALL col0 ) / + COUNT ( * ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - ( - 37 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-9987
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - ( - 37 ) <= NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 15 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9989
SELECT 2 DIV - 32 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9989
SELECT 2 / - 32 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT ALL - + ( SUM( col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - + ( SUM ( col0 ) ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL - col2 * + 76 AS col2 FROM tab0 AS cor0
----
-3572
-7524
-760

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < - col2 + + 63
----

query I rowsort
SELECT ALL + - ( - 89 ) FROM tab1 cor0
----
89
89
89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 73 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9995
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 73 > CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL + 82 * + 73 * + COUNT( * ) AS col1 FROM tab1
----
17958

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL + 82 * + 73 * + COUNT ( * ) AS col1 FROM tab1
----
17958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT ALL + CAST( - - 73 AS SIGNED ) AS col0 FROM tab0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL + CAST ( - - 73 AS INTEGER ) AS col0 FROM tab0
----
73
73
73

query III rowsort
SELECT * FROM tab1 WHERE NOT - 46 IS NOT NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL OR NOT NULL <= - col0 * - col1 + + col1
----
15
87
97