sqllogictest
Artifact Content
Not logged in

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 *