sqllogictest
Artifact Content
Not logged in

Artifact 84d3c19c43b8a66fd352ca8ea14b9a759030e037:


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 # aggregate syntax: 
query I rowsort label-0
SELECT ALL + COUNT( DISTINCT + + 47 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + COUNT ( DISTINCT + + 47 ) FROM tab1
----
1

query I rowsort
SELECT ALL - ( 80 ) FROM tab2
----
-80
-80
-80

query I rowsort
SELECT 99 * - - 75 AS col0 FROM tab0
----
7425
7425
7425

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( col0 ) * 17 * - col0 + + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - + 97 ) AS col2 FROM tab2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT + 49 * - COUNT( * ) + MAX( DISTINCT + + 71 ) AS col0 FROM tab2 AS cor0 WHERE NOT 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT + 49 * - COUNT ( * ) + MAX ( DISTINCT + + 71 ) AS col0 FROM tab2 AS cor0 WHERE NOT 82 IS NOT NULL
----
NULL

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

query I rowsort
SELECT 34 * + col0 FROM tab1
----
1734
2890
3094

query I rowsort
SELECT + + 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT DISTINCT - COUNT( * ) * + 17 AS col0 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT - COUNT ( * ) * + 17 AS col0 FROM tab0 AS cor0
----
-51

query II rowsort
SELECT - + col0, + col2 + - - col0 AS col0 FROM tab0 AS cor0
----
-15
62
-87
97
-97
196

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

skipif mysql # not compatible
query I rowsort label-11
SELECT + 54 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-12
SELECT ALL 27 DIV COUNT( * ) * + - 58 AS col2 FROM tab2 AS cor0
----
-522

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL 27 / COUNT ( * ) * + - 58 AS col2 FROM tab2 AS cor0
----
-522

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT ALL - col1 * + + col1 + + CAST( 38 AS SIGNED ) FROM tab0
----
-403
-6523
37

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL - col1 * + + col1 + + CAST ( 38 AS INTEGER ) FROM tab0
----
-403
-6523
37

query I rowsort
SELECT DISTINCT col1 + + ( col2 ) + - + col0 FROM tab2
----
28
50
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-17
SELECT ALL + 80 - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL + 80 - + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT + 97 * - 12 AS col0 FROM tab0 AS cor0
----
-1164
-1164
-1164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT + 72 * COUNT( * ) FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-21
SELECT + 72 * COUNT ( * ) FROM tab1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL + COUNT( * ) + + ( + 62 ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL + COUNT ( * ) + + ( + 62 ) FROM tab0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT ALL - col0 DIV - 40 + + col1 AS col0 FROM tab1 AS cor0
----
15
49
7

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - col0 / - 40 + + col1 AS col0 FROM tab1 AS cor0
----
15
49
7

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

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

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

query I rowsort
SELECT + 88 / + 8 * - + col1 + - ( 95 ) + + col1 AS col1 FROM tab1 WHERE NOT + - 83 * - + 60 - col2 / - + ( - - 26 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT DISTINCT MIN( DISTINCT - + 76 ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT MIN ( DISTINCT - + 76 ) FROM tab0
----
-76

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( ( NOT ( NULL ) < + + 77 ) ) )
----

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

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

query II rowsort
SELECT DISTINCT - col2 * + col2 AS col2, - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1600
4928
-3364
5025
-529
2346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-32
SELECT + 86 * - + ( + CAST( + ( - col2 ) AS SIGNED ) ) FROM tab0 AS cor0
----
4042
8514
860

skipif mysql # not compatible
query I rowsort label-32
SELECT + 86 * - + ( + CAST ( + ( - col2 ) AS INTEGER ) ) FROM tab0 AS cor0
----
4042
8514
860

query I rowsort
SELECT ALL + - 11 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-11
-11
-11

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

query I rowsort
SELECT DISTINCT 11 + + col0 AS col2 FROM tab1
----
102
62
96

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT ALL - MAX( col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL - MAX ( col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-37
SELECT - 21 col2, col2 + - CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
-21
NULL
-21
NULL
-21
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-37
SELECT - 21 col2, col2 + - CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
-21
NULL
-21
NULL
-21
NULL

query I rowsort
SELECT DISTINCT col2 + - 5 FROM tab2
----
18
35
53

query I rowsort
SELECT col1 * - col0 + - - ( + - 95 ) FROM tab2 AS cor0
----
-2441
-5023
-5120

query I rowsort
SELECT DISTINCT - 6 * 8 AS col0 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL col1 * - + col1 FROM tab0 cor0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 < + 53 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT + 50 DIV - col1 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-47
SELECT + 50 / - col1 FROM tab1
----
-1
-10
-3

query I rowsort
SELECT DISTINCT + 19 + - col1 FROM tab0
----
-2
-62
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-49
SELECT - 18 * - + CAST( NULL AS DECIMAL ) * + 23 * - col0 * col1 - + ( + col2 ) + + + 99 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-49
SELECT - 18 * - + CAST ( NULL AS REAL ) * + 23 * - col0 * col1 - + ( + col2 ) + + + 99 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT DISTINCT ( + - COUNT( * ) ) - - 23 AS col0 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT ( + - COUNT ( * ) ) - - 23 AS col0 FROM tab1 AS cor0
----
20

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + - 92 - - 55 + + col1 col0 FROM tab0
----
-35
125
5

query I rowsort
SELECT + ( + ( - 59 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-55
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + + 68 * + CAST( - 7 AS SIGNED ) <= - + col0
----

skipif mysql # not compatible
query III rowsort label-55
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + + 68 * + CAST ( - 7 AS INTEGER ) <= - + col0
----

query I rowsort
SELECT ALL + 5 AS col0 FROM tab1 cor0
----
5
5
5

query I rowsort
SELECT + + 70 * 8 FROM tab2 AS cor0
----
560
560
560

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT + 13 * - SUM( - - col2 ) * + 92 FROM tab1
----
-266708

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT + 13 * - SUM ( - - col2 ) * + 92 FROM tab1
----
-266708

query I rowsort
SELECT - col1 * 76 FROM tab2
----
-3876
-5092
-5852

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-60
SELECT ALL * FROM tab1 WHERE NOT col0 * + CAST( NULL AS SIGNED ) - + 89 = + - 69
----

skipif mysql # not compatible
query III rowsort label-60
SELECT ALL * FROM tab1 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) - + 89 = + - 69
----

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

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL + CAST ( - 9 AS REAL ) / col1 * col1 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 54 * + 70 * - + 55 AS col1 FROM tab2
----
-207900
-207900
-207900

query I rowsort
SELECT + 68 * + + 26 AS col1 FROM tab1
----
1768
1768
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT MIN( DISTINCT - - 97 ) AS col1 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-64
SELECT MIN ( DISTINCT - - 97 ) AS col1 FROM tab1
----
97

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

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

query I rowsort
SELECT ALL col1 + + + col0 AS col2 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT - 96 + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= + col0 * + - col0 * + ( + + ( - col0 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT - 96 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= + col0 * + - col0 * + ( + + ( - col0 ) )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT - + 34 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 * + - col2 + col2 + - col2 / - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT - + 34 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 * + - col2 + col2 + - col2 / - col0 IS NOT NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - 41 + - - col2 FROM tab0
----
-31
58
6

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + + col1 < + + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + - 52 FROM tab1 WHERE ( - col1 * + - col1 = 28 )
----
-52

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + - 52 FROM tab1 WHERE ( - col1 * + - col1 = 28 )
----
-52

query I rowsort
SELECT - 39 + - - ( - + col0 ) AS col1 FROM tab2
----
-103
-114
-85

query III rowsort
SELECT ALL * FROM tab1 WHERE + 44 >= - col2 * - - 1 * + + 38 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 68 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-78
SELECT ALL - + CAST( + + col1 AS SIGNED ) - + 56 FROM tab1 AS cor0
----
-103
-61
-70

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL - + CAST ( + + col1 AS INTEGER ) - + 56 FROM tab1 AS cor0
----
-103
-61
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT + 37 - + COUNT( * ) col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-79
SELECT + 37 - + COUNT ( * ) col1 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL COUNT( ALL - 76 ) * + SUM( - ( col0 ) ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL COUNT ( ALL - 76 ) * + SUM ( - ( col0 ) ) FROM tab0
----
-597

query I rowsort
SELECT - ( 44 ) AS col2 FROM tab2 AS cor0
----
-44
-44
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT + + SUM( + 29 ) FROM tab0 AS cor0 WHERE col1 * - col0 / col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT + + SUM ( + 29 ) FROM tab0 AS cor0 WHERE col1 * - col0 / col2 = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-84
SELECT ALL + - 73 AS col0, CAST( ( + col1 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
-73
51
-73
67
-73
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-84
SELECT ALL + - 73 AS col0, CAST ( ( + col1 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-73
51
-73
67
-73
77

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

query II rowsort
SELECT 22 AS col0, - col0 FROM tab2 AS cor0
----
22
-46
22
-64
22
-75

query I rowsort
SELECT ALL + col1 * + 13 FROM tab0
----
1053
13
273

query III rowsort
SELECT ALL * FROM tab0 WHERE - 9 + - - 29 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-89
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( * ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( * ) * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-90
SELECT col1 * CAST( NULL AS SIGNED ) * + - col0 * + + col0 * col0, - col2 AS col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-90
SELECT col1 * CAST ( NULL AS INTEGER ) * + - col0 * + + col0 * col0, - col2 AS col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-91
SELECT - - MAX( CAST( col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-91
SELECT - - MAX ( CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 7 col0 FROM tab2
----
53
71
82

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT + 37 + - + COUNT( * ) AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-93
SELECT + 37 + - + COUNT ( * ) AS col1 FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + - COUNT( * ) + + 2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-94
SELECT + - COUNT ( * ) + + 2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL SUM( - 9 ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL SUM ( - 9 ) AS col2 FROM tab2 AS cor0
----
-27

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-96
SELECT + 69 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col1 * + + col1
----

query I rowsort
SELECT 44 - col1 + + + col0 * + col0 + + col0 FROM tab1
----
2682
7349
8369

query I rowsort
SELECT DISTINCT - 92 + col2 AS col0 FROM tab1
----
-24
-33
4

query I rowsort
SELECT + col1 * 87 + - - col1 + - + 70 * + + col0 FROM tab1 WHERE NULL IS NULL
----
-2234
-2338
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT 52 - COUNT( * ) col2 FROM tab2
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-101
SELECT 52 - COUNT ( * ) col2 FROM tab2
----
49

query I rowsort
SELECT ALL + col1 * - col0 + - 86 AS col2 FROM tab0
----
-1301
-183
-1913

query II rowsort
SELECT + col1 - col0, - col0 + + 7 * col0 AS col1 FROM tab1
----
-37
306
-44
546
-80
510

query I rowsort
SELECT 93 - - col2 FROM tab2
----
116
133
151

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

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) + 66 FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-106
SELECT DISTINCT + 82 DIV col2 * + col2, 2 AS col2 FROM tab0
----
0
2
47
2
80
2

skipif mysql # not compatible
query II rowsort label-106
SELECT DISTINCT + 82 / col2 * + col2, 2 AS col2 FROM tab0
----
0
2
47
2
80
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - - 96, 29 * + col2, + col0 )
----

query II rowsort
SELECT col2 AS col0, + col0 + col0 + + + 11 FROM tab0
----
10
185
47
41
99
205

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT + 47 + - ( + + MAX( - + 45 ) ) FROM tab0 WHERE NOT - col2 IS NULL
----
92

skipif mysql # not compatible
query I rowsort label-110
SELECT + 47 + - ( + + MAX ( - + 45 ) ) FROM tab0 WHERE NOT - col2 IS NULL
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-111
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - 25 AS SIGNED ) * - - col0 > - - col2 / + + 74 + + + col0 / - - col1
----

skipif mysql # not compatible
query III rowsort label-111
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - 25 AS INTEGER ) * - - col0 > - - col2 / + + 74 + + + col0 / - - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 45 + + col0 AND - + col1
----

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

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( - 57 + 41 IS NOT NULL ) )
----
1
21
81

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

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

query I rowsort
SELECT ALL ( - col2 ) * 23 * + + col2 + ( + col0 ) * + col1 FROM tab0 AS cor0
----
-225326
-473
-49592

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

query I rowsort
SELECT - col2 + - 37 AS col0 FROM tab1 AS cor0
----
-105
-133
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-119
SELECT + ( + + col0 ) + col2 + - - col2 DIV 54 AS col0, CAST( ( + 46 ) AS SIGNED ) FROM tab2 cor0
----
104
46
134
46
69
46

skipif mysql # not compatible
query II rowsort label-119
SELECT + ( + + col0 ) + col2 + - - col2 / 54 AS col0, CAST ( ( + 46 ) AS INTEGER ) FROM tab2 cor0
----
104
46
134
46
69
46

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT DISTINCT 46 + - MAX( - col0 ) * - 33 FROM tab0
----
-449

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT 46 + - MAX ( - col0 ) * - 33 FROM tab0
----
-449

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL COUNT( * ) + + 76 col0 FROM tab2
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-121
SELECT ALL COUNT ( * ) + + 76 col0 FROM tab2
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT ALL - MAX( DISTINCT - 62 ) AS col2 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL - MAX ( DISTINCT - 62 ) AS col2 FROM tab0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-124
SELECT DISTINCT + 62 * + MAX( - 88 ), 62 AS col2 FROM tab0 AS cor0
----
-5456
62

skipif mysql # not compatible
query II rowsort label-124
SELECT DISTINCT + 62 * + MAX ( - 88 ), 62 AS col2 FROM tab0 AS cor0
----
-5456
62

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT COUNT( * ) * + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-125
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT ALL + ( - 49 ) * + + COUNT( * ) + - - COUNT( * ) - + COUNT( * ) + - MIN( - - col1 ) AS col1 FROM tab1
----
-152

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL + ( - 49 ) * + + COUNT ( * ) + - - COUNT ( * ) - + COUNT ( * ) + - MIN ( - - col1 ) AS col1 FROM tab1
----
-152

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 * - col0 IS NULL OR NOT - col2 - + - 29 + + col2 IS NOT NULL
----
51
85
91

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT + COUNT( * ) + 51 * COUNT( * ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-131
SELECT + COUNT ( * ) + 51 * COUNT ( * ) FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT ALL - col1 * + col0 + - col2 * + 8 + - col2 DIV - ( - 38 ) FROM tab1 AS cor0
----
-1484
-4822
-898

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL - col1 * + col0 + - col2 * + 8 + - col2 / - ( - 38 ) FROM tab1 AS cor0
----
-1484
-4822
-898

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 27 + + + col1 col2, + 73 FROM tab2 AS cor0
----
104
73
78
73
94
73

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

query I rowsort
SELECT - ( - ( 79 ) ) AS col2 FROM tab1 WHERE NOT ( col0 * col2 - - 4 ) IS NULL
----
79
79
79

query I rowsort
SELECT 12 * col1 FROM tab0
----
12
252
972

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE col0 + col1 < col2 * col1
----
10
47
99

query I rowsort
SELECT ALL col0 + - + col2 AS col0 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL - 42 * + 90 AS col0 FROM tab1
----
-3780
-3780
-3780

query I rowsort
SELECT DISTINCT 37 * + 67 FROM tab2
----
2479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( + 68 ) col0 FROM tab0
----
-1020
-5916
-6596

query I rowsort
SELECT - col0 * + - col1 * + + col1 FROM tab1 AS cor0
----
201019
2125
9996

query II rowsort
SELECT DISTINCT col0, col1 + + 47 FROM tab2 AS cor0 WHERE NOT ( NULL >= - col0 )
----

query I rowsort
SELECT col1 * 94 * col1 AS col2 FROM tab2 AS cor0
----
244494
421966
557326

query I rowsort
SELECT + col0 + - + col2 + col0 FROM tab1 AS cor0
----
111
114
6

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ALL - - COUNT( ALL 9 ) + + COUNT( * ) * - ( - 4 ) col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-147
SELECT ALL - - COUNT ( ALL 9 ) + + COUNT ( * ) * - ( - 4 ) col0 FROM tab1 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 WHERE col0 / + col0 * + - col2 > + 53 * + + 86 - - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL + COUNT( * ) + 82 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL + COUNT ( * ) + 82 FROM tab2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT DISTINCT - ( COUNT( + - 19 ) ) DIV - + 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT - ( COUNT ( + - 19 ) ) / - + 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT - + col1 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT ALL + 12 - - MAX( DISTINCT - + 76 ) FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL + 12 - - MAX ( DISTINCT - + 76 ) FROM tab2 AS cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + 3 col2 FROM tab2 AS cor0
----
48
64
74

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT DISTINCT 30 DIV - 62 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT 30 / - 62 AS col1 FROM tab1 AS cor0
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-94
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT DISTINCT + + 52 - + - col1 + + + col0 + + col0 DIV - - 15 FROM tab1 cor0
----
120
147
196

skipif mysql # not compatible
query I rowsort label-157
SELECT DISTINCT + + 52 - + - col1 + + + col0 + + col0 / - - 15 FROM tab1 cor0
----
120
147
196

query II rowsort
SELECT ALL - - col0, - 91 AS col2 FROM tab2 AS cor0
----
46
-91
64
-91
75
-91

query I rowsort
SELECT col1 * + - col1 - 19 FROM tab1
----
-215
-2228
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT - 95 DIV - col1 FROM tab1
----
19
2
6

skipif mysql # not compatible
query I rowsort label-160
SELECT - 95 / - col1 FROM tab1
----
19
2
6

onlyif mysql # DIV for integer division: 
query II rowsort label-161
SELECT ALL col1 DIV - col1 AS col1, - col2 col0 FROM tab2
----
-1
-23
-1
-40
-1
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-161
SELECT ALL col1 / - col1 AS col1, - col2 col0 FROM tab2
----
-1
-23
-1
-40
-1
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT 51 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-162
SELECT 51 / col2 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

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

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

query I rowsort
SELECT - 16 * - col0 AS col1 FROM tab0
----
1392
1552
240

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 64 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT + col1 DIV + 58 + col2 + - - 15 * - + col0 AS col1 FROM tab0 AS cor0
----
-1295
-1356
-177

skipif mysql # not compatible
query I rowsort label-171
SELECT + col1 / + 58 + col2 + - - 15 * - + col0 AS col1 FROM tab0 AS cor0
----
-1295
-1356
-177

query I rowsort
SELECT DISTINCT + 89 * col0 + col0 FROM tab0 AS cor0
----
1350
7830
8730

query I rowsort
SELECT DISTINCT - + col0 * - 37 FROM tab2 AS cor0
----
1702
2368
2775

query I rowsort
SELECT ALL ( - - col2 ) AS col0 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT col0 * + + 67 AS col2 FROM tab0 AS cor0
----
1005
5829
6499

query I rowsort
SELECT ALL + - col0 * 24 + - 27 FROM tab0 AS cor0
----
-2115
-2355
-387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-177
SELECT + COUNT( ALL + + 99 ) AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-177
SELECT + COUNT ( ALL + + 99 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-178
SELECT col0 + ( - col2 ) * + CAST( 62 AS SIGNED ) AS col1, 73 AS col1 FROM tab0
----
-2899
73
-533
73
-6041
73

skipif mysql # not compatible
query II rowsort label-178
SELECT col0 + ( - col2 ) * + CAST ( 62 AS INTEGER ) AS col1, 73 AS col1 FROM tab0
----
-2899
73
-533
73
-6041
73

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT DISTINCT - + col2 DIV col1 FROM tab2 WHERE 59 > col0
----
0

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT - + col2 / col1 FROM tab2 WHERE 59 > col0
----
0

query I rowsort
SELECT DISTINCT + 70 * - col2 + - col0 AS col0 FROM tab2
----
-1656
-2864
-4135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT COUNT( DISTINCT - col0 ) col0 FROM tab0
----
3

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

query I rowsort
SELECT col2 - - + ( + + col0 ) FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab2 WHERE - col0 > col2
----

query I rowsort
SELECT ALL - 75 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT - - 29 * 92 + 97 AS col0 FROM tab2 AS cor0
----
2765
2765
2765

query I rowsort
SELECT ALL + - col2 + + + col0 * - + col1 * + - col0 * + 73 AS col1 FROM tab0 AS cor0
----
11603267
1330378
686758

query I rowsort
SELECT col2 + - + col0 * + + ( - ( + + col0 ) ) FROM tab2 AS cor0
----
2139
4136
5683

query I rowsort
SELECT 31 * col2 FROM tab1 AS cor0
----
1829
2108
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL COUNT( * ) * 4 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL COUNT ( * ) * 4 FROM tab2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT DISTINCT 92 DIV + 55 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT 92 / + 55 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT DISTINCT - 95 col2, + SUM( ALL + 59 ) FROM tab0
----
-95
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-192
SELECT DISTINCT - 95 col2, + SUM ( ALL + 59 ) FROM tab0
----
-95
177

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

skipif mysql # not compatible
query I rowsort label-193
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT DISTINCT CAST( + 4 AS SIGNED ) + + - COUNT( * ) FROM tab2 cor0 WHERE + col0 BETWEEN + col1 * 12 AND 56
----
4

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT CAST ( + 4 AS INTEGER ) + + - COUNT ( * ) FROM tab2 cor0 WHERE + col0 BETWEEN + col1 * 12 AND 56
----
4

query I rowsort
SELECT ALL + 37 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 42, - col1, + - 82 + - 7, + ( - col1 ), - col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-198
SELECT DISTINCT - CAST( - col0 AS SIGNED ), + col0 AS col1 FROM tab0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-198
SELECT DISTINCT - CAST ( - col0 AS INTEGER ), + col0 AS col1 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( + - 56 * 52, - 45, + 52, - - 75 * - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 23 + - + 90 AS col0 FROM tab2 AS cor0
----
-113
-113
-113

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

query II rowsort
SELECT ALL + ( - 30 ) AS col0, 18 * - 4 * + 21 * col2 - + 71 * - - col0 FROM tab2 AS cor0
----
-30
-38042
-30
-65024
-30
-93021

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT - COUNT( * ) * + COUNT( * ) - + SUM( ALL - 6 ) - + 88 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * + col0 + - col0 - - col1 * - + col0 AND NOT + col2 <= - col0 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT - COUNT ( * ) * + COUNT ( * ) - + SUM ( ALL - 6 ) - + 88 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * + col0 + - col0 - - col1 * - + col0 AND NOT + col2 <= - col0 * + col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 + 89 IS NOT NULL
----

query I rowsort
SELECT - - col1 + 71 FROM tab1 AS cor0
----
118
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT + - ( + MAX( col2 ) ) * + + 92 FROM tab2 cor0
----
-5336

skipif mysql # not compatible
query I rowsort label-207
SELECT + - ( + MAX ( col2 ) ) * + + 92 FROM tab2 cor0
----
-5336

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-208
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( col2, + CAST( NULL AS SIGNED ) / col1, + col2 * col1, + col0, - 12 * col1 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-208
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( col2, + CAST ( NULL AS INTEGER ) / col1, + col2 * col1, + col0, - 12 * col1 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL - - COUNT( * ) * 63 + MIN( - - col0 ) FROM tab0 WHERE NOT 93 + - col2 + + col2 IS NULL
----
204

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - - COUNT ( * ) * 63 + MIN ( - - col0 ) FROM tab0 WHERE NOT 93 + - col2 + + col2 IS NULL
----
204

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

skipif mysql # not compatible
query I rowsort label-213
SELECT COUNT ( * ) FROM tab2 cor0 WHERE col2 IS NOT NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-214
SELECT col2 / - + CAST ( NULL AS REAL ) * + ( col2 ) - + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-215
SELECT - MAX( - col1 ) * COUNT( * ) + ( - COUNT( * ) ) + 80, - 78 AS col0 FROM tab1 AS cor0
----
92
-78

skipif mysql # not compatible
query II rowsort label-215
SELECT - MAX ( - col1 ) * COUNT ( * ) + ( - COUNT ( * ) ) + 80, - 78 AS col0 FROM tab1 AS cor0
----
92
-78

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + ( col0 ) * + col2 + - ( - col2 ) + + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 79 * 9 AS col0 FROM tab0 AS cor0
----
711
711
711

query I rowsort
SELECT 92 * + 36 AS col2 FROM tab0
----
3312
3312
3312

query I rowsort
SELECT ALL 71 * - col2 + - col0 FROM tab2
----
-1679
-2904
-4193

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

query I rowsort
SELECT 36 * + col0 AS col1 FROM tab0
----
3132
3492
540

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-223
SELECT + col0 + - CAST( 27 AS SIGNED ) FROM tab2 WHERE NOT NULL = + ( - 5 )
----

skipif mysql # not compatible
query I rowsort label-223
SELECT + col0 + - CAST ( 27 AS INTEGER ) FROM tab2 WHERE NOT NULL = + ( - 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ( 84 ) + - COUNT( * ) AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 AND ( - 46 )
----
84

skipif mysql # not compatible
query I rowsort label-224
SELECT ( 84 ) + - COUNT ( * ) AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 AND ( - 46 )
----
84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( 62 )
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT - col0 > ( NULL )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-228
SELECT ALL 57 DIV COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL 57 / COUNT ( * ) FROM tab1
----
19

query I rowsort
SELECT - 18 + - 90 AS col1 FROM tab0
----
-108
-108
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT + 48 + col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) + - 91 * col2 NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-230
SELECT + 48 + col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - 91 * col2 NOT IN ( col1 )
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) NOT BETWEEN ( NULL ) AND - col2 * 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 28 * + col1 + col2 FROM tab2 WHERE col1 NOT IN ( - 24 + 67 )
----
1451
1934
2196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = ( col1 )
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT ALL + 52 + 13 DIV + col0 FROM tab1
----
52
52
52

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + 52 + 13 / + col0 FROM tab1
----
52
52
52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 67 + - col2 * 89 col0 FROM tab1
----
-5586
-9201
-9482

query I rowsort
SELECT DISTINCT ( - 71 ) AS col0 FROM tab0
----
-71

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

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

query I rowsort
SELECT 82 * col0 - col1 * 81 FROM tab1
----
3048
3655
6565

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT ALL ( - MIN( ALL + col1 ) ) / + 96 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 ) AND 69 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL ( - MIN ( ALL + col1 ) ) / + 96 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 ) AND 69 + - col1
----
NULL

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

query I rowsort
SELECT ALL 76 + col1 FROM tab1
----
123
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT MIN( 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-248
SELECT MIN ( 33 ) FROM tab1
----
33

query I rowsort
SELECT - col2 * 43 + - col0 * 75 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 83 BETWEEN - col2 AND NULL
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT DISTINCT + - 22 + 44 * + COUNT( * ) FROM tab0 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT + - 22 + 44 * + COUNT ( * ) FROM tab0 AS cor0
----
110

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

query I rowsort
SELECT + 57 + col0 AS col0 FROM tab0 AS cor0
----
144
154
72

query I rowsort
SELECT - 60 + - ( ( 9 ) ) FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL - COUNT( * ) + + 7 * + COUNT( ALL - 13 + - col0 ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL - COUNT ( * ) + + 7 * + COUNT ( ALL - 13 + - col0 ) AS col2 FROM tab0
----
18

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

query I rowsort
SELECT 66 + + col1 * 19 AS col0 FROM tab2
----
1035
1339
1529

query I rowsort
SELECT - col1 * + - 7 + col1 FROM tab1
----
112
376
40

query I rowsort
SELECT ALL col2 + - 66 AS col1 FROM tab2
----
-26
-43
-8

query I rowsort
SELECT 98 + - col2 FROM tab2 WHERE ( + 1 ) IS NOT NULL
----
40
58
75

query I rowsort
SELECT + 91 * - col2 + col2 AS col0 FROM tab0
----
-4230
-8910
-900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + + - col1 col0 FROM tab1
----
28
61
70

query I rowsort
SELECT ALL - 27 + + col2 FROM tab2
----
-4
13
31

query I rowsort
SELECT DISTINCT + ( - 21 ) + 71 FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT ALL + COUNT( * ) * - 97 FROM tab0 WHERE NULL <= col2 * col2
----
0

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL + COUNT ( * ) * - 97 FROM tab0 WHERE NULL <= col2 * col2
----
0

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

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

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

query I rowsort
SELECT DISTINCT - 0 + - - col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL col1 * 32 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 90 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-272
SELECT DISTINCT + CAST( - MAX( ALL + ( + col2 ) ) AS SIGNED ) col2 FROM tab0 cor0
----
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT + + MAX( + + 32 ) - + 66 AS col0 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-273
SELECT + + MAX ( + + 32 ) - + 66 AS col0 FROM tab1 AS cor0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-274
SELECT DISTINCT + + 68 DIV COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT + + 68 / COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7

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

skipif mysql # not compatible
query I rowsort label-275
SELECT - MIN ( ALL 68 ) FROM tab0 AS cor0
----
-68

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

query I rowsort
SELECT + col2 + - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 3 AND + 31
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-278
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + col0 - 75 - - col2 * 55 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-278
SELECT DISTINCT + CAST ( NULL AS REAL ) * + col0 - 75 - - col2 * 55 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 55 FROM tab2 AS cor0 WHERE NOT - col0 + col0 IS NULL
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-280
SELECT 49 AS col2, 99 * + - COUNT( * ) FROM tab1 AS cor0
----
49
-297

skipif mysql # not compatible
query II rowsort label-280
SELECT 49 AS col2, 99 * + - COUNT ( * ) FROM tab1 AS cor0
----
49
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL + 8 * - COUNT( DISTINCT - 83 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + 8 * - COUNT ( DISTINCT - 83 ) FROM tab2 AS cor0
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT - SUM( - - 45 ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT - SUM ( - - 45 ) FROM tab1
----
-135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-284
SELECT col0 DIV col0 * col2 * - CAST( - col2 AS SIGNED ) FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-284
SELECT col0 / col0 * col2 * - CAST ( - col2 AS INTEGER ) FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query II rowsort label-285
SELECT COUNT( * ) * 17 AS col2, 72 FROM tab0
----
51
72

skipif mysql # not compatible
query II rowsort label-285
SELECT COUNT ( * ) * 17 AS col2, 72 FROM tab0
----
51
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-286
SELECT DISTINCT * FROM tab0 cor0 WHERE ( CAST( + + col0 AS SIGNED ) ) * + 77 + ( ( col0 ) ) * col2 IN ( 48 )
----

skipif mysql # not compatible
query III rowsort label-286
SELECT DISTINCT * FROM tab0 cor0 WHERE ( CAST ( + + col0 AS INTEGER ) ) * + 77 + ( ( col0 ) ) * col2 IN ( 48 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE NOT ( + 95 + - - ( + - 21 ) + ( col0 ) ) BETWEEN NULL AND col1 + - col0
----
59
68
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT ALL - 68 DIV - 17 AS col2 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - 68 / - 17 AS col2 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - ( + 62 ) + + - col2 AS col2 FROM tab0 AS cor0
----
-109
-161
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT - 81 * col1 + - ( - + CAST( + - 78 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-159
-1779
-6639

skipif mysql # not compatible
query I rowsort label-291
SELECT - 81 * col1 + - ( - + CAST ( + - 78 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-159
-1779
-6639

query I rowsort
SELECT - 31 + - - 77 + col2 * + col2 AS col1 FROM tab1 cor0
----
3527
4670
9262

query I rowsort
SELECT DISTINCT + - col1 * + col0 * + - col1 + - 93 AS col1 FROM tab0 AS cor0
----
38274
4
98322

onlyif mysql # DIV for integer division: 
query I rowsort label-294
SELECT - + ( - 65 ) DIV + 78 + + - 47 AS col1 FROM tab0 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-294
SELECT - + ( - 65 ) / + 78 + + - 47 AS col1 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT 51 * + 61 FROM tab0 AS cor0 WHERE - 46 > - 51 + 67 + - col0
----
3111
3111

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT - 18 * + COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT - 18 * + COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col0, col0 * - col2 + 10 col2, + col2 - 96 col2 FROM tab2
----
9 values hashing to 8902c18f0db13fd4b84049240a6ee445

query I rowsort
SELECT - col2 * + + 59 - - col2 AS col1 FROM tab1
----
-3422
-3944
-5568

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT DISTINCT 27 DIV - - 57 + - - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT 27 / - - 57 + - - col0 FROM tab2
----
46
64
75

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

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

query I rowsort
SELECT + ( - + 33 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query II rowsort
SELECT DISTINCT 52 + + col0 AS col0, col2 AS col1 FROM tab1
----
103
96
137
59
143
68

query I rowsort
SELECT - 91 - col2 AS col0 FROM tab2
----
-114
-131
-149

query III rowsort
SELECT * FROM tab0 WHERE + col0 - - 20 <> - col1 + + 71 - ( - 52 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-308
SELECT ALL col0 * - CAST( NULL AS SIGNED ) - + + 78 / + - 27 AS col2, 6 AS col2 FROM tab0
----
NULL
6
NULL
6
NULL
6

skipif mysql # not compatible
query II rowsort label-308
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) - + + 78 / + - 27 AS col2, 6 AS col2 FROM tab0
----
NULL
6
NULL
6
NULL
6

query I rowsort
SELECT - col1 * 41 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL OR 50 > ( NULL )
----
-1927
-205
-574

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + 45 AS col1 FROM tab1 cor0
----
-2655
-3060
-4320

query I rowsort
SELECT 42 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col2 * 57
----

query I rowsort
SELECT + col2 + - - col0 * + + 20 FROM tab0 cor0
----
1750
2039
347

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-316
SELECT - 26 DIV COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-316
SELECT - 26 / COUNT ( * ) FROM tab1
----
-8

query I rowsort
SELECT DISTINCT 14 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT - + CAST( + 31 AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL >= ( - + col1 )
----

skipif mysql # not compatible
query I rowsort label-318
SELECT - + CAST ( + 31 AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL >= ( - + col1 )
----

query I rowsort
SELECT DISTINCT + 27 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + 6 - col1 - - col0 * col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT ( NOT 14 IS NOT NULL ) )
----
630
855
9608

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-323
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 / - col2 ) < ( + col0 + + CAST( - col0 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-323
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 / - col2 ) < ( + col0 + + CAST ( - col0 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-325
SELECT DISTINCT - COUNT( * ), + SUM( - col0 ) AS col0 FROM tab2
----
-3
-185

skipif mysql # not compatible
query II rowsort label-325
SELECT DISTINCT - COUNT ( * ), + SUM ( - col0 ) AS col0 FROM tab2
----
-3
-185

onlyif mysql # DIV for integer division: 
query II rowsort label-326
SELECT col2 AS col1, + col0 DIV + + col0 + col1 AS col2 FROM tab2
----
23
52
40
78
58
68

skipif mysql # not compatible
query II rowsort label-326
SELECT col2 AS col1, + col0 / + + col0 + col1 AS col2 FROM tab2
----
23
52
40
78
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT DISTINCT + COUNT( + col2 ) FROM tab0 WHERE NOT - + col0 * - ( - ( col2 ) ) - - 40 - col1 + col0 * + 71 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT + COUNT ( + col2 ) FROM tab0 WHERE NOT - + col0 * - ( - ( col2 ) ) - - 40 - col1 + col0 * + 71 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + 31, col2 FROM tab1
----
31
59
31
68
31
96

query I rowsort
SELECT + 90 * + col1 FROM tab0
----
1890
7290
90

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - col2 BETWEEN - col2 * + + ( + - ( col1 ) ) AND + - ( 83 )
----
46
64
75

query I rowsort
SELECT - 9 + - - col1 * - + col1 * - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-11
38348
98359

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-332
SELECT DISTINCT col1 DIV CAST( 37 AS SIGNED ) * + 0 + - col0 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT col1 / CAST ( 37 AS INTEGER ) * + 0 + - col0 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT ALL col1 * 34 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - ( - - col2 ) * - + col2 + col1 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-1058
-2021
-4252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-335
SELECT + CAST( + MAX( - - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-335
SELECT + CAST ( + MAX ( - - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT ALL - - MIN( ALL + 41 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL - - MIN ( ALL + 41 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 * - + ( + - col0 ) col2 FROM tab2 AS cor0
----
2530
3520
4125

query I rowsort
SELECT + col0 + - + 47 FROM tab1 AS cor0
----
38
4
44

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

query I rowsort
SELECT 45 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
45
45
45

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

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 92 < ( + col1 )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT - MAX( - col0 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-343
SELECT - MAX ( - col0 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
54

query II rowsort
SELECT ( 35 ) + col2, col0 AS col0 FROM tab0
----
134
97
45
87
82
15

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT + col2 + 8 - col1 - 3 * 52 DIV - 24 col1 FROM tab2
----
-14
-23
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-345
SELECT + col2 + 8 - col1 - 3 * 52 / - 24 col1 FROM tab2
----
-14
-23
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-346
SELECT + COUNT( * ) * - + 73 + 42, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-177
NULL

skipif mysql # not compatible
query II rowsort label-346
SELECT + COUNT ( * ) * - + 73 + 42, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-177
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 94 ) + + col0 + 70 col0 FROM tab0
----
179
251
261

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

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

query I rowsort
SELECT DISTINCT 17 * 87 - col2 FROM tab1
----
1383
1411
1420

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-350
SELECT ALL COUNT ( * ) + COUNT ( * ) col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT DISTINCT COUNT( * ) - + 5 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT COUNT ( * ) - + 5 FROM tab1 cor0
----
-2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 15 <= NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 BETWEEN - + 86 AND col2
----
51
14
96

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

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

query II rowsort
SELECT DISTINCT - col1, - 58 AS col0 FROM tab0
----
-1
-58
-21
-58
-81
-58

query II rowsort
SELECT - - col1 AS col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

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

query II rowsort
SELECT - col1 AS col0, 88 * col1 AS col0 FROM tab1 AS cor0
----
-14
1232
-47
4136
-5
440

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

query II rowsort
SELECT col0 AS col0, 98 AS col2 FROM tab1 AS cor0
----
51
98
85
98
91
98

query II rowsort
SELECT DISTINCT - col2 AS col1, + 41 FROM tab2 AS cor0
----
-23
41
-40
41
-58
41

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

skipif mysql # not compatible
query I rowsort label-362
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 / - col2 IS NOT NULL
----
0

query II rowsort
SELECT + col1 AS col2, 29 FROM tab0 AS cor0
----
1
29
21
29
81
29

query I rowsort
SELECT DISTINCT - - 93 AS col2 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL SUM( ALL col2 ) + + + 50 AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL SUM ( ALL col2 ) + + + 50 AS col0 FROM tab1
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-366
SELECT - col0 DIV + + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-366
SELECT - col0 / + + col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT - 40 * - col2 FROM tab0
----
1880
3960
400

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-368
SELECT DISTINCT + col1 * col0 + CAST( NULL AS DECIMAL ) AS col0, 62 AS col1 FROM tab0 AS cor0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-368
SELECT DISTINCT + col1 * col0 + CAST ( NULL AS REAL ) AS col0, 62 AS col1 FROM tab0 AS cor0
----
NULL
62

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

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

query I rowsort
SELECT DISTINCT - 1 * + + 53 * - - col0 FROM tab0 cor0 WHERE NOT 34 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( - 9 ) IS NULL
----

query I rowsort
SELECT - 43 + - 14 + col2 FROM tab0 AS cor0
----
-10
-47
42

query I rowsort
SELECT ALL - col0 + col0 * + col2 FROM tab0
----
690
783
9506

query I rowsort
SELECT col0 + + - col2 AS col1 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT DISTINCT SUM( - - col2 ) FROM tab2 WHERE NULL >= + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT SUM ( - - col2 ) FROM tab2 WHERE NULL >= + + col2
----
NULL

query I rowsort
SELECT ALL + col0 + + 33 AS col2 FROM tab1 AS cor0
----
118
124
84

onlyif mysql # aggregate syntax: 
query II rowsort label-377
SELECT DISTINCT COUNT( * ), - SUM( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
3
-103

skipif mysql # not compatible
query II rowsort label-377
SELECT DISTINCT COUNT ( * ), - SUM ( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
3
-103

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-379
SELECT * FROM tab0 AS cor0 WHERE ( NOT + + col1 > - col0 + + col0 * - CAST( NULL AS SIGNED ) * + + col0 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-379
SELECT * FROM tab0 AS cor0 WHERE ( NOT + + col1 > - col0 + + col0 * - CAST ( NULL AS INTEGER ) * + + col0 * + col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = ( 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT COUNT( * ) * SUM( 7 ) * + 41 * COUNT( * ) FROM tab2
----
7749

skipif mysql # not compatible
query I rowsort label-381
SELECT COUNT ( * ) * SUM ( 7 ) * + 41 * COUNT ( * ) FROM tab2
----
7749

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-382
SELECT DISTINCT - CAST( + col2 AS SIGNED ), col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-382
SELECT DISTINCT - CAST ( + col2 AS INTEGER ), col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT MAX( ALL + - col0 ) col0 FROM tab0 AS cor0
----
-15

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

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

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

skipif mysql # not compatible
query I rowsort label-386
SELECT + ( - COUNT ( * ) ) + + + ( COUNT ( DISTINCT + 6 ) ) FROM tab1 WHERE NOT ( - + col1 * + col2 + + - 97 + + col2 - col0 - + col2 + - col2 + 58 ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ( + 97 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + 29 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT DISTINCT + MAX( ALL + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT + MAX ( ALL + - col1 ) FROM tab2 AS cor0
----
-51

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

query II rowsort
SELECT DISTINCT - + col0 * ( - col0 ) AS col0, 85 FROM tab0 AS cor0
----
225
85
7569
85
9409
85

query I rowsort
SELECT ALL col0 * + 6 + + ( col1 ) AS col0 FROM tab2 AS cor0
----
327
461
517

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

query I rowsort
SELECT + 84 + - - col0 FROM tab2
----
130
148
159

query I rowsort
SELECT + col2 + - 96 FROM tab1
----
-28
-37
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 47 IS NULL
----

query I rowsort
SELECT DISTINCT 4 + + col1 + col2 FROM tab0
----
104
132
35

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT + 13 DIV - + 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-405
SELECT + 13 / - + 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 - + ( + col0 ) col1, + col2 AS col1 FROM tab2 AS cor0
----
-17
58
-23
23
-24
40

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT COUNT( 25 ) * COUNT( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT COUNT ( 25 ) * COUNT ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL - col2 * 35 - - col1 FROM tab1 AS cor0
----
-2060
-2333
-3346

query I rowsort
SELECT 70 + + - ( - col1 ) AS col0 FROM tab0 AS cor0
----
151
71
91

onlyif mysql # DIV for integer division: 
query I rowsort label-410
SELECT DISTINCT + col0 - 4 DIV + 96 AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT + col0 - 4 / + 96 AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - ( - ( + 38 ) ) * 95 FROM tab1 AS cor0
----
3610

query I rowsort
SELECT - ( + - col1 ) AS col2 FROM tab2 WHERE NOT ( + 62 ) < 13
----
51
67
77

query I rowsort
SELECT DISTINCT col0 * + col1 * 44 FROM tab0
----
4268
53460
80388

query I rowsort
SELECT + col2 * - - 27 FROM tab0
----
1269
2673
270

query I rowsort
SELECT ALL - 55 * + col1 AS col0 FROM tab0
----
-1155
-4455
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-416
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + MIN( ALL + 31 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + CAST ( NULL AS REAL ) * + MIN ( ALL + 31 ) FROM tab0
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 80 >= 92
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - - 13 + - + 63 + - 6 + - - col2 + col2 col0 FROM tab0 AS cor0
----
239
51
53

onlyif mysql # DIV for integer division: 
query I rowsort label-421
SELECT ALL 68 * - - col2 DIV - col2 FROM tab0 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL 68 * - - col2 / - col2 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT - col1 + + 97 * + + 89 + - 53 FROM tab2 AS cor0
----
8503
8513
8529

query I rowsort
SELECT ALL - + 27 + col0 AS col2 FROM tab1 AS cor0
----
24
58
64

onlyif mysql # aggregate syntax: 
query II rowsort label-424
SELECT MIN( ALL + 27 ) AS col2, + SUM( + col0 ) FROM tab0 AS cor0
----
27
199

skipif mysql # not compatible
query II rowsort label-424
SELECT MIN ( ALL + 27 ) AS col2, + SUM ( + col0 ) FROM tab0 AS cor0
----
27
199

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

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

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

skipif mysql # not compatible
query III rowsort label-426
SELECT * FROM tab1 WHERE - col0 - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT col1 * - + col1 * col1 * - col0 AS col2 FROM tab0
----
7971615
805707
97

query I rowsort
SELECT ALL - col0 + - 95 FROM tab1
----
-146
-180
-186

query I rowsort
SELECT DISTINCT - + ( + + col2 ) - 77 * - col2 FROM tab0 WHERE - ( col2 ) BETWEEN - - col0 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT + MIN( DISTINCT + col0 ) * + 68 FROM tab1 AS cor0
----
3468

skipif mysql # not compatible
query I rowsort label-432
SELECT + MIN ( DISTINCT + col0 ) * + 68 FROM tab1 AS cor0
----
3468

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

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

query I rowsort
SELECT 1 FROM tab2, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

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

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

query I rowsort
SELECT DISTINCT - ( - col2 ) - - - col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL - MAX( 83 ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - MAX ( 83 ) FROM tab1 AS cor0
----
-83

query I rowsort
SELECT - AVG ( - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
NULL

query I rowsort
SELECT - col0 - - 63 FROM tab2 AS cor0
----
-1
-12
17

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT MAX( ALL + + 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-441
SELECT MAX ( ALL + + 74 ) FROM tab1 AS cor0
----
74

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 11 * col0 + - col0 IS NOT NULL
----

query II rowsort
SELECT + col1 * col1, col0 FROM tab1
----
196
51
2209
91
25
85

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

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

query II rowsort
SELECT + col2 * + + col2 AS col1, - col1 AS col2 FROM tab2
----
1600
-77
3364
-67
529
-51

query I rowsort
SELECT + col1 * 94 * - 53 FROM tab2
----
-254082
-333794
-383614

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT COUNT( * ) FROM tab1 WHERE NOT ( - 68 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-448
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( - 68 ) >= NULL
----
0

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

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

query I rowsort
SELECT ALL - col0 * - 53 + + col2 AS col2 FROM tab0 AS cor0
----
4621
5240
842

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-452
SELECT 43 col2, + CAST( NULL AS DECIMAL ) FROM tab2
----
43
NULL
43
NULL
43
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-452
SELECT 43 col2, + CAST ( NULL AS REAL ) FROM tab2
----
43
NULL
43
NULL
43
NULL

query II rowsort
SELECT DISTINCT - col2 * - - 49 + col1, + 1 AS col2 FROM tab0
----
-2222
1
-469
1
-4850
1

query I rowsort
SELECT ALL col0 + - 88 + + col0 + 83 AS col2 FROM tab2
----
123
145
87

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT + COUNT( * ) * 81 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-455
SELECT + COUNT ( * ) * 81 FROM tab2
----
243

query I rowsort
SELECT + 70 * + 49 FROM tab0
----
3430
3430
3430

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 * + 99
----

query I rowsort
SELECT - - 76 * - col0 AS col0 FROM tab0 AS cor0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL - COUNT( * ) * 98 AS col0 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - COUNT ( * ) * 98 AS col0 FROM tab1 AS cor0
----
-294

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-461
SELECT DISTINCT + 87 DIV - + COUNT( * ) FROM tab0 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + 87 / - + COUNT ( * ) FROM tab0 cor0
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-462
SELECT DISTINCT - 17 DIV - ( + MAX( ALL - - col2 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT - 17 / - ( + MAX ( ALL - - col2 ) ) FROM tab0 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-464
SELECT - col0 + - CAST( - col2 AS SIGNED ) * + col1 col0 FROM tab1 AS cor0
----
1293
210
3105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-464
SELECT - col0 + - CAST ( - col2 AS INTEGER ) * + col1 col0 FROM tab1 AS cor0
----
1293
210
3105

query I rowsort
SELECT col1 + - col0 - + + 49 FROM tab2 AS cor0
----
-36
-44
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-466
SELECT - CAST( 83 AS SIGNED ) + + - col0 col1 FROM tab1
----
-134
-168
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-466
SELECT - CAST ( 83 AS INTEGER ) + + - col0 col1 FROM tab1
----
-134
-168
-174

query II rowsort
SELECT col2 + - + col0, col0 + - 8 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT ALL + 90 * MIN( + 31 ) + + + SUM( + + 73 ) FROM tab0
----
3009

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL + 90 * MIN ( + 31 ) + + + SUM ( + + 73 ) FROM tab0
----
3009

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-469
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT CAST ( NULL AS REAL ) + + + col2 AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + - col0 + + col1 + ( - col1 ) * - col1 col0 FROM tab2
----
3135
7542
7845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - + 3 / + col0 + 33 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL 24 + + MAX( ALL + col2 ) * - COUNT( * ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL 24 + + MAX ( ALL + col2 ) * - COUNT ( * ) FROM tab1
----
-264

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - col0 * - ( 81 ) = 23 + + - 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 + - col0 AS col1, - col2 * col0 FROM tab0 AS cor0
----
0
-705
0
-870
0
-9603

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 + + + 72 IN ( - col0 )
----

query I rowsort
SELECT ALL 41 + col2 * + col0 AS col2 FROM tab0
----
746
911
9644

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

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

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

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

query II rowsort
SELECT 52 AS col0, 85 + + col0 - + col0 FROM tab2 AS cor0
----
52
85
52
85
52
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 18 AS col2, col1 col1 FROM tab0 AS cor0
----
-18
1
-18
21
-18
81

query II rowsort
SELECT - 53 AS col0, + 79 * + + 8 AS col0 FROM tab1 cor0
----
-53
632
-53
632
-53
632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 65 AS col1, col1 col2 FROM tab1 AS cor0
----
65
14
65
47
65
5

query II rowsort
SELECT DISTINCT + 96 AS col0, 50 AS col0 FROM tab1
----
96
50

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

query I rowsort
SELECT 83 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL - SUM( - col0 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL - SUM ( - col0 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
597

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

query I rowsort
SELECT + ( + 52 ) - + ( - 26 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + 87 + col0 AS col0 FROM tab0
----
102
174
184

query I rowsort
SELECT + - 85 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT col1 + + 62 FROM tab1 cor0
----
109
67
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 68 + + - col2 col1, 41 FROM tab0 AS cor0
----
-31
41
21
41
58
41

query I rowsort
SELECT - 69 * + col0 + + 66 AS col0 FROM tab0 AS cor0
----
-5937
-6627
-969

query I rowsort
SELECT - 59 AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) / 39 * 81 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 * - col1, + col0 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 IS NULL AND NOT 37 NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-502
SELECT DISTINCT - 54 - - MAX( CAST( 91 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - 54 - - MAX ( CAST ( 91 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 40 + + - col0 <> + 28
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT ( - MAX( ALL - col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-505
SELECT ( - MAX ( ALL - col2 ) ) FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-506
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) / - 77 - col1 <= - col1
----

skipif mysql # not compatible
query III rowsort label-506
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) / - 77 - col1 <= - col1
----

query I rowsort
SELECT ALL 70 FROM tab0 AS cor0 WHERE ( - 52 ) * + col1 IS NULL
----

query I rowsort
SELECT + col1 * + + col2 * + - ( 80 ) FROM tab2 AS cor0
----
-246400
-310880
-93840

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> + 7
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-510
SELECT + 38 AS col0, COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-510
SELECT + 38 AS col0, COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
38
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + ( + + col2 ) col2 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-513
SELECT DISTINCT col1 col1 FROM tab2 WHERE NOT 78 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-513
SELECT DISTINCT col1 col1 FROM tab2 WHERE NOT 78 > CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT SUM( - 93 ) FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT SUM ( - 93 ) FROM tab1
----
-279

query I rowsort
SELECT col1 * - + col1 * - 38 AS col2 FROM tab2 WHERE NOT + 34 IS NULL
----
170582
225302
98838

query I rowsort
SELECT ALL + - col0 + + col1 AS col0 FROM tab2 cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab2 WHERE 68 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + - col1 * - col1 col0 FROM tab0 AS cor0
----
447
6567
7

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE NOT + 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT DISTINCT + ( - + MAX( + col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT + ( - + MAX ( + col2 ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT + + 38 + - 25 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-521
SELECT + + 38 + - 25 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
10

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-523
SELECT DISTINCT - MAX( + CAST( + - 5 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - MAX ( + CAST ( + - 5 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
5

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

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

query I rowsort
SELECT + 64 + - - col2 AS col2 FROM tab2
----
104
122
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-526
SELECT + CAST( NULL AS SIGNED ) + - - ( 65 ) * 11 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-526
SELECT + CAST ( NULL AS INTEGER ) + - - ( 65 ) * 11 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + + ( - col0 ) ) + - col2 AS col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL 18 + + col1 * - + 81 + - col1 * + + col2 FROM tab2
----
-5286
-9295
-9299

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

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT ALL COUNT( * ) + - 67 * - 55 AS col2 FROM tab0
----
3688

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL COUNT ( * ) + - 67 * - 55 AS col2 FROM tab0
----
3688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-531
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) - - 43 * 48 + 76 FROM tab2
----
2137

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) - - 43 * 48 + 76 FROM tab2
----
2137

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

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

query I rowsort
SELECT ALL + 97 - 91 FROM tab1 AS cor0
----
6
6
6

query III rowsort
SELECT + 24 - - col1, + col0, - col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to f1b07713f1fee5fb27f5aafa7a155fcc

query II rowsort
SELECT ALL col2 * col2 AS col1, - 18 + 13 * - + col2 FROM tab2 AS cor0
----
1600
-538
3364
-772
529
-317

query I rowsort
SELECT - col1 * + + col1 + + col2 + - - 67 FROM tab2 AS cor0
----
-2511
-4364
-5822

query I rowsort
SELECT ALL - col1 * + 43 - - - col0 FROM tab2 AS cor0
----
-2239
-2956
-3375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT - + SUM( ALL - + 57 ) AS col0 FROM tab0 cor0
----
171

skipif mysql # not compatible
query I rowsort label-539
SELECT - + SUM ( ALL - + 57 ) AS col0 FROM tab0 cor0
----
171

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

query II rowsort
SELECT - col1 AS col1, col1 * col1 FROM tab1 AS cor0
----
-14
196
-47
2209
-5
25

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

query I rowsort
SELECT 10 FROM tab2 AS cor0 WHERE NOT NULL < col2 / - - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT - COUNT( * ) * 58 FROM tab2 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-544
SELECT - COUNT ( * ) * 58 FROM tab2 cor0
----
-174

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-547
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

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

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

query I rowsort
SELECT + 81 FROM tab1 AS cor0 WHERE col1 * - - col2 + col0 < + 70
----

query I rowsort
SELECT DISTINCT col0 + + 25 FROM tab1
----
110
116
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-551
SELECT ALL + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-551
SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + 29 * + col0 FROM tab2 AS cor0
----
1334
1856
2175

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT CAST( + 4 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-555
SELECT CAST ( + 4 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
4
4
4

query II rowsort
SELECT DISTINCT - ( col0 ), col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
15
-87
87
-97
97

query II rowsort
SELECT ALL - - col0 AS col2, 4 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL - 76 - - + COUNT( * ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL - 76 - - + COUNT ( * ) FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT DISTINCT MAX( ALL + col2 ) - 79 AS col2 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT MAX ( ALL + col2 ) - 79 AS col2 FROM tab1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT col1 + - 6 DIV + col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-561
SELECT col1 + - 6 / + col2 FROM tab0
----
1
21
81

query II rowsort
SELECT - + 70 AS col1, col1 AS col2 FROM tab1 cor0
----
-70
14
-70
47
-70
5

query I rowsort
SELECT DISTINCT - 57 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 65 * - + col0
----

query I rowsort
SELECT 96 * - - 96 FROM tab1
----
9216
9216
9216

query I rowsort
SELECT DISTINCT + 72 * + col0 * - 16 AS col2 FROM tab2
----
-52992
-73728
-86400

query I rowsort
SELECT ALL - ( + 88 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-568
SELECT ALL + SUM( DISTINCT - + col1 ) DIV - 97 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL + SUM ( DISTINCT - + col1 ) / - 97 AS col0 FROM tab1
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) * - col1 + + col1 <= NULL
----

query I rowsort
SELECT ALL col0 * - + 74 + + ( col2 ) + 1 - - col1 * - col0 FROM tab0 AS cor0
----
-2277
-7175
-8254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 col2 FROM tab2 AS cor0 WHERE NOT + col0 < - - ( 21 )
----
43
43
43

query I rowsort
SELECT - 42 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT - 86 * COUNT( * ) FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-574
SELECT - 86 * COUNT ( * ) FROM tab0
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, + col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL ( 19 ) FROM tab2 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-578
SELECT * FROM tab0 WHERE col1 = + CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-578
SELECT * FROM tab0 WHERE col1 = + CAST ( NULL AS INTEGER ) + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-579
SELECT col0 * + col2 + - - col0 AS col0, + 69 / + CAST( NULL AS SIGNED ) * - col0 col0, col2 FROM tab0 cor0
----
9 values hashing to 5ef800af2856d3038f1f5d92a7c1da3a

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-579
SELECT col0 * + col2 + - - col0 AS col0, + 69 / + CAST ( NULL AS INTEGER ) * - col0 col0, col2 FROM tab0 cor0
----
9 values hashing to 5ef800af2856d3038f1f5d92a7c1da3a

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-580
SELECT - COUNT ( DISTINCT - ( + + col1 ) ) col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-581
SELECT ALL - CAST( - - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1, 89 AS col0 FROM tab0, tab0 AS cor0
----
-9
89

skipif mysql # not compatible
query II rowsort label-581
SELECT ALL - CAST ( - - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1, 89 AS col0 FROM tab0, tab0 AS cor0
----
-9
89

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT DISTINCT 39 * COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
351

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT 39 * COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
351

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT DISTINCT col2 DIV + col0 - col2 * + col2 * 39 FROM tab1 AS cor0
----
-135759
-180336
-359423

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT col2 / + col0 - col2 * + col2 * 39 FROM tab1 AS cor0
----
-135759
-180336
-359423

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT DISTINCT + - CAST( - SUM( ALL - + 62 ) AS SIGNED ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT + - CAST ( - SUM ( ALL - + 62 ) AS INTEGER ) FROM tab0 AS cor0
----
-186

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 86 + + - 81 * col1 = col0
----

query I rowsort
SELECT DISTINCT - + col2 - col0 + - - 36 AS col2 FROM tab2 AS cor0
----
-33
-68
-97

query I rowsort
SELECT - col1 + - col2 + + - col2 AS col0 FROM tab1 AS cor0
----
-123
-183
-206

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT col2 DIV 3 * + col1 col1 FROM tab0
----
1215
33
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-591
SELECT col2 / 3 * + col1 col1 FROM tab0
----
1215
33
63

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT DISTINCT MAX( ALL + 11 ) col0 FROM tab0
----
11

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-594
SELECT - col0 AS col2, col0 DIV - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-15
0
-87
-4
-97
-97

skipif mysql # not compatible
query II rowsort label-594
SELECT - col0 AS col2, col0 / - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-15
0
-87
-4
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT + COUNT( * ) * - 50 AS col0 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + COUNT ( * ) * - 50 AS col0 FROM tab0 AS cor0
----
-150

onlyif mysql # DIV for integer division: 
query II rowsort label-596
SELECT col2 AS col1, col1 * - 82 * - col1 + - col2 DIV - + col2 AS col2 FROM tab1
----
59
2051
68
181139
96
16073

skipif mysql # not compatible
query II rowsort label-596
SELECT col2 AS col1, col1 * - 82 * - col1 + - col2 / - + col2 AS col2 FROM tab1
----
59
2051
68
181139
96
16073

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-599
SELECT + col2 DIV + + col0 * col0 - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-599
SELECT + col2 / + + col0 * col0 - col1 FROM tab2 AS cor0
----
-51
-67
-77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT ALL col0 * + 11 + + - col1 + ( ( + col2 ) ) * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
1513
3187
5108

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL col0 * + 11 + + - col1 + ( ( + col2 ) ) * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
1513
3187
5108

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

query II rowsort
SELECT - 56, col0 AS col0 FROM tab2 AS cor0
----
-56
46
-56
64
-56
75

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-604
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----
0

query II rowsort
SELECT ALL + 16 AS col2, - ( - 10 ) + - - 38 AS col1 FROM tab0 AS cor0
----
16
48
16
48
16
48

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 32 - 17 >= NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 6, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT ALL - CAST( - + col0 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL - CAST ( - + col0 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
138
65
90

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

query I rowsort
SELECT DISTINCT + col0 + + col1 + col0 * - col1 FROM tab0
----
-1119
-1719
1

query III rowsort
SELECT * FROM tab0 WHERE + col0 + 6 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL = 29 - + 14 )
----

query I rowsort
SELECT + + col2 + + 99 AS col0 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-615
SELECT + + col1 * - 85 + + 72 * + 31 + + + ( + 58 ) DIV col2 * + 62 * - ( - CAST( + + col1 AS SIGNED ) ) + col1, + col0 AS col1 FROM tab0 AS cor0
----
2148
97
450
15
6978
87

skipif mysql # not compatible
query II rowsort label-615
SELECT + + col1 * - 85 + + 72 * + 31 + + + ( + 58 ) / col2 * + 62 * - ( - CAST ( + + col1 AS INTEGER ) ) + col1, + col0 AS col1 FROM tab0 AS cor0
----
2148
97
450
15
6978
87

query II rowsort
SELECT ALL - col0 + - col2, 9 FROM tab2 AS cor0 WHERE NOT NULL <= col0 * - + 85 * + + ( - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT DISTINCT - COUNT( * ) / + - MAX( - - col1 ) * - 20 FROM tab1 AS cor0 WHERE NOT 93 * + - col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT - COUNT ( * ) / + - MAX ( - - col1 ) * - 20 FROM tab1 AS cor0 WHERE NOT 93 * + - col0 < NULL
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-621
SELECT + col1 * - col1 / - ( + col2 ) * + 32 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT + col1 * - col1 / - ( + col2 ) * + 32 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 26 - - col1 AS col2 FROM tab2 AS cor0
----
103
77
93

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-623
SELECT + CAST ( - AVG ( ALL + col1 ) AS INTEGER ) col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-65
3

query II rowsort
SELECT 60 AS col1, col1 FROM tab2 cor0
----
60
51
60
67
60
77

query I rowsort
SELECT - 10 - + - 74 + - - col0 FROM tab1 AS cor0
----
115
149
155

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 * - - col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL - COUNT ( + 98 ) AS col2 FROM tab2 AS cor0
----
-3

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

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

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

query II rowsort
SELECT ( - col1 ) AS col2, col0 FROM tab1
----
-14
51
-47
91
-5
85

query II rowsort
SELECT - ( + 20 ), - col1 AS col0 FROM tab2
----
-20
-51
-20
-67
-20
-77

query I rowsort
SELECT 99 * + + col0 AS col1 FROM tab1
----
5049
8415
9009

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-633
SELECT ALL - CAST( + + col2 AS SIGNED ) AS col0, col2 AS col1 FROM tab2
----
-23
23
-40
40
-58
58

skipif mysql # not compatible
query II rowsort label-633
SELECT ALL - CAST ( + + col2 AS INTEGER ) AS col0, col2 AS col1 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-634
SELECT DISTINCT COUNT( DISTINCT - col1 ), + MAX( ALL - ( + col1 ) ) * - COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-634
SELECT DISTINCT COUNT ( DISTINCT - col1 ), + MAX ( ALL - ( + col1 ) ) * - COUNT ( * ) FROM tab0
----
3
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 8 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT DISTINCT MAX( + + 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT MAX ( + + 27 ) FROM tab2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-638
SELECT 16 DIV COUNT( * ) + - 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

skipif mysql # not compatible
query I rowsort label-638
SELECT 16 / COUNT ( * ) + - 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT col2 DIV - ( - + col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-642
SELECT col2 / - ( - + col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1
1
1

query II rowsort
SELECT - - 69 AS col1, + 70 * - - 7 FROM tab1 AS cor0
----
69
490
69
490
69
490

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT + COUNT( * ) FROM tab1 cor0 WHERE 44 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-644
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE 44 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT - 78 + + - COUNT( * ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-645
SELECT - 78 + + - COUNT ( * ) FROM tab1
----
-81

query I rowsort
SELECT ALL - col0 + - col2 * 10 FROM tab2
----
-276
-464
-655

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

skipif mysql # not compatible
query I rowsort label-647
SELECT 80 + - MIN ( ALL col2 ) FROM tab1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-648
SELECT ALL MIN( + col2 ) DIV - ( + 31 ) + + - 90 - - COUNT( * ) + + CAST( + + 66 AS SIGNED ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL MIN ( + col2 ) / - ( + 31 ) + + - 90 - - COUNT ( * ) + + CAST ( + + 66 AS INTEGER ) FROM tab1
----
-22

query I rowsort
SELECT ( col2 ) + - 40 AS col2 FROM tab2
----
-17
0
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-650
SELECT DISTINCT + 78 DIV CAST( - 17 AS SIGNED ) DIV - col1 - + col2 + - - col0 AS col0, col1 * + - col1 AS col1 FROM tab0
----
-32
-6561
2
-1
77
-441

skipif mysql # not compatible
query II rowsort label-650
SELECT DISTINCT + 78 / CAST ( - 17 AS INTEGER ) / - col1 - + col2 + - - col0 AS col0, col1 * + - col1 AS col1 FROM tab0
----
-32
-6561
2
-1
77
-441

query I rowsort
SELECT col1 + + col0 + + + col0 AS col2 FROM tab2
----
143
205
217

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 37 * - - 88 col2 FROM tab1 cor0
----
3256

query I rowsort
SELECT - col2 - - col0 FROM tab2 AS cor0 WHERE 39 IS NOT NULL
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT ALL + col0 * - - 78 * - col2 + + - col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-381889
-391170
-482664

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL + col0 * - - 78 * - col2 + + - col2 / + col0 AS col2 FROM tab1 AS cor0
----
-381889
-391170
-482664

onlyif mysql # DIV for integer division: 
query II rowsort label-656
SELECT + col0 DIV col0, col1 FROM tab1 AS cor0
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-656
SELECT + col0 / col0, col1 FROM tab1 AS cor0
----
1
14
1
47
1
5

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

query I rowsort
SELECT ALL col2 + + col0 - + col1 AS col2 FROM tab2
----
18
27
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-659
SELECT - - ( 16 ) * COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - 50 col0 FROM tab1 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-659
SELECT - - ( 16 ) * COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 50 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 - - - col1, ( col1 ) col1 FROM tab0 cor0
----
-100
1
-128
81
-31
21

query I rowsort
SELECT + - col0 * - 96 AS col1 FROM tab1 cor0
----
4896
8160
8736

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

query I rowsort
SELECT - + 15 FROM tab0 cor0
----
-15
-15
-15

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 20 * + col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL + COUNT( * ) - - - 56 + - MIN( + col2 ) col2 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-668
SELECT ALL + COUNT ( * ) - - - 56 + - MIN ( + col2 ) col2 FROM tab1 WHERE col0 IS NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + col0 * 88 AS col2 FROM tab2
----
4048
5632
6600

query III rowsort
SELECT * FROM tab0 WHERE 21 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col1 FROM tab1
----
-27
-27
-27

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

query I rowsort
SELECT + col1 * + 32 + col1 FROM tab0
----
2673
33
693

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( + 41 * 29 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( + 41 * 29 ) IS NULL
----
3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-678
SELECT + ( CAST( NULL AS DECIMAL ) ) * 75 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT + ( CAST ( NULL AS REAL ) ) * 75 AS col0 FROM tab1
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT ( + SUM ( DISTINCT - col1 ) ) AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT - MIN( 10 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-680
SELECT - MIN ( 10 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-10

query I rowsort
SELECT - col2 / - col2 AS col2 FROM tab2 WHERE NOT 47 - - 62 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - 9 - col0 * 62 IN ( + 17 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT - MIN( + 28 ) FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-685
SELECT - MIN ( + 28 ) FROM tab1
----
-28

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

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL - 44 * COUNT ( * ) FROM tab0
----
-132

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 99 + 97 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT ( + 42 ) NOT BETWEEN col1 * col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT ( + 42 ) NOT BETWEEN col1 * col0 AND NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT - 0 - + COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL COUNT( * ) * 86 AS col1 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL COUNT ( * ) * 86 AS col1 FROM tab1
----
258

query I rowsort
SELECT + 15 FROM tab0 WHERE ( col0 * 59 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT ALL + col1 DIV + ( + col0 ) AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL + col1 / + ( + col0 ) AS col0 FROM tab0
----
0
0
5

query I rowsort
SELECT + 2 * 11 + ( + col2 ) * + 82 FROM tab0 AS cor0
----
3876
8140
842

query I rowsort
SELECT + col2 + 96 FROM tab2 AS cor0
----
119
136
154

query I rowsort
SELECT ALL 10 * col2 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-698
SELECT DISTINCT CAST( NULL AS SIGNED ) + MAX( 31 + - 15 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT CAST ( NULL AS INTEGER ) + MAX ( 31 + - 15 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT + ( - COUNT( ALL col0 ) ) FROM tab0 AS cor0 WHERE ( 0 ) = 30
----
0

skipif mysql # not compatible
query I rowsort label-699
SELECT + ( - COUNT ( ALL col0 ) ) FROM tab0 AS cor0 WHERE ( 0 ) = 30
----
0

query I rowsort
SELECT 1 FROM tab2 WHERE ( - 84 ) BETWEEN - col2 + - col2 AND ( col2 * + col2 + - col0 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT COUNT( * ) * + 33 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-702
SELECT COUNT ( * ) * + 33 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL COUNT( ALL col2 ) FROM tab0 cor0 WHERE col2 - + 82 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL COUNT ( ALL col2 ) FROM tab0 cor0 WHERE col2 - + 82 > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT DISTINCT ( - COUNT( 67 ) ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT ( - COUNT ( 67 ) ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-3

query I rowsort
SELECT - ( + 64 ) FROM tab0 cor0
----
-64
-64
-64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * 94 <= 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ( col2 ) / + col0 AS col1 FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN - 17 * - 39 AND + col0
----

query I rowsort
SELECT ALL - 88 * 61 AS col0 FROM tab1 AS cor0
----
-5368
-5368
-5368

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-712
SELECT ALL - COUNT( * ) DIV ( + ( - 65 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - COUNT ( * ) / ( + ( - 65 ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT DISTINCT + SUM( ALL + col2 ) * + 88 FROM tab0
----
13728

skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT + SUM ( ALL + col2 ) * + 88 FROM tab0
----
13728

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT ALL col2 DIV 88 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL col2 / 88 AS col0 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - 11 / col1 AND col0 - col1
----

query I rowsort
SELECT DISTINCT col2 * + + col2 * 52 AS col0 FROM tab1
----
181012
240448
479232

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT - SUM( DISTINCT 61 ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT - SUM ( DISTINCT 61 ) FROM tab0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT + MAX( ALL - col0 ) FROM tab1 WHERE NOT 29 + col2 * - 46 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT + MAX ( ALL - col0 ) FROM tab1 WHERE NOT 29 + col2 * - 46 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-719
SELECT + 73 * + - col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-719
SELECT + 73 * + - col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-720
SELECT - col1 DIV - ( col0 ) AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-720
SELECT - col1 / - ( col0 ) AS col2 FROM tab0
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 67 col2 FROM tab1
----
-3417
-5695
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL MAX( ALL + col0 ) FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL MAX ( ALL + col0 ) FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT MIN( ALL + 92 ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-723
SELECT MIN ( ALL + 92 ) FROM tab0 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT ALL + MAX( ALL 59 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
59

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL + MAX ( ALL 59 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
59

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 44 ) < - 99 + col0
----

query I rowsort
SELECT + col2 * - col0 + + col0 FROM tab0 AS cor0
----
-690
-783
-9506

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE 54 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT DISTINCT 51 - - COUNT( * ) FROM tab0 cor0 WHERE - 48 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT 51 - - COUNT ( * ) FROM tab0 cor0 WHERE - 48 IS NULL
----
51

query I rowsort
SELECT - col0 + + 78 AS col0 FROM tab1
----
-13
-7
27

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

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

query I rowsort
SELECT - ( - col1 ) + + col0 FROM tab2
----
141
142
97

query I rowsort
SELECT ( col0 ) + + 52 - + 44 * col1 FROM tab2
----
-2146
-2821
-3272

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT + 80 + + COUNT( * ) AS col1 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-734
SELECT + 80 + + COUNT ( * ) AS col1 FROM tab1
----
83

query I rowsort
SELECT 72 + + + col1 * + + 89 AS col2 FROM tab2
----
4611
6035
6925

query I rowsort
SELECT + col2 + + - col0 * 39 - + ( + col1 ) AS col1 FROM tab0
----
-3404
-3685
-619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 + - - col0 col2 FROM tab1
----
39
45
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT 86 + + COUNT( * ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT 86 + + COUNT ( * ) FROM tab0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT CAST( + 90 AS SIGNED ) * + col2 AS col0 FROM tab0 WHERE NULL NOT IN ( - 49 )
----

skipif mysql # not compatible
query I rowsort label-740
SELECT CAST ( + 90 AS INTEGER ) * + col2 AS col0 FROM tab0 WHERE NULL NOT IN ( - 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT + 64 + + MIN( - col0 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-741
SELECT + 64 + + MIN ( - col0 ) FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT ALL - col1 DIV + col1 + + ( + - col1 ) + col2 * col2 FROM tab0
----
2127
78
9799

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL - col1 / + col1 + + ( + - col1 ) + col2 * col2 FROM tab0
----
2127
78
9799

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT DISTINCT col0 DIV + col2 - - + 97 FROM tab2
----
98
99

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT col0 / + col2 - - + 97 FROM tab2
----
98
99

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

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

query I rowsort
SELECT ALL + ( + 77 ) * 39 AS col1 FROM tab1 WHERE NOT ( - + col1 * - 16 ) NOT IN ( 0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - 35 col0 FROM tab2 AS cor0
----
-1610
-2240
-2625

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) NOT IN ( 70 * col1 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) < ( 79 * - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-751
SELECT DISTINCT col1 * + + CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT col1 * + + CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
2601
4489
5929

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

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

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL + col2 * - 84 FROM tab0 AS cor0
----
-3948
-8316
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT - COUNT( ALL 72 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-755
SELECT - COUNT ( ALL 72 ) AS col2 FROM tab0 cor0
----
-3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-756
SELECT MIN ( DISTINCT + - 62 ) col0 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT - col2 * + + 47 AS col0 FROM tab1 AS cor0
----
-2773
-3196
-4512

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT DISTINCT + ( CAST( + col1 AS SIGNED ) ) * + col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT + ( CAST ( + col1 AS INTEGER ) ) * + col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT ALL - 71 DIV - 72 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL - 71 / - 72 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-762
SELECT 6 AS col0, 22 DIV + 25 FROM tab0
----
6
0
6
0
6
0

skipif mysql # not compatible
query II rowsort label-762
SELECT 6 AS col0, 22 / + 25 FROM tab0
----
6
0
6
0
6
0

query I rowsort
SELECT - 37 AS col1 FROM tab2 WHERE NOT + col2 * + col2 NOT BETWEEN + + 68 AND - - 37 * + 80
----
-37
-37

query I rowsort
SELECT ALL - col2 + + col2 AS col2 FROM tab0 WHERE NOT + + col2 - + + col2 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT ALL CAST( + 84 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL CAST ( + 84 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL COUNT( * ) * 26 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL COUNT ( * ) * 26 FROM tab1
----
78

query I rowsort
SELECT 85 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
85
85
85

query II rowsort
SELECT - 55 AS col2, col1 FROM tab0 AS cor0
----
-55
1
-55
21
-55
81

query I rowsort
SELECT + 94 * 72 FROM tab0 AS cor0
----
6768
6768
6768

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-770
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + + + col0 + + + col2 * - + col0 * - ( + ( + col0 ) ) >= - ( 11 )
----

skipif mysql # not compatible
query III rowsort label-770
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + + col0 + + + col2 * - + col0 * - ( + ( + col0 ) ) >= - ( 11 )
----

query I rowsort
SELECT ALL + + 13 + col2 * - col2 FROM tab2 AS cor0
----
-1587
-3351
-516

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-772
SELECT * FROM tab0 AS cor0 WHERE ( + col2 + - col2 ) NOT IN ( ( CAST( col0 AS SIGNED ) ) * col2 + - 48 * + 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-772
SELECT * FROM tab0 AS cor0 WHERE ( + col2 + - col2 ) NOT IN ( ( CAST ( col0 AS INTEGER ) ) * col2 + - 48 * + 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * + - col1 + - col1 col2 FROM tab0
----
-1827
-7047
-87

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

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

skipif mysql # not compatible
query I rowsort label-775
SELECT col1 / ( col1 ) AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col0 * - ( - 37 ) FROM tab0 AS cor0
----
-3219
-3589
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT - + SUM( + ( - 57 ) ) FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-777
SELECT - + SUM ( + ( - 57 ) ) FROM tab0 AS cor0
----
171

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < - col2
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE 10 NOT IN ( - 67 * + col2 )
----
-1
-21
-81

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

query I rowsort
SELECT col0 + + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
108
96
98

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

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT + COUNT ( * ) / - - 39 FROM tab0
----
0

query I rowsort
SELECT AVG ( - col0 ) FROM tab2 WHERE - col0 IS NULL
----
NULL

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

query I rowsort
SELECT DISTINCT 43 + + 25 FROM tab1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-786
SELECT - 83 - + COUNT( * ) - + AVG ( ( - - 87 ) ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT - 83 - + COUNT ( * ) - + AVG ( ( - - 87 ) ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

query I rowsort
SELECT ALL + 68 - - 56 FROM tab0
----
124
124
124

query II rowsort
SELECT ALL + 5, 72 + - - col0 + + + col2 * + col0 + + + 86 AS col0 FROM tab0 AS cor0
----
5
1115
5
878
5
9858

query I rowsort
SELECT ALL - ( + + 18 ) * + col1 FROM tab1
----
-252
-846
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT MIN( DISTINCT - 3 ) * - - 61 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-791
SELECT MIN ( DISTINCT - 3 ) * - - 61 FROM tab0
----
-183

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / - col0 * + col0 BETWEEN col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 31 * ( - - col0 ) FROM tab2 AS cor0
----
-1426
-1984
-2325

query I rowsort
SELECT + ( - - ( - + col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - - col2 * - + col2 * col0 * - 42 + - col0 FROM tab1 AS cor0
----
12427085
17672837
19740621

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 51 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT + MIN( DISTINCT ( col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-801
SELECT + MIN ( DISTINCT ( col0 ) ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ALL + 34 * + COUNT( * ) * - - 54 FROM tab2
----
5508

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL + 34 * + COUNT ( * ) * - - 54 FROM tab2
----
5508

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT DISTINCT 96 + + COUNT( * ) AS col2 FROM tab2 WHERE NOT + + ( - col1 ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT 96 + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + + ( - col1 ) IS NOT NULL
----
96

query I rowsort
SELECT col0 * col2 * col1 + + col1 FROM tab1
----
25080
290883
68558

query I rowsort
SELECT - 36 + + col1 * - + ( 16 ) FROM tab2
----
-1108
-1268
-852

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

query I rowsort
SELECT + 67 + - - col0 + + col1 * + + col2 FROM tab0
----
263
364
3889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT DISTINCT ( CAST( + + col2 AS SIGNED ) ) * + - 1 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT ( CAST ( + + col2 AS INTEGER ) ) * + - 1 AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL + + 19 * col0 AS col0 FROM tab0 AS cor0
----
1653
1843
285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-810
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - + col1 / - col2 + ( - - col2 ) / 27 * 72 <= ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-810
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - + col1 / - col2 + ( - - col2 ) / 27 * 72 <= ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 * - 9 - - 29 + - 63 * - - col1 * + 55 / + col0 FROM tab1 cor0 WHERE NULL NOT IN ( 27 )
----

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

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

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

query I rowsort
SELECT ALL col2 + - 31 AS col0 FROM tab1
----
28
37
65

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + - - 92 col0 FROM tab0 AS cor0
----
96
96
96

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

query I rowsort
SELECT col2 * - col1 * - - 52 + - 6 FROM tab2
----
-160166
-202078
-61002

query II rowsort
SELECT DISTINCT - col0 / + col1 AS col0, - 20 FROM tab0 WHERE + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-820
SELECT ALL * FROM tab0 WHERE + CAST( col0 AS SIGNED ) - + 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-820
SELECT ALL * FROM tab0 WHERE + CAST ( col0 AS INTEGER ) - + 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-821
SELECT ALL 49 / + 78 + + + CAST( NULL AS SIGNED ) + - 0 / - 98 AS col1, + col0 * - 85 FROM tab0 cor0
----
NULL
-1275
NULL
-7395
NULL
-8245

skipif mysql # not compatible
query II rowsort label-821
SELECT ALL 49 / + 78 + + + CAST ( NULL AS INTEGER ) + - 0 / - 98 AS col1, + col0 * - 85 FROM tab0 cor0
----
NULL
-1275
NULL
-7395
NULL
-8245

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

onlyif mysql # aggregate syntax: 
query II rowsort label-823
SELECT - SUM( col0 ), - 1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-199
-1

skipif mysql # not compatible
query II rowsort label-823
SELECT - SUM ( col0 ), - 1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-199
-1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-824
SELECT CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-825
SELECT DISTINCT - CAST( NULL AS SIGNED ), 44 * + col2 AS col2 FROM tab2
----
NULL
1012
NULL
1760
NULL
2552

skipif mysql # not compatible
query II rowsort label-825
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 44 * + col2 AS col2 FROM tab2
----
NULL
1012
NULL
1760
NULL
2552

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT + + SUM( ALL 56 ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-828
SELECT + + SUM ( ALL 56 ) FROM tab0 AS cor0
----
168

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

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

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

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

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE - col2 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-832
SELECT ALL - - ( - + CAST( NULL AS DECIMAL ) ) * + - col2 + + col0 + col1 * 53 FROM tab1 cor0 WHERE + col2 - + - col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL - - ( - + CAST ( NULL AS REAL ) ) * + - col2 + + col0 + col1 * 53 FROM tab1 cor0 WHERE + col2 - + - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT MAX( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT MAX ( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ( + - 50 ) FROM tab1 AS cor0
----
-50
-50
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL COUNT( DISTINCT + - ( - ( - ( + col0 ) ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL COUNT ( DISTINCT + - ( - ( - ( + col0 ) ) ) ) FROM tab0
----
3

query I rowsort
SELECT col2 * + ( + - col2 ) FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-838
SELECT 52 * - col0 - - + CAST( NULL AS SIGNED ) + - 25, + col1 + 83 AS col2 FROM tab1 AS cor0
----
NULL
130
NULL
88
NULL
97

skipif mysql # not compatible
query II rowsort label-838
SELECT 52 * - col0 - - + CAST ( NULL AS INTEGER ) + - 25, + col1 + 83 AS col2 FROM tab1 AS cor0
----
NULL
130
NULL
88
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT + ( - ( - 11 ) ) DIV - + 61 + - col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-839
SELECT + ( - ( - 11 ) ) / - + 61 + - col0 FROM tab0 cor0
----
-15
-87
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT COUNT( * ) + ( + 76 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
79

skipif mysql # not compatible
query I rowsort label-842
SELECT COUNT ( * ) + ( + 76 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
79

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 BETWEEN - 45 AND NULL
----

query I rowsort
SELECT - 64 * + col0 - col1 + - - ( col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
-4168
-7253
-8753

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

query I rowsort
SELECT DISTINCT col0 * 74 AS col2 FROM tab2
----
3404
4736
5550

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

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

query I rowsort
SELECT + col1 * + + col0 AS col0 FROM tab0
----
1215
1827
97

query II rowsort
SELECT ALL - col0, col1 * + + col2 AS col0 FROM tab1
----
-51
1344
-85
295
-91
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT DISTINCT 36 * ( + COUNT( * ) ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT 36 * ( + COUNT ( * ) ) FROM tab0
----
108

onlyif mysql # DIV for integer division: 
query II rowsort label-851
SELECT col1, col1 DIV + 97 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-851
SELECT col1, col1 / + 97 FROM tab1
----
14
0
47
0
5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT COUNT( * ) - - 87 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-853
SELECT COUNT ( * ) - - 87 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-854
SELECT DISTINCT 18 AS col0, col0 DIV col2 * - col2 * - col2 * - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
18
102400
18
252300
18
48668

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT 18 AS col0, col0 / col2 * - col2 * - col2 * - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
18
102400
18
252300
18
48668

query I rowsort
SELECT + col1 * - - 94 AS col1 FROM tab2
----
4794
6298
7238

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

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

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

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

query I rowsort
SELECT DISTINCT + 95 * + + col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-859
SELECT * FROM tab2 AS cor0 WHERE NOT + 68 * - col2 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-859
SELECT * FROM tab2 AS cor0 WHERE NOT + 68 * - col2 >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT 63 + + COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-860
SELECT 63 + + COUNT ( * ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-861
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + 63 + + col1 AND - col1 * - 10 * + CAST( - - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-861
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + 63 + + col1 AND - col1 * - 10 * + CAST ( - - col1 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 32 + + - col2 * + + col1 AS col2, col1 AS col2, + + 21 col2 FROM tab2
----
9 values hashing to 91ed88bb7419675444a4ea563ad9abe9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT DISTINCT MAX( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT - 86 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT MAX ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT - 86 <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT + 13 * col1 - + + 18 DIV col0 col1 FROM tab1 cor0
----
182
611
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-867
SELECT + 13 * col1 - + + 18 / col0 col1 FROM tab1 cor0
----
182
611
65

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) >= - 81
----

query I rowsort
SELECT DISTINCT 21 * + + 33 * + + col1 + + + col1 FROM tab2
----
35394
46498
53438

query I rowsort
SELECT + 95 - col1 + + + col1 FROM tab1
----
95
95
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT - + SUM( + + col0 ) FROM tab2 AS cor0 WHERE 73 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT - + SUM ( + + col0 ) FROM tab2 AS cor0 WHERE 73 IS NULL
----
NULL

query I rowsort
SELECT + col1 * - 27 * + 69 FROM tab1 AS cor0
----
-26082
-87561
-9315

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT DISTINCT - 81 * 11 DIV 91 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT - 81 * 11 / 91 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + col0 * - 51 FROM tab0
----
-4437
-4947
-765

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

skipif mysql # not compatible
query I rowsort label-876
SELECT 77 / + + col2 AS col1 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-877
SELECT ALL - 80 * 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-877
SELECT ALL - 80 * CAST ( NULL AS INTEGER ) / + COUNT ( * ) col0 FROM tab0
----
NULL

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

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE - col2 + - col2 >= - - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-880
SELECT DISTINCT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IN ( ( - CAST( + col1 AS DECIMAL ) ) / + col0, - 63 + + col1 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IN ( ( - CAST ( + col1 AS REAL ) ) / + col0, - 63 + + col1 )
----
15
87
97

query II rowsort
SELECT DISTINCT - col2 AS col2, - 93 FROM tab2 AS cor0
----
-23
-93
-40
-93
-58
-93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-883
SELECT ALL 2 FROM tab0 AS cor0 WHERE CAST( - col2 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL 2 FROM tab0 AS cor0 WHERE CAST ( - col2 AS INTEGER ) BETWEEN NULL AND NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 75 + + - col0 AS col2 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT + 20 * - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT + 20 * - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
-57

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT - - 21 IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT - 89, 97 AS col2 FROM tab0 AS cor0
----
-89
97

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

query I rowsort
SELECT + col0 + 22 AS col0 FROM tab2 AS cor0
----
68
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT 19 - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 <= NULL
----
19

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT 19 - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 <= NULL
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-894
SELECT + 12, + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( - col0 ) - - col0 BETWEEN NULL AND + 30
----
12
0

skipif mysql # not compatible
query II rowsort label-894
SELECT + 12, + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( - col0 ) - - col0 BETWEEN NULL AND + 30
----
12
0

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

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

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

skipif mysql # not compatible
query I rowsort label-896
SELECT ( - + COUNT ( * ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-897
SELECT ALL + col2 + 64 DIV + col0 col0 FROM tab1
----
59
68
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-897
SELECT ALL + col2 + 64 / + col0 col0 FROM tab1
----
59
68
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-899
SELECT + CAST( NULL AS SIGNED ) + - + col2 AS col0, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-899
SELECT + CAST ( NULL AS INTEGER ) + - + col2 AS col0, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

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

query I rowsort
SELECT ALL 63 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( col1 * - col2 + + col1 + - ( - col2 ) * - col2, col2 )
----

query I rowsort
SELECT ALL 96 - - col1 FROM tab0 AS cor0
----
117
177
97

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT - COUNT( * ) + COUNT( * ) + - - 93 AS col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-903
SELECT - COUNT ( * ) + COUNT ( * ) + - - 93 AS col1 FROM tab0 AS cor0
----
93

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

query II rowsort
SELECT DISTINCT ( col0 ), + ( ( + col2 ) ) + - ( 67 ) AS col0 FROM tab2 AS cor0
----
46
-44
64
-27
75
-9

query I rowsort
SELECT + - col0 + + 85 FROM tab1 cor0
----
-6
0
34

query I rowsort
SELECT col0 * - + col1 FROM tab1 WHERE - col2 * - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT DISTINCT - + COUNT( * ) * - + MAX( + 1 ) - + ( 52 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT - + COUNT ( * ) * - + MAX ( + 1 ) - + ( 52 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

query I rowsort
SELECT DISTINCT - - 46 - col2 FROM tab0 AS cor0
----
-1
-53
36

query I rowsort
SELECT - - col0 - col1 + + + col2 * + col0 FROM tab2 AS cor0
----
1053
2547
4358

query I rowsort
SELECT ( + 32 ) - + col1 FROM tab1 AS cor0
----
-15
18
27

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT ALL + MAX( - + col2 ) * 47 - - 18 + + 0 col1 FROM tab2 AS cor0
----
-1063

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-912
SELECT ALL + MAX ( - + col2 ) * 47 - - 18 + + 0 col1 FROM tab2 AS cor0
----
-1063

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL - 3 * + - MIN( ALL - 2 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - 3 * + - MIN ( ALL - 2 ) FROM tab0 AS cor0
----
-6

query II rowsort
SELECT + col0 * + col1 + + 83 AS col1, - col1 FROM tab2 AS cor0
----
2429
-51
5011
-77
5108
-67

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT DISTINCT - 79 * - MIN( CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1
----
-7189

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT - 79 * - MIN ( CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1
----
-7189

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 54 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col1 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT - - COUNT( DISTINCT + + 18 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-924
SELECT - - COUNT ( DISTINCT + + 18 ) FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT ALL - COUNT( * ) * 73 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL - COUNT ( * ) * 73 FROM tab1 AS cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-927
SELECT DISTINCT - + 11 * + - ( CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
1001
561
935

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT - + 11 * + - ( CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
1001
561
935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-928
SELECT - col2 + 73 FROM tab1 AS cor0 WHERE CAST( col2 AS SIGNED ) NOT IN ( col2, col2, - + col0 + - - col2 )
----

skipif mysql # not compatible
query I rowsort label-928
SELECT - col2 + 73 FROM tab1 AS cor0 WHERE CAST ( col2 AS INTEGER ) NOT IN ( col2, col2, - + col0 + - - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 BETWEEN - - col0 * col0 AND - + 66
----

query I rowsort
SELECT + 26 + + + col2 FROM tab1 AS cor0
----
122
85
94

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

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

query I rowsort
SELECT - + 86 + - ( col1 ) AS col0 FROM tab0 cor0
----
-107
-167
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT ( + col2 ) DIV - col1 + 10 + col1 + + - 8 DIV + 79 * + 50 FROM tab1
----
18
4
56

skipif mysql # not compatible
query I rowsort label-933
SELECT ( + col2 ) / - col1 + 10 + col1 + + - 8 / + 79 * + 50 FROM tab1
----
18
4
56

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT - col2 DIV - 36 + - col1 FROM tab0
----
-21
-80
1

skipif mysql # not compatible
query I rowsort label-934
SELECT - col2 / - 36 + - col1 FROM tab0
----
-21
-80
1

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

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

query I rowsort
SELECT DISTINCT 15 + col0 AS col1 FROM tab2
----
61
79
90

query III rowsort
SELECT * FROM tab0 WHERE col2 / + col2 + col2 >= + - 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 56 + 42 * + col0 FROM tab2 AS cor0
----
1988
2744
3206

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT + 49 - + + 83 - - + COUNT( * ) col1 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-939
SELECT + 49 - + + 83 - - + COUNT ( * ) col1 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT + COUNT( * ) + + 18 + - - 46 col2 FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NULL >= NULL
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-940
SELECT + COUNT ( * ) + + 18 + - - 46 col2 FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NULL >= NULL
----
64

query I rowsort
SELECT ALL 91 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT - + 34 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query I rowsort label-943
SELECT - + 34 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER ) * col1
----

query I rowsort
SELECT - - 50 * col0 AS col0 FROM tab0 AS cor0
----
4350
4850
750

query I rowsort
SELECT + 93 * 39 FROM tab2 AS cor0
----
3627
3627
3627

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

query I rowsort
SELECT + col2 * - - col0 AS col1 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT + 87 * - COUNT( * ) FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-948
SELECT + 87 * - COUNT ( * ) FROM tab2
----
-261

query II rowsort
SELECT DISTINCT + + 3, - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 >= + + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 50 BETWEEN + + 27 AND 87 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT + COUNT( * ), + COUNT( * ) * + - 35 AS col1 FROM tab0 AS cor0
----
3
-105

skipif mysql # not compatible
query II rowsort label-953
SELECT + COUNT ( * ), + COUNT ( * ) * + - 35 AS col1 FROM tab0 AS cor0
----
3
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT DISTINCT - MAX( col2 ) * - + COUNT( * ) AS col0 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT - MAX ( col2 ) * - + COUNT ( * ) AS col0 FROM tab0
----
297

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

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT 81 + - - COUNT( * ) * - SUM( DISTINCT - 23 ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-956
SELECT 81 + - - COUNT ( * ) * - SUM ( DISTINCT - 23 ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-957
SELECT - 97 DIV 41 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-957
SELECT - 97 / 41 FROM tab0 AS cor0
----
-2
-2
-2

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

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

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

query I rowsort
SELECT - 85 * - - col1 AS col1 FROM tab0 AS cor0
----
-1785
-6885
-85

query I rowsort
SELECT ALL 97 + col0 + + col1 AS col1 FROM tab0
----
193
195
205

query I rowsort
SELECT DISTINCT - 95 * + + 13 * - col0 - + col1 AS col0 FROM tab2
----
56759
78963
92558

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT ALL + col0 DIV - col1 + + - ( + 61 ) AS col1 FROM tab0
----
-158
-61
-65

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL + col0 / - col1 + + - ( + 61 ) AS col1 FROM tab0
----
-158
-61
-65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL - 69 - + ( - MAX( DISTINCT + col2 ) ) col0 FROM tab1 cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-965
SELECT ALL - 69 - + ( - MAX ( DISTINCT + col2 ) ) col0 FROM tab1 cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= 73 * + - 78 * + 63 * - 37 / - - col1
----

query I rowsort
SELECT ALL - + ( + 18 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL - SUM( DISTINCT - + 79 ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL - SUM ( DISTINCT - + 79 ) FROM tab2 AS cor0
----
79

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

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

query I rowsort
SELECT ALL - 7 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT - SUM( ALL - 2 ) * - MAX( DISTINCT + - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
276

skipif mysql # not compatible
query I rowsort label-972
SELECT - SUM ( ALL - 2 ) * - MAX ( DISTINCT + - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
276

query I rowsort
SELECT - + 0 FROM tab1 AS cor0 WHERE NOT 18 / + col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query III rowsort label-974
SELECT DISTINCT - MAX( col2 ) AS col1, - ( + - COUNT( * ) ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-58
3
3

skipif mysql # not compatible
query III rowsort label-974
SELECT DISTINCT - MAX ( col2 ) AS col1, - ( + - COUNT ( * ) ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-58
3
3

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col2 ), - 54 col2 FROM tab0
----
-10
-54
-47
-54
-99
-54

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

onlyif mysql # DIV for integer division: 
query II rowsort label-978
SELECT ALL + ( - col1 ), - col0 DIV - 93 AS col0 FROM tab2
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-978
SELECT ALL + ( - col1 ), - col0 / - 93 AS col0 FROM tab2
----
-51
0
-67
0
-77
0

query I rowsort
SELECT ALL - col0 / + 5 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 16 * - + col0, + ( + col2 ) * - col2 col2 FROM tab1
----
-1360
-3481
-1456
-4624
-816
-9216

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

query I rowsort
SELECT DISTINCT + col2 + + + 50 FROM tab2 AS cor0
----
108
73
90

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 61 + + 13 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-984
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 9 - 49 < CAST( + col1 AS SIGNED ) + - ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-984
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 9 - 49 < CAST ( + col1 AS INTEGER ) + - ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-985
SELECT ALL + 24 / + + col1 * - 28 * + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL + 24 / + + col1 * - 28 * + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT 39 NOT BETWEEN col2 * col2 / col2 + 97 AND NULL
----

query I rowsort
SELECT DISTINCT - + 23 + - 51 FROM tab1 AS cor0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT + col2 DIV - + 98 * + col1 + col2 AS col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-988
SELECT + col2 / - + 98 * + col1 + col2 AS col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT + + 46 + + - ( 42 ) * - - col1 AS col2 FROM tab2 AS cor0
----
-2096
-2768
-3188

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 84 IS NOT NULL
----

query I rowsort
SELECT - 40 + + col0 AS col1 FROM tab0
----
-25
47
57

query I rowsort
SELECT DISTINCT col0 + col1 + + + col0 FROM tab2
----
143
205
217

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

skipif mysql # not compatible
query I rowsort label-993
SELECT MIN ( DISTINCT col2 ) AS col2 FROM tab0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-994
SELECT ALL + col2 + - col1 * CAST( NULL AS DECIMAL ) - + col0 col0, + 28 AS col0 FROM tab2
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-994
SELECT ALL + col2 + - col1 * CAST ( NULL AS REAL ) - + col0 col0, + 28 AS col0 FROM tab2
----
NULL
28
NULL
28
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL 41 + - - COUNT( * ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL 41 + - - COUNT ( * ) AS col1 FROM tab1
----
44

query I rowsort
SELECT ALL 93 * + - 87 - col2 AS col2 FROM tab0
----
-8101
-8138
-8190

query I rowsort
SELECT DISTINCT - 2 * + - 63 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
126

query I rowsort
SELECT - ( col1 ) * - ( - col1 ) FROM tab1 AS cor0
----
-196
-2209
-25

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + 86 col1, - col1 AS col2 FROM tab0 WHERE NOT 99 BETWEEN NULL AND col2
----
5
-81
65
-21

query I rowsort
SELECT ALL + 69 * + col1 AS col2 FROM tab2
----
3519
4623
5313

query I rowsort
SELECT ALL - 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

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

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 45
----

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

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

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

query II rowsort
SELECT ALL - col1 AS col0, + col1 FROM tab0 cor0 WHERE + col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL >= - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT - MIN( ALL + 29 ) AS col2 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-1009
SELECT - MIN ( ALL + 29 ) AS col2 FROM tab0
----
-29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT - col2 DIV + col2 + + + col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-1011
SELECT - col2 / + col2 + + + col0 FROM tab0 AS cor0
----
14
86
96

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

query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

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

query I rowsort
SELECT ALL - 67 + + col2 FROM tab0
----
-20
-57
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1016
SELECT COUNT( * ) + + 16 * - AVG ( ALL + - 14 ) AS col0, 34 + - + COUNT( * ) FROM tab1 AS cor0 WHERE + 6 + + col2 IS NULL
----
NULL
34

skipif mysql # not compatible
query II rowsort label-1016
SELECT COUNT ( * ) + + 16 * - AVG ( ALL + - 14 ) AS col0, 34 + - + COUNT ( * ) FROM tab1 AS cor0 WHERE + 6 + + col2 IS NULL
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - - COUNT( 38 ) * - 50 * - 67 AS col0 FROM tab2 AS cor0
----
10050

skipif mysql # not compatible
query I rowsort label-1017
SELECT - - COUNT ( 38 ) * - 50 * - 67 AS col0 FROM tab2 AS cor0
----
10050

query I rowsort
SELECT DISTINCT + 83 - col2 AS col0 FROM tab1 AS cor0
----
-13
15
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT col1 - + col1 + - - col2 DIV + + 52 + + col0 AS col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-1019
SELECT col1 - + col1 + - - col2 / + + 52 + + col0 AS col1 FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL 33 - COUNT( * ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL 33 - COUNT ( * ) AS col0 FROM tab2
----
30

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 - - + col1 col1 FROM tab1
----
22
31
64

query I rowsort
SELECT 24 + 98 FROM tab0
----
122
122
122

query I rowsort
SELECT col2 * + - col0 + + col0 FROM tab2
----
-1012
-2496
-4275

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 <> col0
----

query I rowsort
SELECT + 7 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + 97 * COUNT( * ) AS col0 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + 97 * COUNT ( * ) AS col0 FROM tab1
----
291

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

skipif mysql # not compatible
query I rowsort label-1029
SELECT - COUNT ( * ) / - 37 AS col2 FROM tab1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT DISTINCT - COUNT( * ) * + - 72 AS col2 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT - COUNT ( * ) * + - 72 AS col2 FROM tab0 AS cor0
----
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * ( ( - + col2 ) ) col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * col0 >= col1
----
46
64
75

query I rowsort
SELECT ALL - col0 * - 52 AS col2 FROM tab2 AS cor0
----
2392
3328
3900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 1 - col2 + + col0 col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-3
-33
76

query II rowsort
SELECT DISTINCT col1 * col2 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
1344
-14
295
-5
3196
-47

query I rowsort
SELECT ( - - col2 ) * + + ( - - 9 ) FROM tab0
----
423
891
90

onlyif mysql # DIV for integer division: 
query II rowsort label-1038
SELECT 97 + col1 DIV - col0, col0 FROM tab2
----
96
46
96
64
97
75

skipif mysql # not compatible
query II rowsort label-1038
SELECT 97 + col1 / - col0, col0 FROM tab2
----
96
46
96
64
97
75

query I rowsort
SELECT col1 * - ( 62 ) + - + col2 - + 90 AS col0 FROM tab1
----
-1054
-3072
-459

query I rowsort
SELECT - col1 + - 14 FROM tab2
----
-65
-81
-91

query III rowsort
SELECT * FROM tab0 WHERE + col0 < - 74
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1042
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + 56 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1042
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + 56 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 72
----

query I rowsort
SELECT DISTINCT - col1 + col0 * - 65 FROM tab1 AS cor0
----
-3329
-5530
-5962

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT 29 + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT 29 + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1
----
29

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 76 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL + 68 - - 19 AS col2 FROM tab1
----
87
87
87

query I rowsort
SELECT ALL - + 58 + + + col2 AS col2 FROM tab0 cor0
----
-11
-48
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL COUNT( ALL + 89 ) - 68 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL COUNT ( ALL + 89 ) - 68 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT col0 + - - 53 + + + col1 AS col1 FROM tab1 AS cor0
----
118
143
191

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + + col0 col1 FROM tab0 AS cor0
----
0
72
82

query I rowsort
SELECT ALL - col1 * + + 52 AS col2 FROM tab0 AS cor0
----
-1092
-4212
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + - col2 + - col2 col2 FROM tab1 cor0
----
-113
-178
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-1055
SELECT col0 + + col2 + + col1 + + - 0 DIV - + 5 * - col1, + col0 FROM tab1 AS cor0
----
149
85
161
51
206
91

skipif mysql # not compatible
query II rowsort label-1055
SELECT col0 + + col2 + + col1 + + - 0 / - + 5 * - col1, + col0 FROM tab1 AS cor0
----
149
85
161
51
206
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT + COUNT( * ) + COUNT( * ) col1 FROM tab2 cor0
----
6

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

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

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

query I rowsort
SELECT col1 * + + 74 AS col1 FROM tab1
----
1036
3478
370

query II rowsort
SELECT ALL col1 + col2 AS col1, ( - col1 ) AS col0 FROM tab1
----
110
-14
115
-47
64
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1060
SELECT ALL COUNT( ALL col0 ) AS col1, + 49 AS col0 FROM tab1
----
3
49

skipif mysql # not compatible
query II rowsort label-1060
SELECT ALL COUNT ( ALL col0 ) AS col1, + 49 AS col0 FROM tab1
----
3
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT + ( - ( COUNT( * ) ) ) AS col2 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1062
SELECT + ( - ( COUNT ( * ) ) ) AS col2 FROM tab2, tab1 AS cor0
----
-9

query I rowsort
SELECT ALL - col1 + - col1 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND col2
----

query I rowsort
SELECT - + 47 * - - col2 * - col1 FROM tab0 AS cor0
----
178929
4653
9870

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT DISTINCT COUNT( * ) * 20 AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT COUNT ( * ) * 20 AS col1 FROM tab1 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1066
SELECT ALL * FROM tab1 cor0 WHERE - 22 + - col0 * col0 + - CAST( - 71 AS SIGNED ) NOT BETWEEN NULL AND col1 * + col0
----

skipif mysql # not compatible
query III rowsort label-1066
SELECT ALL * FROM tab1 cor0 WHERE - 22 + - col0 * col0 + - CAST ( - 71 AS INTEGER ) NOT BETWEEN NULL AND col1 * + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT col1 * col0 * col2 * col2 + - 63 AS col2 FROM tab2
----
1240971
16904037
7884737

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

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

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

query I rowsort
SELECT DISTINCT + 42 * 82 FROM tab1 AS cor0
----
3444

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1073
SELECT + 6 / - + 61 + col0 col1 FROM tab1 AS cor0
----
51
85
91

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT DISTINCT - - ( col2 ) + CAST( - col0 AS SIGNED ) FROM tab2 WHERE NOT col1 IS NULL
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT - - ( col2 ) + CAST ( - col0 AS INTEGER ) FROM tab2 WHERE NOT col1 IS NULL
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1077
SELECT * FROM tab0 WHERE - col0 - + CAST( + 11 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1077
SELECT * FROM tab0 WHERE - col0 - + CAST ( + 11 AS INTEGER ) IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1079
SELECT ALL col1 * + 93 * col0 DIV col0 FROM tab2 AS cor0
----
4743
6231
7161

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL col1 * + 93 * col0 / col0 FROM tab2 AS cor0
----
4743
6231
7161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1080
SELECT - SUM( + + col2 ) * + 29 FROM tab0 WHERE - + col2 >= + CAST( 61 AS SIGNED ) / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT - SUM ( + + col2 ) * + 29 FROM tab0 WHERE - + col2 >= + CAST ( 61 AS INTEGER ) / - 45
----
NULL

query I rowsort
SELECT DISTINCT + - 21 FROM tab2 WHERE NULL IS NULL
----
-21

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1083
SELECT DISTINCT 91 - - COUNT( + 70 ) AS col1, 98 AS col1 FROM tab1 AS cor0
----
94
98

skipif mysql # not compatible
query II rowsort label-1083
SELECT DISTINCT 91 - - COUNT ( + 70 ) AS col1, 98 AS col1 FROM tab1 AS cor0
----
94
98

query I rowsort
SELECT ALL 83 * + 65 - - - col1 * + col0 FROM tab1 AS cor0
----
1118
4681
4970

query I rowsort
SELECT DISTINCT + 72 FROM tab0 AS cor0 WHERE NOT - col0 <= col0
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 cor0 WHERE + col1 * 82 IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT + 81 - - col2 DIV col2 * - col2 - - + col0 + ( - 83 ) * - col1 FROM tab0 AS cor0
----
162
1901
6772

skipif mysql # not compatible
query I rowsort label-1087
SELECT + 81 - - col2 / col2 * - col2 - - + col0 + ( - 83 ) * - col1 FROM tab0 AS cor0
----
162
1901
6772

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 26 col0, - col1 + - col0 AS col2 FROM tab0
----
-26
-108
-26
-96
-26
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1090
SELECT + col0 AS col2 FROM tab0 WHERE NOT 75 = + - CAST( + - col1 AS SIGNED )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1090
SELECT + col0 AS col2 FROM tab0 WHERE NOT 75 = + - CAST ( + - col1 AS INTEGER )
----
15
87
97

query II rowsort
SELECT ALL + 73 AS col0, + col1 FROM tab1
----
73
14
73
47
73
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1092
SELECT DISTINCT - COUNT( * ), COUNT( * ) * - SUM( - ( - col2 ) ) AS col2 FROM tab0
----
-3
-468

skipif mysql # not compatible
query II rowsort label-1092
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) * - SUM ( - ( - col2 ) ) AS col2 FROM tab0
----
-3
-468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - col0 col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 15 NOT BETWEEN NULL AND + col1
----

query II rowsort
SELECT ALL col2 AS col1, col2 * - + col1 AS col1 FROM tab2 cor0
----
23
-1173
40
-3080
58
-3886

query II rowsort
SELECT ALL + col1 AS col0, col0 * + 71 FROM tab1 AS cor0
----
14
3621
47
6461
5
6035

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN - 33 AND col1 / + + 66 + - - col0 * - col2 * + col0 + + - 90
----

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

query II rowsort
SELECT DISTINCT - col1, col1 * - 35 AS col0 FROM tab0 AS cor0
----
-1
-35
-21
-735
-81
-2835

query II rowsort
SELECT - - 92, col1 AS col2 FROM tab2 AS cor0
----
92
51
92
67
92
77

query I rowsort
SELECT ALL - col1 + - 13 AS col1 FROM tab2 AS cor0 WHERE ( + col1 * 34 ) = + col2 + col1 * col1 + + 95 * + + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL - SUM( col1 ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1102
SELECT ALL - SUM ( col1 ) col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1103
SELECT - 84 * + - col2 AS col0, col0 * + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
1932
NULL
3360
NULL
4872
NULL

skipif mysql # not compatible
query II rowsort label-1103
SELECT - 84 * + - col2 AS col0, col0 * + + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
1932
NULL
3360
NULL
4872
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1105
SELECT DISTINCT - + COUNT( col0 ), 70 AS col0 FROM tab0 cor0
----
-3
70

skipif mysql # not compatible
query II rowsort label-1105
SELECT DISTINCT - + COUNT ( col0 ), 70 AS col0 FROM tab0 cor0
----
-3
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1106
SELECT - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1
----
-6

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

query I rowsort
SELECT DISTINCT - ( + + col2 ) * - - 88 + - 7 + - + col0 FROM tab2
----
-2077
-3591
-5186

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

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

query I rowsort
SELECT col0 * col1 * - 36 * + + col0 + + col2 FROM tab1
----
-1300441
-1310808
-14011384

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT + 29 + - COUNT( * ) AS col2 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT + 29 + - COUNT ( * ) AS col2 FROM tab0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1112
SELECT * FROM tab0 WHERE CAST( - 20 AS SIGNED ) + - col1 NOT BETWEEN - 97 AND + + 92 * - 76 * 50 + + - ( - col1 ) + + ( - - 22 ) * - + 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1112
SELECT * FROM tab0 WHERE CAST ( - 20 AS INTEGER ) + - col1 NOT BETWEEN - 97 AND + + 92 * - 76 * 50 + + - ( - col1 ) + + ( - - 22 ) * - + 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT 36 DIV + col0 * 82 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1113
SELECT 36 / + col0 * 82 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query II rowsort label-1114
SELECT - + COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT 7 - col0 + 83 + + + col1 + - 89 DIV ( ( col1 ) ) + + col1 FROM tab0 AS cor0
----
-94
236
41

skipif mysql # not compatible
query I rowsort label-1115
SELECT 7 - col0 + 83 + + + col1 + - 89 / ( ( col1 ) ) + + col1 FROM tab0 AS cor0
----
-94
236
41

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE 8 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + col1 * 27 AS col2 FROM tab2
----
1377
1809
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT 14 + - MAX( ALL - 69 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-1118
SELECT 14 + - MAX ( ALL - 69 ) FROM tab0
----
83

query I rowsort
SELECT DISTINCT + col0 * 47 AS col1 FROM tab1
----
2397
3995
4277

query I rowsort
SELECT 38 * + col0 AS col1 FROM tab0
----
3306
3686
570

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT MAX( + 67 ) - - COUNT( + ( col2 ) + 34 * + col0 ) AS col1 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-1121
SELECT MAX ( + 67 ) - - COUNT ( + ( col2 ) + 34 * + col0 ) AS col1 FROM tab2
----
70

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

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

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

query I rowsort
SELECT DISTINCT - 83 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT MAX( col2 ) * + 37 - COUNT( * ) AS col2 FROM tab2
----
2143

skipif mysql # not compatible
query I rowsort label-1126
SELECT MAX ( col2 ) * + 37 - COUNT ( * ) AS col2 FROM tab2
----
2143

query I rowsort
SELECT DISTINCT 25 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 AS col1 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT DISTINCT - 86 + - col0 FROM tab1
----
-137
-171
-177

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1130
SELECT ALL CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab0 WHERE NULL < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab0 WHERE NULL < - col2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 40 ) <> 29 + + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 18 * - 92 ) NOT BETWEEN - 72 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * - col1 col0 FROM tab0 AS cor0
----
-2106
-26
-546

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 * - col0 ) > ( 69 * 43 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 31 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT - SUM( 75 ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-1138
SELECT - SUM ( 75 ) FROM tab2 AS cor0
----
-225

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * - col1 col0 FROM tab0 AS cor0
----
-1539
-19
-399

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

skipif mysql # not compatible
query I rowsort label-1141
SELECT + + 28 / + col2 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - COUNT ( ALL + col2 ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT - - COUNT( * ) * 90 AS col1 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-1144
SELECT - - COUNT ( * ) * 90 AS col1 FROM tab0 AS cor0
----
270

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1145
SELECT ( - CAST( ( CAST( 39 AS DECIMAL ) ) AS SIGNED ) ) AS col1 FROM tab2 cor0 WHERE - col0 * col1 < - col1 + col0 * CAST( + ( 35 ) AS SIGNED )
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-1145
SELECT ( - CAST ( ( CAST ( 39 AS REAL ) ) AS INTEGER ) ) AS col1 FROM tab2 cor0 WHERE - col0 * col1 < - col1 + col0 * CAST ( + ( 35 ) AS INTEGER )
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT ALL 89 DIV - col1 + - 98 FROM tab0
----
-102
-187
-99

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL 89 / - col1 + - 98 FROM tab0
----
-102
-187
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + COUNT( * ) FROM tab2 WHERE col1 < col1
----
0

skipif mysql # not compatible
query I rowsort label-1147
SELECT + COUNT ( * ) FROM tab2 WHERE col1 < col1
----
0

query I rowsort
SELECT - 19 + col1 * col0 AS col0 FROM tab1
----
406
4258
695

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT DISTINCT col0 * + CAST( - col0 * + col0 AS SIGNED ) AS col2 FROM tab2
----
-262144
-421875
-97336

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT col0 * + CAST ( - col0 * + col0 AS INTEGER ) AS col2 FROM tab2
----
-262144
-421875
-97336

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE ( NULL ) < NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 >= ( + 73 )
----

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

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col1 NOT BETWEEN ( + col2 ) AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > col1 - ( col0 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT ALL - 78 DIV COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL - 78 / COUNT ( * ) FROM tab2
----
-26

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1160
SELECT ALL + SUM( ALL 95 ) DIV + MIN( col1 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + SUM ( ALL 95 ) / + MIN ( col1 ) FROM tab2
----
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col2 * col1 - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1162
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col2 * col1 - col1 IS NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-1163
SELECT + col2 + col0 / CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT ALL 27 DIV col1 + col2 DIV col2 FROM tab0
----
1
2
28

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL 27 / col1 + col2 / col2 FROM tab0
----
1
2
28

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * 4 + - col2 NOT IN ( + 46 + ( - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT + 58 DIV COUNT( * ) col1 FROM tab0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1168
SELECT + 58 / COUNT ( * ) col1 FROM tab0
----
19

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

query I rowsort
SELECT ALL + 98 + col2 * + col2 AS col0 FROM tab0
----
198
2307
9899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1171
SELECT ALL - ( CAST( + col1 AS SIGNED ) ) AS col1 FROM tab0 WHERE + col1 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL - ( CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab0 WHERE + col1 <= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 + + 35 FROM tab0
----
122
132
50

query I rowsort
SELECT - col1 FROM tab1 WHERE col2 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT DISTINCT - MAX( 18 ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT - MAX ( 18 ) AS col0 FROM tab2
----
-18

query I rowsort
SELECT col0 * 73 AS col2 FROM tab1 AS cor0
----
3723
6205
6643

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

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

query I rowsort
SELECT ALL - col1 * 25 AS col0 FROM tab0 AS cor0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL + 74 * - SUM( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-14430

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + 74 * - SUM ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-14430

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1181
SELECT DISTINCT COUNT( CAST( - 82 AS SIGNED ) ) * - 44 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT COUNT ( CAST ( - 82 AS INTEGER ) ) * - 44 FROM tab2 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT + COUNT( * ) * - 98 + 82 * + 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
5678

skipif mysql # not compatible
query I rowsort label-1182
SELECT + COUNT ( * ) * - 98 + 82 * + 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
5678

query I rowsort
SELECT DISTINCT - 91 * 65 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 46 * 91 FROM tab0
----
-4186

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1186
SELECT ALL - + CAST( col1 AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - + CAST ( col1 AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT - 66 * COUNT( * ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1187
SELECT - 66 * COUNT ( * ) FROM tab2 AS cor0
----
-198

query I rowsort
SELECT DISTINCT col1 * 64 FROM tab0 AS cor0
----
1344
5184
64

query I rowsort
SELECT ALL + 16 * + col2 AS col1 FROM tab2 AS cor0
----
368
640
928

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 20 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT DISTINCT + SUM( DISTINCT + col0 ) * 75 FROM tab1 AS cor0
----
17025

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + SUM ( DISTINCT + col0 ) * 75 FROM tab1 AS cor0
----
17025

query I rowsort
SELECT ALL + ( 99 ) FROM tab1 cor0
----
99
99
99

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

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

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

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

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

query I rowsort
SELECT - - 83 * 17 FROM tab0 cor0
----
1411
1411
1411

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT - COUNT( * ) * 63 col1 FROM tab0 AS cor0 WHERE NOT ( + col1 * - col0 ) > + col1
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1199
SELECT DISTINCT - COUNT ( * ) * 63 col1 FROM tab0 AS cor0 WHERE NOT ( + col1 * - col0 ) > + col1
----
-189

query I rowsort
SELECT ALL col2 * - 45 FROM tab0 AS cor0
----
-2115
-4455
-450

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 - + col1 NOT BETWEEN col2 - - 38 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * col2 + 98 AS col0 FROM tab1 WHERE NOT + 67 <> NULL
----

query I rowsort
SELECT DISTINCT ( + ( - col0 ) ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT + 58 + + ( MIN( + col1 ) ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-1205
SELECT + 58 + + ( MIN ( + col1 ) ) FROM tab0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT CAST( + col1 AS SIGNED ) + - 45 FROM tab1
----
-31
-40
2

skipif mysql # not compatible
query I rowsort label-1206
SELECT CAST ( + col1 AS INTEGER ) + - 45 FROM tab1
----
-31
-40
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL COUNT( * ) * COUNT( * ) + 70 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL COUNT ( * ) * COUNT ( * ) + 70 FROM tab2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT - 24 + + CAST( + col0 AS SIGNED ) FROM tab0
----
-9
63
73

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 24 + + CAST ( + col0 AS INTEGER ) FROM tab0
----
-9
63
73

query I rowsort
SELECT + ( + + 67 ) + ( 43 ) AS col2 FROM tab1 AS cor0
----
110
110
110

query I rowsort
SELECT DISTINCT col0 + + + col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL ( 18 ) FROM tab2 AS cor0 WHERE - 70 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT ALL + 83 + + - COUNT( * ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL + 83 + + - COUNT ( * ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT + 35 AS col1 FROM tab0 cor0 WHERE 38 + col1 IS NOT NULL
----
35
35
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL - 36 + - 19 * + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-207

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL - 36 + - 19 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1216
SELECT + col0 + + CAST( - 13 AS SIGNED ) FROM tab1 WHERE NULL >= - - col0 + col0
----

skipif mysql # not compatible
query I rowsort label-1216
SELECT + col0 + + CAST ( - 13 AS INTEGER ) FROM tab1 WHERE NULL >= - - col0 + col0
----

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

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

query I rowsort
SELECT DISTINCT + 91 * + 92 AS col0 FROM tab2 WHERE NULL BETWEEN + - col1 * col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 * - - ( - col2 ) ) <> NULL
----

query I rowsort
SELECT - + 62 + - col2 + ( col0 ) FROM tab1 AS cor0
----
-107
-36
-39

query I rowsort
SELECT - + col1 * + col2 + - - 35 AS col0 FROM tab2 AS cor0
----
-1138
-3045
-3851

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + 12 + 27 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 88 BETWEEN col0 / + col2 - col2 * + col1 AND + col0
----
91
47
68

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

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

query I rowsort
SELECT DISTINCT + col0 - - 44 AS col0 FROM tab2 AS cor0
----
108
119
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1227
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + - col2 AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1227
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + - col2 AS INTEGER ) * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT DISTINCT - COUNT( ALL - - col2 ) + + 66 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT - COUNT ( ALL - - col2 ) + + 66 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1229
SELECT ALL - 82, MIN( ALL + col0 ) col2 FROM tab2 AS cor0
----
-82
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1229
SELECT ALL - 82, MIN ( ALL + col0 ) col2 FROM tab2 AS cor0
----
-82
46

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 96 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - 30 FROM tab2 WHERE NOT ( + + col0 ) IS NULL
----
-30
-30
-30

query I rowsort
SELECT 62 * - + col2 * - + 18 * 1 * - 50 AS col0 FROM tab2
----
-1283400
-2232000
-3236400

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

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL - col1 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) + col1 BETWEEN + col1 AND col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 27 * col0 col0 FROM tab0
----
2619
32805
49329

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1239
SELECT + CAST( col1 AS SIGNED ), - ( col2 ) DIV col2 AS col2 FROM tab0
----
1
-1
21
-1
81
-1

skipif mysql # not compatible
query II rowsort label-1239
SELECT + CAST ( col1 AS INTEGER ), - ( col2 ) / col2 AS col2 FROM tab0
----
1
-1
21
-1
81
-1

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 26 NOT BETWEEN NULL AND ( - + 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 95 AS col0 FROM tab1 WHERE NOT - - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL SUM( DISTINCT - + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL SUM ( DISTINCT - + col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT MAX( ALL 62 ) * + - 10 FROM tab0
----
-620

skipif mysql # not compatible
query I rowsort label-1245
SELECT MAX ( ALL 62 ) * + - 10 FROM tab0
----
-620

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1248
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( ( CAST( NULL AS SIGNED ) ) ) < - 9
----

skipif mysql # not compatible
query IIIIII rowsort label-1248
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( ( CAST ( NULL AS INTEGER ) ) ) < - 9
----

query I rowsort
SELECT DISTINCT col1 * - 39 / - + col2 - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( + ( - 18 ) ) * - 46 ) <> ( 35 )
----

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

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

query I rowsort
SELECT ALL col2 * - - 56 + + col0 FROM tab1 AS cor0
----
3389
3899
5427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1253
SELECT DISTINCT + + col2 - + - col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT + + col2 - + - col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = NULL
----

query II rowsort
SELECT 71, col0 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
71
2601
71
7225
71
8281

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

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

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

query II rowsort
SELECT ALL - col0 * + col0 + + + col2 AS col1, - ( col1 ) FROM tab2 AS cor0
----
-2093
-51
-4056
-77
-5567
-67

query I rowsort
SELECT - 54 * - col1 AS col0 FROM tab0 cor0
----
1134
4374
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT + + col2 DIV - - col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1259
SELECT + + col2 / - - col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT ALL 15 FROM tab2 WHERE - + col2 + col0 * - col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + MAX( DISTINCT + ( + - col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1262
SELECT + MAX ( DISTINCT + ( + - col2 ) ) FROM tab2
----
-23

query II rowsort
SELECT col2, 29 AS col2 FROM tab1
----
59
29
68
29
96
29

query III rowsort
SELECT * FROM tab2 WHERE - 18 * col0 <= NULL
----

query I rowsort
SELECT col1 * 31 * - col0 AS col0 FROM tab2
----
-152768
-155775
-72726

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1269
SELECT DISTINCT - 65, + 34 DIV + col2 AS col1 FROM tab0 AS cor0
----
-65
0
-65
3

skipif mysql # not compatible
query II rowsort label-1269
SELECT DISTINCT - 65, + 34 / + col2 AS col1 FROM tab0 AS cor0
----
-65
0
-65
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1270
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-1270
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 48 + col0 ) <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 75 - 57 AS col2 FROM tab2 AS cor0
----
-132
-132
-132

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1, col0 - - col2 * - col0 AS col2, col2 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
9 values hashing to a3ec2daee181e23334acb6edf5a11862

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT - + col1 - - col1 DIV + ( - 18 ) + - 73 AS col2 FROM tab2 AS cor0
----
-126
-143
-154

skipif mysql # not compatible
query I rowsort label-1276
SELECT - + col1 - - col1 / + ( - 18 ) + - 73 AS col2 FROM tab2 AS cor0
----
-126
-143
-154

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT - + MIN( + 21 ) AS col0 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1278
SELECT - + MIN ( + 21 ) AS col0 FROM tab0 AS cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1279
SELECT + - COUNT( - - col1 ), CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1279
SELECT + - COUNT ( - - col1 ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - col2 + + col2 >= NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 - + col0 ) <> ( ( 89 ) - + 92 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + 27 + + col2, col0 + + 96 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT SUM( DISTINCT + + 61 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1286
SELECT SUM ( DISTINCT + + 61 ) FROM tab2
----
61

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * 98 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + 1 ) AS col2 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2 AS col2, + col0 col2 FROM tab0
----
2
15
2
87
2
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + 77 * - + COUNT( * ) FROM tab1 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-1290
SELECT + 77 * - + COUNT ( * ) FROM tab1 cor0
----
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + + col1 col1, col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col0 AS col0, col2 + - 81 FROM tab2 AS cor0
----
-46
-58
-64
-41
-75
-23

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

skipif mysql # not compatible
query II rowsort label-1293
SELECT ALL - COUNT ( * ) AS col0, + SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
-3
185

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - col1 ) BETWEEN col0 * - col0 AND + 9 + + - 33
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1295
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, COUNT( DISTINCT + + col2 ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1295
SELECT ALL CAST ( NULL AS REAL ) AS col1, COUNT ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
NULL
3

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

skipif mysql # not compatible
query II rowsort label-1296
SELECT - - CAST ( + - 19 AS INTEGER ) AS col1, - col1 FROM tab2 AS cor0
----
-19
-51
-19
-67
-19
-77

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

query I rowsort
SELECT ALL + 71 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 11 * - + col2 - - + 23 AS col1 FROM tab2 AS cor0
----
276
463
661

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT + col0 DIV col1 * - ( - col1 ) FROM tab1 AS cor0
----
42
47
85

skipif mysql # not compatible
query I rowsort label-1300
SELECT + col0 / col1 * - ( - col1 ) FROM tab1 AS cor0
----
42
47
85

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( - col2 ) = 71
----

query I rowsort
SELECT col2 + - + 38 FROM tab2
----
-15
2
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT 63 + + + SUM( DISTINCT + col1 ) AS col1 FROM tab0
----
166

skipif mysql # not compatible
query I rowsort label-1303
SELECT 63 + + + SUM ( DISTINCT + col1 ) AS col1 FROM tab0
----
166

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

query I rowsort
SELECT DISTINCT - col1 * - 81 + col1 - - 28 * + 50 FROM tab1
----
1810
2548
5254

query I rowsort
SELECT DISTINCT - col0 + - 38 FROM tab0
----
-125
-135
-53

query I rowsort
SELECT ALL - 89 * - - col1 FROM tab0 WHERE + + 49 + - col1 NOT BETWEEN ( col2 + + 15 ) AND NULL
----
-7209
-89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT ALL - CAST( + 86 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE 90 * - ( - ( - col2 ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL - CAST ( + 86 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE 90 * - ( - ( - col2 ) ) IS NULL
----

query I rowsort
SELECT ALL - col0 - + 60 * - 48 FROM tab1 AS cor0
----
2789
2795
2829

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

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL col1 + - - ( + 40 ) * + - CAST ( NULL AS REAL ) * + col0 * 74 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( - col0 ) + col2 col1 FROM tab2 AS cor0
----
2139
4136
5683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1315
SELECT DISTINCT COUNT( * ) DIV - 53 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1315
SELECT DISTINCT COUNT ( * ) / - 53 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1316
SELECT DISTINCT + 92 * - + CAST( NULL AS SIGNED ) AS col1, + MIN( - - col0 ) FROM tab1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-1316
SELECT DISTINCT + 92 * - + CAST ( NULL AS INTEGER ) AS col1, + MIN ( - - col0 ) FROM tab1
----
NULL
51

query I rowsort
SELECT ALL col1 + - col0 * col0 FROM tab2
----
-2065
-4019
-5558

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT - 17 + - COUNT( * ) AS col1 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1318
SELECT - 17 + - COUNT ( * ) AS col1 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT COUNT( * ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + + col0 * 33 FROM tab2 AS cor0
----
1518
2112
2475

query II rowsort
SELECT + col1, 27 * - col2 AS col0 FROM tab2 AS cor0
----
51
-621
67
-1566
77
-1080

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

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

query II rowsort
SELECT DISTINCT col2, - col1 - + - col1 * - 5 AS col1 FROM tab2 AS cor0
----
23
-306
40
-462
58
-402

query II rowsort
SELECT ALL ( - - col2 ) AS col2, - col2 AS col2 FROM tab1 cor0
----
59
-59
68
-68
96
-96

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

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

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

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

query I rowsort
SELECT + col2 * + + col2 * + + col0 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT - AVG ( - col1 ) * + 26 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1329
SELECT ( CAST( col2 AS SIGNED ) ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1329
SELECT ( CAST ( col2 AS INTEGER ) ) FROM tab0
----
10
47
99

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL - COUNT( col0 ) * MAX( + col1 ) col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1333
SELECT ALL - COUNT ( col0 ) * MAX ( + col1 ) col0 FROM tab2 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT ALL MIN( - + col0 ) / + 50 FROM tab2 AS cor0 WHERE 96 IN ( + col2 * - 14, + ( + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL MIN ( - + col0 ) / + 50 FROM tab2 AS cor0 WHERE 96 IN ( + col2 * - 14, + ( + col2 ) )
----
NULL

query I rowsort
SELECT - 49 * col2 AS col2 FROM tab0 AS cor0
----
-2303
-4851
-490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + + + 35 col1 FROM tab0
----
106
106
106

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

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

query II rowsort
SELECT - col1 AS col2, col1 * col1 FROM tab1 AS cor0
----
-14
196
-47
2209
-5
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ALL - COUNT( * ) + + 54 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
54

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL - COUNT ( * ) + + 54 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
54

query I rowsort
SELECT ALL + col1 * - - 99 * + col0 * - col2 + + col1 FROM tab0 AS cor0
----
-1808709
-5653314
-950696

onlyif mysql # aggregate syntax: 
query II rowsort label-1341
SELECT ALL COUNT( * ) AS col2, - 37 FROM tab0 AS cor0
----
3
-37

skipif mysql # not compatible
query II rowsort label-1341
SELECT ALL COUNT ( * ) AS col2, - 37 FROM tab0 AS cor0
----
3
-37

query I rowsort
SELECT - - ( 98 ) FROM tab1 AS cor0
----
98
98
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT + + COUNT( + col0 ) * + + COUNT( * ) * 35 col1 FROM tab0 AS cor0
----
315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1344
SELECT + + COUNT ( + col0 ) * + + COUNT ( * ) * 35 col1 FROM tab0 AS cor0
----
315

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + col2 < 45 * col0 )
----

query I rowsort
SELECT DISTINCT + 80 + col1 FROM tab0
----
101
161
81

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

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

query I rowsort
SELECT - col1 + - 53 AS col1 FROM tab0
----
-134
-54
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT - col2 DIV + 51 + + ( - 13 ) + + + col1 * col0 FROM tab0 cor0
----
1202
1814
83

skipif mysql # not compatible
query I rowsort label-1350
SELECT - col2 / + 51 + + ( - 13 ) + + + col1 * col0 FROM tab0 cor0
----
1202
1814
83

query I rowsort
SELECT ALL + 26 + 29 FROM tab0 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT DISTINCT 44 - CAST( + - 17 AS SIGNED ) FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT 44 - CAST ( + - 17 AS INTEGER ) FROM tab1 AS cor0
----
61

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

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

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

query II rowsort
SELECT - 29 AS col2, - ( + + col2 ) FROM tab2 AS cor0
----
-29
-23
-29
-40
-29
-58

query I rowsort
SELECT + - 96 * 86 - + - col2 AS col1 FROM tab0 AS cor0
----
-8157
-8209
-8246

query I rowsort
SELECT DISTINCT + - 47 * + col0 AS col2 FROM tab0 AS cor0
----
-4089
-4559
-705

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + + 74 IS NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT - + 58 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 - 51 - + - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1363
SELECT ALL + CAST( - - col2 AS SIGNED ), + 33 * - col1 + + col1 col0 FROM tab0
----
10
-672
47
-2592
99
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1363
SELECT ALL + CAST ( - - col2 AS INTEGER ), + 33 * - col1 + + col1 col0 FROM tab0
----
10
-672
47
-2592
99
-32

query I rowsort
SELECT 49 * - 24 + - + col0 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-1191
-1263
-1273

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

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

query II rowsort
SELECT 29 AS col2, 59 AS col2 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1367
SELECT ALL - SUM( + 63 ) AS col0, + 85 FROM tab0
----
-189
85

skipif mysql # not compatible
query II rowsort label-1367
SELECT ALL - SUM ( + 63 ) AS col0, + 85 FROM tab0
----
-189
85

query I rowsort
SELECT DISTINCT - + ( - col0 ) AS col0 FROM tab1 cor0
----
51
85
91

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

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

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

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 + + 16 + + ( 85 ) AS col1 FROM tab0 cor0
----
116
188
198

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 11 IS NOT NULL
----

query I rowsort
SELECT - 5 + + + col0 FROM tab1
----
46
80
86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT ALL col1 + + - col0 - + + ( 29 ) DIV - + col0 * - - col1 AS col1 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL col1 + + - col0 - + + ( 29 ) / - + col0 * - - col1 AS col1 FROM tab1
----
-37
-44
-80

query II rowsort
SELECT + col2 AS col0, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT ALL + col2 * - - col1 + 58 - + 21 * + + col2 FROM tab2
----
2298
2726
748

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

skipif mysql # not compatible
query I rowsort label-1383
SELECT COUNT ( - + 66 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL + + MIN( DISTINCT + - 99 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL + + MIN ( DISTINCT + - 99 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

query I rowsort
SELECT DISTINCT + 8 * - - col2 * col0 AS col2 FROM tab0
----
5640
6960
76824

query I rowsort
SELECT DISTINCT - col0 * + 56 + - col0 FROM tab0 cor0
----
-4959
-5529
-855

query I rowsort
SELECT ALL + + col2 * - col1 + - 57 FROM tab2 AS cor0
----
-1230
-3137
-3943

query I rowsort
SELECT ALL + col0 * - - 88 FROM tab2 AS cor0
----
4048
5632
6600

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

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - + col1 + - + col1 * 12 * + 81 * 94 / col0 * 48 IS NULL )
----
-23
-40
-58

query I rowsort
SELECT ALL 79 * col0 AS col0 FROM tab2 AS cor0
----
3634
5056
5925

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT DISTINCT - + col0 * - col0 * - 83 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
-11009982
-50972290
-62546302

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

query I rowsort
SELECT DISTINCT + 36 * 27 * + - col0 + + + col2 AS col1 FROM tab1 AS cor0
----
-49476
-82561
-88384

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT DISTINCT - + SUM( + 66 ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT - + SUM ( + 66 ) FROM tab2 AS cor0
----
-198

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1398
SELECT + 22 AS col1, - col1 DIV - + 71 + - - col1 FROM tab2
----
22
51
22
67
22
78

skipif mysql # not compatible
query II rowsort label-1398
SELECT + 22 AS col1, - col1 / - + 71 + - - col1 FROM tab2
----
22
51
22
67
22
78

query I rowsort
SELECT - 13 FROM tab1 WHERE NOT - col0 IS NULL
----
-13
-13
-13

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

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

query I rowsort
SELECT ALL 42 * + - 17 AS col2 FROM tab2
----
-714
-714
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT ( COUNT( DISTINCT 55 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT ( COUNT ( DISTINCT 55 ) ) AS col0 FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + + - col2 FROM tab2
----
17
23
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + + col0 < - + 82
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL - - COUNT ( * ) / 52 FROM tab2 AS cor0
----
0

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - + col2
----

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

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

query I rowsort
SELECT DISTINCT col0 * - + 94 + + 94 - col1 + col2 FROM tab2 AS cor0
----
-4258
-5959
-6965

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> + 76
----

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

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

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

query II rowsort
SELECT DISTINCT col1 AS col0, + col1 * + col0 FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1419
SELECT + col2 - + 74 col2, col2 + + + CAST( NULL AS SIGNED ) FROM tab0
----
-27
NULL
-64
NULL
25
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1419
SELECT + col2 - + 74 col2, col2 + + + CAST ( NULL AS INTEGER ) FROM tab0
----
-27
NULL
-64
NULL
25
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE - col1 * + - col2 - + - col2 < NULL
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE NOT ( 41 ) >= 5 + - - 75
----
-51
-85
-91

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

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

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1424
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1424
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col2 * + 32 FROM tab1
----
1888
2176
3072

query I rowsort
SELECT - - col1 * - - col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

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

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

query I rowsort
SELECT ALL 12 FROM tab2 AS cor0 WHERE NOT col2 / - col2 * - col2 <> NULL
----

query I rowsort
SELECT DISTINCT + 20 AS col0 FROM tab2, tab2 AS cor0
----
20

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

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

query II rowsort
SELECT - - 94 * ( - col0 ) AS col1, - col1 * col0 AS col2 FROM tab0 WHERE NOT 21 BETWEEN + + 7 AND ( - + col1 )
----
-1410
-1215
-8178
-1827
-9118
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1434
SELECT DISTINCT MAX( ALL col2 ) - COUNT( - col2 ) AS col1, 96 AS col2 FROM tab2 WHERE ( NULL ) > col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1434
SELECT DISTINCT MAX ( ALL col2 ) - COUNT ( - col2 ) AS col1, 96 AS col2 FROM tab2 WHERE ( NULL ) > col1
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT ( MIN( 40 ) ) + + SUM( - col2 ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1435
SELECT ( MIN ( 40 ) ) + + SUM ( - col2 ) AS col1 FROM tab2
----
-81

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1437
SELECT ALL - - MIN( + 77 ) + - 47 / CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - - MIN ( + 77 ) + - 47 / CAST ( NULL AS REAL ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1
----
NULL

query I rowsort
SELECT - col2 + - 94 FROM tab1
----
-153
-162
-190

query I rowsort
SELECT - 63 * col1 * + - col2 FROM tab1 AS cor0
----
18585
201348
84672

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT + 91 + + - col2 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1441
SELECT ALL + MAX( + - ( - ( - 89 ) ) ) FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - 76 + - - col2 * - + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + MAX ( + - ( - ( - 89 ) ) ) FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - 76 + - - col2 * - + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 + ( - + 58 ) AS col0 FROM tab2
----
-18
-35
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT - 40 - + ( - - 25 ) AS col1, ( ( + COUNT( DISTINCT + - col2 ) ) ) FROM tab1
----
-65
3

skipif mysql # not compatible
query II rowsort label-1443
SELECT - 40 - + ( - - 25 ) AS col1, ( ( + COUNT ( DISTINCT + - col2 ) ) ) FROM tab1
----
-65
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT ALL COUNT( * ) * 22 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL COUNT ( * ) * 22 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL + 39 * COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL + 39 * COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
120

query I rowsort
SELECT ALL + 71 + + - col0 + + 92 + ( col0 ) * + 35 AS col2 FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
3121
3461
673

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

query I rowsort
SELECT ALL + col0 * - + col1 - col0 * - col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT + col0 * - - col1 + + col2 DIV col0 DIV + ( col2 ) AS col1 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-1449
SELECT + col0 * - - col1 + + col2 / col0 / + ( col2 ) AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL - SUM( ALL - ( - col1 ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - SUM ( ALL - ( - col1 ) ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT - - col1 * - col1 FROM tab1 WHERE NULL <= 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1452
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) <= + col1 OR NOT - + col1 * - - 42 + + + 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1452
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) <= + col1 OR NOT - + col1 * - - 42 + + + 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT COUNT( * ) * + 49 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-1453
SELECT COUNT ( * ) * + 49 FROM tab2
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1454
SELECT + MIN( DISTINCT + - 97 ) * + CAST( - 53 AS SIGNED ) FROM tab1
----
5141

skipif mysql # not compatible
query I rowsort label-1454
SELECT + MIN ( DISTINCT + - 97 ) * + CAST ( - 53 AS INTEGER ) FROM tab1
----
5141

query I rowsort
SELECT ALL col1 * 45 * + 55 AS col2 FROM tab1
----
116325
12375
34650

query I rowsort
SELECT ALL 49 * col0 - - + 81 AS col1 FROM tab2
----
2335
3217
3756

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT 37 * + COUNT( * ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-1458
SELECT 37 * + COUNT ( * ) FROM tab2
----
111

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 20 AS col1, - 89 FROM tab1 AS cor0
----
20
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1463
SELECT DISTINCT - - 31 FROM tab1 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) / + col2 IS NULL
----
31

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT - - 31 FROM tab1 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) / + col2 IS NULL
----
31

query I rowsort
SELECT + - ( + 2 ) FROM tab1 AS cor0
----
-2
-2
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1466
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL + MAX( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + MAX ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
75

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = + col1
----

query I rowsort
SELECT - 96 * col2 - + + 55 FROM tab0 cor0
----
-1015
-4567
-9559

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

query II rowsort
SELECT ALL col1, 37 + + col0 AS col1 FROM tab2
----
51
83
67
112
77
101

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT col1 DIV + - col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-1478
SELECT col1 / + - col0 AS col2 FROM tab0
----
-5
0
0

query I rowsort
SELECT 60 AS col1 FROM tab0 WHERE + + 25 + + col2 IS NULL
----

query I rowsort
SELECT ALL - col1 + - + 13 + + col1 FROM tab1
----
-13
-13
-13

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 - - + 23 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1483
SELECT 13 + - CAST( - COUNT( * ) AS SIGNED ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
22

skipif mysql # not compatible
query I rowsort label-1483
SELECT 13 + - CAST ( - COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
22

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

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

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

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

query I rowsort
SELECT ( + + col0 ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + + col1 - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1122
-3003
-3819

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT - - 47 * - - col1 - - 86 DIV ( col0 ) + 50 * + - 0 FROM tab2 cor0
----
2398
3150
3620

skipif mysql # not compatible
query I rowsort label-1488
SELECT - - 47 * - - col1 - - 86 / ( col0 ) + 50 * + - 0 FROM tab2 cor0
----
2398
3150
3620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 88 - ( 47 ) col1 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1490
SELECT 89 - + COUNT( * ) AS col0, COUNT( * ) * - + 28 + + COUNT( * ) FROM tab2 AS cor0
----
86
-81

skipif mysql # not compatible
query II rowsort label-1490
SELECT 89 - + COUNT ( * ) AS col0, COUNT ( * ) * - + 28 + + COUNT ( * ) FROM tab2 AS cor0
----
86
-81

query I rowsort
SELECT DISTINCT col1 * + 7 FROM tab0
----
147
567
7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 98, + 83 col1 FROM tab0
----
98
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1494
SELECT ALL CAST( - - 70 AS SIGNED ) col0 FROM tab2 AS cor0
----
70
70
70

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

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

query I rowsort
SELECT + + col2 * + col1 * + col0 * + + col2 AS col0 FROM tab2 AS cor0
----
1241034
16904100
7884800

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1498
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1498
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - COUNT( * ) * - + 88 col0 FROM tab2
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1501
SELECT - COUNT ( * ) * - + 88 col0 FROM tab2
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT DISTINCT - col2 + 5 DIV + - col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT - col2 + 5 / + - col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1503
SELECT ALL + 73 + - 64 + - 99 + - ( - 30 ) * - - CAST( - 37 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1200
-1200
-1200

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL + 73 + - 64 + - 99 + - ( - 30 ) * - - CAST ( - 37 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1200
-1200
-1200

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

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

query II rowsort
SELECT ALL + - col1, - 96 AS col2 FROM tab2 AS cor0
----
-51
-96
-67
-96
-77
-96

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

skipif mysql # not compatible
query I rowsort label-1506
SELECT + + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 72 col2, + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND 28 * - + col2 + + 21 * + 50
----
72
51
72
85
72
91

query I rowsort
SELECT - 46 + col1 AS col2 FROM tab1
----
-32
-41
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 29 + col2 col0 FROM tab0
----
123
227
49

query II rowsort
SELECT 5 + + col1, + col2 AS col0 FROM tab1
----
10
59
19
96
52
68

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1514
SELECT - - col1 col2 FROM tab1 WHERE + + ( - CAST ( col0 AS INTEGER ) ) / - - col0 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 31 col1 FROM tab2
----
20
36
46

query I rowsort
SELECT DISTINCT col0 * col1 + + col2 AS col2 FROM tab1
----
4345
484
810

query I rowsort
SELECT DISTINCT 24 + + 86 + col2 AS col2 FROM tab0 AS cor0
----
120
157
209

query I rowsort
SELECT ALL + + 59 + - - col0 * + - col0 FROM tab2 AS cor0
----
-2057
-4037
-5566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1519
SELECT ALL + COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1519
SELECT ALL + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
NULL

query I rowsort
SELECT DISTINCT + 81 * + + col1 FROM tab1 cor0
----
1134
3807
405

query I rowsort
SELECT DISTINCT - col1 + + col2 FROM tab1 WHERE + col1 IS NOT NULL
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT DISTINCT 32 DIV + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT 32 / + col1 FROM tab2
----
0

query I rowsort
SELECT + 84 - - + col2 * col0 * - - 56 AS col1 FROM tab2
----
143444
243684
59332

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col0, - 76, + - 39, 55, 1 + - + 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT + col1 + + 75 DIV + ( col0 ) FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-1525
SELECT + col1 + + 75 / + ( col0 ) FROM tab2
----
52
68
78

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - 19 + + - col1 col0 FROM tab0 AS cor0
----
-1620
-20
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT 29 / col1 FROM tab0 AS cor0 WHERE NOT + col1 - + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1530
SELECT - COUNT( * ) AS col2, 41 FROM tab1 AS cor0
----
-3
41

skipif mysql # not compatible
query II rowsort label-1530
SELECT - COUNT ( * ) AS col2, 41 FROM tab1 AS cor0
----
-3
41

query I rowsort
SELECT + 42 FROM tab2 WHERE NOT ( + 74 ) NOT BETWEEN - 97 + - - 3 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1532
SELECT - 51 * 32 col2, COUNT( * ) AS col2 FROM tab2
----
-1632
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1532
SELECT - 51 * 32 col2, COUNT ( * ) AS col2 FROM tab2
----
-1632
3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1534
SELECT col2 * col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT col2 * col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT ALL 5 DIV + col0 * 97 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL 5 / + col0 * 97 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + + col1 AS col1 FROM tab1 WHERE NOT - col0 + - col0 * col0 + + - col0 IN ( + col1 * - col1, + col1 )
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM tab2 AS cor0 WHERE NOT col1 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT - MIN( ALL col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1539
SELECT - MIN ( ALL col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1540
SELECT DISTINCT + - 24 DIV - MIN( col2 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT + - 24 / - MIN ( col2 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL - COUNT( DISTINCT 57 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - COUNT ( DISTINCT 57 ) AS col2 FROM tab0
----
-1

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

query I rowsort
SELECT ALL - col2 * + col1 + + + col2 AS col2 FROM tab2
----
-1150
-3040
-3828

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

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

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

query I rowsort
SELECT DISTINCT + col0 + + + col2 AS col1 FROM tab1 cor0
----
144
147
159

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT + MIN( col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1548
SELECT + MIN ( col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT + col2 * + 11 AS col1 FROM tab2 AS cor0
----
253
440
638

query II rowsort
SELECT DISTINCT 50 AS col2, 62 - + col2 FROM tab1
----
50
-34
50
-6
50
3

query II rowsort
SELECT + col0 AS col2, col1 * - 84 FROM tab2
----
46
-4284
64
-6468
75
-5628

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT + col0 DIV + 72 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1552
SELECT + col0 / + 72 AS col1 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT ALL - SUM( + + ( + 69 ) ) FROM tab1, tab1 AS cor0
----
-621

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - SUM ( + + ( + 69 ) ) FROM tab1, tab1 AS cor0
----
-621

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT + col2 DIV - + col1 + col2 FROM tab0 AS cor0
----
0
10
47

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT + col2 / - + col1 + col2 FROM tab0 AS cor0
----
0
10
47

query I rowsort
SELECT ALL + 18 * + - col1 + - col1 - col2 AS col2 FROM tab2 AS cor0
----
-1331
-1503
-992

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

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1557
SELECT ALL + 72 + - - COUNT( - CAST( - - 31 AS DECIMAL ) ) * - - 28 col0 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1557
SELECT ALL + 72 + - - COUNT ( - CAST ( - - 31 AS REAL ) ) * - - 28 col0 FROM tab2 AS cor0
----
156

query I rowsort
SELECT + + 32 + col1 AS col2 FROM tab0 cor0
----
113
33
53

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT - - MAX( ALL 2 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1561
SELECT - - MAX ( ALL 2 ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT - - 73 * + 65 + - + col2 FROM tab1 AS cor0
----
4649
4677
4686

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 98 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT - MAX( ALL - 8 ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1565
SELECT - MAX ( ALL - 8 ) FROM tab0 AS cor0
----
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - 74 NOT BETWEEN + col1 / - 31 AND + 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 83 * 62 AS col0 FROM tab2 WHERE 0 IS NOT NULL
----
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT DISTINCT + COUNT( ALL + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT + COUNT ( ALL + col1 ) FROM tab2
----
3

query I rowsort
SELECT + 65 AS col1 FROM tab0 WHERE NOT + + 60 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
15
87
97

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

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

query I rowsort
SELECT + 84 * + col2 AS col2 FROM tab0 AS cor0
----
3948
8316
840

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

query I rowsort
SELECT DISTINCT 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
19

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE - + 85 > NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1577
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-1577
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 33 * + col0 FROM tab0
----
-2871
-3201
-495

query I rowsort
SELECT DISTINCT - 64 + - col1 AS col0 FROM tab0 AS cor0
----
-145
-65
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 * + col2 * - + col0 col1 FROM tab1 AS cor0
----
-190944
-195585
-241332

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 50 IS NULL
----

query I rowsort
SELECT + col1 + col2 * + + col1 FROM tab2 AS cor0
----
1224
3157
3953

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * + - 92 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1584
SELECT ALL - col2 DIV CAST( - - 62 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1584
SELECT ALL - col2 / CAST ( - - 62 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - col0 + 22 AS col0 FROM tab0
----
-65
-75
7

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

query I rowsort
SELECT - col0 + + 26 AS col0 FROM tab0
----
-61
-71
11

query I rowsort
SELECT ALL - col0 + + - 15 AS col0 FROM tab2
----
-61
-79
-90

query I rowsort
SELECT ALL col2 + - 12 AS col2 FROM tab2
----
11
28
46

query I rowsort
SELECT ALL 30 AS col2 FROM tab2 WHERE NOT 31 IS NULL
----
30
30
30

query I rowsort
SELECT col0 * + - col1 AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - ( col0 ) - - col0 * - - col2 + + - col2 FROM tab1 cor0
----
4749
4871
6029

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

query I rowsort
SELECT DISTINCT - + 65 - + col1 AS col0 FROM tab1 AS cor0
----
-112
-70
-79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 AS col0 FROM tab0
----
10
10
47
47
99
99

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

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER ) * + 75 FROM tab1 AS cor0
----
225

query II rowsort
SELECT ALL + + col1, col0 FROM tab1 cor0
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT + + col2 DIV ( - col0 ) AS col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT + + col2 / ( - col0 ) AS col1 FROM tab1 cor0
----
-1
0
0

query II rowsort
SELECT ALL - - col1, 90 AS col1 FROM tab2 AS cor0
----
51
90
67
90
77
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1601
SELECT ALL + col2 / - - col0 FROM tab2 AS cor0 WHERE NOT + ( - 71 ) = + - col0 / - - 57 - - ( + - CAST( NULL AS SIGNED ) ) + col0 * - col0 * - + 98
----

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL + col2 / - - col0 FROM tab2 AS cor0 WHERE NOT + ( - 71 ) = + - col0 / - - 57 - - ( + - CAST ( NULL AS INTEGER ) ) + col0 * - col0 * - + 98
----

query I rowsort
SELECT DISTINCT - 5 * - ( + col0 ) FROM tab2
----
230
320
375

query I rowsort
SELECT DISTINCT - 87 * + + col0 * - col2 AS col1 FROM tab0 WHERE - - 43 IS NOT NULL
----
61335
75690
835461

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

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

query I rowsort
SELECT + 28 * - col0 + + + col1 AS col0 FROM tab0 AS cor0
----
-2415
-2715
-339

query I rowsort
SELECT DISTINCT col0 * 6 FROM tab1
----
306
510
546

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT MAX( 23 ) AS col2 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-1607
SELECT MAX ( 23 ) AS col2 FROM tab1
----
23

query I rowsort
SELECT DISTINCT - col1 * - + ( 28 ) + - + col2 FROM tab0 cor0
----
-71
2221
578

query I rowsort
SELECT - - 7 * - 86 FROM tab1 AS cor0
----
-602
-602
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE ( NOT NULL IN ( - + 78 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE ( NOT NULL IN ( - + 78 ) )
----
0

query I rowsort
SELECT DISTINCT - 77 + - + col0 AS col0 FROM tab0 AS cor0
----
-164
-174
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 42 col0 FROM tab1 AS cor0
----
-2142
-3570
-3822

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

skipif mysql # not compatible
query I rowsort label-1613
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT col2 - - col1 + CAST( col2 AS SIGNED ) FROM tab2
----
157
183
97

skipif mysql # not compatible
query I rowsort label-1615
SELECT col2 - - col1 + CAST ( col2 AS INTEGER ) FROM tab2
----
157
183
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - 30 - - COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-1616
SELECT - 30 - - COUNT ( * ) FROM tab1
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT DISTINCT COUNT( * ) + + 28 AS col0 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT COUNT ( * ) + + 28 AS col0 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL - ( + 93 ) * - COUNT( * ) col1 FROM tab1
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1620
SELECT ALL - ( + 93 ) * - COUNT ( * ) col1 FROM tab1
----
279

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

query I rowsort
SELECT DISTINCT + ( - col1 ) + + 63 AS col0 FROM tab2
----
-14
-4
12

query I rowsort
SELECT - 49 * + - col1 FROM tab2 WHERE - - ( + + ( col0 ) ) IS NOT NULL
----
2499
3283
3773

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

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL COUNT ( * ) + - 73 + 79 FROM tab2
----
9

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE + col2 + - col0 IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT DISTINCT - col2 + 40, 80 + + col2 AS col2 FROM tab1 AS cor0
----
-19
139
-28
148
-56
176

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / + - 79 IS NULL
----

query I rowsort
SELECT DISTINCT - + 37 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT DISTINCT + 84 * - + col0 FROM tab1 AS cor0
----
-4284
-7140
-7644

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

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

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

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

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

query II rowsort
SELECT 54, col2 - + 21 AS col1 FROM tab1
----
54
38
54
47
54
75

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 12 ) + - + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
-23

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1641
SELECT + col1 / - + col2 col1 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT - 87 DIV - 17 FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-1642
SELECT - 87 / - 17 FROM tab1 AS cor0
----
5
5
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL - COUNT( * ) FROM tab0 WHERE - 62 BETWEEN NULL AND + - col0
----
0

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - 62 BETWEEN NULL AND + - col0
----
0

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

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

query I rowsort
SELECT + col2 * col2 + - 66 * 42 FROM tab1
----
1852
6444
709

query I rowsort
SELECT ALL - 9 FROM tab2 WHERE NULL IS NULL
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1649
SELECT DISTINCT - col1 + col2 + col2 * - 20 AS col0, col2 / CAST( NULL AS SIGNED ) FROM tab2
----
-1169
NULL
-488
NULL
-837
NULL

skipif mysql # not compatible
query II rowsort label-1649
SELECT DISTINCT - col1 + col2 + col2 * - 20 AS col0, col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
-1169
NULL
-488
NULL
-837
NULL

query II rowsort
SELECT ALL + col0, col1 * - col1 * - col1 FROM tab0 AS cor0
----
15
531441
87
9261
97
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1651
SELECT ALL + + 49 DIV - MAX( DISTINCT + + col0 ) + + COUNT( * ) * - 32 AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + + 49 / - MAX ( DISTINCT + + col0 ) + + COUNT ( * ) * - 32 AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL MIN( DISTINCT 49 ) col0 FROM tab2 cor0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1652
SELECT ALL MIN ( DISTINCT 49 ) col0 FROM tab2 cor0
----
49

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

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

query I rowsort
SELECT DISTINCT + col1 * - 34 AS col2 FROM tab2
----
-1734
-2278
-2618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + 75 col0, 95 AS col0 FROM tab2
----
3825
95
5025
95
5775
95

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

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

query II rowsort
SELECT - 94 + col0 AS col1, + col0 FROM tab1 AS cor0
----
-3
91
-43
51
-9
85

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

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

query I rowsort
SELECT ALL - col0 + 35 AS col1 FROM tab1 AS cor0
----
-16
-50
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT DISTINCT - ( - COUNT( + col1 ) ) * - 73 FROM tab2 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT - ( - COUNT ( + col1 ) ) * - 73 FROM tab2 cor0
----
-219

query I rowsort
SELECT ALL col0 - col0 * 75 AS col2 FROM tab2 AS cor0
----
-3404
-4736
-5550

query I rowsort
SELECT ALL + ( col0 ) * col2 * col2 AS col1 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT col0 - 64 FROM tab1
----
-13
21
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT + MIN( ALL - - col1 ) * + COUNT( * ) AS col0, + 26 FROM tab1
----
15
26

skipif mysql # not compatible
query II rowsort label-1666
SELECT + MIN ( ALL - - col1 ) * + COUNT ( * ) AS col0, + 26 FROM tab1
----
15
26

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

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

query I rowsort
SELECT ALL - col1 + - 42 AS col2 FROM tab1
----
-47
-56
-89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND - 51 + + - 96 + + col1 + col0 - + - col2
----

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

query I rowsort
SELECT ALL + - 54 AS col0 FROM tab2 AS cor0
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 87 ) + + col1 col2 FROM tab1 cor0 WHERE NOT - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, - 40 AS col2 FROM tab2 AS cor0
----
-23
-40
-40
-40
-58
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1674
SELECT ALL + ( - 33 ) + + CAST( NULL AS DECIMAL ) * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + ( - 33 ) + + CAST ( NULL AS REAL ) * + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL ( SUM( + 49 ) ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL ( SUM ( + 49 ) ) FROM tab2
----
147

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NULL IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * col1 IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1680
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col1 + CAST( NULL AS SIGNED ) / - 15 )
----

skipif mysql # not compatible
query III rowsort label-1680
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col1 + CAST ( NULL AS INTEGER ) / - 15 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1682
SELECT - CAST( - MIN( ALL - col0 ) AS SIGNED ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1682
SELECT - CAST ( - MIN ( ALL - col0 ) AS INTEGER ) FROM tab1
----
-91

query I rowsort
SELECT ALL - ( col1 ) FROM tab1 WHERE - col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - 88
----

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 75 + + 48 FROM tab1
----
123
123
123

query I rowsort
SELECT DISTINCT + col1 * + col1 + + col0 AS col0 FROM tab0
----
528
6576
98

query I rowsort
SELECT DISTINCT - col1 * - 9 FROM tab2
----
459
603
693

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

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

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 * + col0 )
----

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE ( 62 ) <> col2
----
46
64
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1697
SELECT - 36 * - col0 + + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1850
3065
3323

skipif mysql # not compatible
query I rowsort label-1697
SELECT - 36 * - col0 + + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1850
3065
3323

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL 65 + COUNT( * ) * 61 FROM tab0 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL 65 + COUNT ( * ) * 61 FROM tab0 AS cor0
----
248

query I rowsort
SELECT 54 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-27
33
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1700
SELECT COUNT( * ) + + COUNT( * ) DIV 67 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1700
SELECT COUNT ( * ) + + COUNT ( * ) / 67 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 2 ) + + 63 col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + 84 + ( 42 ) AS col0 FROM tab2
----
126
126
126

query I rowsort
SELECT + ( + 72 ) + col0 AS col2 FROM tab2
----
118
136
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL - COUNT( * ) * + 11 + - 16 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL - COUNT ( * ) * + 11 + - 16 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + - 64 + + col0 * + col1 FROM tab0 AS cor0
----
1151
1763
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT 73 - - ( SUM( col2 ) ) col0 FROM tab0 AS cor0
----
229

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1710
SELECT 73 - - ( SUM ( col2 ) ) col0 FROM tab0 AS cor0
----
229

query I rowsort
SELECT + - col0 - - 42 FROM tab0 AS cor0
----
-45
-55
27

query I rowsort
SELECT + + 19 - col1 FROM tab2 cor0
----
-32
-48
-58

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 29 - col0 col1 FROM tab0 AS cor0
----
-58
-68
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1717
SELECT * FROM tab0 AS cor0 WHERE 72 + col0 > ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1717
SELECT * FROM tab0 AS cor0 WHERE 72 + col0 > ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 92 - col0 FROM tab0
----
-5
5
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1719
SELECT ALL - col2 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - col2 - - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + ( + col0 ) * - col0 + - col0 AS col1 FROM tab2
----
262080
421800
97290

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

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT ( - - 48 ) - - ( COUNT ( * ) ) FROM tab1
----
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT - 98 DIV 30 AS col0 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1723
SELECT - 98 / 30 AS col0 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT + 69 * COUNT( - 6 ) AS col2 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT + 69 * COUNT ( - 6 ) AS col2 FROM tab2 AS cor0
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-1725
SELECT ALL col1 DIV - col0 + 52 AS col1 FROM tab1 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL col1 / - col0 + 52 AS col1 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1726
SELECT ALL + CAST( - ( 68 ) AS SIGNED ) DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + CAST ( - ( 68 ) AS INTEGER ) / - col0 AS col2 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 63 < ( NULL )
----

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

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

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

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

query I rowsort
SELECT ALL + 71 * 58 * - - col1 AS col2 FROM tab0
----
333558
4118
86478

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + COUNT( * ) * + + 82 + 60 FROM tab1 cor0
----
306

skipif mysql # not compatible
query I rowsort label-1731
SELECT + COUNT ( * ) * + + 82 + 60 FROM tab1 cor0
----
306

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1732
SELECT ALL 48 * + CAST( - 79 AS SIGNED ) - col1 DIV - col0 FROM tab1 AS cor0
----
-3792
-3792
-3792

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL 48 * + CAST ( - 79 AS INTEGER ) - col1 / - col0 FROM tab1 AS cor0
----
-3792
-3792
-3792

query I rowsort
SELECT DISTINCT + col1 * + + 43 - - col0 * + 53 FROM tab0 AS cor0
----
4278
5184
5514

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

skipif mysql # not compatible
query I rowsort label-1734
SELECT COUNT ( DISTINCT + + col2 ) * 1 AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT - col2 DIV + - col0 AS col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1735
SELECT - col2 / + - col0 AS col0 FROM tab0 AS cor0
----
0
1
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1737
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST( - col1 AS SIGNED ) ) < 67
----

skipif mysql # not compatible
query III rowsort label-1737
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST ( - col1 AS INTEGER ) ) < 67
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col2 * - - 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT ALL COUNT( * ) + + + 54 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL COUNT ( * ) + + + 54 FROM tab0
----
57

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab0 WHERE - col1 * - + col2 / + col1 > + 85
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 52 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 + + 26 * + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1743
SELECT DISTINCT + col2 + + 86 DIV col2 AS col2 FROM tab2
----
26
42
59

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + col2 + + 86 / col2 AS col2 FROM tab2
----
26
42
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT 88 + COUNT( * ) AS col0 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-1744
SELECT 88 + COUNT ( * ) AS col0 FROM tab2
----
91

query I rowsort
SELECT ALL col1 + + 66 AS col1 FROM tab1
----
113
71
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT col1 DIV + col1 + ( - 58 ) + - col0 * + ( col1 ) AS col1 FROM tab0
----
-1272
-154
-1884

skipif mysql # not compatible
query I rowsort label-1746
SELECT col1 / + col1 + ( - 58 ) + - col0 * + ( col1 ) AS col1 FROM tab0
----
-1272
-154
-1884

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

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

query II rowsort
SELECT col1 + col0, + col0 + col0 AS col2 FROM tab2
----
141
128
142
150
97
92

query I rowsort
SELECT + + 39 FROM tab0 cor0
----
39
39
39

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

query I rowsort
SELECT ALL + - 89 AS col2 FROM tab2 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL - - COUNT( * ) col1 FROM tab0 cor0
----
3

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

query I rowsort
SELECT - col1 * + + col2 - - + 32 FROM tab0
----
-178
-3775
-67

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1755
SELECT - CAST( + + col1 AS SIGNED ) DIV - col0 + + 65 + + col1 AS col1 FROM tab0
----
151
66
86

skipif mysql # not compatible
query I rowsort label-1755
SELECT - CAST ( + + col1 AS INTEGER ) / - col0 + + 65 + + col1 AS col1 FROM tab0
----
151
66
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT - ( + - CAST( 83 AS SIGNED ) ) + + col1 FROM tab1
----
130
88
97

skipif mysql # not compatible
query I rowsort label-1756
SELECT - ( + - CAST ( 83 AS INTEGER ) ) + + col1 FROM tab1
----
130
88
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + - col2 > NULL
----

query I rowsort
SELECT ALL - col0 * + - 54 * col1 + + 31 FROM tab1 AS cor0
----
22981
230989
38587

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL 40 * + - MAX( col0 ) - 72 AS col2 FROM tab0 cor0
----
-3952

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL 40 * + - MAX ( col0 ) - 72 AS col2 FROM tab0 cor0
----
-3952

query I rowsort
SELECT col0 AS col0 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 98 * - + 31
----

query I rowsort
SELECT + 12 AS col0 FROM tab0 AS cor0 WHERE - 23 NOT IN ( - col1 )
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL - 61 - + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL - 61 - + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT ALL + col2 * col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > ( - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL + col2 * col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > ( - CAST ( + col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL - 32 - col1 * 52 * col1 AS col1 FROM tab1 AS cor0
----
-10224
-114900
-1332

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + 95 FROM tab0
----
1
95
21
95
81
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT 61 * COUNT( * ) AS col0 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-1767
SELECT 61 * COUNT ( * ) AS col0 FROM tab1
----
183

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1769
SELECT - COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) col0 FROM tab2
----
-3
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 + + col0 + - - 81 ) <= ( NULL )
----

query II rowsort
SELECT ALL col1, + 99 FROM tab1
----
14
99
47
99
5
99

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL NOT IN ( + 8, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) - MIN( ALL - col0 ) AS col2 FROM tab2 cor0
----
84

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) - MIN ( ALL - col0 ) AS col2 FROM tab2 cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT - COUNT( * ) * + 85 col1 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1774
SELECT DISTINCT - COUNT ( * ) * + 85 col1 FROM tab0 AS cor0
----
-255

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1775
SELECT DISTINCT + col1 / + - col2 col0 FROM tab0 AS cor0
----
-1
-2
0

query II rowsort
SELECT DISTINCT ( + col2 ) AS col0, + col2 * - - col0 AS col1 FROM tab0
----
10
870
47
705
99
9603

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 * - 77 ) >= - ( + 44 )
----

query I rowsort
SELECT ALL - col1 * - - 55 FROM tab1
----
-2585
-275
-770

query I rowsort
SELECT ALL + ( + - col1 ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1780
SELECT DISTINCT col0 DIV 52 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT col0 / 52 FROM tab0
----
0
1

query I rowsort
SELECT ALL + 57 * - 39 AS col0 FROM tab0 cor0
----
-2223
-2223
-2223

query I rowsort
SELECT + + col2 * ( + 2 ) + - 25 * + - col2 AS col0 FROM tab1 AS cor0
----
1593
1836
2592

query I rowsort
SELECT DISTINCT - + col0 + - 19 - - 55 AS col0 FROM tab2 AS cor0
----
-10
-28
-39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 48 * - 28 col0, + ( + - col0 ) FROM tab1 AS cor0
----
1344
-51
1344
-85
1344
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1786
SELECT - col1 DIV - - col0 * + 31 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT - col1 / - - col0 * + 31 AS col0 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT - col0 * 29 * + 33 AS col0 FROM tab1 cor0
----
-48807
-81345
-87087

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

skipif mysql # not compatible
query I rowsort label-1789
SELECT - MAX ( DISTINCT + col1 ) FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, 92 * - col2 * - + col2 AS col2 FROM tab1
----
51
847872
85
320252
91
425408

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

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

skipif mysql # not compatible
query II rowsort label-1792
SELECT + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab1
----
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE 61 IS NULL
----

query I rowsort
SELECT ALL col0 + col1 - 36 * + col2 * - 71 AS col1 FROM tab1
----
150894
173946
245441

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT ALL + + COUNT( * ) + - MIN( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL + + COUNT ( * ) + - MIN ( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
-7

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

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

query I rowsort
SELECT ALL col0 - 45 AS col2 FROM tab2 AS cor0
----
1
19
30

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT - + MIN( + 66 ) - 48 AS col2 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-1802
SELECT - + MIN ( + 66 ) - 48 AS col2 FROM tab1 AS cor0
----
-114

query I rowsort
SELECT - col0 - - 12 FROM tab2 AS cor0
----
-34
-52
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + COUNT( * ) - 74 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-1804
SELECT + COUNT ( * ) - 74 FROM tab0 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL COUNT( - 53 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL COUNT ( - 53 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) IN ( + - col2 )
----

query I rowsort
SELECT 52 * 14 * + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL + COUNT( DISTINCT - + 17 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + COUNT ( DISTINCT - + 17 ) FROM tab0 AS cor0
----
1

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

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

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

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

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

query I rowsort
SELECT ALL - + 97 AS col2 FROM tab2 AS cor0
----
-97
-97
-97

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

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

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

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

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT NULL > + col2
----

query II rowsort
SELECT ALL - 89, col2 * - 76 AS col1 FROM tab0
----
-89
-3572
-89
-7524
-89
-760

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1818
SELECT + 83 / - CAST( NULL AS SIGNED ) * - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT + 83 / - CAST ( NULL AS INTEGER ) * - - col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * + col2 <= + - CAST( - col1 AS SIGNED ) * + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * + col2 <= + - CAST ( - col1 AS INTEGER ) * + - col2
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 61 AS col0 FROM tab0 AS cor0 WHERE NOT + 20 * - + 11 = + col0
----
-1281
-4941
-61

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT + 22 * + + 1 AS col1, COUNT( * ) AS col2 FROM tab2 WHERE NOT 15 + - - col1 >= NULL
----
22
0

skipif mysql # not compatible
query II rowsort label-1823
SELECT + 22 * + + 1 AS col1, COUNT ( * ) AS col2 FROM tab2 WHERE NOT 15 + - - col1 >= NULL
----
22
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT - col0 + + + CAST( - + col2 AS SIGNED ) FROM tab1 WHERE NOT NULL >= - 77
----

skipif mysql # not compatible
query I rowsort label-1824
SELECT - col0 + + + CAST ( - + col2 AS INTEGER ) FROM tab1 WHERE NOT NULL >= - 77
----

query I rowsort
SELECT DISTINCT - 39 + - + col0 FROM tab2 AS cor0
----
-103
-114
-85

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

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

skipif mysql # not compatible
query I rowsort label-1827
SELECT - 17 + + col2 / - col2 FROM tab0 cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + + 75 col2 FROM tab0 AS cor0
----
163

query I rowsort
SELECT + col1 * + + 23 + + - 12 AS col0 FROM tab1 AS cor0
----
103
1069
310

query II rowsort
SELECT DISTINCT - 96 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
-96
-51
-96
-85
-96
-91

query I rowsort
SELECT ALL + col1 * + ( + ( + col1 ) ) * + col1 AS col2 FROM tab1 AS cor0
----
103823
125
2744

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT ( + col1 ) + 94 <= + col1
----
10
47
99

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

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

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

query I rowsort
SELECT ALL + col2 * - 14 FROM tab2
----
-322
-560
-812

query I rowsort
SELECT + col2 + - 47 * - + 68 + ( + col2 ) + - + col1 * - ( + col2 ) AS col2 FROM tab1
----
3609
4732
6528

query I rowsort
SELECT AVG ( + col2 ) / + - 23 AS col2 FROM tab1 WHERE col1 <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1838
SELECT 56 + - col1 * - 70 * + col0 DIV col0 FROM tab0
----
126
1526
5726

skipif mysql # not compatible
query I rowsort label-1838
SELECT 56 + - col1 * - 70 * + col0 / col0 FROM tab0
----
126
1526
5726

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

skipif mysql # not compatible
query I rowsort label-1839
SELECT + COUNT ( + ( col2 ) ) * - 41 FROM tab0 AS cor0
----
-123

query I rowsort
SELECT ALL col0 - + 30 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
57
67

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

skipif mysql # not compatible
query I rowsort label-1841
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT + + 20 AS col1 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + - col1 * + - 37 FROM tab0 AS cor0
----
2997
37
777

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT MAX( ALL 62 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-1847
SELECT MAX ( ALL 62 ) FROM tab0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT ALL - 17 AS col1 FROM tab1 WHERE NULL >= 68 + 42 - - col1 * + col2 * - 66 + col1 * - CAST( - 45 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - 17 AS col1 FROM tab1 WHERE NULL >= 68 + 42 - - col1 * + col2 * - 66 + col1 * - CAST ( - 45 AS INTEGER )
----

query I rowsort
SELECT 99 * - col0 FROM tab2
----
-4554
-6336
-7425

query I rowsort
SELECT DISTINCT + 76 AS col0 FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL MAX( ALL + 9 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL MAX ( ALL + 9 ) FROM tab0
----
9

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

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT AVG ( + CAST ( NULL AS REAL ) ) * - COUNT ( * ) + COUNT ( * ) FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1854
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1854
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + 84 * - + COUNT( * ) FROM tab2, tab0 AS cor0
----
-756

skipif mysql # not compatible
query I rowsort label-1855
SELECT + 84 * - + COUNT ( * ) FROM tab2, tab0 AS cor0
----
-756

query I rowsort
SELECT DISTINCT 12 + ( col1 ) FROM tab2
----
63
79
89

query I rowsort
SELECT 47 + col2 + - col1 FROM tab2
----
10
19
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT - COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1858
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * col0 + - - col2, 82 col2 FROM tab0
----
-178
82
-7559
82
-9310
82

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL + 77 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1862
SELECT DISTINCT CAST ( CAST ( + col1 AS REAL ) AS INTEGER ) col0 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 32 col1, + col1 AS col1 FROM tab1 AS cor0
----
32
14
32
47
32
5

query I rowsort
SELECT DISTINCT - col1 + + - 78 * - 9 FROM tab2 cor0
----
625
635
651

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

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

query I rowsort
SELECT ALL + - col0 * - col0 + ( + col2 ) FROM tab1 AS cor0
----
2697
7284
8349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52, col0 col0 FROM tab0 AS cor0
----
-52
15
-52
87
-52
97

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1870
SELECT ALL CAST( + col1 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL CAST ( + col1 AS REAL ) FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 75 <> + col1
----

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

query I rowsort
SELECT 24 - ( + col0 ) FROM tab0
----
-63
-73
9

query II rowsort
SELECT DISTINCT col2 + - col1, - 57 AS col2 FROM tab0
----
-11
-57
-34
-57
98
-57

query I rowsort
SELECT - - 88 + - col1 FROM tab0 AS cor0
----
67
7
87

query I rowsort
SELECT ALL + + 7 + + col2 FROM tab0 AS cor0
----
106
17
54

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

query II rowsort
SELECT DISTINCT + + col0 + + - 17 * + 1 * - 76 AS col2, 95 FROM tab2 AS cor0
----
1338
95
1356
95
1367
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT ALL 51 DIV - col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL 51 / - col2 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL 38 * + 84 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 45f13547df96f9427cc7d6d7b9feca60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1881
SELECT 51 AS col0, + 67 - col2 * CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + - col0 BETWEEN NULL AND 86
----

skipif mysql # not compatible
query II rowsort label-1881
SELECT 51 AS col0, + 67 - col2 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + - col0 BETWEEN NULL AND 86
----

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

query I rowsort
SELECT - + 25 FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1884
SELECT DISTINCT 45 * + ( col1 ) + + col0 + - + CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT 45 * + ( col1 ) + + col0 + - + CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col1, + 33 AS col0 FROM tab0
----
-1
33
-21
33
-81
33

query I rowsort
SELECT + col1 + + col0 FROM tab2 WHERE NOT + col0 IS NULL
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1887
SELECT DISTINCT COUNT( * ) + + 49 * + COUNT( DISTINCT - CAST( + col1 AS DECIMAL ) ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT COUNT ( * ) + + 49 * + COUNT ( DISTINCT - CAST ( + col1 AS REAL ) ) FROM tab0
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, + col0 col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

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

query I rowsort
SELECT - col2 * + 14 FROM tab0 AS cor0
----
-1386
-140
-658

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT - SUM( - - 6 ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - SUM ( - - 6 ) AS col1 FROM tab2
----
-18

query I rowsort
SELECT + ( - ( - - 35 ) ) FROM tab1
----
-35
-35
-35

query I rowsort
SELECT ALL ( 78 ) AS col1 FROM tab1 WHERE NOT - + col2 >= + 13
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT + 49 + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2 WHERE + ( + ( - ( + col2 ) ) ) IS NOT NULL
----
55

skipif mysql # not compatible
query I rowsort label-1896
SELECT + 49 + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2 WHERE + ( + ( - ( + col2 ) ) ) IS NOT NULL
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1897
SELECT 35 + + + COUNT( * ) AS col2, 90 AS col2 FROM tab2 AS cor0
----
38
90

skipif mysql # not compatible
query II rowsort label-1897
SELECT 35 + + + COUNT ( * ) AS col2, 90 AS col2 FROM tab2 AS cor0
----
38
90

query I rowsort
SELECT - 69 + + col0 AS col2 FROM tab0 AS cor0
----
-54
18
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT ALL + + 38 DIV col0 + - + col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + + 38 / col0 + - + col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 71, + col2, - col1 )
----

query I rowsort
SELECT DISTINCT 41 * + 37 * + 61 + - - 90 FROM tab1 cor0
----
92627

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

query I rowsort
SELECT ALL - 53 - + 43 + col1 * + col1 FROM tab0 AS cor0
----
-95
345
6465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1904
SELECT - ( 88 ) * + - 20 * - + col1 / - CAST( + col2 AS SIGNED ) + - col2 + - col1 col1 FROM tab2 WHERE - col2 IN ( col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1904
SELECT - ( 88 ) * + - 20 * - + col1 / - CAST ( + col2 AS INTEGER ) + - col2 + - col1 col1 FROM tab2 WHERE - col2 IN ( col2 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1906
SELECT ALL + MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL + MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1907
SELECT COUNT ( * ) * + 37 FROM tab1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT - + COUNT( * ) AS col0 FROM tab0 WHERE - 4 * - 46 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT - + COUNT ( * ) AS col0 FROM tab0 WHERE - 4 * - 46 IS NULL
----
0

query I rowsort
SELECT 93 * ( - ( - col0 ) ) AS col2 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT ALL ( - - ( - col1 ) ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - - ( + ( - 5 ) ) FROM tab2 WHERE - 79 - + col0 IS NOT NULL
----
-5
-5
-5

query I rowsort
SELECT - 33 AS col0 FROM tab1
----
-33
-33
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1913
SELECT DISTINCT - ( 37 ) - + 60 * + CAST( COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-217

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT - ( 37 ) - + 60 * + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-217

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1916
SELECT DISTINCT COUNT( * ) col2, - 32 DIV + 43 FROM tab1
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1916
SELECT DISTINCT COUNT ( * ) col2, - 32 / + 43 FROM tab1
----
3
0

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( col2 * + 52 + + col1 + col1 * col1, - ( + - 72 ) )
----

query I rowsort
SELECT ALL + 18 * + col0 FROM tab1 cor0
----
1530
1638
918

onlyif mysql # aggregate syntax: 
query II rowsort label-1920
SELECT ALL COUNT( * ), 70 col1 FROM tab2 cor0
----
3
70

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

query I rowsort
SELECT ( + 82 ) FROM tab1 AS cor0
----
82
82
82

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

skipif mysql # not compatible
query I rowsort label-1922
SELECT - COUNT ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT DISTINCT MIN( DISTINCT + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT MIN ( DISTINCT + col2 ) AS col1 FROM tab1
----
59

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT ALL COUNT( * ) DIV + SUM( DISTINCT - - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL COUNT ( * ) / + SUM ( DISTINCT - - col0 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT 34 + - 79 AS col1 FROM tab0
----
-45

query I rowsort
SELECT DISTINCT - col2 + + ( - 74 ) FROM tab2
----
-114
-132
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1929
SELECT - SUM( ALL - 97 ), COUNT( * ) + - COUNT( * ) AS col2 FROM tab1
----
291
0

skipif mysql # not compatible
query II rowsort label-1929
SELECT - SUM ( ALL - 97 ), COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1
----
291
0

query I rowsort
SELECT ALL + - 1 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT ALL + MAX( + - 54 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + MAX ( + - 54 ) FROM tab1 AS cor0
----
-54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1933
SELECT + col0 / col0 * + + 39 * - CAST( NULL AS SIGNED ) + - 48 + + col1 / - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT + col0 / col0 * + + 39 * - CAST ( NULL AS INTEGER ) + - 48 + + col1 / - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 36 FROM tab1 WHERE - col0 * col0 IS NOT NULL
----
36
36
36

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

query I rowsort
SELECT ALL - col2 + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1248
236
3128

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

query I rowsort
SELECT + 68 FROM tab2 cor0
----
68
68
68

query I rowsort
SELECT + col2 - + 56 FROM tab2 AS cor0
----
-16
-33
2

query II rowsort
SELECT DISTINCT - 75 AS col1, - 99 FROM tab1 AS cor0
----
-75
-99

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

query I rowsort
SELECT - 52 + - + col1 + + col1 FROM tab0
----
-52
-52
-52

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

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

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

query I rowsort
SELECT ( - 78 ) AS col1 FROM tab1
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL + - COUNT( + 65 ) * - 49 col2 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1947
SELECT ALL + - COUNT ( + 65 ) * - 49 col2 FROM tab1 AS cor0
----
147

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 67 * col1 / - - col2 IS NOT NULL
----

query II rowsort
SELECT ALL col1, + 40 FROM tab1
----
14
40
47
40
5
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT 18 * + COUNT( * ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-1951
SELECT 18 * + COUNT ( * ) AS col1 FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT MAX( DISTINCT + col1 ) * 58 AS col1 FROM tab2 cor0
----
4466

skipif mysql # not compatible
query I rowsort label-1952
SELECT MAX ( DISTINCT + col1 ) * 58 AS col1 FROM tab2 cor0
----
4466

query I rowsort
SELECT ALL - - col0 * - 55 * + col0 FROM tab0 AS cor0
----
-12375
-416295
-517495

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT MIN( DISTINCT - - 51 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1954
SELECT MIN ( DISTINCT - - 51 ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT - col2 * - col2 * - col1 AS col0, - col0 AS col1 FROM tab0 AS cor0
----
-178929
-15
-2100
-87
-9801
-97

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

query II rowsort
SELECT ALL - 69 AS col2, col2 FROM tab0 cor0
----
-69
10
-69
47
-69
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 16 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 51 + - col1 <> NULL
----

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

query I rowsort
SELECT DISTINCT 44 + + + col1 FROM tab1
----
49
58
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT - + COUNT( * ) + + 92 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT - + COUNT ( * ) + + 92 FROM tab1 AS cor0
----
89

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

query I rowsort
SELECT ALL 16 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT col2 + - col1 * - + col1 * 11 AS col2 FROM tab0 AS cor0
----
110
4861
72218

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

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

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

query I rowsort
SELECT - col1 * + col0 * - col0 FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT - 54 - COUNT( - col0 ) * - - COUNT( * ) FROM tab1 WHERE NOT - 52 IS NULL
----
-63

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT - 54 - COUNT ( - col0 ) * - - COUNT ( * ) FROM tab1 WHERE NOT - 52 IS NULL
----
-63

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 * + - 44 col0 FROM tab0 AS cor0
----
-1188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL + SUM( ALL + 60 ) FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL + SUM ( ALL + 60 ) FROM tab2 AS cor0
----
180

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

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

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

query I rowsort
SELECT DISTINCT 33 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
33

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > NULL
----

query II rowsort
SELECT col2 * + 99, 17 AS col1 FROM tab1
----
5841
17
6732
17
9504
17

query I rowsort
SELECT DISTINCT - + 39 * - col1 + col2 FROM tab1 AS cor0
----
1901
254
642

query I rowsort
SELECT - 11 * - 97 * + 28 AS col0 FROM tab1 cor0
----
29876
29876
29876

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1984
SELECT CAST( NULL AS SIGNED ), + col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1984
SELECT CAST ( NULL AS INTEGER ), + col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1985
SELECT + + col0 AS col1 FROM tab0 WHERE ( - CAST( - + col0 AS SIGNED ) - - col0 ) <> 16 + - col2 + - 33 * + - col0 - ( col0 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1985
SELECT + + col0 AS col1 FROM tab0 WHERE ( - CAST ( - + col0 AS INTEGER ) - - col0 ) <> 16 + - col2 + - 33 * + - col0 - ( col0 )
----
15
87
97

query I rowsort
SELECT ALL 54 + + - 20 * + + col2 * + ( col2 ) AS col0 FROM tab1
----
-184266
-69566
-92426

query I rowsort
SELECT + col1 + + - col1 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + 67 AS col2 FROM tab1 AS cor0
----
118
152
158

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col1 col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT ALL col0 + 6 + - col2 AS col2 FROM tab1
----
-39
29
32

query I rowsort
SELECT - - col0 * - 82 + + 11 - col1 FROM tab1 AS cor0
----
-4185
-6964
-7498

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

skipif mysql # not compatible
query I rowsort label-1994
SELECT + - COUNT ( * ) - + 38 AS col2 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT - - 5 - + - 88 + + - 44 FROM tab2 AS cor0
----
49

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

query I rowsort
SELECT ( - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + 94 * + col1 FROM tab2
----
4794
6298
7238

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT - 60 * col1 DIV - col0 col0 FROM tab2
----
53
66
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1999
SELECT - 60 * col1 / - col0 col0 FROM tab2
----
53
66
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2000
SELECT DISTINCT col0 DIV + 83 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT col0 / + 83 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT ALL col1 * 77 AS col1 FROM tab2
----
3927
5159
5929

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN + ( - col1 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT DISTINCT - CAST( - CAST( + 35 AS SIGNED ) AS SIGNED ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT - CAST ( - CAST ( + 35 AS INTEGER ) AS INTEGER ) FROM tab1
----
35

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT + + col2 IS NULL
----
-1
-21
-81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col2, 46 * - + col1 + - - col0 col2 FROM tab2 AS cor0
----
-1173
-2300
-3080
-3478
-3886
-3007

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT + SUM( DISTINCT 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-2010
SELECT + SUM ( DISTINCT 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT DISTINCT MAX( - - CAST( NULL AS SIGNED ) ) + 62 + - ( + 9 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2011
SELECT DISTINCT MAX ( - - CAST ( NULL AS INTEGER ) ) + 62 + - ( + 9 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + 69 * - col2 AS col2 FROM tab0 AS cor0
----
-3243
-6831
-690

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL MIN( 63 ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL MIN ( 63 ) AS col1 FROM tab1 AS cor0
----
63

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = 80
----

query I rowsort
SELECT + 34 + + 78 AS col2 FROM tab2 AS cor0
----
112
112
112

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

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

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

query I rowsort
SELECT ALL col0 * + 86 * - col0 AS col1 FROM tab0
----
-19350
-650934
-809174

query I rowsort
SELECT DISTINCT + col1 + - + ( - col2 ) AS col0 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT - CAST( - - 53 AS SIGNED ) FROM tab0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-2022
SELECT - CAST ( - - 53 AS INTEGER ) FROM tab0
----
-53
-53
-53

query I rowsort
SELECT ALL + col1 * + col1 + + 92 + + col0 + col1 + - - 44 + - col2 * + col2 + + col1 + col2 * - 37 FROM tab1
----
-12357
-4610
-5408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - ( - 31 ) col2 FROM tab0 cor0
----
-56
-66
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT DISTINCT + + 37 DIV col1 * 90 col0 FROM tab0 AS cor0
----
0
3330
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2026
SELECT DISTINCT + + 37 / col1 * 90 col0 FROM tab0 AS cor0
----
0
3330
90

query I rowsort
SELECT - - 73 FROM tab1 WHERE + - 17 IS NOT NULL
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col0 col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT + + MAX( - col0 ) col1 FROM tab0 AS cor0
----
-15

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 59 * + col1 AS col1 FROM tab2 AS cor0
----
-3009
-3953
-4543

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2034
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + + col1 / CAST( NULL AS SIGNED ) AND - - col0 + col1
----

skipif mysql # not compatible
query III rowsort label-2034
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + + col1 / CAST ( NULL AS INTEGER ) AND - - col0 + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2035
SELECT ALL - 9 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL - 9 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + - col0 IN ( - - 19, col0 * + 99 - - 64, - 75 + + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, - 33 col0 FROM tab0
----
15
-33
87
-33
97
-33

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, 39 col0 FROM tab2 AS cor0
----
23
39
40
39
58
39

query I rowsort
SELECT ALL - 64 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT + 9 + + col2 + - col1 AS col0 FROM tab1
----
30
63
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2048
SELECT * FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) * 3 * + + 51 / 7 > NULL
----

skipif mysql # not compatible
query III rowsort label-2048
SELECT * FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) * 3 * + + 51 / 7 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL - - COUNT( * ) * + COUNT( * ) + COUNT( * ) + + 93 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) + + 93 FROM tab1 AS cor0
----
105

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2051
SELECT ALL - 54 DIV 59 + + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - 54 / 59 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 * - 95 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col2, 55 col0 FROM tab1
----
51
55
85
55
91
55

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2058
SELECT col0 DIV + - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2058
SELECT col0 / + - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 21 + 52 - col2 FROM tab1
----
-23
14
5

query I rowsort
SELECT + col0 * col1 + + + 42 * 14 + + col2 * 29 AS col1 FROM tab0
----
2705
3166
3556

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

query I rowsort
SELECT ALL + 16 * 46 + - col1 - + col1 + col2 FROM tab1 AS cor0
----
710
785
804

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 75 >= - col2
----

query I rowsort
SELECT - col0 + + col1 * col0 AS col2 FROM tab1 cor0
----
340
4186
663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT ALL - col0 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT 20 * + - 53 NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL - col0 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT 20 * + - 53 NOT BETWEEN + col2 AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2066
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col0 FROM tab0
----
6

query I rowsort
SELECT ALL 28 AS col2 FROM tab0 AS cor0
----
28
28
28

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

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

query I rowsort
SELECT DISTINCT + - col0 * col2 - + + col0 AS col1 FROM tab1 AS cor0
----
-4947
-5100
-6279

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT 46 * + COUNT( * ) * COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1242

skipif mysql # not compatible
query I rowsort label-2071
SELECT 46 * + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL - 41 * + COUNT( + 89 ) AS col1 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL - 41 * + COUNT ( + 89 ) AS col1 FROM tab1 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT - col1 * + ( - col2 ) * - 65 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2073
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT - col1 * + ( - col2 ) * - 65 > NULL
----
0

query I rowsort
SELECT ALL 93 * 42 AS col1 FROM tab0 AS cor0
----
3906
3906
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - - SUM( + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2077
SELECT - - SUM ( + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT DISTINCT 52 DIV + 7 AS col2 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT 52 / + 7 AS col2 FROM tab2
----
7

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - 39 AS col2 FROM tab1 AS cor0
----
1989
3315
3549

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2082
SELECT * FROM tab2 cor0 WHERE NOT NULL <> col2 * - - col0 + - 71 + - CAST( NULL AS SIGNED ) / col1
----

skipif mysql # not compatible
query III rowsort label-2082
SELECT * FROM tab2 cor0 WHERE NOT NULL <> col2 * - - col0 + - 71 + - CAST ( NULL AS INTEGER ) / col1
----

query I rowsort
SELECT DISTINCT - col1 * + 77 AS col0 FROM tab0 AS cor0
----
-1617
-6237
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + col1 * col1 = NULL
----

query I rowsort
SELECT ALL - 98 FROM tab1 cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT - ( MIN( + 12 ) ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT - ( MIN ( + 12 ) ) AS col0 FROM tab0
----
-12

query I rowsort
SELECT ALL ( + 63 ) AS col1 FROM tab2
----
63
63
63

query I rowsort
SELECT DISTINCT ( + + col1 ) FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE - ( - col2 ) >= 74
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT DISTINCT - col2 * + + col2 + 26 DIV - col2 FROM tab0
----
-102
-2209
-9801

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT - col2 * + + col2 + 26 / - col2 FROM tab0
----
-102
-2209
-9801

query I rowsort
SELECT ALL + + 53 + + 76 FROM tab0 AS cor0
----
129
129
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT DISTINCT - - COUNT( * ) + - + MAX( + 36 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 + CAST( NULL AS SIGNED ) AND - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT - - COUNT ( * ) + - + MAX ( + 36 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 + CAST ( NULL AS INTEGER ) AND - + col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT 88 * + COUNT( * ) * + COUNT( * ) - - 73 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
73

skipif mysql # not compatible
query I rowsort label-2094
SELECT 88 * + COUNT ( * ) * + COUNT ( * ) - - 73 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2095
SELECT 43 DIV - + 41 + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2095
SELECT 43 / - + 41 + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 72 - - 92 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2097
SELECT 4 DIV + - 27, + 50 col1 FROM tab2
----
0
50
0
50
0
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2097
SELECT 4 / + - 27, + 50 col1 FROM tab2
----
0
50
0
50
0
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT MIN( - + ( + ( - col1 ) ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2098
SELECT MIN ( - + ( + ( - col1 ) ) ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 18 * col2 col1 FROM tab2 WHERE NOT col0 / + + col1 IS NULL
----
-1044
-414
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT 36 - + - COUNT( * ) AS col1 FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT 36 - + - COUNT ( * ) AS col1 FROM tab1 cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2101
SELECT DISTINCT CAST( - - CAST( col0 AS SIGNED ) AS SIGNED ) - col1 FROM tab0 cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT CAST ( - - CAST ( col0 AS INTEGER ) AS INTEGER ) - col1 FROM tab0 cor0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT DISTINCT - + col0 * - + col1 - + col2 + - - col0 DIV 47 * col1 * - + 67 AS col0 FROM tab0 AS cor0
----
-136
1168
410

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - + col0 * - + col1 - + col2 + - - col0 / 47 * col1 * - + 67 AS col0 FROM tab0 AS cor0
----
-136
1168
410

query I rowsort
SELECT + 82 * 97 AS col1 FROM tab0
----
7954
7954
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT + COUNT( * ) * - - SUM( DISTINCT - + 90 ) AS col2 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-2104
SELECT + COUNT ( * ) * - - SUM ( DISTINCT - + 90 ) AS col2 FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT MAX( DISTINCT col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT MAX ( DISTINCT col2 ) AS col0 FROM tab2
----
58

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

skipif mysql # not compatible
query I rowsort label-2106
SELECT - SUM ( DISTINCT - 28 ) FROM tab0 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2107
SELECT DISTINCT + + 26 / col2 AS col0, col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL BETWEEN ( + + col2 ) + 31 AND - col1 * + + col1 / + col2 * - CAST( - col0 AS SIGNED ) + + + col2 + - col1 ) )
----

skipif mysql # not compatible
query II rowsort label-2107
SELECT DISTINCT + + 26 / col2 AS col0, col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL BETWEEN ( + + col2 ) + 31 AND - col1 * + + col1 / + col2 * - CAST ( - col0 AS INTEGER ) + + + col2 + - col1 ) )
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 5 IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( col2 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2113
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST( - 93 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2113
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST ( - 93 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 51 ) AS col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL MAX( - ( + + col0 ) ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL MAX ( - ( + + col0 ) ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT 26 * - - col2 * - col0 AS col2 FROM tab2
----
-113100
-27508
-66560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 WHERE + - col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT col0 + 95 <= NULL
----

query I rowsort
SELECT - col1 + - 45 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - 85 * + col2 AS col1 FROM tab1 cor0
----
-5015
-5780
-8160

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 13 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT ALL - - CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL - - CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col1 * 30 AS col1 FROM tab1
----
-1410
-150
-420

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab0 WHERE + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - + col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2127
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE NOT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE NOT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 56 / - col0 * 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL + ( COUNT( * ) ) * - MIN( DISTINCT - ( + col1 ) ) + - 62 FROM tab2 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL + ( COUNT ( * ) ) * - MIN ( DISTINCT - ( + col1 ) ) + - 62 FROM tab2 AS cor0
----
169

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + + - 25 IS NULL
----

query I rowsort
SELECT ALL - 24 AS col2 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT ALL 41 + col2 FROM tab1
----
100
109
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + COUNT( * ) + - 84 + - 58 FROM tab1
----
-139

skipif mysql # not compatible
query I rowsort label-2134
SELECT + COUNT ( * ) + - 84 + - 58 FROM tab1
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 81 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 81 AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * + ( - col0 ) col0 FROM tab2 WHERE NULL IS NULL
----
-506
-704
-825

query III rowsort
SELECT * FROM tab1 WHERE + 36 / - col2 NOT BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab2
----
88

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE - 29 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT - + COUNT( * ) FROM tab2 cor0 WHERE - 13 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2140
SELECT - + COUNT ( * ) FROM tab2 cor0 WHERE - 13 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL ( 53 ) + - COUNT( * ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL ( 53 ) + - COUNT ( * ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT col1 + - - 80 + - col2 * - - col0 * - col1 AS col2 FROM tab0 AS cor0
----
18371
57266
9684

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( col1 * col0 )
----

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE 26 IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 96 col1 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2146
SELECT DISTINCT - - col1, ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2146
SELECT DISTINCT - - col1, ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query II rowsort
SELECT ALL - ( + - 82 ), - 39 - - - col1 AS col0 FROM tab2 AS cor0
----
82
-106
82
-116
82
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2149
SELECT DISTINCT SUM( - col2 ) AS col1, + COUNT( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-223
3

skipif mysql # not compatible
query II rowsort label-2149
SELECT DISTINCT SUM ( - col2 ) AS col1, + COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-223
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 72 + + col2
----

query II rowsort
SELECT DISTINCT - col2, + 43 AS col0 FROM tab2
----
-23
43
-40
43
-58
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2152
SELECT ALL + 21, + COUNT( * ) AS col2 FROM tab0
----
21
3

skipif mysql # not compatible
query II rowsort label-2152
SELECT ALL + 21, + COUNT ( * ) AS col2 FROM tab0
----
21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL ( + + ( + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL ( + + ( + COUNT ( * ) ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 25 * col2 + - - col1 AS col1 FROM tab2
----
1077
1517
626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col0 + col2 col0 FROM tab1
----
141
33
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT + 7 * COUNT( * ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT + 7 * COUNT ( * ) AS col2 FROM tab2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2157
SELECT DISTINCT col0, + CAST( + + 95 AS SIGNED ) FROM tab1
----
51
95
85
95
91
95

skipif mysql # not compatible
query II rowsort label-2157
SELECT DISTINCT col0, + CAST ( + + 95 AS INTEGER ) FROM tab1
----
51
95
85
95
91
95

query I rowsort
SELECT + - 25 AS col1 FROM tab0 AS cor0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col0 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT 75 - 95 * COUNT( * ) FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-2160
SELECT 75 - 95 * COUNT ( * ) FROM tab1
----
-210

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 NOT BETWEEN - 90 + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 41 * - col2 <= + col1 * - col2 + + 22
----

query I rowsort
SELECT DISTINCT col1 * - 85 FROM tab0
----
-1785
-6885
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT - CAST( NULL AS SIGNED ) * MIN( - 81 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT - CAST ( NULL AS INTEGER ) * MIN ( - 81 ) FROM tab1
----
NULL

query I rowsort
SELECT - 83 * 72 FROM tab2
----
-5976
-5976
-5976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 90 col2 FROM tab0
----
4230
8910
900

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 42 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * + col0 col1 FROM tab2
----
3680
5120
6000

onlyif mysql # DIV for integer division: 
query I rowsort label-2169
SELECT DISTINCT - col0 DIV 26 col2 FROM tab0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2169
SELECT DISTINCT - col0 / 26 col2 FROM tab0
----
-3
0

query I rowsort
SELECT + col1 + + 60 AS col1 FROM tab2
----
111
127
137

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 * - col2 + + ( col2 ) * col0 ) > col2 * col1
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2172
SELECT ALL 42 DIV - 68 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL 42 / - 68 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2173
SELECT 21 + col2 DIV - 8 FROM tab2
----
14
16
19

skipif mysql # not compatible
query I rowsort label-2173
SELECT 21 + col2 / - 8 FROM tab2
----
14
16
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 WHERE NOT ( 26 ) IN ( - 42 )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2176
SELECT ALL CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT col0 + + 66 FROM tab2
----
112
130
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + MAX( - 94 ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-2178
SELECT + MAX ( - 94 ) FROM tab0
----
-94

query I rowsort
SELECT ALL + col2 * 88 AS col1 FROM tab0
----
4136
8712
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 + + col0 col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
128
162
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT DISTINCT - col2 * col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - col2 * col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 49 AS col0 FROM tab1 WHERE ( - 67 ) > + col0 / + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT - 56 + 52 * COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-2183
SELECT - 56 + 52 * COUNT ( * ) FROM tab0
----
100

query I rowsort
SELECT ALL 51 * - 24 FROM tab1 AS cor0
----
-1224
-1224
-1224

query I rowsort
SELECT + 35 AS col0 FROM tab1 cor0 WHERE NOT NULL < ( - 40 * col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 97 ) >= - 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 98 AS col1 FROM tab2 cor0
----
98
98
98

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 - - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 8 col0 FROM tab2 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + col1 IS NULL
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT - - 50 * + COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-2194
SELECT - - 50 * + COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
150

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NULL < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2196
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT MIN( ALL col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2197
SELECT MIN ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2198
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + - col0 ) BETWEEN ( NULL ) AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2198
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + - col0 ) BETWEEN ( NULL ) AND - CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT COUNT( + 28 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2200
SELECT COUNT ( + 28 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 8 ) BETWEEN + col1 * - 49 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2202
SELECT ALL CAST( NULL AS SIGNED ) * + 59 + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL CAST ( NULL AS INTEGER ) * + 59 + - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT CAST( 25 AS SIGNED ) FROM tab2
----
25
25
25

skipif mysql # not compatible
query I rowsort label-2203
SELECT CAST ( 25 AS INTEGER ) FROM tab2
----
25
25
25

query I rowsort
SELECT ALL + col2 * + col2 - + col1 AS col0 FROM tab1 WHERE NULL < 12 + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2205
SELECT col0 * CAST( NULL AS DECIMAL ) FROM tab2 WHERE - col2 NOT IN ( - col1 * col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT col0 * CAST ( NULL AS REAL ) FROM tab2 WHERE - col2 NOT IN ( - col1 * col2 )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - 27 ) + + col2 AS col0 FROM tab2
----
-4
13
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) BETWEEN ( + col1 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 + col2 + - 26 FROM tab2
----
-43
-49
-50

query I rowsort
SELECT DISTINCT - col2 + - 68 AS col2 FROM tab2 AS cor0
----
-108
-126
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL + + COUNT( * ) * + - SUM( ALL + 61 ) - 56 + 83 FROM tab0 AS cor0
----
-522

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL + + COUNT ( * ) * + - SUM ( ALL + 61 ) - 56 + 83 FROM tab0 AS cor0
----
-522

query I rowsort
SELECT + col1 + + 93 AS col2 FROM tab1 AS cor0
----
107
140
98

query I rowsort
SELECT - + col2 + + - 44 AS col0 FROM tab1 cor0
----
-103
-112
-140

query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT col1 * - col1 FROM tab2 WHERE ( NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL )
----

query I rowsort
SELECT col0 / 79 AS col2 FROM tab0 WHERE ( NOT - col2 + - 89 * + 26 < ( NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 8 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 + + - col1 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * 92 + + 52 AS col2 FROM tab1 cor0 WHERE NULL NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT - col2 - col0 + + 25 * CAST( - col1 * - col2 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
110153
2279
7709113

skipif mysql # not compatible
query I rowsort label-2221
SELECT - col2 - col0 + + 25 * CAST ( - col1 * - col2 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
110153
2279
7709113

query I rowsort
SELECT ALL col1 - + col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT 86 AS col1 FROM tab1 AS cor0 WHERE NULL = ( + 96 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) * - col1 + col2 * - col1 NOT IN ( 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT - 72 * COUNT( * ) FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - 72 * COUNT ( * ) FROM tab2 AS cor0
----
-216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 40 - 4 AS col2, col1 col0 FROM tab2
----
36
51
36
67
36
77

query III rowsort
SELECT * FROM tab1 WHERE - 60 IS NOT NULL AND NOT col0 + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2228
SELECT DISTINCT + col1 DIV col1 AS col0, col2 AS col2 FROM tab1
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-2228
SELECT DISTINCT + col1 / col1 AS col0, col2 AS col2 FROM tab1
----
1
59
1
68
1
96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( ( + col0 ) ) AND ( col0 )
----

query I rowsort
SELECT ALL + ( - ( + col1 ) ) * - - col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT + 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 + - col1 * - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2624
4547
5969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2233
SELECT ( - + COUNT( * ) ) * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT ( - + COUNT ( * ) ) * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col2 * + 25 AS col1 FROM tab0 AS cor0
----
1175
2475
250

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT - CAST( NULL AS SIGNED ) col1 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-2236
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2237
SELECT + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - 1 - - + 1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT COUNT( * ) * 61 AS col1 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-2239
SELECT COUNT ( * ) * 61 AS col1 FROM tab2 AS cor0
----
183

query I rowsort
SELECT ALL ( col0 ) * - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT DISTINCT COUNT( * ) * 19 AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT COUNT ( * ) * 19 AS col2 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2242
SELECT + + MIN( DISTINCT + col0 ) DIV + 86 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT + + MIN ( DISTINCT + col0 ) / + 86 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT ALL - 68 DIV + 62 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL - 68 / + 62 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT - + ( + col0 ) DIV - col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2244
SELECT - + ( + col0 ) / - col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL - COUNT( * ) * + COUNT( * ) + 74 FROM tab0 cor0
----
65

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + 74 FROM tab0 cor0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2246
SELECT COUNT( ALL - + col2 ) + + - 58 DIV - COUNT( * ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2246
SELECT COUNT ( ALL - + col2 ) + + - 58 / - COUNT ( * ) FROM tab0 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT + ( col2 ) * ( 14 ) DIV col2 + col1 FROM tab0 AS cor0
----
15
35
95

skipif mysql # not compatible
query I rowsort label-2247
SELECT + ( col2 ) * ( 14 ) / col2 + col1 FROM tab0 AS cor0
----
15
35
95

query I rowsort
SELECT ALL - 80 * - 44 + - + col2 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3424
3452
3461

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT DISTINCT + - SUM( ALL - 61 ) FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT + - SUM ( ALL - 61 ) FROM tab1 AS cor0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT DISTINCT AVG ( ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT AVG ( ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT DISTINCT - 39 DIV 61 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT - 39 / 61 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL - ( - - 33 ) FROM tab2
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - + ( + - col0 ) + + + col0 * + - col1 + 98 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 83 col0 FROM tab1
----
-32
2
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT DISTINCT + 62 + + COUNT( * ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT + 62 + + COUNT ( * ) FROM tab0
----
65

query I rowsort
SELECT + - col1 + + - col2 + - col1 + 80 * col2 * - col0 FROM tab2 AS cor0 WHERE + col0 > NULL
----

query I rowsort
SELECT DISTINCT - col2 - + - 45 AS col2 FROM tab0 AS cor0
----
-2
-54
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT - COUNT( + 86 ) + 8 FROM tab2 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2258
SELECT - COUNT ( + 86 ) + 8 FROM tab2 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT + 34 + - 9 + + + ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT + 34 + - 9 + + + ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 93 + - 93 FROM tab0 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL - 55 * + ( - COUNT( * ) ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - 55 * + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - + ( MIN( DISTINCT + 35 ) ) AS col2 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-2262
SELECT - + ( MIN ( DISTINCT + 35 ) ) AS col2 FROM tab2 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL MIN( ALL + ( - 19 ) ) AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL MIN ( ALL + ( - 19 ) ) AS col2 FROM tab0
----
-19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 20 BETWEEN ( + - 34 * - col2 ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT 28 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT DISTINCT SUM( + - 48 ) AS col1 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT SUM ( + - 48 ) AS col1 FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT + MAX( ALL col1 ) * - - MIN( ALL - col0 ) AS col2 FROM tab0
----
-7857

skipif mysql # not compatible
query I rowsort label-2267
SELECT + MAX ( ALL col1 ) * - - MIN ( ALL - col0 ) AS col2 FROM tab0
----
-7857

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT 17 * COUNT( * ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2268
SELECT 17 * COUNT ( * ) AS col1 FROM tab2
----
51

query II rowsort
SELECT ALL - 68, col1 FROM tab0
----
-68
1
-68
21
-68
81

query I rowsort
SELECT DISTINCT + + col2 * 3 + - + col1 + + col0 FROM tab0 cor0
----
393
75
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2271
SELECT CAST( - col1 AS SIGNED ) DIV - + col0 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2271
SELECT CAST ( - col1 AS INTEGER ) / - + col0 FROM tab2 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT + MIN( DISTINCT + + 47 ) * - + ( 59 ) FROM tab0 AS cor0
----
-2773

skipif mysql # not compatible
query I rowsort label-2272
SELECT + MIN ( DISTINCT + + 47 ) * - + ( 59 ) FROM tab0 AS cor0
----
-2773

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT DISTINCT - - ( + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 2 AS col0 FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT - 17 + - 23 FROM tab1
----
-40

query I rowsort
SELECT 41 * col1 AS col2 FROM tab1
----
1927
205
574

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - - col1 + + + col1 - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT + 90 + COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT + 90 + COUNT ( * ) FROM tab0
----
93

query I rowsort
SELECT DISTINCT col1 + + - col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT DISTINCT - 63 + - + COUNT( * ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT - 63 + - + COUNT ( * ) AS col0 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / col2 IN ( + col1 )
----

query I rowsort
SELECT + + 66 + + + col2 AS col0 FROM tab1 AS cor0
----
125
134
162

query I rowsort
SELECT - col2 * - col2 + + - col2 + + ( + 60 ) + 83 - + col2 FROM tab1 AS cor0
----
3506
4631
9167

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT + 47 + + 27 + + 54 + - COUNT( * ) * 7 + + COUNT( * ) col2 FROM tab0 cor0
----
110

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2284
SELECT + 47 + + 27 + + 54 + - COUNT ( * ) * 7 + + COUNT ( * ) col2 FROM tab0 cor0
----
110

query I rowsort
SELECT DISTINCT - - 3 FROM tab0 WHERE NOT + + col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT - col1 - + CAST( - - col0 AS SIGNED ) + - 72 AS col0 FROM tab0 AS cor0
----
-168
-170
-180

skipif mysql # not compatible
query I rowsort label-2286
SELECT - col1 - + CAST ( - - col0 AS INTEGER ) + - 72 AS col0 FROM tab0 AS cor0
----
-168
-170
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ALL - MIN( + - 18 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL - MIN ( + - 18 ) FROM tab1 AS cor0
----
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 91 AND + 24 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL - + COUNT( col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL - + COUNT ( col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2290
SELECT ALL * FROM tab0 AS cor0 WHERE - ( 25 ) * + CAST( + + ( + col0 ) AS SIGNED ) - - col2 * col1 * + col1 NOT IN ( + - col1 - - + 82 + 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2290
SELECT ALL * FROM tab0 AS cor0 WHERE - ( 25 ) * + CAST ( + + ( + col0 ) AS INTEGER ) - - col2 * col1 * + col1 NOT IN ( + - col1 - - + 82 + 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0, + 35 * + col0 AS col2 FROM tab2 AS cor0
----
46
1610
64
2240
75
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT - - ( COUNT( ALL + - 38 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2292
SELECT - - ( COUNT ( ALL + - 38 ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2293
SELECT * FROM tab0 WHERE NOT + col1 / CAST( NULL AS SIGNED ) * 51 + + - CAST( 42 AS SIGNED ) > col1
----

skipif mysql # not compatible
query III rowsort label-2293
SELECT * FROM tab0 WHERE NOT + col1 / CAST ( NULL AS INTEGER ) * 51 + + - CAST ( 42 AS INTEGER ) > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL - COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT ALL - 30 * col2 DIV + + 37 FROM tab0
----
-38
-8
-80

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL - 30 * col2 / + + 37 FROM tab0
----
-38
-8
-80

query II rowsort
SELECT ALL + + col1 * - + col0 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
-1215
81
-1827
21
-97
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 <= - ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 35 col2 FROM tab0 AS cor0
----
35

query I rowsort
SELECT 32 FROM tab1 cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - COUNT( DISTINCT 60 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2300
SELECT - COUNT ( DISTINCT 60 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query II rowsort
SELECT - col1 AS col2, - 9 FROM tab2 AS cor0
----
-51
-9
-67
-9
-77
-9

query I rowsort
SELECT - 4 * ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-236
-272
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-2303
SELECT DISTINCT + + col2 + + 45 DIV col1 FROM tab1 AS cor0
----
68
99

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT + + col2 + + 45 / col1 FROM tab1 AS cor0
----
68
99

query I rowsort
SELECT ALL col1 + + col0 AS col2 FROM tab0 AS cor0 WHERE ( NOT 88 + + - col2 * - - col0 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT 36 + + 7 * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2305
SELECT 36 + + 7 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT + MIN( ALL 5 ) AS col2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT + MIN ( ALL 5 ) AS col2 FROM tab2 AS cor0
----
5

query I rowsort
SELECT + col1 * + 40 AS col0 FROM tab1 AS cor0 WHERE col0 NOT IN ( - ( - col0 ) )
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( NULL ) <> + col0 * - col0 * - col1 * + 4
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 31 + + col2 col2, - col1 FROM tab1
----
127
-14
90
-5
99
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT + col0 DIV col0 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT + col0 / col0 / + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 + + - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + + 12 FROM tab2
----
58
76
87

query I rowsort
SELECT ALL - + ( - ( 83 ) ) + + col2 AS col0 FROM tab2 AS cor0
----
106
123
141

query I rowsort
SELECT ALL - 42 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - col0 + - + 32 * + col0 * + 16 AS col1 FROM tab1 AS cor0
----
-26112
-43520
-46592

query I rowsort
SELECT - col1 * - col0 - - - col0 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT ALL + - 60 - - - 88 + 19 * - col1 FROM tab0 cor0
----
-167
-1687
-547

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2319
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 92 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2319
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 92 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 91 FROM tab1, tab1 AS cor0
----
91

query I rowsort
SELECT 62 - + 53 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT col2 * - - 66 FROM tab2
----
1518
2640
3828

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NOT NULL < NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT SUM( ALL + CAST( NULL AS SIGNED ) ) * + 38 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT SUM ( ALL + CAST ( NULL AS INTEGER ) ) * + 38 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 36 AS col1 FROM tab0 AS cor0 WHERE NOT 57 IS NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2327
SELECT + COUNT( * ) col1, + 13 AS col2 FROM tab2 AS cor0
----
3
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2327
SELECT + COUNT ( * ) col1, + 13 AS col2 FROM tab2 AS cor0
----
3
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + col1 >= NULL
----

query I rowsort
SELECT DISTINCT + - 65 FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ALL + SUM( - - 96 ) col0 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2330
SELECT ALL + SUM ( - - 96 ) col0 FROM tab2 AS cor0
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2331
SELECT DISTINCT + CAST( - MIN( 21 ) AS SIGNED ) AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT + CAST ( - MIN ( 21 ) AS INTEGER ) AS col0 FROM tab2
----
-21

query II rowsort
SELECT col0, 87 FROM tab2
----
46
87
64
87
75
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT SUM( DISTINCT - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2333
SELECT SUM ( DISTINCT - col0 ) FROM tab1
----
-227

onlyif mysql # DIV for integer division: 
query II rowsort label-2334
SELECT 1 * + + col2 AS col2, col0 DIV + 60 FROM tab0
----
10
1
47
0
99
1

skipif mysql # not compatible
query II rowsort label-2334
SELECT 1 * + + col2 AS col2, col0 / + 60 FROM tab0
----
10
1
47
0
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT + MAX( + - 42 ) * + + COUNT( * ) AS col0 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT + MAX ( + - 42 ) * + + COUNT ( * ) AS col0 FROM tab2
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col1 FROM tab1
----
91
91
91

query III rowsort
SELECT * FROM tab0 WHERE NOT + 10 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - + col1 = - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col0, col1 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT col1 * col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT + MAX( ALL 52 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT + MAX ( ALL 52 ) FROM tab0 AS cor0
----
52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT DISTINCT COUNT( - col2 ) col0 FROM tab1 AS cor0 WHERE NOT 80 - 12 IN ( - 2 * + col1 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2343
SELECT DISTINCT COUNT ( - col2 ) col0 FROM tab1 AS cor0 WHERE NOT 80 - 12 IN ( - 2 * + col1 )
----
3

query I rowsort
SELECT 3 + + col0 AS col1 FROM tab1
----
54
88
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 17 col1 FROM tab1 AS cor0
----
-12
-3
30

query I rowsort
SELECT ALL + - col2 - + - col2 + - + col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 38 col0 FROM tab1 AS cor0
----
-1786
-190
-532

query I rowsort
SELECT + col2 * + 51 * col0 * ( - col0 ) - + - col1 + - - col0 * - - ( 64 ) AS col2 FROM tab0 AS cor0
----
-3854601
-47499832
-538284

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT - 38 - COUNT( * ) - - 5 * COUNT( * ) * + ( SUM( + col2 ) ) AS col2 FROM tab1
----
3304

skipif mysql # not compatible
query I rowsort label-2349
SELECT - 38 - COUNT ( * ) - - 5 * COUNT ( * ) * + ( SUM ( + col2 ) ) AS col2 FROM tab1
----
3304

query I rowsort
SELECT 80 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2351
SELECT DISTINCT - 38, + COUNT( * ) AS col2 FROM tab2
----
-38
3

skipif mysql # not compatible
query II rowsort label-2351
SELECT DISTINCT - 38, + COUNT ( * ) AS col2 FROM tab2
----
-38
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL + 12 + ( COUNT( + col0 ) ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL + 12 + ( COUNT ( + col0 ) ) AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT COUNT( * ) + - ( 40 ) FROM tab1 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2353
SELECT COUNT ( * ) + - ( 40 ) FROM tab1 cor0
----
-37

query I rowsort
SELECT + 90 + + col2 * 1 AS col1 FROM tab0 AS cor0
----
100
137
189

query I rowsort
SELECT DISTINCT + 32 + + 82 - + 83 + + col2 FROM tab2 AS cor0
----
54
71
89

query I rowsort
SELECT ALL col0 * + 22 * - + col2 FROM tab2
----
-23276
-56320
-95700

query I rowsort
SELECT 72 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT - + 55 * - COUNT( * ) + - COUNT( * ) FROM tab2 WHERE NOT NULL >= col0
----
0

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT - + 55 * - COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE NOT NULL >= col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2359
SELECT ALL COUNT( * ) DIV - + SUM( ALL - 27 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL COUNT ( * ) / - + SUM ( ALL - 27 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT - col0 * - 37 * + - 45 AS col0 FROM tab1 AS cor0
----
-141525
-151515
-84915

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT - col1 * - col1 AS col1, col1 AS col2 FROM tab1 AS cor0
----
196
14
2209
47
25
5

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab2 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + 58 * + col2 FROM tab2 AS cor0
----
1334
2320
3364

query I rowsort
SELECT DISTINCT - - col1 * - + 80 * col0 FROM tab2 AS cor0
----
-187680
-394240
-402000

query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab0
----
4

query I rowsort
SELECT ALL 15 FROM tab0 WHERE col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 6 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT 46 + + 21 - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2371
SELECT DISTINCT 14 DIV COUNT( * ) * + 30 AS col1 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT 14 / COUNT ( * ) * + 30 AS col1 FROM tab1
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * - col2 col0 FROM tab0
----
-3807
-8019
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-2373
SELECT + COUNT( * ) AS col1, SUM( ALL + col0 ) AS col2 FROM tab2
----
3
185

skipif mysql # not compatible
query II rowsort label-2373
SELECT + COUNT ( * ) AS col1, SUM ( ALL + col0 ) AS col2 FROM tab2
----
3
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2374
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT 27 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2375
SELECT 27 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT - + 33 DIV - - 6 AS col0 FROM tab1 cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-2376
SELECT - + 33 / - - 6 AS col0 FROM tab1 cor0
----
-5
-5
-5

query II rowsort
SELECT DISTINCT col1, - col0 AS col2 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE + col2 * - + 44 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2379
SELECT DISTINCT - COUNT( ALL CAST( NULL AS SIGNED ) ) + 93 AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT - COUNT ( ALL CAST ( NULL AS INTEGER ) ) + 93 AS col0 FROM tab2 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 40 col2 FROM tab0 AS cor0
----
-30
59
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT ALL - - 98 - + COUNT( * ) AS col2 FROM tab2 cor0
----
95

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL - - 98 - + COUNT ( * ) AS col2 FROM tab2 cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT DISTINCT - + MIN( ALL + col1 ) FROM tab2 AS cor0 WHERE NULL <> col0 OR + 66 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT - + MIN ( ALL + col1 ) FROM tab2 AS cor0 WHERE NULL <> col0 OR + 66 * - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT + COUNT( * ) * - 84 AS col1 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-2383
SELECT + COUNT ( * ) * - 84 AS col1 FROM tab1
----
-252

query II rowsort
SELECT + 86 * col0 AS col1, 4 + col2 FROM tab2
----
3956
27
5504
44
6450
62

query I rowsort
SELECT ALL 65 * 6 FROM tab2
----
390
390
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT - CAST( 74 AS SIGNED ) AS col2 FROM tab2
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2386
SELECT - CAST ( 74 AS INTEGER ) AS col2 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT - col2 * + 92 - + + 79 FROM tab2
----
-2195
-3759
-5415

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ALL - ( - - 29 ) - MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL - ( - - 29 ) - MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
-19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 64 = - col1 * + + col1
----

query I rowsort
SELECT ALL - + col0 * + ( ( + + 23 ) ) FROM tab0 cor0
----
-2001
-2231
-345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2392
SELECT COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT SUM( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT SUM ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2394
SELECT DISTINCT - col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-2394
SELECT DISTINCT - col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL - col2 * - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2397
SELECT ALL + - col2 DIV ( + - col1 ) * - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL + - col2 / ( + - col1 ) * - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - + SUM( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - + SUM ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL - COUNT( * ) * 76 AS col1 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - COUNT ( * ) * 76 AS col1 FROM tab1
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL COUNT( * ) + + + 71 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL COUNT ( * ) + + + 71 FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL - MIN( ALL + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 91 ) + 98 col2 FROM tab0 AS cor0
----
7
7
7

query II rowsort
SELECT DISTINCT col0 AS col0, + col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2404
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT DISTINCT COUNT( * ) + + - 51 AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT COUNT ( * ) + + - 51 AS col2 FROM tab1
----
-48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + col2 >= col1 + col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2407
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-2407
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col1 >= NULL
----

query I rowsort
SELECT col2 * + col0 / + col2 FROM tab2 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col1 * col1 * - ( col1 ) + 17 FROM tab1 AS cor0
----
103840
142
2761

query I rowsort
SELECT - 94 - - col2 + + col0 AS col1 FROM tab1 AS cor0
----
50
53
65

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2412
SELECT ALL - + 57 DIV 85 - COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL - + 57 / 85 - COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col1 - - col2 + + col1 * ( + col0 ) AS col0, col0 AS col2 FROM tab1 AS cor0
----
4298
91
479
85
796
51

query I rowsort
SELECT ( - col0 ) - - col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT 30 + + - col1 FROM tab2
----
-21
-37
-47

query I rowsort
SELECT ( - ( col1 ) ) * + + col2 + col2 + 23 + - - col2 AS col2 FROM tab1
----
-1129
-154
-3037

query I rowsort
SELECT + col0 * + col2 + - - col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT - + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL + COUNT( - ( col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL + COUNT ( - ( col0 ) ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT 25, col1 AS col1, 62 AS col2 FROM tab0
----
9 values hashing to 1e26b14cc015f941727ef56701e5381e

query II rowsort
SELECT ALL col2, + col1 + + col1 * + 15 * col0 FROM tab0
----
10
27426
47
18306
99
1456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2423
SELECT ALL CAST( NULL AS SIGNED ) * - + col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2423
SELECT ALL CAST ( NULL AS INTEGER ) * - + col0 col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2 AS col0, 8 AS col2 FROM tab0 AS cor0
----
-10
8
-47
8
-99
8

query I rowsort
SELECT + + col0 * col1 - col0 AS col0 FROM tab1 AS cor0
----
340
4186
663

query II rowsort
SELECT DISTINCT - col0, + col1 + - + col0 AS col1 FROM tab2 AS cor0
----
-46
5
-64
13
-75
-8

query II rowsort
SELECT - col2 AS col2, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - col2 * 50 col2 FROM tab2 cor0
----
-154000
-194300
-58650

query I rowsort
SELECT + ( + + ( - col2 ) ) AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - - 35 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
35

query I rowsort
SELECT ALL - - ( + 30 ) * - col2 AS col0 FROM tab0 cor0
----
-1410
-2970
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT + ( - + 50 ) * COUNT( * ) FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + ( - + 50 ) * COUNT ( * ) FROM tab2 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT + + COUNT( 32 ) * 11 AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2433
SELECT + + COUNT ( 32 ) * 11 AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT SUM( ALL - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2434
SELECT SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL + + 85 FROM tab1 AS cor0
----
85
85
85

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) < - 83
----

query I rowsort
SELECT ALL 82 FROM tab0 AS cor0 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - - col1 * col1 + - col1 + - ( + ( + col1 ) ) FROM tab1
----
200925
2115
9968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + 62 col1 FROM tab0
----
-5394
-6014
-930

query I rowsort
SELECT + col2 * + col0 * - - ( col2 ) AS col0 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT 78 * - + col1 AS col2 FROM tab0
----
-1638
-6318
-78

query I rowsort
SELECT ALL - col2 + col2 + + col2 + col0 + 29 FROM tab2
----
133
162
98

query I rowsort
SELECT DISTINCT + - 36 * col0 AS col1 FROM tab1 AS cor0
----
-1836
-3060
-3276

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2447
SELECT col2 AS col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN - CAST( + col2 AS DECIMAL ) / + col1 + col0 AND col1
----

skipif mysql # not compatible
query I rowsort label-2447
SELECT col2 AS col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN - CAST ( + col2 AS REAL ) / + col1 + col0 AND col1
----

query I rowsort
SELECT 65 * - col1 FROM tab2 AS cor0
----
-3315
-4355
-5005

query I rowsort
SELECT col1 * + 71 + + col0 AS col1 FROM tab2 AS cor0
----
3667
4832
5531

query II rowsort
SELECT DISTINCT ( - + 93 ) + col1 - 27, col1 FROM tab1
----
-106
14
-115
5
-73
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL 54 + + MIN( + ( - + 90 ) ) * + - ( ( - ( - ( + - MAX( 4 ) ) ) ) ) FROM tab0
----
-306

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL 54 + + MIN ( + ( - + 90 ) ) * + - ( ( - ( - ( + - MAX ( 4 ) ) ) ) ) FROM tab0
----
-306

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + 92 - - + ( col2 ) - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2453
SELECT DISTINCT + 6 DIV + 91 + COUNT( * ) + 38 * - COUNT( * ) + - 96 AS col2 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT + 6 / + 91 + COUNT ( * ) + 38 * - COUNT ( * ) + - 96 AS col2 FROM tab2 AS cor0
----
-207

query I rowsort
SELECT - 1 + - + 19 FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 <= - col2 + + + 85 + 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 4 + + - 54 * 16 * - col0 FROM tab0 AS cor0
----
12956
75164
83804

query I rowsort
SELECT DISTINCT + - 52 - col1 FROM tab0 AS cor0
----
-133
-53
-73

query I rowsort
SELECT 71 * - + 80 FROM tab1 AS cor0
----
-5680
-5680
-5680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2459
SELECT ALL col0 * - - CAST( + col1 AS SIGNED ) + + col1 col0 FROM tab1 cor0
----
430
4324
728

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2459
SELECT ALL col0 * - - CAST ( + col1 AS INTEGER ) + + col1 col0 FROM tab1 cor0
----
430
4324
728

query I rowsort
SELECT DISTINCT - col2 * - col2 + col0 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col2 * + ( + 69 ) FROM tab2
----
1587
2760
4002

query I rowsort
SELECT 43 * + 84 * col1 FROM tab1
----
169764
18060
50568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col1 FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT + SUM( DISTINCT + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + SUM ( DISTINCT + col0 ) AS col1 FROM tab2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT - col1 DIV - + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2465
SELECT - col1 / - + col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ( - 5 ) * - + col2 AS col0 FROM tab0
----
235
495
50

query I rowsort
SELECT - - 29 AS col0 FROM tab0 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2468
SELECT DISTINCT + - col1 * + col2 AS col2 FROM tab2 AS cor0 WHERE - col2 = - - CAST( + ( - col0 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT + - col1 * + col2 AS col2 FROM tab2 AS cor0 WHERE - col2 = - - CAST ( + ( - col0 ) AS INTEGER )
----

query II rowsort
SELECT DISTINCT - col2, + 2 * col0 AS col0 FROM tab1
----
-59
170
-68
182
-96
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, - col1 * col0 FROM tab2
----
23
-2346
40
-4928
58
-5025

query I rowsort
SELECT ALL + col1 + + col1 + - col0 AS col2 FROM tab2 AS cor0
----
56
59
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col1
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 1 AS col2, - ( - col1 ) col2 FROM tab0 cor0
----
1
1
1
21
1
81

query II rowsort
SELECT - - col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT - - 86 FROM tab2 cor0
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2476
SELECT * FROM tab0 AS cor0 WHERE NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2476
SELECT * FROM tab0 AS cor0 WHERE NULL = CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col2, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= + col2 * + col0 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT col1 DIV - + 14 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2479
SELECT col1 / - + 14 FROM tab1
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE - col0 * + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE - col0 * + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + col0 AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT + COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2483
SELECT + COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2484
SELECT ( - COUNT( * ) ) DIV - 5 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-2484
SELECT ( - COUNT ( * ) ) / - 5 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
1

query I rowsort
SELECT col0 - - - 99 FROM tab2 AS cor0
----
-24
-35
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT + + 48 * - - SUM( - 72 ) + + - 15 * + - 32 * + - 11 - - + 89 AS col0 FROM tab0 AS cor0
----
-15559

skipif mysql # not compatible
query I rowsort label-2486
SELECT + + 48 * - - SUM ( - 72 ) + + - 15 * + - 32 * + - 11 - - + 89 AS col0 FROM tab0 AS cor0
----
-15559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - - + col1 col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT 58 DIV - col0 - 48 + 76 + col1 * + col2 * - + 4 AS col1 FROM tab0 AS cor0
----
-15203
-368
-812

skipif mysql # not compatible
query I rowsort label-2488
SELECT 58 / - col0 - 48 + 76 + col1 * + col2 * - + 4 AS col1 FROM tab0 AS cor0
----
-15203
-368
-812

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 29 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT DISTINCT - COUNT( * ) * 70 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT - COUNT ( * ) * 70 FROM tab0 AS cor0
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT ALL + + col1 * + - CAST( NULL AS SIGNED ) * col0 * - - col0 / - 1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2491
SELECT ALL + + col1 * + - CAST ( NULL AS INTEGER ) * col0 * - - col0 / - 1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col1
----

query II rowsort
SELECT DISTINCT 22 * - col0, col0 FROM tab0
----
-1914
87
-2134
97
-330
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 53 - + 33 col2, col1 * + 83 * - + 85 * - - ( - col1 ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + col1
----

query II rowsort
SELECT DISTINCT ( + 2 ), col1 FROM tab2
----
2
51
2
67
2
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - + 13
----

query I rowsort
SELECT DISTINCT - ( 68 ) FROM tab1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL MIN( - 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL MIN ( - 47 ) FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2500
SELECT + + col1 DIV - + col1, col2 AS col0 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-2500
SELECT + + col1 / - + col1, col2 AS col0 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + ( + + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + ( + + col1 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2502
SELECT ALL + CAST( NULL AS DECIMAL ) + - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL + CAST ( NULL AS REAL ) + - - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT DISTINCT - COUNT( ALL + - 6 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT - COUNT ( ALL + - 6 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col2 + + + col1 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2505
SELECT - + 21 AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-21
3

skipif mysql # not compatible
query II rowsort label-2505
SELECT - + 21 AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL MAX( - 3 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL MAX ( - 3 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 * col0 / + col1 * + + col1 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 65 * - - col2 AS col2 FROM tab1 AS cor0
----
-3835
-4420
-6240

query I rowsort
SELECT DISTINCT col1 * + 55 * + 91 FROM tab1
----
235235
25025
70070

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT - COUNT( * ) + - 21 + - COUNT( * ) AS col2 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2510
SELECT - COUNT ( * ) + - 21 + - COUNT ( * ) AS col2 FROM tab1
----
-27

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 * col2 * - col2 ) IN ( - 69, col1 )
----

query I rowsort
SELECT ALL - col0 * 85 FROM tab0
----
-1275
-7395
-8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 4 col2, + col0 FROM tab0
----
-4
15
-4
87
-4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - MAX( ALL + col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2514
SELECT - MAX ( ALL + col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT + CAST( - COUNT( ALL - + col1 ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2515
SELECT + CAST ( - COUNT ( ALL - + col1 ) AS INTEGER ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + + SUM( ALL col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2516
SELECT + + SUM ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
66

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT DISTINCT COUNT( * ) * - - 15 * + + 1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT COUNT ( * ) * - - 15 * + + 1 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL COUNT( * ) * + + SUM( DISTINCT - 76 ) AS col1 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL COUNT ( * ) * + + SUM ( DISTINCT - 76 ) AS col1 FROM tab1
----
-228

query I rowsort
SELECT + col1 FROM tab1 WHERE + col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT - 73 + + SUM( ALL + col0 ) col0 FROM tab0 WHERE NULL IS NULL
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2521
SELECT - 73 + + SUM ( ALL + col0 ) col0 FROM tab0 WHERE NULL IS NULL
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT + 84 * - COUNT( * ) * + 87 AS col2 FROM tab1 AS cor0
----
-21924

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT + 84 * - COUNT ( * ) * + 87 AS col2 FROM tab1 AS cor0
----
-21924

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT - - COUNT( + + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2523
SELECT - - COUNT ( + + col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2524
SELECT DISTINCT + - ( + 18 ) AS col1, MIN( + col2 ) FROM tab1 AS cor0
----
-18
59

skipif mysql # not compatible
query II rowsort label-2524
SELECT DISTINCT + - ( + 18 ) AS col1, MIN ( + col2 ) FROM tab1 AS cor0
----
-18
59

query I rowsort
SELECT + 45 * col1 * - + col0 AS col0 FROM tab0 AS cor0
----
-4365
-54675
-82215

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2526
SELECT DISTINCT + 61 * + 1 AS col2, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-2526
SELECT DISTINCT + 61 * + 1 AS col2, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
61
NULL

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT - col0 IS NULL )
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + + + col1 >= NULL
----

query II rowsort
SELECT ALL col2, - 89 FROM tab1
----
59
-89
68
-89
96
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT DISTINCT - COUNT( + + col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT - COUNT ( + + col0 ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT 1 AS col0, COUNT( + col2 ) FROM tab0
----
1
3

skipif mysql # not compatible
query II rowsort label-2531
SELECT 1 AS col0, COUNT ( + col2 ) FROM tab0
----
1
3

query II rowsort
SELECT col2, + col1 * + - col2 FROM tab1
----
59
-295
68
-3196
96
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT MAX( DISTINCT + + 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2533
SELECT MAX ( DISTINCT + + 15 ) FROM tab1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT DISTINCT col0 DIV - 23 AS col0 FROM tab1
----
-2
-3

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT col0 / - 23 AS col0 FROM tab1
----
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL + COUNT( 13 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2535
SELECT ALL + COUNT ( 13 ) col2 FROM tab0
----
3

query I rowsort
SELECT 12 AS col0 FROM tab2 WHERE NOT - 92 IS NULL
----
12
12
12

query I rowsort
SELECT DISTINCT - 42 * - - col0 * + 12 * - 60 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) * + col1 IS NULL
----
1542240
2570400
2751840

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT DISTINCT COUNT( ALL 36 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT COUNT ( ALL 36 ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 46 <> NULL
----

query II rowsort
SELECT 96 + - col0 AS col0, + 92 AS col2 FROM tab1
----
11
92
45
92
5
92

query I rowsort
SELECT ALL - 86 * + col0 - + - 1 FROM tab0 AS cor0
----
-1289
-7481
-8341

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 >= + - ( + 64 ) * + 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT MIN( ALL + - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT MIN ( ALL + - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT + col2 DIV - 48 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2545
SELECT + col2 / - 48 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT + COUNT( * ) * - + COUNT( ALL - + col2 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( ALL - + col2 ) FROM tab0
----
-9

query I rowsort
SELECT + + 45 * - col0 FROM tab2 WHERE col2 IS NOT NULL
----
-2070
-2880
-3375

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT - ( + COUNT( DISTINCT + col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT - ( + COUNT ( DISTINCT + col2 ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT + col0 + - 65 / 33 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT + col0 + - 65 / 33 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 - col0 * 55 col2 FROM tab0 AS cor0
----
-4717
-5267
-757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col0 col0 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 / 30 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT - col1 * CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-2553
SELECT - col1 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL - 44 - - col2 FROM tab1 AS cor0
----
15
24
52

query I rowsort
SELECT DISTINCT - col2 * + col0 - 43 AS col1 FROM tab0
----
-748
-913
-9646

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 < col0 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 44 * - 64 * - col2 * - + col0 - ( 0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - ( - - col2 ) * col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT - ( + COUNT( * ) ) * 26 col2 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2559
SELECT DISTINCT - ( + COUNT ( * ) ) * 26 col2 FROM tab0 AS cor0
----
-78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / col0 IS NOT NULL
----

query I rowsort
SELECT ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 11 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT + 10 * - + MAX( 2 ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-2563
SELECT + 10 * - + MAX ( 2 ) FROM tab0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL ( + SUM( ALL - col1 ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL ( + SUM ( ALL - col1 ) ) AS col2 FROM tab1
----
-66

query II rowsort
SELECT + 83 * + 5, + col0 FROM tab0
----
415
15
415
87
415
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT ALL - 53 DIV + - col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - 53 / + - col2 FROM tab0
----
0
1
5

query I rowsort
SELECT ( - - col2 ) FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT - + COUNT( * ) * 68 * 24 + + + 23 FROM tab2 AS cor0
----
-4873

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - + COUNT ( * ) * 68 * 24 + + + 23 FROM tab2 AS cor0
----
-4873

query I rowsort
SELECT DISTINCT - 40 * col1 - col2 AS col0 FROM tab2 AS cor0
----
-2063
-2738
-3120

query I rowsort
SELECT ALL - - ( 74 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + MIN( ALL + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2571
SELECT + MIN ( ALL + col2 ) FROM tab2
----
23

query I rowsort
SELECT - col0 + + 87 FROM tab0
----
-10
0
72

query I rowsort
SELECT ALL - col1 + - - col0 AS col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ( col1 ) * - 38 + col2 FROM tab1 AS cor0
----
-131
-1718
-436

query I rowsort
SELECT + - 49 + - col0 AS col0 FROM tab0 AS cor0
----
-136
-146
-64

query II rowsort
SELECT DISTINCT col0 AS col0, + col0 * col1 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

query I rowsort
SELECT col1 + ( 44 ) AS col0 FROM tab0 AS cor0
----
125
45
65

onlyif mysql # DIV for integer division: 
query II rowsort label-2578
SELECT DISTINCT col2, col1 DIV + 88 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-2578
SELECT DISTINCT col2, col1 / + 88 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 - + + 66 * - 75 AS col0, 87 * + col1 * - - col0 + col0 col1 FROM tab2 AS cor0
----
4973
204148
4990
428800
5008
437250

query I rowsort
SELECT DISTINCT + 63 FROM tab0 WHERE NOT NULL IS NOT NULL
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2581
SELECT CAST( - 34 AS SIGNED ) DIV + COUNT( * ) AS col1 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-2581
SELECT CAST ( - 34 AS INTEGER ) / + COUNT ( * ) AS col1 FROM tab1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT SUM( + 83 ) AS col1 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-2582
SELECT SUM ( + 83 ) AS col1 FROM tab1
----
249

query I rowsort
SELECT - 51 - + col2 AS col0 FROM tab0 AS cor0
----
-150
-61
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT - COUNT( * ) - - - 95 AS col0 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2584
SELECT - COUNT ( * ) - - - 95 AS col0 FROM tab1 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT - - col2 * - + col0 col0 FROM tab1 AS cor0 WHERE col2 + - 40 + + - col2 - + CAST( + 10 AS SIGNED ) <> + - col1 * 73 + + col1
----
-4896
-5015
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2585
SELECT - - col2 * - + col0 col0 FROM tab1 AS cor0 WHERE col2 + - 40 + + - col2 - + CAST ( + 10 AS INTEGER ) <> + - col1 * 73 + + col1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 98 ) - - + col2 + + col1 AS col0, + col1 col1 FROM tab1 AS cor0
----
-34
5
12
14
17
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 - + col0 * col1 col0 FROM tab1 AS cor0
----
-408
-4260
-697

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2589
SELECT * FROM tab2 WHERE NOT NULL <= - CAST( + - col0 AS DECIMAL ) * - + col1
----

skipif mysql # not compatible
query III rowsort label-2589
SELECT * FROM tab2 WHERE NOT NULL <= - CAST ( + - col0 AS REAL ) * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT MAX( - + col2 ) col1 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2590
SELECT MAX ( - + col2 ) col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL + - COUNT( ALL - 91 ) * + 69 + - 19 AS col0 FROM tab0 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL + - COUNT ( ALL - 91 ) * + 69 + - 19 AS col0 FROM tab0 AS cor0
----
-226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + col1 col0 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 74 * col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL ( - - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL - MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL + + 67 AS col2 FROM tab1 cor0
----
67
67
67

query I rowsort
SELECT ALL - ( - 93 ) FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT + ( + 87 ) FROM tab1 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT 99 AS col1, - ( COUNT( * ) ) + 21 - - SUM( DISTINCT ( ( + + col0 ) ) ) FROM tab2
----
99
203

skipif mysql # not compatible
query II rowsort label-2600
SELECT 99 AS col1, - ( COUNT ( * ) ) + 21 - - SUM ( DISTINCT ( ( + + col0 ) ) ) FROM tab2
----
99
203

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL - COUNT( - - col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL - COUNT ( - - col1 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2602
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2603
SELECT DISTINCT col0 AS col1, CAST( NULL AS DECIMAL ) * - 74 AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2603
SELECT DISTINCT col0 AS col1, CAST ( NULL AS REAL ) * - 74 AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT DISTINCT - CAST( + - 49 AS SIGNED ) * col0 FROM tab1
----
2499
4165
4459

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT - CAST ( + - 49 AS INTEGER ) * col0 FROM tab1
----
2499
4165
4459

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT + COUNT( * ) AS col2, COUNT( + col2 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2605
SELECT + COUNT ( * ) AS col2, COUNT ( + col2 ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT DISTINCT SUM( DISTINCT - 63 ) * 46 FROM tab2
----
-2898

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT SUM ( DISTINCT - 63 ) * 46 FROM tab2
----
-2898

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2608
SELECT COUNT( * ) AS col2, 84 AS col0 FROM tab0 AS cor0
----
3
84

skipif mysql # not compatible
query II rowsort label-2608
SELECT COUNT ( * ) AS col2, 84 AS col0 FROM tab0 AS cor0
----
3
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0, 72 + - + ( - - 33 ) col1 FROM tab1 cor0
----
-51
39
-85
39
-91
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IN ( - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NULL OR 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT MAX( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2612
SELECT MAX ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2614
SELECT DISTINCT - col2 + - - CAST( NULL AS SIGNED ), 62 * - + col0 col1 FROM tab2 AS cor0
----
NULL
-2852
NULL
-3968
NULL
-4650

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2614
SELECT DISTINCT - col2 + - - CAST ( NULL AS INTEGER ), 62 * - + col0 col1 FROM tab2 AS cor0
----
NULL
-2852
NULL
-3968
NULL
-4650

query II rowsort
SELECT DISTINCT + ( - 24 ) AS col1, - 47 FROM tab1 AS cor0
----
-24
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT + 58 - - - COUNT( + + col1 ) AS col1 FROM tab1 cor0
----
55

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT + 58 - - - COUNT ( + + col1 ) AS col1 FROM tab1 cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT + 64 - + - MIN( ALL + col2 ) col1 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2617
SELECT + 64 - + - MIN ( ALL + col2 ) col1 FROM tab1 AS cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2618
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + + col2 + + col1 + col0 * - col0 BETWEEN + 63 AND - + ( - + ( - col2 ) ) + + + 55 AND 64 * 52 + - col2 / + 47 * CAST( - + col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2618
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + + col2 + + col1 + col0 * - col0 BETWEEN + 63 AND - + ( - + ( - col2 ) ) + + + 55 AND 64 * 52 + - col2 / + 47 * CAST ( - + col0 AS INTEGER ) <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2619
SELECT ALL col2 - + 71 AS col2, 42 DIV - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-24
0
-61
4
28
0

skipif mysql # not compatible
query II rowsort label-2619
SELECT ALL col2 - + 71 AS col2, 42 / - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-24
0
-61
4
28
0

query I rowsort
SELECT 83 + - col1 * col2 AS col0 FROM tab0
----
-127
-16
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL 44 + COUNT( * ) AS col1 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL 44 + COUNT ( * ) AS col1 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + COUNT( - 64 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2622
SELECT + COUNT ( - 64 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + ( + + 81 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2624
SELECT ALL * FROM tab2 WHERE ( + 34 ) NOT IN ( + CAST( col2 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2624
SELECT ALL * FROM tab2 WHERE ( + 34 ) NOT IN ( + CAST ( col2 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT DISTINCT COUNT( + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT COUNT ( + col2 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( - 93 ) AND + col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT ALL col0 - + ( + col0 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL col0 - + ( + col0 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT COUNT( DISTINCT col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2628
SELECT COUNT ( DISTINCT col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL MIN( DISTINCT col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL MIN ( DISTINCT col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NULL BETWEEN + 56 AND 66
----

query III rowsort
SELECT * FROM tab0 WHERE - ( col0 ) NOT IN ( + col0 * col1 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE 93 NOT IN ( col2 * col1 - + 13 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT + SUM( + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2633
SELECT + SUM ( + col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT DISTINCT - 93 + col1 FROM tab1 WHERE NOT + col2 = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL - MIN( 97 ) AS col0 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - MIN ( 97 ) AS col0 FROM tab1
----
-97

query I rowsort
SELECT ALL + 87 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 * + 26 + col2 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 62 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + 63 ) FROM tab0
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT - col1 DIV 98 + 24 AS col2 FROM tab0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-2640
SELECT - col1 / 98 + 24 AS col2 FROM tab0
----
24
24
24

query I rowsort
SELECT + col0 * 37 AS col0 FROM tab0
----
3219
3589
555

query III rowsort
SELECT * FROM tab2 WHERE ( col2 - 98 ) = - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( - 33 )
----

query I rowsort
SELECT col0 + - 50 FROM tab0
----
-35
37
47

query I rowsort
SELECT ( - 57 ) + + col1 FROM tab2
----
-6
10
20

query I rowsort
SELECT ALL - col1 + + col2 * 3 FROM tab1
----
157
172
274

query I rowsort
SELECT DISTINCT - col0 / + 99 FROM tab2 WHERE ( + col2 * - col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ( MIN( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2648
SELECT ( MIN ( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) BETWEEN col2 AND ( ( ( 5 ) ) )
----

query I rowsort
SELECT + col1 + col2 FROM tab0 AS cor0 WHERE ( 84 ) + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= ( col2 + 60 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2653
SELECT - 69 DIV MIN( DISTINCT 76 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2653
SELECT - 69 / MIN ( DISTINCT 76 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL BETWEEN NULL AND 73 * - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT ALL COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2655
SELECT ALL COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT - SUM( col1 ) FROM tab1 WHERE NOT ( + col2 ) < + col2
----
-66

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - SUM ( col1 ) FROM tab1 WHERE NOT ( + col2 ) < + col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 WHERE ( - 69 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-2657
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 WHERE ( - 69 ) IS NOT NULL
----
9

query I rowsort
SELECT - col1 + - 34 AS col2 FROM tab1 AS cor0
----
-39
-48
-81

query I rowsort
SELECT - ( col1 ) * - ( - 70 ) + col2 AS col1 FROM tab0 cor0
----
-1460
-5623
29

query I rowsort
SELECT ALL col2 * col0 + 91 FROM tab1 AS cor0
----
4987
5106
6279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2661
SELECT - + ( + COUNT( * ) ) DIV - SUM( - 36 + - ( - col1 ) ) + - 14 AS col2 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2661
SELECT - + ( + COUNT ( * ) ) / - SUM ( - 36 + - ( - col1 ) ) + - 14 AS col2 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT + col0 + ( + 57 + - 85 ) AS col2 FROM tab1 AS cor0
----
23
57
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT - AVG ( ALL + col2 ) + MAX( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN ( + 8 ) AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT - AVG ( ALL + col2 ) + MAX ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN ( + 8 ) AND - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT - COUNT( * ) + + ( + COUNT( * ) ) * 79 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-2664
SELECT - COUNT ( * ) + + ( + COUNT ( * ) ) * 79 FROM tab2 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2666
SELECT ALL * FROM tab1 AS cor0 WHERE 79 * col1 BETWEEN + 22 * - col1 AND CAST( NULL AS SIGNED ) + - 38
----

skipif mysql # not compatible
query III rowsort label-2666
SELECT ALL * FROM tab1 AS cor0 WHERE 79 * col1 BETWEEN + 22 * - col1 AND CAST ( NULL AS INTEGER ) + - 38
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab0 WHERE NOT 13 IS NULL
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT + ( COUNT( * ) ) FROM tab0 WHERE ( - col1 ) NOT BETWEEN + col1 AND col2
----
3

skipif mysql # not compatible
query I rowsort label-2669
SELECT + ( COUNT ( * ) ) FROM tab0 WHERE ( - col1 ) NOT BETWEEN + col1 AND col2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 - - 51 ) > NULL
----

query I rowsort
SELECT DISTINCT + 57 * + 67 FROM tab1
----
3819

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) > ( - 32 * col1 )
----

query I rowsort
SELECT col0 * + 12 - - 21 * - 59 AS col0 FROM tab1
----
-147
-219
-627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT ALL - ( col0 ) * CAST( + ( - 94 ) AS SIGNED ) AS col1 FROM tab1
----
4794
7990
8554

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL - ( col0 ) * CAST ( + ( - 94 ) AS INTEGER ) AS col1 FROM tab1
----
4794
7990
8554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL + MIN( ALL col1 ) * + 66 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL + MIN ( ALL col1 ) * + 66 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT MIN( DISTINCT 10 ) FROM tab0 WHERE NOT - 42 * - 72 + - 57 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT MIN ( DISTINCT 10 ) FROM tab0 WHERE NOT - 42 * - 72 + - 57 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT 82 DIV - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2678
SELECT 82 / - col2 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2679
SELECT DISTINCT - 30 DIV col1 FROM tab0
----
-1
-30
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT - 30 / col1 FROM tab0
----
-1
-30
0

query I rowsort
SELECT - 91 * - ( 1 ) - col2 FROM tab0 AS cor0
----
-8
44
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT + ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 9 + col2 IS NULL
----

query I rowsort
SELECT - - 14 FROM tab0 cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT - - COUNT( * ) * + 55 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT - - COUNT ( * ) * + 55 FROM tab2 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-2685
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
81

query II rowsort
SELECT col0, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab1 WHERE NOT - col0 = col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2688
SELECT ALL - - COUNT( * ), + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2688
SELECT ALL - - COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3
NULL

query II rowsort
SELECT DISTINCT + + col1 AS col2, col1 AS col1 FROM tab2 cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT + MIN( + + col2 ) * - + 84 FROM tab2 AS cor0
----
-1932

skipif mysql # not compatible
query I rowsort label-2690
SELECT + MIN ( + + col2 ) * - + 84 FROM tab2 AS cor0
----
-1932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab0 AS cor0 WHERE NOT ( col1 * + - col1 ) >= 65
----
86
86
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2692
SELECT DISTINCT - + CAST( + COUNT( 17 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - + CAST ( + COUNT ( 17 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 21 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT - col1 DIV + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2694
SELECT - col1 / + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 4 AS col0 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT ( + 28 ) * col2 FROM tab1
----
1652
1904
2688

query I rowsort
SELECT ALL ( - ( + - 1 ) ) FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2698
SELECT + 81 * col0 DIV + col2 FROM tab1
----
108
116
43

skipif mysql # not compatible
query I rowsort label-2698
SELECT + 81 * col0 / + col2 FROM tab1
----
108
116
43

query III rowsort
SELECT ALL * FROM tab2 WHERE 89 NOT IN ( + + 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + col0 AS col0 FROM tab2 WHERE + col0 IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + 75 + col0 AS col2 FROM tab2
----
121
139
150

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT + ( col1 ) + - 31 DIV - 76 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2702
SELECT + ( col1 ) + - 31 / - 76 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - ( + col2 ) - - ( + 21 ) * col1 FROM tab2 cor0
----
1048
1349
1577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2704
SELECT CAST( ( - COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2704
SELECT CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 + - + 15 + + + 40 * + - col0 col1 FROM tab1
----
-1968
-3328
-3568

query III rowsort
SELECT * FROM tab0 WHERE + - col0 * - 50 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / col1 >= 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT + col1 - + col0 + + col1 + + + col1 DIV + ( col0 ) FROM tab0 cor0
----
-45
-95
152

skipif mysql # not compatible
query I rowsort label-2708
SELECT + col1 - + col0 + + col1 + + + col1 / + ( col0 ) FROM tab0 cor0
----
-45
-95
152

query I rowsort
SELECT ALL + col1 - - ( + - 59 ) - + col2 FROM tab1 AS cor0
----
-113
-141
-80

query I rowsort
SELECT DISTINCT + + 68 - 72 FROM tab0 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT + 0 + + col2 DIV + + 98 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT + 0 + + col2 / + + 98 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT - - col1 + + col1 + - CAST( - 36 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
138
170
190

skipif mysql # not compatible
query I rowsort label-2712
SELECT - - col1 + + col1 + - CAST ( - 36 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
138
170
190

query I rowsort
SELECT - + col2 + + - col0 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT COUNT( - 28 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2714
SELECT COUNT ( - 28 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 * + ( - col1 ) col1 FROM tab0
----
-1932
-7452
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT DISTINCT + COUNT( * ) + - + SUM( ALL - col0 ) + - 55 col1 FROM tab2 WHERE NOT - col0 + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2717
SELECT DISTINCT + COUNT ( * ) + - + SUM ( ALL - col0 ) + - 55 col1 FROM tab2 WHERE NOT - col0 + + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT SUM( ALL - col0 ) FROM tab0 WHERE NOT + col2 * + - 27 + - ( - - col1 ) IS NULL
----
-199

skipif mysql # not compatible
query I rowsort label-2718
SELECT SUM ( ALL - col0 ) FROM tab0 WHERE NOT + col2 * + - 27 + - ( - - col1 ) IS NULL
----
-199

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 + + - col2 * - - col1 / + col1 * + col2 IN ( 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2720
SELECT + col0 * col1 FROM tab2 WHERE NOT - ( CAST( NULL AS SIGNED ) ) * - - col2 + + col0 IS NOT NULL
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2720
SELECT + col0 * col1 FROM tab2 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) * - - col2 + + col0 IS NOT NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2721
SELECT DISTINCT - 24 DIV COUNT( * ) * + MAX( ALL - 81 ) AS col1 FROM tab0
----
648

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT - 24 / COUNT ( * ) * + MAX ( ALL - 81 ) AS col1 FROM tab0
----
648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) / + + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) / + + col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 10 * + + col0 FROM tab1 AS cor0
----
510
850
910

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 23 + - ( + col1 ) <= NULL
----

query I rowsort
SELECT + col2 + + - 94 + + col1 + - 53 * + col0 FROM tab2 AS cor0
----
-2458
-3369
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT 90 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT 90 IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 / + - 59 IS NULL
----

query I rowsort
SELECT + + 21 + + col1 AS col0 FROM tab2 AS cor0
----
72
88
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 * col2 * - col2 col1 FROM tab2 WHERE NULL NOT BETWEEN + + 30 AND + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT - col1 DIV - col0 + - 84 * - 80 AS col2 FROM tab1
----
6720
6720
6720

skipif mysql # not compatible
query I rowsort label-2730
SELECT - col1 / - col0 + - 84 * - 80 AS col2 FROM tab1
----
6720
6720
6720

query III rowsort
SELECT * FROM tab1 WHERE + - col2 * - 70 * 20 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + - col2 FROM tab1
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT DISTINCT - col0 DIV col1 + ( - - col0 ) FROM tab0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT - col0 / col1 + ( - - col0 ) FROM tab0
----
0
15
83

query I rowsort
SELECT ALL - 87 + - 95 FROM tab0
----
-182
-182
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2735
SELECT - CAST( - 59 AS SIGNED ) AS col0 FROM tab1
----
59
59
59

skipif mysql # not compatible
query I rowsort label-2735
SELECT - CAST ( - 59 AS INTEGER ) AS col0 FROM tab1
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col0 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + col2 * - + col2 + 60 FROM tab2 AS cor0
----
-1540
-3304
-469

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - MIN( + col2 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2738
SELECT - MIN ( + col2 ) col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2739
SELECT + - CAST( NULL AS SIGNED ) AS col2, - col1 col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2739
SELECT + - CAST ( NULL AS INTEGER ) AS col2, - col1 col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 35 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 53 * + col0 + - ( - - col1 ) * + - 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2744
SELECT ALL + - MAX( ALL 13 ) AS col2, 79 FROM tab1 AS cor0
----
-13
79

skipif mysql # not compatible
query II rowsort label-2744
SELECT ALL + - MAX ( ALL 13 ) AS col2, 79 FROM tab1 AS cor0
----
-13
79

query I rowsort
SELECT + 94 AS col0 FROM tab1 AS cor0 WHERE col2 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 64 / + col0 >= + + col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT - - MIN( 60 ) AS col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2747
SELECT - - MIN ( 60 ) AS col0 FROM tab2 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * + - col2 col0 FROM tab1 AS cor0
----
-5133
-5916
-8352

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < col1 + + - col0
----

query I rowsort
SELECT DISTINCT - ( + - 67 ) * col1 FROM tab1 AS cor0
----
3149
335
938

query I rowsort
SELECT ALL - col2 * + - col2 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
10560
3776
7820

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND ( 45 )
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 67 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 19 ) col1 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT + ( + + 36 ) FROM tab0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT + SUM( ALL + 7 ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT + SUM ( ALL + 7 ) AS col2 FROM tab0
----
21

query I rowsort
SELECT + col0 * + + ( - + col1 ) AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col0 * - - ( - col1 ) * - - col1 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2760
SELECT - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2760
SELECT - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT + COUNT( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT - + col0, + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
96
-85
59
-91
68

query II rowsort
SELECT ALL + col2 AS col0, + col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT ALL 6 DIV - - 79 * 94 * - 59 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL 6 / - - 79 * 94 * - 59 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT + ( 55 ) + + - COUNT( * ) + + + CAST( 72 AS SIGNED ) AS col2 FROM tab1
----
124

skipif mysql # not compatible
query I rowsort label-2765
SELECT + ( 55 ) + + - COUNT ( * ) + + + CAST ( 72 AS INTEGER ) AS col2 FROM tab1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL 68 * + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL 68 * + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
201

query I rowsort
SELECT DISTINCT + col2 * - 12 FROM tab0
----
-1188
-120
-564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + col1 + - 37 + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / - 81 NOT IN ( - col1 * - 16 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2770
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-2770
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL + MIN( + - 28 ) FROM tab0 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL + MIN ( + - 28 ) FROM tab0 cor0
----
-28

query I rowsort
SELECT DISTINCT + + ( col0 ) + - col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2773
SELECT DISTINCT - col2 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-2773
SELECT DISTINCT - col2 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - col0 + 57 FROM tab2
----
-18
-7
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN col0 AND + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT COUNT( - - col0 ) FROM tab1 WHERE ( - + col1 + + 22 * 5 ) <= col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-2777
SELECT COUNT ( - - col0 ) FROM tab1 WHERE ( - + col1 + + 22 * 5 ) <= col2 * - col1
----
0

query I rowsort
SELECT ALL col2 * + col0 + + col0 AS col0 FROM tab0 cor0
----
720
957
9700

query I rowsort
SELECT + 18 * + col0 AS col1 FROM tab2 AS cor0
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL + COUNT( DISTINCT col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + COUNT ( DISTINCT col0 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 NOT IN ( + col0 * + col1, + 22 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT DISTINCT - AVG ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 * - + col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT + COUNT( * ) * 17 AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + COUNT ( * ) * 17 AS col2 FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 54 col0 FROM tab1 AS cor0
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + ( 77 ) FROM tab1 AS cor0
----
-59
77
-68
77
-96
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col0 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT - - 40 * + col2 FROM tab2 AS cor0
----
1600
2320
920

query I rowsort
SELECT ALL ( + + ( - + col0 ) ) AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab0
----
13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2792
SELECT ALL * FROM tab2 WHERE NOT col0 IN ( CAST( NULL AS SIGNED ) * 23 / - + col0 + + + 49, - col0 )
----

skipif mysql # not compatible
query III rowsort label-2792
SELECT ALL * FROM tab2 WHERE NOT col0 IN ( CAST ( NULL AS INTEGER ) * 23 / - + col0 + + + 49, - col0 )
----

query I rowsort
SELECT ALL - 54 AS col2 FROM tab2
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 59 * 29, col2 col1 FROM tab1
----
1711
59
1711
68
1711
96

query I rowsort
SELECT col2 * - 47 AS col0 FROM tab2
----
-1081
-1880
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2797
SELECT DISTINCT - + col0 AS col2 FROM tab2 cor0 WHERE - 79 < + 26 + + 16 + 48 * - - CAST( col1 AS SIGNED ) * + col0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT - + col0 AS col2 FROM tab2 cor0 WHERE - 79 < + 26 + + 16 + 48 * - - CAST ( col1 AS INTEGER ) * + col0
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2798
SELECT ALL + COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 + - + 51 AS col0 FROM tab0 AS cor0
----
-36
36
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT 45 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2800
SELECT 45 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT - 21 * - COUNT( * ) + MIN( col0 ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2801
SELECT - 21 * - COUNT ( * ) + MIN ( col0 ) FROM tab1 AS cor0
----
114

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + + 89 * - 65 - 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT + CAST( + 47 AS SIGNED ) * + - col0 + + col2 * + col1 FROM tab0 AS cor0
----
-3879
-4460
3102

skipif mysql # not compatible
query I rowsort label-2803
SELECT + CAST ( + 47 AS INTEGER ) * + - col0 + + col2 * + col1 FROM tab0 AS cor0
----
-3879
-4460
3102

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( + + col1 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col1 FROM tab2
----
-27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2807
SELECT COUNT( ALL col0 ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT COUNT ( ALL col0 ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL <= - 45 / + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2809
SELECT * FROM tab2 WHERE - 21 <> ( + 69 ) + - col1 * CAST( NULL AS SIGNED ) - - 57 + - col2
----

skipif mysql # not compatible
query III rowsort label-2809
SELECT * FROM tab2 WHERE - 21 <> ( + 69 ) + - col1 * CAST ( NULL AS INTEGER ) - - 57 + - col2
----

query I rowsort
SELECT ALL col0 + - 99 * - col1 AS col2 FROM tab0
----
196
2166
8034

query I rowsort
SELECT + col2 * + 61 AS col0 FROM tab0 WHERE col0 NOT BETWEEN ( - - col2 ) AND ( + col1 )
----
2867
6039
610

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - - MAX( ALL - ( + - col0 ) ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-2812
SELECT - - MAX ( ALL - ( + - col0 ) ) FROM tab0 cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT ALL 99 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 44 = - col1
----

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL 99 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 44 = - col1
----

query I rowsort
SELECT DISTINCT col1 - - 77 * + col1 * + + col2 FROM tab0
----
16191
293220
7624

query I rowsort
SELECT ALL 69 * col2 AS col0 FROM tab2
----
1587
2760
4002

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT ALL + - col2 DIV + + 76 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + - col2 / + + 76 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + + 72 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
153
73
93

query II rowsort
SELECT - ( ( + col2 ) ) AS col0, - col1 AS col0 FROM tab1
----
-59
-5
-68
-47
-96
-14

query II rowsort
SELECT col1, col1 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT ALL + 90 AS col1, col2 AS col0 FROM tab2
----
90
23
90
40
90
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT COUNT( DISTINCT - - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2822
SELECT COUNT ( DISTINCT - - col1 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT ALL CAST( - - col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IN ( col2, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL + COUNT( + - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + COUNT ( + - col1 ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 * 24 * - col2 * - col0 * - col1 FROM tab2 AS cor0
----
-51
-66044592
-67
-468651600
-77
-364277760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col2 FROM tab2 AS cor0
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT + + 74 + + COUNT( * ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2829
SELECT + + 74 + + COUNT ( * ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT ALL + 8, col1 FROM tab2 WHERE NULL NOT IN ( - + col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT ALL - COUNT( ALL 67 ) + - 32 AS col0 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL - COUNT ( ALL 67 ) + - 32 AS col0 FROM tab2
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - ( + 89 ) ), col2 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-89
10
-89
47
-89
99

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL col2 + 0 - + col0 FROM tab2 cor0
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - 24 * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2837
SELECT - 24 * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT DISTINCT + col1 * - - 78 + + + col1 FROM tab2 cor0 WHERE NOT + col1 NOT BETWEEN NULL AND - 83
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 97 col0 FROM tab0 AS cor0
----
-2037
-7857
-97

query II rowsort
SELECT DISTINCT + col1 * + - col2 AS col2, + 77 FROM tab0 AS cor0
----
-210
77
-3807
77
-99
77

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE + col0 * + 67 NOT IN ( - + ( + ( + col1 ) ), 11 )
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE + 87 * 54 <= + col0
----

query I rowsort
SELECT 55 + - + col1 AS col1 FROM tab1
----
41
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT COUNT( DISTINCT col1 ) + - 6 * - COUNT( * ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2844
SELECT COUNT ( DISTINCT col1 ) + - 6 * - COUNT ( * ) AS col2 FROM tab2
----
21

query III rowsort
SELECT * FROM tab1 WHERE + - col0 + + col2 BETWEEN col0 AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL + ( 43 ) + - SUM( ALL - 50 ) * + 3 * + + MAX( ALL - col0 ) AS col0 FROM tab0
----
-6707

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + ( 43 ) + - SUM ( ALL - 50 ) * + 3 * + + MAX ( ALL - col0 ) AS col0 FROM tab0
----
-6707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT + + 23 + + CAST( - - 70 AS SIGNED ) * + 94 AS col2 FROM tab2 AS cor0
----
6603
6603
6603

skipif mysql # not compatible
query I rowsort label-2847
SELECT + + 23 + + CAST ( - - 70 AS INTEGER ) * + 94 AS col2 FROM tab2 AS cor0
----
6603
6603
6603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 14 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2850
SELECT ALL * FROM tab1 AS cor0 WHERE 34 + 55 NOT IN ( + col1, - 28, - CAST( + + 83 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2850
SELECT ALL * FROM tab1 AS cor0 WHERE 34 + 55 NOT IN ( + col1, - 28, - CAST ( + + 83 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 79 * - col2 AS col1 FROM tab2 AS cor0
----
-1817
-3160
-4582

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2853
SELECT + CAST( + - 99 AS SIGNED ) FROM tab1 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-2853
SELECT + CAST ( + - 99 AS INTEGER ) FROM tab1 AS cor0
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT DISTINCT col1 DIV - ( - - 50 ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2854
SELECT DISTINCT col1 / - ( - - 50 ) col0 FROM tab1
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2856
SELECT - + CAST( - 10 AS SIGNED ), 90 AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to d86a6a90c244cc38081c8f53b192f557

skipif mysql # not compatible
query II rowsort label-2856
SELECT - + CAST ( - 10 AS INTEGER ), 90 AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to d86a6a90c244cc38081c8f53b192f557

onlyif mysql # aggregate syntax: 
query II rowsort label-2857
SELECT DISTINCT 28 AS col0, COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
28
9

skipif mysql # not compatible
query II rowsort label-2857
SELECT DISTINCT 28 AS col0, COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
28
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT - col2 * + + CAST( + col1 AS SIGNED ) + + ( - 48 ) FROM tab0 AS cor0
----
-147
-258
-3855

skipif mysql # not compatible
query I rowsort label-2859
SELECT - col2 * + + CAST ( + col1 AS INTEGER ) + + ( - 48 ) FROM tab0 AS cor0
----
-147
-258
-3855

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT + + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col2 + - col2 + ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT + + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col2 + - col2 + ( - col1 ) IS NOT NULL
----
0

query II rowsort
SELECT ALL + - col1 AS col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL + - MAX( 31 ) col2 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2862
SELECT ALL + - MAX ( 31 ) col2 FROM tab2 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL - SUM( col2 ) col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2863
SELECT ALL - SUM ( col2 ) col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-2864
SELECT - COUNT( * ) AS col0, SUM( ALL + col1 ) FROM tab1 AS cor0
----
-3
66

skipif mysql # not compatible
query II rowsort label-2864
SELECT - COUNT ( * ) AS col0, SUM ( ALL + col1 ) FROM tab1 AS cor0
----
-3
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT DISTINCT - - 0 AS col1, + MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
0
81

skipif mysql # not compatible
query II rowsort label-2865
SELECT DISTINCT - - 0 AS col1, + MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
81

query II rowsort
SELECT DISTINCT 51 + + - col1 AS col0, - ( - col1 ) * - + ( + 11 ) AS col2 FROM tab0
----
-30
-891
30
-231
50
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT + + COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2867
SELECT + + COUNT ( * ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 97 + + - col2 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT - + col2 + - CAST( NULL AS SIGNED ) FROM tab2 WHERE col0 * + col1 IN ( - col1, 13 + - 96 + + col0 + + ( ( - + 61 ) ) * + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2870
SELECT - + col2 + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col0 * + col1 IN ( - col1, 13 + - 96 + + col0 + + ( ( - + 61 ) ) * + + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 NOT BETWEEN + 72 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT + CAST( + + col1 AS SIGNED ) * ( 53 ) + - col0 AS col2 FROM tab2
----
2657
3476
4017

skipif mysql # not compatible
query I rowsort label-2872
SELECT + CAST ( + + col1 AS INTEGER ) * ( 53 ) + - col0 AS col2 FROM tab2
----
2657
3476
4017

query I rowsort
SELECT col1 * col1 / + col1 AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - ( - + col2 ) * col0 * + col1 * - col0 + col1 + + col0 FROM tab2 AS cor0
----
-12615539
-21858608
-2481971

onlyif mysql # DIV for integer division: 
query I rowsort label-2875
SELECT DISTINCT - col1 DIV ( col1 ) - - + 47 * + 50 + + col2 + + col1 AS col1 FROM tab0 AS cor0
----
2380
2449
2477

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT - col1 / ( col1 ) - - + 47 * + 50 + + col2 + + col1 AS col1 FROM tab0 AS cor0
----
2380
2449
2477

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2876
SELECT ALL + SUM( - - col0 ) + MIN( DISTINCT + col2 ) / + - CAST( NULL AS DECIMAL ) - - COUNT( * ) / COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + SUM ( - - col0 ) + MIN ( DISTINCT + col2 ) / + - CAST ( NULL AS REAL ) - - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col2 + + 71 - + col2 + - 40 AS col0, 63 FROM tab0 AS cor0
----
31
63
31
63
31
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + + 74 col0 FROM tab0 AS cor0
----
-155
-75
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT + ( - - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2879
SELECT + ( - - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT MAX( - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2880
SELECT MAX ( - col2 ) AS col0 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ( MAX( DISTINCT - 59 ) ) * - 86 * + + 25 col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2881
SELECT ( MAX ( DISTINCT - 59 ) ) * - 86 * + + 25 col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ALL ( - COUNT( * ) ) * + 44 AS col1 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL ( - COUNT ( * ) ) * + 44 AS col1 FROM tab0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT 86 * + COUNT( * ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-2883
SELECT 86 * + COUNT ( * ) FROM tab1
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2884
SELECT DISTINCT + CAST( + 24 AS SIGNED ) col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2884
SELECT DISTINCT + CAST ( + 24 AS INTEGER ) col2 FROM tab1 AS cor0
----
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT ALL - MAX( DISTINCT col1 ) * - ( + MAX( ALL - col0 ) ) FROM tab1 AS cor0
----
-2397

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - MAX ( DISTINCT col1 ) * - ( + MAX ( ALL - col0 ) ) FROM tab1 AS cor0
----
-2397

query I rowsort
SELECT DISTINCT ( + + col0 ) * + col1 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT ALL 43 * col0 AS col1 FROM tab2
----
1978
2752
3225

query I rowsort
SELECT 3 * col0 FROM tab1
----
153
255
273

query I rowsort
SELECT ALL + col2 * + + 31 + - 47 AS col1 FROM tab2 cor0 WHERE NOT NULL >= col0 + + - 25
----

query II rowsort
SELECT DISTINCT - col1 * - ( - col2 ) AS col0, col1 FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2892
SELECT CAST( + + SUM( - + 33 ) AS SIGNED ) FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2892
SELECT CAST ( + + SUM ( - + 33 ) AS INTEGER ) FROM tab1 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT + COUNT( * ) * - COUNT( ALL col2 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + COUNT ( * ) * - COUNT ( ALL col2 ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 86 / - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + MIN( + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2895
SELECT + MIN ( + col2 ) AS col1 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL - 15 * MIN( + + ( - col1 ) ) FROM tab1
----
705

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL - 15 * MIN ( + + ( - col1 ) ) FROM tab1
----
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 81, col0 * col1 col2 FROM tab1
----
81
425
81
4277
81
714

query II rowsort
SELECT DISTINCT + col2, col2 * - + col0 * col1 * + ( + col2 ) + - 78 + - col2 * - col0 FROM tab0 WHERE NOT + col2 * col1 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query II rowsort
SELECT + col0, + 22 AS col1 FROM tab0
----
15
22
87
22
97
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT + COUNT( 69 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2901
SELECT + COUNT ( 69 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL - COUNT( 2 ) + + 85 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - COUNT ( 2 ) + + 85 FROM tab2 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT + CAST( - + col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2903
SELECT + CAST ( - + col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL 97 * - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
7857

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL 97 * - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
7857

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2905
SELECT * FROM tab0 cor0 WHERE ( - CAST( col0 AS DECIMAL ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-2905
SELECT * FROM tab0 cor0 WHERE ( - CAST ( col0 AS REAL ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT - + 13 * - + 9 * - 2 - + 34 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-336

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT - + 13 * - + 9 * - 2 - + 34 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-336

query I rowsort
SELECT col2 - + - col1 + - 16 + 33 AS col1 FROM tab0 AS cor0
----
117
145
48

query I rowsort
SELECT DISTINCT - + col2 - + + col2 FROM tab2 AS cor0
----
-116
-46
-80

query II rowsort
SELECT + col1 - - 7 AS col2, col1 FROM tab0 AS cor0
----
28
21
8
1
88
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2911
SELECT + - ( + MIN( - col2 ) ) + + 65 * - 71 AS col0, 70 DIV COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-4557
20

skipif mysql # not compatible
query II rowsort label-2911
SELECT + - ( + MIN ( - col2 ) ) + + 65 * - 71 AS col0, 70 / COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-4557
20

query I rowsort
SELECT DISTINCT + col0 - + - col2 AS col0 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2913
SELECT - 20 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT - 20 + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - AVG ( ALL - col1 ) AS col1 FROM tab1 WHERE NOT col2 * + col2 <> - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT - COUNT( - 12 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT - COUNT ( - 12 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL + col0 * + + 15 * - + 71 AS col2 FROM tab2
----
-48990
-68160
-79875

query II rowsort
SELECT DISTINCT col0, col0 FROM tab0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, - 77 col1 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT - COUNT( * ) + - - ( + + SUM( ALL col2 ) ) AS col0 FROM tab2 WHERE NOT NULL < + 34 - + 65 / 28 - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT - COUNT ( * ) + - - ( + + SUM ( ALL col2 ) ) AS col0 FROM tab2 WHERE NOT NULL < + 34 - + 65 / 28 - - col0
----
NULL

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( - col0 / col2 + + col1 - + col0 + - 15 - - + col2 + - - col0 >= NULL )
----

query II rowsort
SELECT - 82 AS col2, - 73 FROM tab1 AS cor0
----
-82
-73
-82
-73
-82
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-10
-47
-47
-99
-99

query II rowsort
SELECT - 31 AS col1, 4 AS col0 FROM tab0 AS cor0
----
-31
4
-31
4
-31
4

query I rowsort
SELECT DISTINCT + 75 * 62 * - - col1 * + + col1 + - col1 AS col1 FROM tab0 AS cor0
----
2050629
30508569
4649

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT - 0 * MAX( ALL - + 6 ) * 75 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2925
SELECT - 0 * MAX ( ALL - + 6 ) * 75 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL - ( + + 50 ) + SUM( + ( col2 ) ) FROM tab0 cor0
----
106

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL - ( + + 50 ) + SUM ( + ( col2 ) ) FROM tab0 cor0
----
106

query I rowsort
SELECT DISTINCT 75 * + col2 AS col2 FROM tab2 AS cor0
----
1725
3000
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT - - col1 DIV - 19 AS col2 FROM tab2 cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-2928
SELECT - - col1 / - 19 AS col2 FROM tab2 cor0
----
-2
-3
-4

query I rowsort
SELECT - 57 * - + col0 FROM tab1 AS cor0
----
2907
4845
5187

query I rowsort
SELECT + 65 + - col0 + ( + col2 ) + col0 AS col2 FROM tab2 AS cor0
----
105
123
88

query I rowsort
SELECT ALL + col1 * - col2 * + 78 AS col2 FROM tab0 AS cor0
----
-16380
-296946
-7722

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT COUNT( * ) + 34 AS col1 FROM tab2, tab1 cor0
----
43

skipif mysql # not compatible
query I rowsort label-2932
SELECT COUNT ( * ) + 34 AS col1 FROM tab2, tab1 cor0
----
43

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + col2 AND - - 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT DISTINCT - 56 + - col2 * CAST( NULL AS SIGNED ) + + - 7 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT - 56 + - col2 * CAST ( NULL AS INTEGER ) + + - 7 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 17 * col0 * - - 63 + + col1 FROM tab1
----
54635
91040
97508

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT ALL 23 DIV - col2 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL 23 / - col2 AS col0 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT - 16 AS col0 FROM tab1 cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT - MAX( col0 ) * COUNT( * ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2938
SELECT - MAX ( col0 ) * COUNT ( * ) FROM tab2 AS cor0
----
-225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2939
SELECT + col1 * CAST( NULL AS DECIMAL ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT + col1 * CAST ( NULL AS REAL ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - - - col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - 66 + - 93 AS col1, col2 * + + 89 FROM tab0 AS cor0
----
-159
4183
-159
8811
-159
890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 77 col1 FROM tab2 AS cor0
----
-10
-26
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + - col1 + 49 col0 FROM tab1 AS cor0
----
114
139
187

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col2 NOT IN ( - + col0, - col0 * 92, + 25 )
----
3

skipif mysql # not compatible
query I rowsort label-2944
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col2 NOT IN ( - + col0, - col0 * 92, + 25 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT + - COUNT( * ) + - - 39 AS col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2945
SELECT + - COUNT ( * ) + - - 39 AS col0 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT + 62 + + - MIN( ALL - col2 ) col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2946
SELECT DISTINCT + 62 + + - MIN ( ALL - col2 ) col1 FROM tab2 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL - COUNT( * ) + 25 + - COUNT( * ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL - COUNT ( * ) + 25 + - COUNT ( * ) FROM tab1 AS cor0
----
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 IN ( ( - col2 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1, 58, - + col1, 92 + - col1 )
----

query II rowsort
SELECT ALL col1, 79 + - 62 FROM tab2 cor0
----
51
17
67
17
77
17

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 col0, 56 + - col1 AS col1 FROM tab1 AS cor0
----
-14
42
-47
9
-5
51

query I rowsort
SELECT + - 16 + - 41 + + col0 AS col2 FROM tab2 AS cor0 WHERE + 50 NOT IN ( - + col2, + col1 )
----
-11
18
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2954
SELECT - COUNT( * ) * 82 DIV SUM( DISTINCT + col0 ) DIV + 39 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2954
SELECT - COUNT ( * ) * 82 / SUM ( DISTINCT + col0 ) / + 39 AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col2 FROM tab0
----
5
5
5

query II rowsort
SELECT - 18 * - col2, + col1 FROM tab1
----
1062
5
1224
47
1728
14

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT 89 / - - MAX( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT 89 / - - MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT - COUNT( ALL - + ( col2 ) ), - 60 AS col0 FROM tab2
----
-3
-60

skipif mysql # not compatible
query II rowsort label-2959
SELECT - COUNT ( ALL - + ( col2 ) ), - 60 AS col0 FROM tab2
----
-3
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT COUNT( - - 69 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2960
SELECT COUNT ( - - 69 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL + CAST( - MIN( DISTINCT + col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL + CAST ( - MIN ( DISTINCT + col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + 26 AS col1 FROM tab0
----
26
26
26

query I rowsort
SELECT DISTINCT + col1 + - - ( + 7 ) FROM tab1
----
12
21
54

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - col2 + - - col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL + SUM( col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL + SUM ( col2 ) AS col0 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT - MIN( + col2 ) + - - SUM( - col2 ) FROM tab0
----
-166

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT - MIN ( + col2 ) + - - SUM ( - col2 ) FROM tab0
----
-166

query I rowsort
SELECT col0 + - - col2 * - - col2 AS col0 FROM tab0
----
187
2224
9898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT ALL CAST( NULL AS SIGNED ) + - col1 * + col2 + - - 28 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2969
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 * + col2 + - - 28 col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) = + 8 AND NOT col2 + - - 43 <> + col1
----

query I rowsort
SELECT DISTINCT + 34 + 21 FROM tab2 AS cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + col1 col0, 20 FROM tab1 cor0
----
-37
20
-44
20
-80
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2973
SELECT ALL 85 - - + 68 AS col0, + COUNT( * ) col1 FROM tab2 AS cor0
----
153
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2973
SELECT ALL 85 - - + 68 AS col0, + COUNT ( * ) col1 FROM tab2 AS cor0
----
153
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT + + MAX( - + 68 ) AS col2 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2974
SELECT + + MAX ( - + 68 ) AS col2 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT 84 * + col1 FROM tab2
----
4284
5628
6468

query I rowsort
SELECT ALL - + col2 + - 40 FROM tab0 AS cor0
----
-139
-50
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - + 89 - MAX( DISTINCT + 34 ) * - - 12 AS col2 FROM tab1 cor0
----
-497

skipif mysql # not compatible
query I rowsort label-2977
SELECT - + 89 - MAX ( DISTINCT + 34 ) * - - 12 AS col2 FROM tab1 cor0
----
-497

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT - col1 - + + 81 FROM tab0 AS cor0
----
-102
-162
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + SUM( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2980
SELECT + SUM ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT - col0 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL + col1 + - 89 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - col1 AS col2 FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ALL - COUNT( DISTINCT - + col2 ) AS col2 FROM tab1 WHERE - - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - COUNT ( DISTINCT - + col2 ) AS col2 FROM tab1 WHERE - - col1 >= NULL
----
0

query II rowsort
SELECT ALL col0, ( - + col1 ) + - col2 * - 42 + 63 AS col0 FROM tab1
----
51
4081
85
2536
91
2872

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT ALL - ( + ( + ( col1 ) ) ) DIV - 59 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL - ( + ( + ( col1 ) ) ) / - 59 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT + 55 FROM tab0 cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, - col1 FROM tab1 cor0
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2989
SELECT - + 96 col1, - ( - CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-96
-14
-96
-47
-96
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2989
SELECT - + 96 col1, - ( - CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-96
-14
-96
-47
-96
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - + MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2990
SELECT - + MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
10

query II rowsort
SELECT DISTINCT + col0, ( - + 50 ) FROM tab2 AS cor0
----
46
-50
64
-50
75
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT - MAX( ALL col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2992
SELECT - MAX ( ALL col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + col0 * - 71 * col2 * + col2 AS col2 FROM tab2
----
-1727714
-17913300
-7270400

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - MIN( + 20 ) AS col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2994
SELECT - MIN ( + 20 ) AS col0 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT ALL + 66 + - + 84 * + col1 AS col1 FROM tab2 AS cor0
----
-4218
-5562
-6402

query I rowsort
SELECT ALL - + 22 AS col2 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + + 42 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
42
42
42

query I rowsort
SELECT - col0 + 8 FROM tab2 AS cor0
----
-38
-56
-67

query II rowsort
SELECT DISTINCT col2 AS col0, - 92 AS col0 FROM tab1
----
59
-92
68
-92
96
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT 49 * - 4 * + + COUNT( * ) FROM tab0 WHERE + - col2 * col0 IS NOT NULL
----
-588

skipif mysql # not compatible
query I rowsort label-3000
SELECT 49 * - 4 * + + COUNT ( * ) FROM tab0 WHERE + - col2 * col0 IS NOT NULL
----
-588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col0 FROM tab0
----
19
19
19

query I rowsort
SELECT + col1 * - - col2 + - + 34 * - + col1 * 96 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3003
SELECT ALL - col0, CAST( - col2 AS SIGNED ) FROM tab2 WHERE NOT 91 NOT BETWEEN + col0 AND 65 * - col2 + + CAST( NULL AS SIGNED ) + + col2 / - 5 * col2
----

skipif mysql # not compatible
query II rowsort label-3003
SELECT ALL - col0, CAST ( - col2 AS INTEGER ) FROM tab2 WHERE NOT 91 NOT BETWEEN + col0 AND 65 * - col2 + + CAST ( NULL AS INTEGER ) + + col2 / - 5 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 + - col2 * col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 + - col2 * col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col1, + 46 FROM tab1 WHERE + 31 IS NOT NULL
----
51
46
85
46
91
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * + - col0 + - col0 * 3 col0 FROM tab2
----
-368
-512
-600

query I rowsort
SELECT ALL - ( - + col0 ) * + ( - + 82 ) + col0 FROM tab1
----
-4131
-6885
-7371

query I rowsort
SELECT ALL - 11 + - + col1 AS col0 FROM tab0
----
-12
-32
-92

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT DISTINCT + SUM( - col1 ) * + MIN( ALL - col2 ) FROM tab1 cor0
----
6336

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT + SUM ( - col1 ) * + MIN ( ALL - col2 ) FROM tab1 cor0
----
6336

query I rowsort
SELECT ALL - - col0 - - + col2 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - 47 - + 3 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT + col1 - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT ALL + COUNT( * ) - + SUM( + col1 ) + - - COUNT( * ) AS col1 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL + COUNT ( * ) - + SUM ( + col1 ) + - - COUNT ( * ) AS col1 FROM tab0 cor0
----
-97

query I rowsort
SELECT + 43 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query II rowsort
SELECT ALL + 50 + + col0, col0 AS col2 FROM tab0
----
137
87
147
97
65
15

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + col1 + + col1
----

query I rowsort
SELECT ALL col2 * + 47 FROM tab0
----
2209
4653
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT MIN( ALL - + ( + CAST( col1 AS SIGNED ) ) ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3020
SELECT MIN ( ALL - + ( + CAST ( col1 AS INTEGER ) ) ) AS col2 FROM tab2
----
-77

query II rowsort
SELECT DISTINCT 27, - col1 AS col0 FROM tab0
----
27
-1
27
-21
27
-81

query I rowsort
SELECT + 44 * - col1 AS col2 FROM tab2
----
-2244
-2948
-3388

onlyif mysql # aggregate syntax: 
query II rowsort label-3023
SELECT ALL 17 AS col0, COUNT( * ) AS col0 FROM tab2
----
17
3

skipif mysql # not compatible
query II rowsort label-3023
SELECT ALL 17 AS col0, COUNT ( * ) AS col0 FROM tab2
----
17
3

query I rowsort
SELECT col2 * + col2 / - ( + col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + 95 ) AS col1 FROM tab1 AS cor0
----
95

query I rowsort
SELECT col1 + + ( - + 63 ) FROM tab0 AS cor0
----
-42
-62
18

query I rowsort
SELECT ALL col2 * + col1 * col2 AS col0 FROM tab0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab0 WHERE col0 / col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT - SUM( ALL + - 57 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
513

skipif mysql # not compatible
query I rowsort label-3029
SELECT - SUM ( ALL + - 57 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
513

query I rowsort
SELECT ALL col1 + + 31 FROM tab1 AS cor0
----
36
45
78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3032
SELECT DISTINCT col1 + + + 55 DIV + col0 AS col0 FROM tab0 AS cor0
----
1
21
84

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT col1 + + + 55 / + col0 AS col0 FROM tab0 AS cor0
----
1
21
84

query I rowsort
SELECT ALL + - AVG ( + col2 ) FROM tab1 AS cor0 WHERE NOT + col1 <= + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT 18 / col0 AS col1 FROM tab0 AS cor0 WHERE NULL = - CAST( NULL AS SIGNED ) * 70
----

skipif mysql # not compatible
query I rowsort label-3034
SELECT 18 / col0 AS col1 FROM tab0 AS cor0 WHERE NULL = - CAST ( NULL AS INTEGER ) * 70
----

query I rowsort
SELECT ALL - col1 * + - col2 AS col0 FROM tab1 cor0
----
1344
295
3196

query II rowsort
SELECT 84 AS col2, col2 AS col0 FROM tab2 AS cor0
----
84
23
84
40
84
58

query I rowsort
SELECT ALL col2 * + col0 + - col0 AS col2 FROM tab0 AS cor0
----
690
783
9506

query II rowsort
SELECT 92, + col1 AS col0 FROM tab2 cor0
----
92
51
92
67
92
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT + COUNT( DISTINCT - 81 ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3039
SELECT DISTINCT + COUNT ( DISTINCT - 81 ) col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 82 - - col2 col2, + col1 FROM tab0
----
129
81
181
1
92
21

query II rowsort
SELECT - col1 + + col0, + col0 + - col0 AS col2 FROM tab2
----
-13
0
-5
0
8
0

query I rowsort
SELECT DISTINCT 63 * + + 68 AS col1 FROM tab0
----
4284

query I rowsort
SELECT ALL + col0 * - col2 + + col2 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN - - 9 AND - 15 + + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL + MAX( col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL + MAX ( col2 ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT ( 54 ) AS col1 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT + 66 * + 48 FROM tab1 AS cor0
----
3168

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT col0 DIV - 60 + 56 * + col1 AS col0 FROM tab2 AS cor0
----
2856
3751
4311

skipif mysql # not compatible
query I rowsort label-3049
SELECT col0 / - 60 + 56 * + col1 AS col0 FROM tab2 AS cor0
----
2856
3751
4311

query I rowsort
SELECT col0 * + col2 * - + 76 - - - col0 FROM tab1 cor0
----
-372147
-381225
-470379

onlyif mysql # aggregate syntax: 
query II rowsort label-3051
SELECT COUNT( * ) AS col2, 40 AS col0 FROM tab1 AS cor0
----
3
40

skipif mysql # not compatible
query II rowsort label-3051
SELECT COUNT ( * ) AS col2, 40 AS col0 FROM tab1 AS cor0
----
3
40

query I rowsort
SELECT - + 48 AS col2 FROM tab2 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT SUM( ALL + 66 ) AS col0 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-3053
SELECT SUM ( ALL + 66 ) AS col0 FROM tab2
----
198

query I rowsort
SELECT ALL ( + - ( - col2 ) ) AS col2 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 > - col0
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT ( - col1 ) * + col0 + - col1 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT DISTINCT + col1 / col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT DISTINCT - - col2 * - - CAST( NULL AS SIGNED ) + - - 10 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT - - col2 * - - CAST ( NULL AS INTEGER ) + - - 10 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + - col2 * 43 + + col0 FROM tab2 AS cor0
----
-110016
-186975
-45448

query I rowsort
SELECT DISTINCT + col1 * 19 AS col0 FROM tab1 AS cor0
----
266
893
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3061
SELECT - 20 * + COUNT( * ) + + + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3061
SELECT - 20 * + COUNT ( * ) + + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-63

query I rowsort
SELECT ( 50 ) * - col0 AS col2 FROM tab1
----
-2550
-4250
-4550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + - ( - 62 ) col0 FROM tab1 AS cor0
----
15
48
57

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + col2 AND 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT ( - col0 ) + - col2 DIV - 74 + - + 41 * 62 * + 55 FROM tab0 cor0
----
-139825
-139897
-139906

skipif mysql # not compatible
query I rowsort label-3065
SELECT ( - col0 ) + - col2 / - 74 + - + 41 * 62 * + 55 FROM tab0 cor0
----
-139825
-139897
-139906

onlyif mysql # DIV for integer division: 
query I rowsort label-3066
SELECT - 86 + ( - col0 ) + + 42 + + - col2 DIV - 46 AS col1 FROM tab0 AS cor0
----
-131
-139
-58

skipif mysql # not compatible
query I rowsort label-3066
SELECT - 86 + ( - col0 ) + + 42 + + - col2 / - 46 AS col1 FROM tab0 AS cor0
----
-131
-139
-58

query I rowsort
SELECT + 90 + col1 AS col0 FROM tab2 AS cor0
----
141
157
167

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT + + col2 * + col2 + - - 22 DIV - col1 FROM tab1 AS cor0
----
3477
4624
9215

skipif mysql # not compatible
query I rowsort label-3068
SELECT + + col2 * + col2 + - - 22 / - col1 FROM tab1 AS cor0
----
3477
4624
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL - SUM( 71 ) FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL - SUM ( 71 ) FROM tab1 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL + ( - + SUM( + - 20 ) ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL + ( - + SUM ( + - 20 ) ) FROM tab0 AS cor0
----
60

query III rowsort
SELECT * FROM tab0 WHERE - - 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL SUM( 48 ) AS col2 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL SUM ( 48 ) AS col2 FROM tab0
----
144

query I rowsort
SELECT ALL + + ( - col2 ) AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3074
SELECT + ( + - 32 ) DIV + - COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-3074
SELECT + ( + - 32 ) / + - COUNT ( * ) FROM tab2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT ALL CAST( + col1 AS SIGNED ) + - 72 FROM tab1 WHERE NOT + 9 NOT BETWEEN + 64 * + - 34 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL CAST ( + col1 AS INTEGER ) + - 72 FROM tab1 WHERE NOT + 9 NOT BETWEEN + 64 * + - 34 AND NULL
----

query I rowsort
SELECT - col1 * - + col1 AS col0 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT COUNT( * ) DIV 50 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT COUNT ( * ) / 50 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT DISTINCT - + 54 + + 22 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT - + 54 + + 22 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT - col1 - - CAST( - 29 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-110
-30
-50

skipif mysql # not compatible
query I rowsort label-3079
SELECT - col1 - - CAST ( - 29 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-110
-30
-50

query I rowsort
SELECT ALL + col2 - + 59 AS col0 FROM tab0 AS cor0
----
-12
-49
40

query I rowsort
SELECT DISTINCT + + 64 + + col0 FROM tab1 AS cor0
----
115
149
155

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 7 * + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1, ( 70 ) FROM tab0 AS cor0
----
1
70
21
70
81
70

query I rowsort
SELECT DISTINCT + col2 * - - 6 FROM tab2 AS cor0
----
138
240
348

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 = + 4 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT - COUNT( * ) * + SUM( 97 ) + - + SUM( col0 ) AS col1 FROM tab1 AS cor0
----
-1100

skipif mysql # not compatible
query I rowsort label-3086
SELECT - COUNT ( * ) * + SUM ( 97 ) + - + SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-1100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3087
SELECT ALL 78 DIV + CAST( col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL 78 / + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT - MAX( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3088
SELECT - MAX ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3089
SELECT ( + - CAST( NULL AS DECIMAL ) ) AS col1, 17 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-3089
SELECT ( + - CAST ( NULL AS REAL ) ) AS col1, 17 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) * - 34 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) * - 34 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3091
SELECT ALL + 16 AS col2, - 92 DIV + col2 AS col2 FROM tab0
----
16
-1
16
-9
16
0

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL + 16 AS col2, - 92 / + col2 AS col2 FROM tab0
----
16
-1
16
-9
16
0

query II rowsort
SELECT ALL - 60 AS col0, + 74 FROM tab2
----
-60
74
-60
74
-60
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + MAX( col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3093
SELECT + MAX ( col0 ) FROM tab1
----
91

query II rowsort
SELECT + 60, + col1 AS col0 FROM tab1
----
60
14
60
47
60
5

query I rowsort
SELECT + col1 * - 3 AS col0 FROM tab0
----
-243
-3
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT SUM( + 89 ) AS col2 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-3096
SELECT SUM ( + 89 ) AS col2 FROM tab2
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT COUNT( * ) * + - 13 AS col1 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-3097
SELECT COUNT ( * ) * + - 13 AS col1 FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT - SUM( - col2 ) + SUM( + col2 ) AS col1 FROM tab2 WHERE NOT NULL <= + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT - SUM ( - col2 ) + SUM ( + col2 ) AS col1 FROM tab2 WHERE NOT NULL <= + + 67
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 70 + - ( + 8 ) / + 93 <= + col0
----
15
81
47

query I rowsort
SELECT DISTINCT - 78 FROM tab2 WHERE NOT - col0 BETWEEN - 52 * + ( + + col1 ) + + col2 AND + 69 + - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL COUNT( * ) + - 47 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL COUNT ( * ) + - 47 FROM tab2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT DISTINCT 91 + - + SUM( col2 ) FROM tab1 cor0
----
-132

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT 91 + - + SUM ( col2 ) FROM tab1 cor0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT ALL 3 DIV - - col1 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL 3 / - - col1 FROM tab0 AS cor0
----
0
0
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 25 / + 54 BETWEEN + + col2 AND - 66
----

query I rowsort
SELECT 44 + col1 AS col0 FROM tab0 AS cor0
----
125
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT DISTINCT COUNT( DISTINCT 42 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT COUNT ( DISTINCT 42 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL col1 + - 91 * col2 AS col1 FROM tab0
----
-4196
-889
-9008

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT 79 * COUNT( * ) AS col0 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-3108
SELECT 79 * COUNT ( * ) AS col0 FROM tab1
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + MIN( col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3109
SELECT + MIN ( col0 ) FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT CAST( 78 AS SIGNED ) FROM tab2
----
78
78
78

skipif mysql # not compatible
query I rowsort label-3110
SELECT CAST ( 78 AS INTEGER ) FROM tab2
----
78
78
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 94 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) = ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 67 * 45 FROM tab0
----
3015
3015
3015

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT 46 + - COUNT( * ) AS col2 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-3114
SELECT 46 + - COUNT ( * ) AS col2 FROM tab2
----
43

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + col0 + 49 AS col0 FROM tab0
----
136
146
64

query I rowsort
SELECT ALL - 24 * col0 FROM tab2 WHERE NULL IS NULL
----
-1104
-1536
-1800

query I rowsort
SELECT - 71 * + ( + col1 ) FROM tab2
----
-3621
-4757
-5467

query I rowsort
SELECT + col0 * - 32 AS col2 FROM tab0
----
-2784
-3104
-480

query I rowsort
SELECT + 60 * 27 AS col1 FROM tab1
----
1620
1620
1620

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 87 - col2 = 8 + col0 * col1
----

query I rowsort
SELECT + col0 * + 53 AS col1 FROM tab0
----
4611
5141
795

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 IN ( 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT MIN( ALL + col0 ) * - 18 AS col0 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-3125
SELECT MIN ( ALL + col0 ) * - 18 AS col0 FROM tab0
----
-270

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT ( 14 + - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT CAST( - 78 AS SIGNED ) * + col1 + + 28 * + col1 AS col1 FROM tab1
----
-2350
-250
-700

skipif mysql # not compatible
query I rowsort label-3127
SELECT CAST ( - 78 AS INTEGER ) * + col1 + + 28 * + col1 AS col1 FROM tab1
----
-2350
-250
-700

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT - col0 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + 64 * 37 AS col2 FROM tab1
----
2368

query I rowsort
SELECT DISTINCT 41 * - ( - col2 ) FROM tab1
----
2419
2788
3936

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 90 / + col2 ) > 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT + MIN( - 23 ) + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 * col0 >= - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT + MIN ( - 23 ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 * col0 >= - 3
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 32 ) col1 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE ( ( + col2 ) ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - col0 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT 73 + COUNT( * ) * 59 FROM tab0 WHERE NOT col1 <> + col0
----
73

skipif mysql # not compatible
query I rowsort label-3136
SELECT 73 + COUNT ( * ) * 59 FROM tab0 WHERE NOT col1 <> + col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * 63 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 91 col0 FROM tab0 AS cor0
----
1911
7371
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT - - COUNT( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3140
SELECT - - COUNT ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL - COUNT( ALL ( 58 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - COUNT ( ALL ( 58 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3142
SELECT + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3142
SELECT + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT DISTINCT - + MAX( ( + 81 ) ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT - + MAX ( ( + 81 ) ) FROM tab2 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT 42 DIV + col2 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3144
SELECT 42 / + col2 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 0 + - ( + 35 + - col0 * col0 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3146
SELECT - + col1 * + col1 + CAST( NULL AS SIGNED ) 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-3146
SELECT - + col1 * + col1 + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL - COUNT( ALL + col0 ) * + MIN( + 23 ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL - COUNT ( ALL + col0 ) * + MIN ( + 23 ) FROM tab0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT - 74 + + - SUM( DISTINCT - col0 ) DIV - COUNT( * ) AS col0 FROM tab1
----
-149

skipif mysql # not compatible
query I rowsort label-3148
SELECT - 74 + + - SUM ( DISTINCT - col0 ) / - COUNT ( * ) AS col0 FROM tab1
----
-149

query I rowsort
SELECT + col1 * col0 FROM tab2 WHERE NOT NULL < col2 / - 77 - + col2
----

query I rowsort
SELECT - 15 + col0 AS col1 FROM tab1
----
36
70
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT ALL 47 * col1 + + col2 DIV 36 AS col2 FROM tab1
----
2210
236
660

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL 47 * col1 + + col2 / 36 AS col2 FROM tab1
----
2210
236
660

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT DISTINCT - 72 + - - 71 + - 17 DIV 69 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT - 72 + - - 71 + - 17 / 69 AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT - SUM( ALL - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3153
SELECT - SUM ( ALL - col1 ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 52 BETWEEN + col0 * - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 * - col0 + + col0 * + col0 BETWEEN - col2 * + col2 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT + MAX( ALL col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-3156
SELECT + MAX ( ALL col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / - col1 IS NOT NULL
----

query I rowsort
SELECT - 28 AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT DISTINCT 15 + - col0 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL - COUNT( * ) * 45 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-405

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL - COUNT ( * ) * 45 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-405

query I rowsort
SELECT ( 57 ) + + 95 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 565904e33266d77f7dacf61b699cde5a

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3162
SELECT DISTINCT col0 + CAST( NULL AS DECIMAL ) * - 95 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT col0 + CAST ( NULL AS REAL ) * - 95 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - 52 AND col1 * 93
----

query I rowsort
SELECT DISTINCT + col0 * col1 + - + col0 * + col0 AS col0 FROM tab2
----
-600
230
832

query I rowsort
SELECT col0 * - col0 + 21 FROM tab0
----
-204
-7548
-9388

query I rowsort
SELECT ALL - + 92 + 13 * - 48 AS col0 FROM tab1 AS cor0
----
-716
-716
-716

query I rowsort
SELECT col2 + + 50 * col1 * - col0 AS col2 FROM tab0 AS cor0
----
-4751
-60703
-91340

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 cor0 WHERE - col0 * - - col1 * col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + ( COUNT( * ) ) + MIN( + 32 ) AS col0 FROM tab1 cor0
----
35

skipif mysql # not compatible
query I rowsort label-3169
SELECT + ( COUNT ( * ) ) + MIN ( + 32 ) AS col0 FROM tab1 cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT ALL + AVG ( + 37 ) * CAST( NULL AS SIGNED ) + + 81 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL + AVG ( + 37 ) * CAST ( NULL AS INTEGER ) + + 81 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 - + 22 + - - col0 * col1 AS col0 FROM tab2 cor0
----
2375
4983
5070

query I rowsort
SELECT DISTINCT ( col2 ) * - + col1 * col1 AS col0 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT ALL - col2 * + - col1 + - + col0 - - col2 FROM tab1 cor0
----
1389
269
3173

query I rowsort
SELECT DISTINCT - + col0 + col1 AS col0 FROM tab2 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT ALL + col1 * col2 + col1 * + 79 FROM tab2 WHERE NOT ( 28 ) NOT IN ( + col0 * - col2 )
----

query I rowsort
SELECT ALL - 15 * - 20 FROM tab2
----
300
300
300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3177
SELECT ALL * FROM tab0 WHERE NOT ( - 17 + + + CAST( col2 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3177
SELECT ALL * FROM tab0 WHERE NOT ( - 17 + + + CAST ( col2 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT col0 * - ( - CAST( NULL AS SIGNED ) ) * - - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT col0 * - ( - CAST ( NULL AS INTEGER ) ) * - - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + COUNT( - - col0 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3179
SELECT + COUNT ( - - col0 ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col2 BETWEEN ( - CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col2 BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( 86 ) FROM tab2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL - COUNT( * ) - + + COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 84 * - ( + col0 ) AS col1 FROM tab0
----
-1260
-7308
-8148

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT - + MAX( DISTINCT - 33 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3184
SELECT - + MAX ( DISTINCT - 33 ) FROM tab0 AS cor0
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3185
SELECT DISTINCT + col0 + + + CAST( NULL AS DECIMAL ) * - + ( + + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT + col0 + + + CAST ( NULL AS REAL ) * - + ( + + col0 ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + - col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= ( col1 + - ( 82 ) )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3189
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( 87 ) ) + + 97 * - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + 91 * + + COUNT( * ) AS col2 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-3192
SELECT + 91 * + + COUNT ( * ) AS col2 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT DISTINCT SUM( DISTINCT + ( - - 14 ) ) AS col0 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT SUM ( DISTINCT + ( - - 14 ) ) AS col0 FROM tab1
----
14

query I rowsort
SELECT ALL 71 + col2 + - col1 FROM tab0
----
169
37
60

query II rowsort
SELECT col2, + col2 * + col2 FROM tab1
----
59
3481
68
4624
96
9216

query I rowsort
SELECT 21 + - 60 FROM tab1
----
-39
-39
-39

query I rowsort
SELECT DISTINCT col2 * - col0 + 71 * col2 FROM tab1 WHERE - - col2 + col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL + ( - col1 ) * 6 + + ( - - col0 ) DIV - 69 AS col0 FROM tab1 cor0
----
-283
-31
-84

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + ( - col1 ) * 6 + + ( - - col0 ) / - 69 AS col0 FROM tab1 cor0
----
-283
-31
-84

query I rowsort
SELECT - + col1 * 24 + - col1 FROM tab2 AS cor0
----
-1275
-1675
-1925

query II rowsort
SELECT - + col0, - 20 AS col0 FROM tab1 cor0
----
-51
-20
-85
-20
-91
-20

query I rowsort
SELECT DISTINCT col1 + - - col0 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL + 77 + - 74 AS col1 FROM tab0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3203
SELECT ALL - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL < - col1
----

query II rowsort
SELECT - - col2 - - + 45, - col1 + + 73 AS col0 FROM tab0 AS cor0
----
144
72
55
52
92
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3206
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - ( + 14 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - ( + 14 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 26 - - + col1 AS col1 FROM tab1 AS cor0
----
31
40
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - MAX( DISTINCT col0 ) col1 FROM tab2 AS cor0 WHERE 25 + - col0 > ( - ( 45 ) )
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3208
SELECT - MAX ( DISTINCT col0 ) col1 FROM tab2 AS cor0 WHERE 25 + - col0 > ( - ( 45 ) )
----
-64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) NOT BETWEEN ( NULL ) AND + - col1 * + - col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL + - MIN( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL + - MIN ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT col0 * + + col1 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 * - - 37 col1 FROM tab0
----
-185

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3213
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) * col0 + + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3213
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) * col0 + + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 71 + + col1 FROM tab1
----
59
76
68
118
96
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3215
SELECT ALL - COUNT( * ) DIV - - 83 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL - COUNT ( * ) / - - 83 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3216
SELECT DISTINCT + 78 DIV - 93 * + + 59 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT + 78 / - 93 * + + 59 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL COUNT( - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL COUNT ( - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT ALL + 40 * MAX( DISTINCT - - col0 ) FROM tab0
----
3880

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL + 40 * MAX ( DISTINCT - - col0 ) FROM tab0
----
3880

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT 20 * + 32 * + + ( - COUNT( * ) ) col2 FROM tab1
----
-1920

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3219
SELECT 20 * + 32 * + + ( - COUNT ( * ) ) col2 FROM tab1
----
-1920

onlyif mysql # aggregate syntax: 
query II rowsort label-3220
SELECT + COUNT( * ) * + COUNT( * ) * + - 49 AS col1, - 51 AS col0 FROM tab2 AS cor0
----
-441
-51

skipif mysql # not compatible
query II rowsort label-3220
SELECT + COUNT ( * ) * + COUNT ( * ) * + - 49 AS col1, - 51 AS col0 FROM tab2 AS cor0
----
-441
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT CAST( - - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3221
SELECT CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT ALL + col0 * - col2 + - col0 FROM tab0 AS cor0
----
-720
-957
-9700

query II rowsort
SELECT DISTINCT + 13 AS col2, + col0 FROM tab0 AS cor0
----
13
15
13
87
13
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT DISTINCT + + CAST( + - 20 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT + + CAST ( + - 20 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3225
SELECT DISTINCT * FROM tab0 WHERE ( 79 * col2 + + 60 * + + 88 / + CAST( - col0 AS SIGNED ) ) NOT IN ( CAST( NULL AS SIGNED ) + col2 * + 16 )
----

skipif mysql # not compatible
query III rowsort label-3225
SELECT DISTINCT * FROM tab0 WHERE ( 79 * col2 + + 60 * + + 88 / + CAST ( - col0 AS INTEGER ) ) NOT IN ( CAST ( NULL AS INTEGER ) + col2 * + 16 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 47 )
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) + + 81 col2 FROM tab1 AS cor0
----
-15
13
22

query I rowsort
SELECT + 11 + + 24 AS col0 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT DISTINCT + COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3231
SELECT COUNT( * ) AS col0 FROM tab1 cor0 WHERE col2 NOT IN ( - - CAST( 2 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-3231
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE col2 NOT IN ( - - CAST ( 2 AS INTEGER ) )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3232
SELECT DISTINCT + MIN( + - CAST( + col0 AS SIGNED ) ) DIV SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT + MIN ( + - CAST ( + col0 AS INTEGER ) ) / SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - + MIN( + - col2 ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3233
SELECT - + MIN ( + - col2 ) + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT DISTINCT - col0 * + col2 * + 27 FROM tab1 AS cor0
----
-132192
-135405
-167076

query I rowsort
SELECT col1 + - col2 * + 15 - - col2 FROM tab1 AS cor0
----
-1330
-821
-905

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN ( col1 + 79 ) AND 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + ( 55 ) col0 FROM tab0 cor0
----
126
126
126

query I rowsort
SELECT 3 + 8 AS col1 FROM tab1
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3239
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + ( + - 40 ) IS NULL
----

query II rowsort
SELECT ALL + - col1, - col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN 93 AND ( + ( + col1 ) )
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE ( - - col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL ( + COUNT( ALL - 88 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL ( + COUNT ( ALL - 88 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL col0 + + + col2 AS col2 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3247
SELECT ALL + 59 * - ( + CAST( - - col0 AS DECIMAL ) ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL + 59 * - ( + CAST ( - - col0 AS REAL ) ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * - + 17 + - + col2 AS col1 FROM tab2 AS cor0
----
-1197
-1349
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT - MAX( - col1 ) col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3249
SELECT - MAX ( - col1 ) col1 FROM tab2 cor0
----
51

query I rowsort
SELECT - col1 * + 93 - col0 + col0 * + + col2 + - - col1 FROM tab0 AS cor0
----
-1149
-6762
9414

query I rowsort
SELECT - - 59 FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND + 55
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT DISTINCT CAST( + + SUM( - col1 ) AS SIGNED ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT CAST ( + + SUM ( - col1 ) AS INTEGER ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT + 58 * - - 33 + - col1 * col2 * col0 + + col0 * - - col0 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3253
SELECT + 58 * - - 33 + - col1 * col2 * col0 + + col0 * - - col0 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT + + ( + - 35 ) FROM tab0 cor0
----
-35
-35
-35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 15 * + col1 + col0 BETWEEN NULL AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL - + MIN( 15 ) AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - + MIN ( 15 ) AS col2 FROM tab1 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 67 NOT IN ( + col2 / 66 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 11 + col2 <> ( ( + - col0 ) / + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * - 18 * + - 0 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE - col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 86 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3265
SELECT ALL - SUM( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL - SUM ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT - col1 * + ( - col0 ) AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3267
SELECT COUNT( + 80 ) DIV COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3267
SELECT COUNT ( + 80 ) / COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= - 70 + 40 + 92
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( ( + + col2 ) + + col2 * - col2 + + col0 )
----

query I rowsort
SELECT ALL 12 * + + ( + - 44 ) FROM tab0
----
-528
-528
-528

query III rowsort
SELECT * FROM tab0 WHERE NOT - 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * col1 * + col1 col2 FROM tab0
----
11907
177147
27

query II rowsort
SELECT - col1 AS col0, + 19 FROM tab2 AS cor0
----
-51
19
-67
19
-77
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT ALL - col1 * 65 + - + ( + col1 ) + CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL - col1 * 65 + - + ( + col1 ) + CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT 88 DIV 36 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3275
SELECT 88 / 36 FROM tab2 AS cor0
----
2
2
2

query II rowsort
SELECT ALL - 45, 41 * - 40 AS col0 FROM tab2 AS cor0
----
-45
-1640
-45
-1640
-45
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL - 72 + - + COUNT( 52 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - 72 + - + COUNT ( 52 ) FROM tab0 AS cor0
----
-75

query III rowsort
SELECT * FROM tab2 WHERE NULL = NULL OR NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3279
SELECT col1 DIV col0 * + 51 + 10 AS col2 FROM tab2
----
10
61
61

skipif mysql # not compatible
query I rowsort label-3279
SELECT col1 / col0 * + 51 + 10 AS col2 FROM tab2
----
10
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + + col1 col1 FROM tab0
----
12
32
92

query II rowsort
SELECT DISTINCT col0 AS col0, col2 AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
51
96
85
59
91
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 63 NOT BETWEEN NULL AND + + ( - 52 ) * - 6 * - col2 - 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT + col2 + + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - CAST( NULL AS SIGNED ) ) AND ( 18 )
----

skipif mysql # not compatible
query I rowsort label-3283
SELECT + col2 + + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND ( 18 )
----

query I rowsort
SELECT ALL - ( - ( - 77 ) ) FROM tab0 cor0
----
-77
-77
-77

query II rowsort
SELECT + ( col0 ), col2 FROM tab2 cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 34 col0 FROM tab1 AS cor0
----
2006
2312
3264

query II rowsort
SELECT col2, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT DISTINCT MIN( + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT MIN ( + col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT MAX( col2 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3289
SELECT MAX ( col2 ) col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - SUM( - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3290
SELECT - SUM ( - col2 ) FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + 17 + + 56 - 52 FROM tab0
----
10
21
47
21
99
21

query I rowsort
SELECT ALL 50 * + - col1 AS col1 FROM tab1
----
-2350
-250
-700

onlyif mysql # aggregate syntax: 
query II rowsort label-3293
SELECT - 95, + COUNT( * ) AS col1 FROM tab1
----
-95
3

skipif mysql # not compatible
query II rowsort label-3293
SELECT - 95, + COUNT ( * ) AS col1 FROM tab1
----
-95
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3294
SELECT DISTINCT ( 20 ) FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT ( 20 ) FROM tab1 WHERE + CAST ( NULL AS REAL ) IS NULL
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3295
SELECT * FROM tab0 WHERE NOT + col0 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3295
SELECT * FROM tab0 WHERE NOT + col0 < - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT col2, - 68 AS col2 FROM tab1
----
59
-68
68
-68
96
-68

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 BETWEEN + - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT - - SUM( - - 19 ) FROM tab0 AS cor0 WHERE NOT NULL <> col2 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT - - SUM ( - - 19 ) FROM tab0 AS cor0 WHERE NOT NULL <> col2 + - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3299
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * - col1 > - CAST( NULL AS SIGNED ) + - 32 - col0 )
----

skipif mysql # not compatible
query III rowsort label-3299
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * - col1 > - CAST ( NULL AS INTEGER ) + - 32 - col0 )
----

query I rowsort
SELECT - - col0 * ( 86 ) AS col1 FROM tab2 AS cor0
----
3956
5504
6450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 col2 FROM tab0 AS cor0
----
-91
-91
-91

query II rowsort
SELECT + 80, - 2 * - col2 AS col2 FROM tab2 AS cor0
----
80
116
80
46
80
80

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab1 WHERE - + col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT 71 + + 66 + col1 FROM tab0 AS cor0
----
138
158
218

query I rowsort
SELECT 42 + + col1 AS col2 FROM tab0 AS cor0
----
123
43
63

query I rowsort
SELECT ALL + col0 + + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT DISTINCT col0 - - col1 * - + col0 DIV col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
37
44
80

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT col0 - - col1 * - + col0 / col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
37
44
80

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL + COUNT( * ) + + 31 FROM tab2, tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + COUNT ( * ) + + 31 FROM tab2, tab1 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col2 FROM tab0
----
77

query I rowsort
SELECT DISTINCT col2 + + 87 AS col0 FROM tab2
----
110
127
145

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT DISTINCT + 67 + + + 21 / + COUNT( DISTINCT + col0 ) * - 46 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT + 67 + + + 21 / + COUNT ( DISTINCT + col0 ) * - 46 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + 82 + 11 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3316
SELECT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT ( - + col1 ) * + col1 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 35 IS NOT NULL
----

query I rowsort
SELECT ( - 97 ) AS col0 FROM tab2
----
-97
-97
-97

query I rowsort
SELECT 87 * + ( - col1 ) AS col0 FROM tab0
----
-1827
-7047
-87

query I rowsort
SELECT + col2 * 8 AS col0 FROM tab2
----
184
320
464

onlyif mysql # DIV for integer division: 
query I rowsort label-3322
SELECT DISTINCT 34 DIV - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT 34 / - col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL + 21 AS col2, - col2 * - + col1 * + 75 AS col0 FROM tab1 AS cor0 WHERE 57 BETWEEN NULL AND + col2 + + - ( - col0 ) * + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + col1 IN ( + col1 * col1 - - 4 + col1 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT + MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3325
SELECT + MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE col2 >= + 82
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3328
SELECT 42 AS col0, - COUNT( * ) FROM tab1
----
42
-3

skipif mysql # not compatible
query II rowsort label-3328
SELECT 42 AS col0, - COUNT ( * ) FROM tab1
----
42
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3329
SELECT col0, CAST( + 60 AS SIGNED ) - col2 col2 FROM tab2
----
46
37
64
20
75
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3329
SELECT col0, CAST ( + 60 AS INTEGER ) - col2 col2 FROM tab2
----
46
37
64
20
75
2

query I rowsort
SELECT ( - + ( col1 ) ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT 56 * - COUNT( * ) * - COUNT( * ) FROM tab0
----
504

skipif mysql # not compatible
query I rowsort label-3331
SELECT 56 * - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
504

query I rowsort
SELECT ALL - ( - - col1 ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT - 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL MIN( col1 ) col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3334
SELECT ALL MIN ( col1 ) col2 FROM tab0 cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + ( - + col1 ) * col2 * + col0 ) IN ( 10 * + col1 + + - 35 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 60 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 79 FROM tab0 WHERE col2 * - - col2 * + 76 + - - col1 * + + col1 + - 77 IS NOT NULL
----
-79
-79
-79

query III rowsort
SELECT * FROM tab2 cor0 WHERE 4 IS NULL
----

query I rowsort
SELECT ALL + - 4 + - col2 AS col1 FROM tab1 cor0
----
-100
-63
-72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + ( - 47 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 - + col1, 97 AS col0 FROM tab0 AS cor0
----
-108
97
-96
97
-98
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - + col0 col1 FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT - col1 + - 29 + col0 FROM tab2 cor0
----
-21
-34
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT 25 * - + COUNT( * ) * 42 * + - MAX( - + col2 ) FROM tab2
----
-72450

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT 25 * - + COUNT ( * ) * 42 * + - MAX ( - + col2 ) FROM tab2
----
-72450

query I rowsort
SELECT col0 + + + 5 FROM tab0
----
102
20
92

query III rowsort
SELECT * FROM tab2 WHERE - col1 / + 35 * + + col1 + - + col1 IS NULL
----

query I rowsort
SELECT - ( - col1 ) + 24 + - - 34 AS col2 FROM tab0
----
139
59
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + + ( 82 ) * - col0 FROM tab0
----
-1149
-7113
-7953

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT 24 - + 8 * - COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT 24 - + 8 * - COUNT ( * ) FROM tab2
----
48

query I rowsort
SELECT + col0 * col1 * 2 AS col0 FROM tab1
----
1428
850
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT MIN( DISTINCT - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3352
SELECT MIN ( DISTINCT - col2 ) AS col1 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3353
SELECT * FROM tab1 WHERE NOT ( - + col1 * + 65 ) >= - CAST( - col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3353
SELECT * FROM tab1 WHERE NOT ( - + col1 * + 65 ) >= - CAST ( - col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 61 FROM tab2 WHERE NOT col2 + 81 IS NOT NULL
----

query I rowsort
SELECT 56 * + - col1 FROM tab1
----
-2632
-280
-784

query I rowsort
SELECT + ( + + 83 ) AS col1 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * col2 IS NOT NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT 70 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col1 AS col0, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - - SUM( + col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3360
SELECT - - SUM ( + col0 ) col2 FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col2, + 31 AS col2 FROM tab0 AS cor0
----
15
31
87
31
97
31

query I rowsort
SELECT + ( - + 98 ) FROM tab1 AS cor0
----
-98
-98
-98

query II rowsort
SELECT col2 AS col1, - 51 * + - col2 FROM tab2 cor0
----
23
1173
40
2040
58
2958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col0 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT - - MAX( + - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3365
SELECT - - MAX ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - MIN( 48 ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3366
SELECT - MIN ( 48 ) FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT COUNT( * ) + + COUNT( * ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3367
SELECT COUNT ( * ) + + COUNT ( * ) col2 FROM tab0
----
6

query I rowsort
SELECT - 42 + + col0 + 1 FROM tab2
----
23
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL + MAX( - - col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL + MAX ( - - col2 ) AS col0 FROM tab1
----
96

query III rowsort
SELECT * FROM tab1 WHERE NOT + 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 + 17 * + + col1 col1 FROM tab2
----
1139
1309
867

query I rowsort
SELECT col2 * - col0 * - 61 AS col1 FROM tab1 AS cor0
----
298656
305915
377468

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT + SUM( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3373
SELECT + SUM ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
199

query I rowsort
SELECT - 66 * + - 67 * - col2 FROM tab2 AS cor0
----
-101706
-176880
-256476

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT + MIN( - - 19 ) AS col0 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3376
SELECT + MIN ( - - 19 ) AS col0 FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT DISTINCT + MIN( - 46 ) FROM tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT + MIN ( - 46 ) FROM tab0 cor0
----
-46

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 NOT BETWEEN - ( + col1 ) - + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3379
SELECT 22 DIV + col2 FROM tab1 WHERE + 72 DIV col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT 22 / + col2 FROM tab1 WHERE + 72 / col2 IS NOT NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 30 = col0
----

query I rowsort
SELECT + ( + ( + col0 ) ) + - 59 AS col2 FROM tab2 AS cor0
----
-13
16
5

query I rowsort
SELECT - + 9 + - 22 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3383
SELECT + 1 * + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT + 1 * + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 62 <= NULL
----

query I rowsort
SELECT ALL + 59 AS col0 FROM tab1 WHERE NOT - - 50 IS NOT NULL
----

query II rowsort
SELECT col0 - + 12, col1 + - col0 AS col2 FROM tab0
----
3
66
75
-66
85
-96

query I rowsort
SELECT ALL col0 + - 99 FROM tab2
----
-24
-35
-53

query I rowsort
SELECT 59 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3389
SELECT CAST( NULL AS SIGNED ) - - col1 / - 95 / 9 AS col0, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-3389
SELECT CAST ( NULL AS INTEGER ) - - col1 / - 95 / 9 AS col0, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 71 - + - col0 IN ( col0, 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL - COUNT( ALL col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL - COUNT ( ALL col0 ) FROM tab1
----
-3

query I rowsort
SELECT + - 14 * - - col0 FROM tab1 cor0
----
-1190
-1274
-714

query I rowsort
SELECT + 36 FROM tab1 AS cor0 WHERE NOT + col0 + + col0 <> NULL
----

query I rowsort
SELECT ALL AVG ( DISTINCT + - 9 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT - SUM( - CAST( NULL AS SIGNED ) ) * + 36 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) * + 36 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 >= + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT - - ( 71 ) FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT - - col0 * 13 FROM tab0 cor0
----
1131
1261
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <> ( + + 5 ) * col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - - 28, + 83 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3403
SELECT - col0 DIV - 90, col0 AS col1 FROM tab0 AS cor0
----
0
15
0
87
1
97

skipif mysql # not compatible
query II rowsort label-3403
SELECT - col0 / - 90, col0 AS col1 FROM tab0 AS cor0
----
0
15
0
87
1
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT ALL - + MIN( ALL - col1 ) DIV + - 33 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - + MIN ( ALL - col1 ) / + - 33 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT + SUM( - - col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-3405
SELECT + SUM ( - - col0 ) FROM tab2 cor0
----
185

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3406
SELECT DISTINCT COUNT( * ) / MAX( DISTINCT ( CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT COUNT ( * ) / MAX ( DISTINCT ( CAST ( NULL AS REAL ) ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT COUNT( DISTINCT + col2 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3407
SELECT COUNT ( DISTINCT + col2 ) col1 FROM tab1
----
3

query II rowsort
SELECT ALL - col1 AS col0, - ( - col1 ) FROM tab0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 67 AND col2 * col2
----

query I rowsort
SELECT ALL - col0 / + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 25 * - 3 FROM tab1
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3412
SELECT - CAST( NULL AS SIGNED ) col0, + col2 DIV - col1 + + col1 FROM tab0
----
NULL
-98
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3412
SELECT - CAST ( NULL AS INTEGER ) col0, + col2 / - col1 + + col1 FROM tab0
----
NULL
-98
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col0 FROM tab2
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT ALL 71 + - COUNT( * ) AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL 71 + - COUNT ( * ) AS col1 FROM tab1
----
68

query I rowsort
SELECT - col0 * + col0 AS col2 FROM tab0 WHERE 24 + - col2 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col2 + + - col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col2 + - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 72 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 30 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT col1 DIV - + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3421
SELECT col1 / - + col2 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + 16 col0 FROM tab0
----
-689
-854
-9587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT DISTINCT col1 - col1 * - col2 + + - CAST( + + 99 AS SIGNED ) FROM tab2 AS cor0
----
1125
3058
3854

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT col1 - col1 * - col2 + + - CAST ( + + 99 AS INTEGER ) FROM tab2 AS cor0
----
1125
3058
3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3424
SELECT - ( + CAST( NULL AS SIGNED ) ) - + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT - ( + CAST ( NULL AS INTEGER ) ) - + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3425
SELECT DISTINCT CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) - 58, col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3425
SELECT DISTINCT CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) - 58, col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT col2 - 1 - + + col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT + COUNT( * ) - - MAX( DISTINCT - 55 ) AS col0 FROM tab1 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3427
SELECT + COUNT ( * ) - - MAX ( DISTINCT - 55 ) AS col0 FROM tab1 cor0
----
-52

query I rowsort
SELECT ALL - ( - - 78 ) AS col2 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ( - + AVG ( + - col2 ) ) FROM tab1 AS cor0 WHERE + 94 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - - COUNT( * ) + - + ( 55 ) - + ( + - COUNT( * ) ) + - COUNT( * ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3430
SELECT - - COUNT ( * ) + - + ( 55 ) - + ( + - COUNT ( * ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 + + col0 + - col2 + - col0 col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - col2 * col0 + - 12 FROM tab2
----
-1070
-2572
-4362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT DISTINCT ( - MAX( + + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT ( - MAX ( + + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 * col0 * - + 1 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT + + 12 + - + ( - col2 ) <= - - col0 + - col1 + - col2 ) )
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 > 30 * - 68 + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3437
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( - - col1, - col0, 85, - ( - + 38 ) )
----

skipif mysql # not compatible
query III rowsort label-3437
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - - col1, - col0, 85, - ( - + 38 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3438
SELECT COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL col0 * - - col2 * 72 * + col0 FROM tab0
----
5449680
67067352
761400

query II rowsort
SELECT ALL + col0 * + col0 * 35 AS col2, - col1 FROM tab2 WHERE NOT + 35 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL - COUNT( * ) * 0 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL - COUNT ( * ) * 0 AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT - - SUM( - - col2 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-3442
SELECT - - SUM ( - - col2 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
669

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT NULL IN ( - col2 ) )
----

query I rowsort
SELECT + + col2 * - - col0 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT ALL 95 + - - col1 * - col0, - 74 * col1 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT - COUNT( * ) * - + 26 AS col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT - COUNT ( * ) * - + 26 AS col2 FROM tab0 AS cor0
----
78

query I rowsort
SELECT ALL col2 * + + 41 FROM tab1 AS cor0
----
2419
2788
3936

query I rowsort
SELECT 87 + - col1 + col0 AS col1 FROM tab2 AS cor0
----
74
82
95

query I rowsort
SELECT DISTINCT - + ( - - col0 ) * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3450
SELECT ALL MIN( + col1 ) AS col2, - COUNT( * ) FROM tab2 cor0
----
51
-3

skipif mysql # not compatible
query II rowsort label-3450
SELECT ALL MIN ( + col1 ) AS col2, - COUNT ( * ) FROM tab2 cor0
----
51
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3451
SELECT ALL + ( + col1 ) DIV + col0 AS col0, col0 AS col0 FROM tab2
----
0
75
1
46
1
64

skipif mysql # not compatible
query II rowsort label-3451
SELECT ALL + ( + col1 ) / + col0 AS col0, col0 AS col0 FROM tab2
----
0
75
1
46
1
64

query II rowsort
SELECT ALL col1 + col0 AS col0, col0 FROM tab0
----
108
87
96
15
98
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3453
SELECT ALL + COUNT( * ) + + COUNT( * ) DIV - 50 AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL + COUNT ( * ) + + COUNT ( * ) / - 50 AS col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - + 24
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 40 * col0 col0 FROM tab1
----
2054
3405
3687

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL - COUNT( * ) * - COUNT( * ) * 38 + - - 25 * COUNT( - 1 ) AS col1 FROM tab2 AS cor0
----
417

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * 38 + - - 25 * COUNT ( - 1 ) AS col1 FROM tab2 AS cor0
----
417

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL + COUNT( DISTINCT + col2 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL + COUNT ( DISTINCT + col2 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col2
----
0

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3460
SELECT - CAST( NULL AS DECIMAL ) - - 32 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT - CAST ( NULL AS REAL ) - - 32 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT COUNT( ALL - + 8 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT COUNT ( ALL - + 8 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col1 + 58 - - col1 AS col2 FROM tab0
----
100
220
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT ALL - 64 DIV + 52 FROM tab1, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - 64 / + 52 FROM tab1, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT col2 * - CAST( col1 AS SIGNED ) + + col2 AS col0 FROM tab2
----
-1150
-3040
-3828

skipif mysql # not compatible
query I rowsort label-3464
SELECT col2 * - CAST ( col1 AS INTEGER ) + + col2 AS col0 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT + 75 + col2 * - col2 + + + col0 AS col0 FROM tab1
----
-3321
-4458
-9090

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 col1, - col1 - + col0 FROM tab2 AS cor0
----
15
-141
15
-142
15
-97

query II rowsort
SELECT - - 66 AS col1, col2 * - ( - col1 ) * - col2 + - - 70 AS col0 FROM tab1 AS cor0
----
66
-128954
66
-17335
66
-217258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT DISTINCT 53 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT 53 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT + MIN( - + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3469
SELECT + MIN ( - + col1 ) FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col1 FROM tab1 cor0
----
5
5
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT - + col1 * 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col0 FROM tab2 WHERE NULL <= col0 / + + col0 * - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + 24, + col2 + - col1 * - col1 col2 FROM tab2
----
1224
2624
1608
4547
1848
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL - + 3 * 4 * + SUM( ALL - col1 ) FROM tab0 WHERE NOT - ( + col0 ) IS NULL
----
1236

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - + 3 * 4 * + SUM ( ALL - col1 ) FROM tab0 WHERE NOT - ( + col0 ) IS NULL
----
1236

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3476
SELECT MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) * COUNT( * ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3476
SELECT MIN ( DISTINCT - CAST ( NULL AS REAL ) ) * COUNT ( * ) col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT - col1 DIV + - col0 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3477
SELECT - col1 / + - col0 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT col2 * + + 47 AS col1 FROM tab2
----
1081
1880
2726

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - 8 ) * + col2 NOT BETWEEN + col2 AND - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3481
SELECT DISTINCT + 88 col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
88
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3481
SELECT DISTINCT + 88 col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
88
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3483
SELECT + 1 DIV - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT + 1 / - col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3484
SELECT ( - CAST( + + 46 AS SIGNED ) ) DIV col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3484
SELECT ( - CAST ( + + 46 AS INTEGER ) ) / col0 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * + 97 col1 FROM tab1
----
7566
7566
7566

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * col2 col2 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
1748
3040
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL COUNT( ALL + 42 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3488
SELECT ALL COUNT ( ALL + 42 ) col2 FROM tab2
----
3

query I rowsort
SELECT ALL col1 * - 50 FROM tab1
----
-2350
-250
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT COUNT( * ) * 9 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3490
SELECT COUNT ( * ) * 9 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + ( - + col0 ) col0 FROM tab2 cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT - COUNT( - + col0 ) * - COUNT( DISTINCT - - 34 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT - COUNT ( - + col0 ) * - COUNT ( DISTINCT - - 34 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + - 44 ) FROM tab2 AS cor0
----
44

query I rowsort
SELECT ALL + 85 AS col0 FROM tab0 cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + - COUNT( + ( + + col1 ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3497
SELECT + - COUNT ( + ( + + col1 ) ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT 31 - + 32 * 0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - MAX( + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3499
SELECT - MAX ( + col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - 51 * 42 AS col2 FROM tab1
----
-2142
-2142
-2142

query I rowsort
SELECT 5 * + col2 AS col1 FROM tab0
----
235
495
50

query II rowsort
SELECT DISTINCT 39 * - col1 * - col0 AS col2, 67 AS col2 FROM tab1
----
16575
67
166803
67
27846
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT - MAX( - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3503
SELECT - MAX ( - col0 ) FROM tab1
----
51

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL ( ( - - MAX( ALL col2 ) ) ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL ( ( - - MAX ( ALL col2 ) ) ) AS col1 FROM tab2
----
58

query II rowsort
SELECT ALL 23 AS col2, col2 FROM tab0
----
23
10
23
47
23
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 59 / + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 71 AS col2 FROM tab0 cor0
----
-71

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 <= + 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 49 + col2 AS col0 FROM tab2 AS cor0
----
-1104
-1920
-2784

query I rowsort
SELECT - col2 * + - 87 FROM tab2 AS cor0
----
2001
3480
5046

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > - 62 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT ALL - col2 + - CAST( + - 42 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-17
-26
-54

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - col2 + - CAST ( + - 42 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-17
-26
-54

query I rowsort
SELECT col1 + 92 AS col0 FROM tab2 cor0
----
143
159
169

query I rowsort
SELECT + 16 + + col2 FROM tab1 cor0
----
112
75
84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 78 * - ( - col1 ) + + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT + - MIN( + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT + - MIN ( + col1 ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-17
164
95

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab0 AS cor0 WHERE 99 <= 57
----

query I rowsort
SELECT ALL 62 AS col2 FROM tab0
----
62
62
62

query I rowsort
SELECT col0 + + col0 * 96 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT - MAX( - col0 ) FROM tab2 WHERE ( + col1 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT - MAX ( - col0 ) FROM tab2 WHERE ( + col1 ) >= NULL
----
NULL

query I rowsort
SELECT col1 * + col0 * + - 32 * - col1 FROM tab2 WHERE - + col2 NOT BETWEEN - 75 * col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + 84 + - + ( + 66 ) - + col2 * - 99 * + col2 * + 68 <= NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + ( + 58 ) FROM tab2
----
-2958
-3886
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 73 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 73 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL 42 + + + COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL 42 + + + COUNT ( * ) FROM tab1
----
45

query I rowsort
SELECT DISTINCT + + col2 - + 90 + + 20 * col2 FROM tab2 AS cor0
----
1128
393
750

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3531
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT col2 + + + col2 FROM tab0
----
198
20
94

query I rowsort
SELECT + + col2 * + 31 FROM tab0 AS cor0
----
1457
3069
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL - 18 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL - 18 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND col1 + col0 + - - 48 / - + col2 / 76
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NOT col0 BETWEEN NULL AND - col0 + - 36 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + + col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT CAST( + CAST( + CAST( - MIN( ( + col0 ) ) AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3538
SELECT CAST ( + CAST ( + CAST ( - MIN ( ( + col0 ) ) AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 < 38 + + 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + 1 * col2 col1, col0 + + col1 + - 89 AS col2, col1 AS col1 FROM tab1 cor0
----
9 values hashing to 3aad1200212d58c9be0cf33302ac31a4

query II rowsort
SELECT ALL - + col1, col2 FROM tab2 AS cor0 WHERE NOT + col1 < + ( + + col2 ) * + 79 + + + 49
----

query I rowsort
SELECT + - 1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query II rowsort
SELECT DISTINCT - col1, col1 AS col2 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3544
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-3544
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query II rowsort
SELECT DISTINCT col1 + + + ( + col0 ), - col1 AS col1 FROM tab1 AS cor0
----
138
-47
65
-14
90
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3547
SELECT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT + + 93 * + + MIN( - - 72 ) FROM tab0 cor0
----
6696

skipif mysql # not compatible
query I rowsort label-3548
SELECT + + 93 * + + MIN ( - - 72 ) FROM tab0 cor0
----
6696

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT + COUNT( * ) - + - COUNT( * ) + - - 82 FROM tab2 cor0
----
88

skipif mysql # not compatible
query I rowsort label-3549
SELECT + COUNT ( * ) - + - COUNT ( * ) + - - 82 FROM tab2 cor0
----
88

query I rowsort
SELECT DISTINCT - col0 - + col2 - - col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col0 + - - col1 + 96 FROM tab0 AS cor0
----
192
194
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT - 39 + + - col0 - + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT - 39 + + - col0 - + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3553
SELECT - ( - - col2 ) + col0 - + + col0, + 21 DIV - - col0 * col0 * - 96 * - 18 AS col0 FROM tab2
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-3553
SELECT - ( - - col2 ) + col0 - + + col0, + 21 / - - col0 * col0 * - 96 * - 18 AS col0 FROM tab2
----
-23
0
-40
0
-58
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col2 + - col2 col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT DISTINCT CAST( - 85 AS SIGNED ) * - 0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT CAST ( - 85 AS INTEGER ) * - 0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT DISTINCT col0 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT col0 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT DISTINCT - - ( col1 ) / + + 25 FROM tab2 WHERE - col0 + + col1 + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - - ( col1 ) / + + 25 FROM tab2 WHERE - col0 + + col1 + CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT - col0 + 40 FROM tab0
----
-47
-57
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + col1 col1 FROM tab2
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT DISTINCT - - col0 + + 9 DIV + - col2 + + ( 10 ) FROM tab0 AS cor0
----
107
25
97

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT - - col0 + + 9 / + - col2 + + ( 10 ) FROM tab0 AS cor0
----
107
25
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT + - ( - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT + - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + + col1 * col1 / 48 / + + col2 - + col1 * + col2 BETWEEN - - 34 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT + CAST( NULL AS SIGNED ) / - + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT + CAST ( NULL AS INTEGER ) / - + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT SUM( - + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3565
SELECT SUM ( - + col0 ) AS col0 FROM tab2
----
-185

query I rowsort
SELECT - col2 * + - 7 FROM tab1 AS cor0
----
413
476
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * - 70 col1 FROM tab2 AS cor0
----
-1680
-1680
-1680

query II rowsort
SELECT - 18 AS col2, - col1 FROM tab1 AS cor0
----
-18
-14
-18
-47
-18
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 3 + + 44 AND ( - - 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT - - MAX( ALL 80 ) * 37 FROM tab0 AS cor0
----
2960

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT - - MAX ( ALL 80 ) * 37 FROM tab0 AS cor0
----
2960

query I rowsort
SELECT DISTINCT col2 * - ( col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-4992
-5074
-6256

query II rowsort
SELECT col0, - 68 FROM tab1
----
51
-68
85
-68
91
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3573
SELECT ALL col0 DIV CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL col0 / CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT DISTINCT 39 AS col2, 9 + + col2 * - col0 FROM tab2
----
39
-1049
39
-2551
39
-4341

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT - SUM( DISTINCT 47 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT - SUM ( DISTINCT 47 ) FROM tab2
----
-47

query I rowsort
SELECT DISTINCT + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT MIN( + col2 ) AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3577
SELECT MIN ( + col2 ) AS col0 FROM tab2 cor0
----
23

query I rowsort
SELECT DISTINCT + col1 + - - 76 + - col0 AS col2 FROM tab0 AS cor0 WHERE col1 + col1 NOT BETWEEN col1 AND - col0
----
-20
10
142

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 13 >= + col0 + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT - 13 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 13 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + 99 * + 61 + - COUNT( * ) + - 66 AS col0 FROM tab2
----
5970

skipif mysql # not compatible
query I rowsort label-3581
SELECT + 99 * + 61 + - COUNT ( * ) + - 66 AS col0 FROM tab2
----
5970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3582
SELECT ALL + SUM( + CAST( - - col0 AS SIGNED ) ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + SUM ( + CAST ( - - col0 AS INTEGER ) ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
230

query I rowsort
SELECT ALL + 8 AS col2 FROM tab0 AS cor0 WHERE - 23 > - 86
----
8
8
8

query I rowsort
SELECT + - col1 + 55 AS col2 FROM tab1 AS cor0
----
41
50
8

onlyif mysql # DIV for integer division: 
query II rowsort label-3585
SELECT ALL 82 DIV - 80 AS col2, col1 AS col0 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-3585
SELECT ALL 82 / - 80 AS col2, col1 AS col0 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

query I rowsort
SELECT + 53 + - - col1 AS col0 FROM tab2 AS cor0
----
104
120
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT CAST( + MAX( ALL - 12 ) AS SIGNED ) + + 7 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3587
SELECT CAST ( + MAX ( ALL - 12 ) AS INTEGER ) + + 7 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + ( + 12 ) AS col1 FROM tab0 cor0
----
12

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT - MIN( - - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT - MIN ( - - col0 ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT DISTINCT - col2 + + + 0 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-3593
SELECT + col0 AS col2, - col2 DIV - col0 AS col0 FROM tab0
----
15
3
87
0
97
1

skipif mysql # not compatible
query II rowsort label-3593
SELECT + col0 AS col2, - col2 / - col0 AS col0 FROM tab0
----
15
3
87
0
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL COUNT( * ) FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL COUNT ( * ) FROM tab1, tab0 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 * + + 60 col0 FROM tab0
----
5230
5919
947

query III rowsort
SELECT * FROM tab2 WHERE NULL > 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col1 col1 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT + - 6 + + - 5 AS col0 FROM tab1 cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT - col0 * + 66 - - 15 FROM tab1 AS cor0
----
-3351
-5595
-5991

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( ( + col1 ) )
----

query I rowsort
SELECT 95 * + col0 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
1425
8265
9215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 83 * col0 AS col1 FROM tab0 WHERE NOT + col1 < ( - 31 )
----
1245
7221
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT - SUM( ALL 66 ) AS col2 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-3604
SELECT - SUM ( ALL 66 ) AS col2 FROM tab0
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3605
SELECT MIN( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL + COUNT( ALL + col0 ) - + 56 * - 78 AS col2 FROM tab0
----
4371

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL + COUNT ( ALL + col0 ) - + 56 * - 78 AS col2 FROM tab0
----
4371

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT DISTINCT + MIN( ALL 80 ) AS col2 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT + MIN ( ALL 80 ) AS col2 FROM tab0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3609
SELECT - 36 DIV 62 + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 36 / 62 + COUNT ( * ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( col1 ) * 58 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) / + 78 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) / + 78 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - col2 * + col1 AS col0 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT col2 + - 82 FROM tab1
----
-14
-23
14

query I rowsort
SELECT + col1 + 49 FROM tab2
----
100
116
126

query I rowsort
SELECT + 46 - 46 AS col2 FROM tab0 WHERE - col1 NOT BETWEEN ( NULL ) AND ( - col2 )
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( ( 84 ) + + 20 )
----

query I rowsort
SELECT col2 + col1 AS col1 FROM tab2 WHERE NOT - 70 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 + col2 ) NOT BETWEEN NULL AND col0 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + 26 AS col2 FROM tab1 cor0
----
111
117
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3622
SELECT ALL - col0 DIV + 47 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - col0 / + 47 AS col1 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT ALL 26 - - 35 * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + - 24 * 68 NOT BETWEEN + col1 * 69 AND ( - CAST( col1 AS SIGNED ) )
----
26

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL 26 - - 35 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + - 24 * 68 NOT BETWEEN + col1 * 69 AND ( - CAST ( col1 AS INTEGER ) )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0 WHERE + col0 + col2 IN ( + 41 )
----

skipif mysql # not compatible
query I rowsort label-3625
SELECT CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0 WHERE + col0 + col2 IN ( + 41 )
----

query I rowsort
SELECT col0 * col2 FROM tab0 WHERE - 0 * - col0 + + 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
9

skipif mysql # not compatible
query I rowsort label-3627
SELECT COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
9

query I rowsort
SELECT DISTINCT + col0 + col1 * - col2 AS col0 FROM tab1
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT 28 + COUNT( * ) col0 FROM tab1
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3629
SELECT DISTINCT 28 + COUNT ( * ) col0 FROM tab1
----
31

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT DISTINCT 48 FROM tab1 AS cor0 WHERE col1 * col1 <= col0 * - col1 + + CAST( 83 - + col0 AS SIGNED ) * ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT 48 FROM tab1 AS cor0 WHERE col1 * col1 <= col0 * - col1 + + CAST ( 83 - + col0 AS INTEGER ) * ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL - - COUNT( * ) - 1 AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL - - COUNT ( * ) - 1 AS col0 FROM tab1 AS cor0
----
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= ( 86 ) * 69
----

query I rowsort
SELECT DISTINCT + + col1 + ( + 26 ) FROM tab1 AS cor0
----
31
40
73

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - col0 IN ( + col2 / col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT ALL + - CAST( + AVG ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + - CAST ( + AVG ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE + 51 <= + col2
----
-1

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE + 51 <= + col2
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 IN ( - col1 )
----

query I rowsort
SELECT - col1 * col1 + col2 * col2 FROM tab1 AS cor0
----
2415
3456
9020

query I rowsort
SELECT ALL - 41 AS col1 FROM tab1 AS cor0 WHERE NOT col2 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3643
SELECT 85 / + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT 85 / + COUNT ( * ) + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT + COUNT( * ) - + + MIN( - col2 ) * - 99 AS col0 FROM tab1
----
-9501

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT + COUNT ( * ) - + + MIN ( - col2 ) * - 99 AS col0 FROM tab1
----
-9501

query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT DISTINCT - 19 DIV - col1 + - col2 DIV col0 AS col0 FROM tab0
----
-3
0
18

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT - 19 / - col1 + - col2 / col0 AS col0 FROM tab0
----
-3
0
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 71 ) >= 70 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT COUNT( - 48 ) * COUNT( ALL col0 * col2 ) + + ( 7 ) AS col1 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-3648
SELECT COUNT ( - 48 ) * COUNT ( ALL col0 * col2 ) + + ( 7 ) AS col1 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT SUM( DISTINCT + 4 ) * COUNT( * ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT SUM ( DISTINCT + 4 ) * COUNT ( * ) AS col0 FROM tab2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3650
SELECT MIN( ALL - col1 ) DIV + MIN( DISTINCT + 34 + col1 ) + 68 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-3650
SELECT MIN ( ALL - col1 ) / + MIN ( DISTINCT + 34 + col1 ) + 68 FROM tab0
----
66

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 + + - 85 * + 0 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL + 4 AS col0 FROM tab2
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN 49 + col2 AND col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3655
SELECT ALL - col1 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - col1 * - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT - + MIN( + + col2 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-3656
SELECT - + MIN ( + + col2 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
177

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE + 13 / + col1 BETWEEN col0 + - col2 AND 77
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN - 71 AND - 0 * 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT - COUNT( ALL - + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3659
SELECT - COUNT ( ALL - + col1 ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( + 58 + + col0 * + col1 ) IS NULL )
----

query II rowsort
SELECT ALL - col2 AS col1, col1 + col1 AS col2 FROM tab0
----
-10
42
-47
162
-99
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3662
SELECT COUNT( * ) AS col0, + 43 + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + 44 * - SUM( DISTINCT - 33 ) FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3662
SELECT COUNT ( * ) AS col0, + 43 + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 44 * - SUM ( DISTINCT - 33 ) FROM tab1
----
3
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT + 38 DIV + 19 AS col1 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3664
SELECT + 38 / + 19 AS col1 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT + + COUNT( * ) * 82 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT + + COUNT ( * ) * 82 FROM tab0 AS cor0
----
246

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 12 BETWEEN - + col1 AND 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + - COUNT( + 83 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3667
SELECT + - COUNT ( + 83 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 94 + col2 AS col1 FROM tab0 cor0
----
-47
-84
5

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - - col2
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL >= + 46
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN + - col0 / + 86 AND NULL
----

query I rowsort
SELECT ALL - col2 + + 97 FROM tab0
----
-2
50
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3675
SELECT * FROM tab1 WHERE - CAST( - ( 30 ) AS SIGNED ) + 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3675
SELECT * FROM tab1 WHERE - CAST ( - ( 30 ) AS INTEGER ) + 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * col2 + col1 * + ( - col0 ) AS col0 FROM tab2
----
-2875
-6528
-8389

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3677
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST( + - col1 AS DECIMAL ) + - - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3677
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST ( + - col1 AS REAL ) + - - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + 23 FROM tab2 cor0
----
46
63
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col2 NOT IN ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + + col1 * + 69 AS col1 FROM tab2 AS cor0
----
3468
4556
5236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 44 ) col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT ALL col1 - - ( - 73 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3684
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( - + CAST( + 1 AS SIGNED ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3684
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( - + CAST ( + 1 AS INTEGER ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col2 FROM tab1 AS cor0
----
24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) / - 68 + ( + 30 ) / - col1 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL - COUNT( * ) * + MAX( ALL 46 ) + COUNT( ALL - + col2 ) FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - COUNT ( * ) * + MAX ( ALL 46 ) + COUNT ( ALL - + col2 ) FROM tab0 AS cor0
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT - - col1 DIV + - 75 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT - - col1 / + - 75 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT 15 - - + col0 AS col2 FROM tab2 AS cor0
----
61
79
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT + + COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3690
SELECT + + COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
3

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 III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 70 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT COUNT( + col2 ) - 1 AS col1 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT COUNT ( + col2 ) - 1 AS col1 FROM tab0 cor0
----
2

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( NOT NULL IN ( 41 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT col0 * col0 FROM tab1 WHERE + - col1 * + CAST( - 91 AS SIGNED ) = - + col1 - 15
----

skipif mysql # not compatible
query I rowsort label-3695
SELECT col0 * col0 FROM tab1 WHERE + - col1 * + CAST ( - 91 AS INTEGER ) = - + col1 - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL 11 * - COUNT( * ) AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL 11 * - COUNT ( * ) AS col2 FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT - 9 * - COUNT( * ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3697
SELECT - 9 * - COUNT ( * ) AS col0 FROM tab1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3698
SELECT col2, col0 * + 98 + + col1 + 61 - CAST( 80 AS SIGNED ) + 70 FROM tab0
----
10
8598
47
1602
99
9558

skipif mysql # not compatible
query II rowsort label-3698
SELECT col2, col0 * + 98 + + col1 + 61 - CAST ( 80 AS INTEGER ) + 70 FROM tab0
----
10
8598
47
1602
99
9558

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 45 NOT IN ( col2 )
----

query II rowsort
SELECT + 75 * + col0 AS col0, 96 FROM tab2
----
3450
96
4800
96
5625
96

query II rowsort
SELECT + col1 AS col2, - col1 FROM tab1
----
14
-14
47
-47
5
-5

query II rowsort
SELECT DISTINCT + col0 AS col0, 32 - + col2 FROM tab2
----
46
9
64
-8
75
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT - + SUM( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT - + SUM ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT - SUM( + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3704
SELECT - SUM ( + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + + 93 BETWEEN - 25 + - 55 AND - col0
----
1
21
81

query I rowsort
SELECT DISTINCT - col1 / + 80 AS col1 FROM tab1 AS cor0 WHERE col0 + 56 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT ALL + 68, COUNT( * ) AS col1 FROM tab2 cor0
----
68
3

skipif mysql # not compatible
query II rowsort label-3707
SELECT ALL + 68, COUNT ( * ) AS col1 FROM tab2 cor0
----
68
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 43 ) < + 90 * - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT - 75 * + COUNT( * ) * + - MAX( DISTINCT - col2 ) FROM tab1
----
-13275

skipif mysql # not compatible
query I rowsort label-3709
SELECT - 75 * + COUNT ( * ) * + - MAX ( DISTINCT - col2 ) FROM tab1
----
-13275

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT ALL ( - col0 ) DIV col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL ( - col0 ) / col1 FROM tab1
----
-1
-17
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT - col0 / CAST( - - col2 AS SIGNED ) + ( 51 ) + col2 * - col1 BETWEEN col2 + col0 * - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT - col0 / CAST ( - - col2 AS INTEGER ) + ( 51 ) + col2 * - col1 BETWEEN col2 + col0 * - col1 AND NULL
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT + col0 * + 17 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT DISTINCT + SUM( ALL - 36 ) AS col2 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT + SUM ( ALL - 36 ) AS col2 FROM tab1 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT MIN( DISTINCT - col1 ) * - ( 12 ) AS col2 FROM tab2 AS cor0
----
924

skipif mysql # not compatible
query I rowsort label-3714
SELECT MIN ( DISTINCT - col1 ) * - ( 12 ) AS col2 FROM tab2 AS cor0
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT - MIN( - col1 ) AS col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - MIN ( - col1 ) AS col1 FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + MAX( DISTINCT ( + col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3716
SELECT + MAX ( DISTINCT ( + col1 ) ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT MAX( col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3717
SELECT MAX ( col1 ) AS col1 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, 22 * 97 col1 FROM tab0
----
-10
2134
-47
2134
-99
2134

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT 42 * 87 + + COUNT( * ) AS col2 FROM tab1
----
3657

skipif mysql # not compatible
query I rowsort label-3719
SELECT 42 * 87 + + COUNT ( * ) AS col2 FROM tab1
----
3657

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL COUNT( * ) + + - 74 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL COUNT ( * ) + + - 74 FROM tab1
----
-71

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 53 >= - col0
----
87
21
10
97
1
99

query II rowsort
SELECT col2 AS col0, ( + col2 ) FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT COUNT( * ) * - 70 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT COUNT ( * ) * - 70 FROM tab2
----
-210

query III rowsort
SELECT * FROM tab0 WHERE ( - 21 IS NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT - 76 IS NOT NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT - COUNT( * ) - - - 82 FROM tab2, tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT - COUNT ( * ) - - - 82 FROM tab2, tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT - ( - 88 ) + COUNT( * ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT - ( - 88 ) + COUNT ( * ) FROM tab0 AS cor0
----
91

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT - + ( + ( COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3731
SELECT - + ( + ( COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + + col1 * - col0 + - - 21 FROM tab1 AS cor0
----
-404
-4256
-693

query I rowsort
SELECT ALL + + col1 * + + 59 FROM tab0 AS cor0
----
1239
4779
59

query III rowsort
SELECT * FROM tab2 WHERE NOT - 54 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT 63 * + COUNT( * ) AS col0 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-3735
SELECT 63 * + COUNT ( * ) AS col0 FROM tab0
----
189

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + col0 * + 77 FROM tab0
----
1155
6699
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL - MIN( - + ( + + ( - col1 ) ) ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL - MIN ( - + ( + + ( - col1 ) ) ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT - col0 * - - col0 * + ( - 39 ) AS col1 FROM tab0
----
295191
366951
8775

query II rowsort
SELECT ALL + 57 AS col1, col1 AS col1 FROM tab0 AS cor0
----
57
1
57
21
57
81

query I rowsort
SELECT DISTINCT - 94 * col0 AS col2 FROM tab1 AS cor0
----
-4794
-7990
-8554

query I rowsort
SELECT 88 FROM tab2 AS cor0 WHERE NOT - 64 * - + col2 - - col1 + col0 <= + col0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT + COUNT( 78 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3743
SELECT + COUNT ( 78 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 * - + col0 + + col2 FROM tab0
----
-658
-860
-9504

query II rowsort
SELECT ALL + col0 AS col0, - col0 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3746
SELECT - col0 + + - 18 * - col1 + - col1 DIV col1 + col1 FROM tab2 AS cor0
----
1197
1398
922

skipif mysql # not compatible
query I rowsort label-3746
SELECT - col0 + + - 18 * - col1 + - col1 / col1 + col1 FROM tab2 AS cor0
----
1197
1398
922

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3747
SELECT ALL + AVG ( DISTINCT + col0 ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL + AVG ( DISTINCT + col0 ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - + ( - 99 ) FROM tab0 AS cor0
----
12
2
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT DISTINCT CAST( + ( 46 ) AS SIGNED ) * + col1 FROM tab2 AS cor0
----
2346
3082
3542

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT CAST ( + ( 46 ) AS INTEGER ) * + col1 FROM tab2 AS cor0
----
2346
3082
3542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 AS cor0 WHERE NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT 59 / - + 27 + + CAST( NULL AS SIGNED ) + + CAST( + col0 AS SIGNED ) + + col1 * + + 16 col2 FROM tab2 AS cor0 WHERE NOT NULL <> col1 * 64
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3751
SELECT DISTINCT 59 / - + 27 + + CAST ( NULL AS INTEGER ) + + CAST ( + col0 AS INTEGER ) + + col1 * + + 16 col2 FROM tab2 AS cor0 WHERE NOT NULL <> col1 * 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL - MIN( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL - MIN ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT 69 * - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT ( 32 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3753
SELECT DISTINCT 69 * - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( 32 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT - 72 + COUNT( * ) + - MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3754
SELECT - 72 + COUNT ( * ) + - MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3755
SELECT - CAST( NULL AS SIGNED ) + - - MAX( DISTINCT + 98 ) * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT - CAST ( NULL AS INTEGER ) + - - MAX ( DISTINCT + 98 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ( - + 10 ) FROM tab0
----
-10
-10
-10

query I rowsort
SELECT ALL + col2 + + + col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3758
SELECT * FROM tab2 WHERE + ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3758
SELECT * FROM tab2 WHERE + ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < - col2 - + 8
----

query I rowsort
SELECT DISTINCT + col0 + + 88 * + - 5 AS col1 FROM tab2
----
-365
-376
-394

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE + col0 = - - col2
----

query II rowsort
SELECT DISTINCT + col0 + 52 AS col1, + col0 AS col1 FROM tab1 AS cor0
----
103
51
137
85
143
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3763
SELECT DISTINCT 16 DIV col1 + + col0 AS col2 FROM tab0 AS cor0
----
113
15
87

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT 16 / col1 + + col0 AS col2 FROM tab0 AS cor0
----
113
15
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT col1 + ( - col1 ) - + + col0 * - + col1 * col0 * + - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-180625
-18292729
-509796

skipif mysql # not compatible
query I rowsort label-3764
SELECT col1 + ( - col1 ) - + + col0 * - + col1 * col0 * + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-180625
-18292729
-509796

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE NOT - 15 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - - 25 + - 65 IS NULL
----

query I rowsort
SELECT 4 * + col2 AS col0 FROM tab1
----
236
272
384

query III rowsort
SELECT * FROM tab0 WHERE + 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 56 ) IS NULL
----

query II rowsort
SELECT col1, + 36 AS col2 FROM tab2 AS cor0
----
51
36
67
36
77
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / + 70 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL - MIN( + + col0 ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - MIN ( + + col0 ) AS col0 FROM tab2 cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col1, + 72 / + + col2 * - - ( col1 ) FROM tab2 cor0 WHERE NOT 78 > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + + col1 + col1 col1 FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT DISTINCT + + 85 * col1 + - col0 FROM tab2 AS cor0
----
4289
5620
6481

query I rowsort
SELECT + - ( - + ( col0 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT + COUNT( DISTINCT + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3777
SELECT + COUNT ( DISTINCT + col0 ) FROM tab2
----
3

query I rowsort
SELECT 32 * + + 75 FROM tab1
----
2400
2400
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT + MAX( DISTINCT - 39 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-3779
SELECT + MAX ( DISTINCT - 39 ) FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT - ( + MIN( - 73 ) ) AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-3780
SELECT - ( + MIN ( - 73 ) ) AS col2 FROM tab0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3781
SELECT COUNT( * ) * - + CAST( + - 93 AS SIGNED ) AS col2 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-3781
SELECT COUNT ( * ) * - + CAST ( + - 93 AS INTEGER ) AS col2 FROM tab2
----
279

query I rowsort
SELECT - ( + + col0 ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT + - col2 * + - col1 + - - col2 * + col0 AS col0 FROM tab2 AS cor0
----
2231
5640
8236

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

query II rowsort
SELECT ALL + 53 / + 58 AS col0, - 19 * col2 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT - MIN( DISTINCT - 84 ) AS col1 FROM tab2 AS cor0 WHERE - col1 + - - 78 * - col0 / col1 <> + + col1 * + col2
----
84

skipif mysql # not compatible
query I rowsort label-3788
SELECT - MIN ( DISTINCT - 84 ) AS col1 FROM tab2 AS cor0 WHERE - col1 + - - 78 * - col0 / col1 <> + + col1 * + col2
----
84

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 29 ) NOT BETWEEN ( NULL ) AND col1
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT + 93 + - col2 AS col0 FROM tab0 AS cor0
----
-6
46
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3791
SELECT DISTINCT + col0 DIV + 21 FROM tab2 cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT + col0 / + 21 FROM tab2 cor0
----
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - - 54 * COUNT( * ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-3792
SELECT - - 54 * COUNT ( * ) FROM tab1 AS cor0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * col2 col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - - col0 * - ( + - col1 ) FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3795
SELECT - - COUNT( * ) * + CAST( NULL AS SIGNED ) + - 73 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - 73 AS col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + col0 ), col2 * col0 * 87 col1 FROM tab0
----
15
61335
87
75690
97
835461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 - 31 col0 FROM tab0
----
-29
11
131

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 ) >= NULL
----

query I rowsort
SELECT ALL 63 / - 85 / - col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3800
SELECT DISTINCT - col2 * 95 + + - 20 DIV col1 FROM tab1
----
-5609
-6460
-9121

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - col2 * 95 + + - 20 / col1 FROM tab1
----
-5609
-6460
-9121

query I rowsort
SELECT DISTINCT - col2 - 35 FROM tab2
----
-58
-75
-93

query I rowsort
SELECT ALL + col2 + + + col1 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT 91 + col1 FROM tab2 AS cor0
----
142
158
168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3804
SELECT * FROM tab2 cor0 WHERE NULL IN ( CAST( + col1 AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-3804
SELECT * FROM tab2 cor0 WHERE NULL IN ( CAST ( + col1 AS INTEGER ), - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT DISTINCT - + 98 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT - + 98 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col2, col0 * col1 AS col1 FROM tab1 AS cor0
----
59
425
68
4277
96
714

query I rowsort
SELECT - 80 AS col2 FROM tab1 WHERE NULL IS NULL
----
-80
-80
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 79 * - 95 + - + col1 + + 89 / - + col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT CAST( + - 73 AS SIGNED ) FROM tab0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-3809
SELECT CAST ( + - 73 AS INTEGER ) FROM tab0
----
-73
-73
-73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col2
----

query I rowsort
SELECT ALL - + ( 56 ) FROM tab0 cor0
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3812
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col0, + col2 AS col0 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ALL - 8 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3815
SELECT ALL * FROM tab2 WHERE - 68 / - col0 + + CAST( - ( - col2 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3815
SELECT ALL * FROM tab2 WHERE - 68 / - col0 + + CAST ( - ( - col2 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3816
SELECT ALL * FROM tab2 WHERE + col0 + - + col1 = col2 * + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3816
SELECT ALL * FROM tab2 WHERE + col0 + - + col1 = col2 * + CAST ( + col1 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 col1 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT - COUNT( * ) + ( COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3818
SELECT - COUNT ( * ) + ( COUNT ( * ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 + col2, - col2 * - - col2 * + + col0, col2 )
----

query I rowsort
SELECT - 14 + - 83 * col1 AS col2 FROM tab0 AS cor0
----
-1757
-6737
-97

query I rowsort
SELECT col1 * + col2 + 3 AS col0 FROM tab2 AS cor0
----
1176
3083
3889

query I rowsort
SELECT - + ( col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - 17 + col0 FROM tab1 AS cor0
----
34
68
74

query I rowsort
SELECT - col2 * - ( - + 61 ) AS col0 FROM tab2 AS cor0
----
-1403
-2440
-3538

query I rowsort
SELECT 33 * 74 AS col2 FROM tab2
----
2442
2442
2442

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3826
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * + 39 > col0 * + 24
----

skipif mysql # not compatible
query III rowsort label-3826
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * + 39 > col0 * + 24
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 85 * + col2 + - - 36 + + 86 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT DISTINCT + COUNT( * ) * + COUNT( ALL - col0 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT + COUNT ( * ) * + COUNT ( ALL - col0 ) FROM tab0
----
9

query II rowsort
SELECT col0 AS col1, col0 * col0 + col1 AS col0 FROM tab2
----
46
2167
64
4173
75
5692

query I rowsort
SELECT ALL col1 * col0 + - ( col1 ) FROM tab2
----
2295
4851
4958

query I rowsort
SELECT 59 - col1 FROM tab0
----
-22
38
58

query III rowsort
SELECT * FROM tab1 WHERE + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL 52 - - MAX( - col0 ) AS col1 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL 52 - - MAX ( - col0 ) AS col1 FROM tab0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT ( - COUNT( - col2 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT ( - COUNT ( - col2 ) ) FROM tab0 AS cor0
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE - 9 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT + 71 * COUNT( * ) AS col1 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-3836
SELECT + 71 * COUNT ( * ) AS col1 FROM tab1
----
213

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * + 51 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT - 38 * - - CAST( - 22 AS SIGNED ) AS col2 FROM tab1
----
836
836
836

skipif mysql # not compatible
query I rowsort label-3838
SELECT - 38 * - - CAST ( - 22 AS INTEGER ) AS col2 FROM tab1
----
836
836
836

query I rowsort
SELECT ALL + + 39 AS col0 FROM tab1 AS cor0
----
39
39
39

query II rowsort
SELECT DISTINCT col2 AS col0, col2 + + 32 FROM tab1 AS cor0
----
59
91
68
100
96
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL - - ( + SUM( + 96 ) ) FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL - - ( + SUM ( + 96 ) ) FROM tab0 AS cor0
----
288

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 82 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col0 FROM tab0 cor0
----
19
19
19

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + ( - - col1 ) + col1 AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT MAX( + 68 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT MAX ( + 68 ) FROM tab2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT + CAST( NULL AS SIGNED ) * - 97 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3846
SELECT + CAST ( NULL AS INTEGER ) * - 97 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - - 27 ) + + - col0 * - 54 AS col0 FROM tab1
----
2781
4617
4941

query I rowsort
SELECT DISTINCT - col2 * + 54 AS col2 FROM tab1
----
-3186
-3672
-5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL CAST( NULL AS SIGNED ) * - 85 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL CAST ( NULL AS INTEGER ) * - 85 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 * + - col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-3851
SELECT ALL 64 + col1 DIV + + col0 FROM tab2 AS cor0
----
64
65
65

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL 64 + col1 / + + col0 FROM tab2 AS cor0
----
64
65
65

query II rowsort
SELECT col2, + col0 * + col2 AS col0 FROM tab0
----
10
870
47
705
99
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT CAST( 81 AS SIGNED ) FROM tab1
----
81
81
81

skipif mysql # not compatible
query I rowsort label-3853
SELECT CAST ( 81 AS INTEGER ) FROM tab1
----
81
81
81

query I rowsort
SELECT DISTINCT + - col2 + + 26 FROM tab0 AS cor0
----
-21
-73
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 - col0 * + col0 * - col2 * + col1 col1 FROM tab2 AS cor0
----
12615736
21858806
2482124

query II rowsort
SELECT DISTINCT col2, col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - + col0 + - col2 * + col2 * + - col0 IS NOT NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3858
SELECT - MAX( + ( - ( 12 ) ) ) + SUM( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT - MAX ( + ( - ( 12 ) ) ) + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3859
SELECT ( - col2 ) + 36 DIV - + 33 + - - col1 AS col2 FROM tab1
----
-22
-55
-83

skipif mysql # not compatible
query I rowsort label-3859
SELECT ( - col2 ) + 36 / - + 33 + - - col1 AS col2 FROM tab1
----
-22
-55
-83

query I rowsort
SELECT ALL col1 * - - col2 AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT col1 DIV + 11 + - col0 FROM tab2
----
-42
-57
-69

skipif mysql # not compatible
query I rowsort label-3861
SELECT col1 / + 11 + - col0 FROM tab2
----
-42
-57
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT - COUNT( * ) + 69 + + 30 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3862
SELECT - COUNT ( * ) + 69 + + 30 FROM tab1
----
96

query I rowsort
SELECT DISTINCT - col0 + + + col1 FROM tab2 WHERE NOT - 94 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 34, - 54, + 33, 68 - - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 / - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 98 + col2 + - 26 AS col1 FROM tab0
----
-114
-25
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1 * + - col1 )
----

query I rowsort
SELECT DISTINCT - 94 - + col0 FROM tab1 AS cor0
----
-145
-179
-185

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col1 FROM tab1 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT - - CAST( + 38 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-3871
SELECT - - CAST ( + 38 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
38
38
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 = col2 / + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 79 AND col1
----

query I rowsort
SELECT ALL - - 31 FROM tab1 WHERE col2 + - ( - col2 ) < col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT DISTINCT - 92 DIV - 62 + - col1 * 42 * - col0 FROM tab2
----
206977
211051
98533

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT - 92 / - 62 + - col1 * 42 * - col0 FROM tab2
----
206977
211051
98533

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, 27 + - - col2 * - - 8 AS col0 FROM tab1
----
59
499
68
571
96
795

query II rowsort
SELECT - col2, col2 AS col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT ALL - col1 + 34 AS col2 FROM tab2
----
-17
-33
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT - COUNT( DISTINCT + 15 ) col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3880
SELECT - COUNT ( DISTINCT + 15 ) col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT DISTINCT - COUNT( * ) + - + ( COUNT( * ) ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT - COUNT ( * ) + - + ( COUNT ( * ) ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT + COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT + COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col1 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT - + 17 * col2 * col2 * + col0 FROM tab0 AS cor0
----
-147900
-16161849
-563295

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + 62 * - MIN( + col0 ) * 35 AS col1 FROM tab0 AS cor0 WHERE col0 IN ( col2 * col2 * - ( + + 14 ), col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT + 62 * - MIN ( + col0 ) * 35 AS col1 FROM tab0 AS cor0 WHERE col0 IN ( col2 * col2 * - ( + + 14 ), col2 )
----
NULL

query I rowsort
SELECT ALL 92 + + + col1 AS col0 FROM tab0
----
113
173
93

query I rowsort
SELECT col2 + - col1 + + 53 FROM tab1 AS cor0
----
107
135
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 21 * - - col1
----

query I rowsort
SELECT - + col0 * col2 FROM tab1 AS cor0 WHERE 65 < NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - 67 + - 49 + - - 38 AND NULL
----

query I rowsort
SELECT ALL + 48 - - - col2 * - col0 FROM tab2 AS cor0
----
1106
2608
4398

query I rowsort
SELECT - col2 * - + 11 AS col1 FROM tab0
----
1089
110
517

query I rowsort
SELECT ALL + col1 * - + col2 AS col1 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab1 WHERE - + col1 NOT IN ( col2 + + 72 * - col0 + col0 / - - col0, col0, - - 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( col1 ) * - - 8 FROM tab0
----
-168
-648
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT ALL 10 DIV + - 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL 10 / + - 75 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3897
SELECT ALL MAX( DISTINCT col1 ) / - AVG ( DISTINCT - 14 ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + + + 57 * + + col2 + - col0 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL MAX ( DISTINCT col1 ) / - AVG ( DISTINCT - 14 ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + + + 57 * + + col2 + - col0 < ( NULL )
----
NULL

query I rowsort
SELECT 6 FROM tab0 WHERE NOT - + ( - col2 ) IS NULL
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL + MIN( 62 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
62

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + MIN ( 62 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + 50 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL + SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL MIN( - - col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL MIN ( - - col1 ) AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL + 13 * - col0 AS col2 FROM tab0 AS cor0
----
-1131
-1261
-195

query I rowsort
SELECT DISTINCT + ( + 85 ) AS col1 FROM tab2 AS cor0 WHERE NOT 14 * - + 92 IS NULL
----
85

query I rowsort
SELECT DISTINCT + - 30 * + - col0 + - 76 FROM tab2 cor0
----
1304
1844
2174

query I rowsort
SELECT ALL + ( + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT - col1 + ( - CAST( col0 AS SIGNED ) ) + - - 81 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-17
-27

skipif mysql # not compatible
query I rowsort label-3907
SELECT - col1 + ( - CAST ( col0 AS INTEGER ) ) + - - 81 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-17
-27

query II rowsort
SELECT - 64 AS col1, col0 FROM tab1
----
-64
51
-64
85
-64
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT COUNT( DISTINCT + - col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3909
SELECT COUNT ( DISTINCT + - col1 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT - 54, col1 AS col2 FROM tab1
----
-54
14
-54
47
-54
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT - col1 DIV + 11 AS col2 FROM tab2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-3911
SELECT - col1 / + 11 AS col2 FROM tab2
----
-4
-6
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - ( - + COUNT( * ) ) + ( + COUNT( * ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3912
SELECT - ( - + COUNT ( * ) ) + ( + COUNT ( * ) ) FROM tab0
----
6

query I rowsort
SELECT - 30 + + ( col1 ) FROM tab1
----
-16
-25
17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 21 BETWEEN + 41 AND 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT - CAST( - 50 AS SIGNED ) FROM tab0 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3915
SELECT - CAST ( - 50 AS INTEGER ) FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT - - 18 AS col2 FROM tab0 cor0
----
18
18
18

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE 81 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3920
SELECT DISTINCT + CAST( + ( - 22 ) AS SIGNED ) + + 8, - col2 AS col2 FROM tab2 cor0
----
-14
-23
-14
-40
-14
-58

skipif mysql # not compatible
query II rowsort label-3920
SELECT DISTINCT + CAST ( + ( - 22 ) AS INTEGER ) + + 8, - col2 AS col2 FROM tab2 cor0
----
-14
-23
-14
-40
-14
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3921
SELECT ALL - + CAST( - - col0 AS SIGNED ) DIV + col0 - col2 AS col1 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - + CAST ( - - col0 AS INTEGER ) / + col0 - col2 AS col1 FROM tab1 AS cor0
----
-60
-69
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 26 = + + 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 + + col2 col2 FROM tab1 AS cor0
----
126
89
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT + 62 + - + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3924
SELECT + 62 + - + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
53

query I rowsort
SELECT + + 41 + - 82 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
-131159
-275807
-43337

onlyif mysql # DIV for integer division: 
query I rowsort label-3926
SELECT DISTINCT col0 DIV - 99 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT col0 / - 99 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT MAX( ALL + 23 ) AS col1 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-3927
SELECT MAX ( ALL + 23 ) AS col1 FROM tab0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT + col2 * ( + - col1 ) DIV 22 + + col0 AS col0 FROM tab2
----
-101
-7
-76

skipif mysql # not compatible
query I rowsort label-3928
SELECT + col2 * ( + - col1 ) / 22 + + col0 AS col0 FROM tab2
----
-101
-7
-76

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 47 IS NOT NULL
----

query I rowsort
SELECT + 3 * + ( col1 ) FROM tab0
----
243
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT - SUM( ALL - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - SUM ( ALL - col0 ) FROM tab0
----
199

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 17 AS col2 FROM tab0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT col2 DIV 40 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3934
SELECT col2 / 40 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT - COUNT( * ) * COUNT( * ) col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3935
SELECT - COUNT ( * ) * COUNT ( * ) col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3937
SELECT ALL + SUM( - col0 ) + - + COUNT( * ) AS col0, COUNT( * ) DIV 5 AS col0 FROM tab0 WHERE NOT NULL >= - - 61
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3937
SELECT ALL + SUM ( - col0 ) + - + COUNT ( * ) AS col0, COUNT ( * ) / 5 AS col0 FROM tab0 WHERE NOT NULL >= - - 61
----
NULL
0

query II rowsort
SELECT ALL - col1 AS col0, col2 AS col0 FROM tab0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ALL + col2 * + col2 * + - col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - 70 + col2 < NULL
----

query I rowsort
SELECT DISTINCT 42 + + - 26 AS col2 FROM tab2 cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * - - 17 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * - - 17 FROM tab1 AS cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT - + CAST( NULL AS SIGNED ) + col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT - + CAST ( NULL AS INTEGER ) + col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 67 + col0 * + col0 * 9 AS col2 FROM tab0 AS cor0
----
1958
68054
84614

query II rowsort
SELECT - col1, + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT DISTINCT - COUNT( ALL - - 73 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT - COUNT ( ALL - - 73 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + ( - - 77 ) + - 4 FROM tab2
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3948
SELECT DISTINCT ( - ( + + ( col2 ) ) ) + - - 99 + ( - ( - CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT ( - ( + + ( col2 ) ) ) + - - 99 + ( - ( - CAST ( NULL AS REAL ) ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 93 * + - col2 AS col2 FROM tab2
----
-2139
-3720
-5394

query I rowsort
SELECT ALL col2 + - + 24 + col2 - + + col0 AS col1 FROM tab0
----
-91
55
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT DISTINCT - col1 DIV + col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT - col1 / + col0 FROM tab1 cor0
----
0

query II rowsort
SELECT - col0 AS col0, 35 + col2 + + col0 AS col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + 84 AND - col0
----
-46
104
-64
139
-75
168

query I rowsort
SELECT ALL 55 AS col0 FROM tab2 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - + 36 * + col0 * + - 4 - - 47 + - 70 col0 FROM tab1 AS cor0
----
-102839
-61223
-615911

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - col2
----

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-49

query I rowsort
SELECT ALL + 32 - - + col0 AS col1 FROM tab0 AS cor0
----
119
129
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3958
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 39 + + col2, - col0 col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3958
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 39 + + col2, - col0 col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT ALL ( - - 34 ) - col0 FROM tab0 AS cor0
----
-53
-63
19

query I rowsort
SELECT + ( col2 ) * - + col1 * - - col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT - COUNT( * ), 47 AS col1 FROM tab0 AS cor0
----
-3
47

skipif mysql # not compatible
query II rowsort label-3961
SELECT - COUNT ( * ), 47 AS col1 FROM tab0 AS cor0
----
-3
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 48 * - 53 IS NULL
----

query I rowsort
SELECT DISTINCT - 23 - col0 FROM tab2 AS cor0
----
-69
-87
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT + - CAST( NULL AS SIGNED ) * + 27 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT + - CAST ( NULL AS INTEGER ) * + 27 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + 97 <> col2 + - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 20 * + col0 * + 98 FROM tab0
----
-170520
-190120
-29400

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT ( + 96 ) * + + COUNT( * ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT ( + 96 ) * + + COUNT ( * ) FROM tab0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL + COUNT( + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL + COUNT ( + col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT DISTINCT - MAX( DISTINCT - - col2 ) * MAX( ALL 59 ) FROM tab2
----
-3422

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) * MAX ( ALL 59 ) FROM tab2
----
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - COUNT( * ) * - MIN( ALL + col0 ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-3970
SELECT - COUNT ( * ) * - MIN ( ALL + col0 ) FROM tab1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT + COUNT( 55 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3971
SELECT + COUNT ( 55 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3972
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3972
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT - 77 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT - 52 * COUNT( * ) FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-3974
SELECT - 52 * COUNT ( * ) FROM tab2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - ( + - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3975
SELECT - ( + - COUNT ( * ) ) FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col1 FROM tab2 cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT + col1 * + 25 AS col1 FROM tab2 cor0
----
1275
1675
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + + SUM( ALL - col2 ) AS col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + + SUM ( ALL - col2 ) AS col2 FROM tab1 cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT ALL 21 DIV 13 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL 21 / 13 AS col1 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - col1 = - - 26 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3981
SELECT DISTINCT COUNT( - - 71 ) col0, MAX( ( + 71 ) ) FROM tab1 AS cor0
----
3
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3981
SELECT DISTINCT COUNT ( - - 71 ) col0, MAX ( ( + 71 ) ) FROM tab1 AS cor0
----
3
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT + - 35 + + - col1 FROM tab2 cor0 WHERE CAST( col1 AS SIGNED ) * + col1 IS NOT NULL
----
-102
-112
-86

skipif mysql # not compatible
query I rowsort label-3982
SELECT + - 35 + + - col1 FROM tab2 cor0 WHERE CAST ( col1 AS INTEGER ) * + col1 IS NOT NULL
----
-102
-112
-86

query I rowsort
SELECT DISTINCT ( - + 30 ) FROM tab2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - + 27 FROM tab2
----
19
37
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT COUNT( * ) + ( + + ( COUNT( * ) ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3986
SELECT COUNT ( * ) + ( + + ( COUNT ( * ) ) ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - col1 * + col0 + + 7 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - col1 * + col0 + + 7 NOT BETWEEN NULL AND NULL
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) >= + 8
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT DISTINCT - CAST( 42 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT - CAST ( 42 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - MAX( + 92 ) AS col1 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3992
SELECT - MAX ( + 92 ) AS col1 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT ALL col2 + + ( + col1 ) * + + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < - col1
----

query II rowsort
SELECT ALL ( + - col2 ), col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT col0 * + ( - 63 ) AS col2 FROM tab1 AS cor0
----
-3213
-5355
-5733

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + col2 * - - col0
----

query I rowsort
SELECT + - ( - + ( 27 ) ) AS col2 FROM tab1 AS cor0
----
27
27
27

query II rowsort
SELECT 2, - col1 AS col1 FROM tab0
----
2
-1
2
-21
2
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 89 ) col0 FROM tab0
----
89

query I rowsort
SELECT col0 * + 34 FROM tab0
----
2958
3298
510

query I rowsort
SELECT - ( - - 52 ) FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4003
SELECT DISTINCT * FROM tab0 WHERE NULL < + CAST( col0 AS SIGNED ) * - - col2
----

skipif mysql # not compatible
query III rowsort label-4003
SELECT DISTINCT * FROM tab0 WHERE NULL < + CAST ( col0 AS INTEGER ) * - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4004
SELECT CAST( NULL AS SIGNED ) col2, + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4004
SELECT CAST ( NULL AS INTEGER ) col2, + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT col2 + ( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col2 FROM tab2 cor0
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-4007
SELECT ALL - 66, col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-66
-1
-66
0
-66
0

skipif mysql # not compatible
query II rowsort label-4007
SELECT ALL - 66, col2 / - col0 AS col0 FROM tab1 AS cor0
----
-66
-1
-66
0
-66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query II rowsort
SELECT DISTINCT - 89, + 85 AS col1 FROM tab1
----
-89
85

query II rowsort
SELECT DISTINCT ( - 41 ) + 57 + col0, 36 AS col0 FROM tab1 AS cor0
----
101
36
107
36
67
36

query I rowsort
SELECT - + col0 AS col0 FROM tab0 AS cor0 WHERE col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT - col1 DIV - + col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4012
SELECT - col1 / - + col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - - ( - 17 ) AS col2 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4014
SELECT ALL + 72, COUNT( * ) + 85 AS col1 FROM tab1 AS cor0
----
72
88

skipif mysql # not compatible
query II rowsort label-4014
SELECT ALL + 72, COUNT ( * ) + 85 AS col1 FROM tab1 AS cor0
----
72
88

query I rowsort
SELECT + col0 FROM tab2 WHERE col2 * + ( col0 ) = - 56
----

query I rowsort
SELECT ALL ( 78 ) + col0 FROM tab0
----
165
175
93

query II rowsort
SELECT col0 - + + col0 - col0 AS col1, + col2 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT - - 68 + - + 18 AS col1 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT - + col2 + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 92 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 / + + 1 - + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4021
SELECT * FROM tab1 WHERE + + 63 NOT BETWEEN col1 - + - 41 AND - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) - ( - 62 ) - - col1
----
91
47
68

skipif mysql # not compatible
query III rowsort label-4021
SELECT * FROM tab1 WHERE + + 63 NOT BETWEEN col1 - + - 41 AND - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) - ( - 62 ) - - col1
----
91
47
68

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 94 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT col0 DIV 91 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4023
SELECT col0 / 91 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT + SUM( ALL + + 93 ) * - 59 AS col0 FROM tab2 AS cor0
----
-16461

skipif mysql # not compatible
query I rowsort label-4024
SELECT + SUM ( ALL + + 93 ) * - 59 AS col0 FROM tab2 AS cor0
----
-16461

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4026
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ), COUNT( DISTINCT - - ( - + col2 ) ) + + - 68 AS col2 FROM tab0
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-4026
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ), COUNT ( DISTINCT - - ( - + col2 ) ) + + - 68 AS col2 FROM tab0
----
NULL
-65

query II rowsort
SELECT DISTINCT ( - 27 ) AS col0, 53 AS col0 FROM tab1
----
-27
53

query I rowsort
SELECT col2 * - 37 * - col2 FROM tab0
----
362637
3700
81733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT 63 * + + col1 AS col0 FROM tab1
----
2961
315
882

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL + COUNT( ALL ( - + 82 ) ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4031
SELECT ALL + COUNT ( ALL ( - + 82 ) ) col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = CAST( - 56 AS SIGNED ) * + col2
----

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = CAST ( - 56 AS INTEGER ) * + col2
----

query I rowsort
SELECT ( - + 97 ) FROM tab0
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 * + + 27 + + + 70 col1 FROM tab1
----
195145
223657
70297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT ALL - col0 + + - 45 * + + col2 + - - col2 FROM tab2 cor0
----
-1058
-1824
-2627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col1 col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query II rowsort
SELECT col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 46 + + col2 BETWEEN - - col0 + + col0 AND 94 + + + ( - 52 )
----
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 46 + + col2 BETWEEN - - col0 + + col0 AND 94 + + + ( - 52 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT col2 - - 33 DIV - ( 11 ) FROM tab2 AS cor0
----
20
37
55

skipif mysql # not compatible
query I rowsort label-4040
SELECT col2 - - 33 / - ( 11 ) FROM tab2 AS cor0
----
20
37
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL + + ( + MAX( - + col1 ) ) FROM tab2 AS cor0 WHERE NOT - 49 * + - col1 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + + ( + MAX ( - + col1 ) ) FROM tab2 AS cor0 WHERE NOT - 49 * + - col1 IS NULL
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4042
SELECT col0 DIV - ( + col1 ) + + col0 * + - ( - + col1 ) + + col2 AS col0 FROM tab0 AS cor0
----
1262
1833
99

skipif mysql # not compatible
query I rowsort label-4042
SELECT col0 / - ( + col1 ) + + col0 * + - ( - + col1 ) + + col2 AS col0 FROM tab0 AS cor0
----
1262
1833
99

query I rowsort
SELECT 11 + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-3
-36
6

query I rowsort
SELECT 12 + - col0 + - col1 * - col1 FROM tab0 AS cor0
----
-84
366
6558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - col2 col2 FROM tab2
----
116
46
80

query I rowsort
SELECT + col2 * col2 + - 57 AS col2 FROM tab1
----
3424
4567
9159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 38 ) + - - col2 col2 FROM tab2
----
-15
2
20

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 = - 89 * 73 - 69 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT + 10 + ( + + COUNT( - col2 ) ) * 48 col1 FROM tab0
----
154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4049
SELECT + 10 + ( + + COUNT ( - col2 ) ) * 48 col1 FROM tab0
----
154

query I rowsort
SELECT - - col2 - 7 * - - col2 * col1 AS col2 FROM tab2 AS cor0
----
-21520
-27144
-8188

query I rowsort
SELECT ALL - + 39 * - - ( - 76 ) FROM tab0 AS cor0
----
2964
2964
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT ( - COUNT( * ) ) * + 91 AS col2 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT ( - COUNT ( * ) ) * + 91 AS col2 FROM tab2
----
-273

query I rowsort
SELECT ( - + 2 ) FROM tab0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - 37 * 84 FROM tab2
----
-3108

query I rowsort
SELECT 86 * - col1 AS col0 FROM tab0 cor0
----
-1806
-6966
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4056
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4056
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4057
SELECT - 49 * - 33 AS col1, - MAX( col1 ) FROM tab2 AS cor0
----
1617
-77

skipif mysql # not compatible
query II rowsort label-4057
SELECT - 49 * - 33 AS col1, - MAX ( col1 ) FROM tab2 AS cor0
----
1617
-77

query I rowsort
SELECT col0 * + 87 FROM tab2 AS cor0
----
4002
5568
6525

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT ALL 34 DIV ( + + col1 ) AS col0 FROM tab1 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL 34 / ( + + col1 ) AS col0 FROM tab1 AS cor0
----
0
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - MAX( 93 ) col1 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4060
SELECT - MAX ( 93 ) col1 FROM tab0 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT DISTINCT - - col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - - col1 / - col1 AS col2 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col1 ) AND ( 84 )
----

query I rowsort
SELECT ALL + col1 * - - col2 + + - col1 - - - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - - ( - col2 ), + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4066
SELECT ALL - CAST( + 74 AS DECIMAL ) AS col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - CAST ( + 74 AS REAL ) AS col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + 74 * + + col2 FROM tab1 AS cor0
----
4366
5032
7104

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT - - col0 DIV - col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4069
SELECT - - col0 / - col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 41 > + col0 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * 61 + + 18 FROM tab1 WHERE NOT NULL <= + col2 - - col2
----

query I rowsort
SELECT 22 * 29 - 91 FROM tab1
----
547
547
547

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN + col1 AND 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4075
SELECT - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE col2 * - col2 BETWEEN NULL AND 46 / col1 + - col0
----

query I rowsort
SELECT - col1 * ( 76 * col1 ) FROM tab0
----
-33516
-498636
-76

query III rowsort
SELECT ALL * FROM tab1 WHERE 26 BETWEEN + col0 / col2 AND ( + col1 * + 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4079
SELECT DISTINCT - 91 DIV + 60 FROM tab2 WHERE 43 * - 7 NOT IN ( - col2 )
----
-1

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - 91 / + 60 FROM tab2 WHERE 43 * - 7 NOT IN ( - col2 )
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( 69 * 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT - ( + CAST( NULL AS SIGNED ) ) * - 75 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - 75 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / 82 NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 + + 66 FROM tab2 WHERE ( - col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 63 col2 FROM tab2 WHERE NULL IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT ALL + col1 + col1 * + col2 AS col0 FROM tab2 WHERE ( CAST( + 53 AS SIGNED ) + col1 ) <> - 63
----
1224
3157
3953

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL + col1 + col1 * + col2 AS col0 FROM tab2 WHERE ( CAST ( + 53 AS INTEGER ) + col1 ) <> - 63
----
1224
3157
3953

query I rowsort
SELECT col0 * + 31 AS col0 FROM tab0
----
2697
3007
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT MAX( DISTINCT - 73 ) + + COUNT( * ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-4088
SELECT MAX ( DISTINCT - 73 ) + + COUNT ( * ) FROM tab1
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT ALL - COUNT( * ) DIV - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - COUNT ( * ) / - COUNT ( * ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE col1 + col0 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT col1 + 15 NOT IN ( col1 + + 78 * + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4093
SELECT + COUNT( * ) DIV COUNT( * ) + - COUNT( * ) * + 17 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-4093
SELECT + COUNT ( * ) / COUNT ( * ) + - COUNT ( * ) * + 17 FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT MIN( col2 ) * 73 + COUNT( * ) FROM tab0
----
733

skipif mysql # not compatible
query I rowsort label-4094
SELECT MIN ( col2 ) * 73 + COUNT ( * ) FROM tab0
----
733

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT + col1 DIV 58 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4096
SELECT + col1 / 58 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT - ( - 7 ) + col0 AS col2 FROM tab0
----
104
22
94

query I rowsort
SELECT 8 + + 89 AS col1 FROM tab0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4099
SELECT ALL col1 + + col2 DIV + CAST( - 35 * - 52 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL col1 + + col2 / + CAST ( - 35 * - 52 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN col2 + col2 / - col2 AND NULL
----

query I rowsort
SELECT DISTINCT 74 * - col1 FROM tab1 AS cor0
----
-1036
-3478
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 33 AS col0 FROM tab2 AS cor0 WHERE - col2 + - 2 <> - col1 * - col1
----
-33

query I rowsort
SELECT ( 68 ) * - col0 FROM tab0
----
-1020
-5916
-6596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4106
SELECT COUNT( * ) DIV - MAX( DISTINCT + col2 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4106
SELECT COUNT ( * ) / - MAX ( DISTINCT + col2 ) AS col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT + SUM( col0 ) FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT + SUM ( col0 ) FROM tab1 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT + COUNT( * ) * 62 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT + COUNT ( * ) * 62 FROM tab2 AS cor0
----
186

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( col0 + + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT 50 * + COUNT( DISTINCT col2 + 33 * - col0 ) AS col0 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT 50 * + COUNT ( DISTINCT col2 + 33 * - col0 ) AS col0 FROM tab1 AS cor0
----
150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - col2 NOT BETWEEN + col2 * - 14 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * ( col1 + - col1 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT ALL + MIN( - 20 ) DIV - 59 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4115
SELECT ALL + MIN ( - 20 ) / - 59 col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT DISTINCT + 10 * - COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT + 10 * - COUNT ( * ) FROM tab0 AS cor0
----
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * 42 + + col1 BETWEEN ( - 36 + - col2 ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND ( col0 )
----
51
14
96

query I rowsort
SELECT 50 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( + col2 ) * - col2 ) IS NULL
----
137
147
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + col2 * col1 IN ( - 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 70 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4122
SELECT ALL MAX( - col2 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL MAX ( - col2 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + 90 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT + 92 + - COUNT( ALL - col2 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT + 92 + - COUNT ( ALL - col2 ) FROM tab0
----
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN ( NULL ) AND 33
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT - SUM( DISTINCT - col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4126
SELECT - SUM ( DISTINCT - col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT ALL col1 FROM tab0 WHERE - 92 * 55 BETWEEN + 3 / - col0 AND ( col0 + + ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT + 66 * CAST( NULL AS SIGNED ) / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT + 66 * CAST ( NULL AS INTEGER ) / col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 78 ) + col2 FROM tab2
----
101
118
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT ALL + 88 + - + CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
147
156
184

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL + 88 + - + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
147
156
184

query I rowsort
SELECT + col2 * - 70 FROM tab0 WHERE - 20 + col1 BETWEEN ( - 84 ) AND + col0
----
-6930
-700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * col2
----

query I rowsort
SELECT DISTINCT - + 11 * + - col1 + 44 FROM tab2 AS cor0
----
605
781
891

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT ALL COUNT( * ) * - 49 FROM tab0 AS cor0 WHERE NOT NULL >= - col2
----
0

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL COUNT ( * ) * - 49 FROM tab0 AS cor0 WHERE NOT NULL >= - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT 85 - + 34 * MAX( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT 71 - 22 IS NULL
----
595

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT 85 - + 34 * MAX ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT 71 - 22 IS NULL
----
595

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT ALL + col2 DIV - 47 AS col0 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + col2 / - 47 AS col0 FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4137
SELECT COUNT( * ) DIV + 67 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4137
SELECT COUNT ( * ) / + 67 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT col1 * - CAST( - 46 AS SIGNED ) FROM tab2
----
2346
3082
3542

skipif mysql # not compatible
query I rowsort label-4138
SELECT col1 * - CAST ( - 46 AS INTEGER ) FROM tab2
----
2346
3082
3542

query I rowsort
SELECT ALL - 58 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT - COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4140
SELECT - COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL NOT BETWEEN ( col0 ) AND - 96 / + ( 75 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col0 * 22 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL 21 + COUNT( * ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL 21 + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE + 35 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE + 35 = NULL
----
0

query I rowsort
SELECT - + col2 + 40 FROM tab0 AS cor0
----
-59
-7
30

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 39 + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 98 + - col0 FROM tab2
----
23
34
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT 88 + ( - COUNT( * ) ) AS col2 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-4150
SELECT 88 + ( - COUNT ( * ) ) AS col2 FROM tab2
----
85

query I rowsort
SELECT ( + col2 ) * - - 42 * + - 8 AS col2 FROM tab2
----
-13440
-19488
-7728

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT + 19 DIV - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 19 / - - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * 63 FROM tab0 WHERE NOT ( + + col1 ) NOT BETWEEN ( 63 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL - 29 - COUNT( * ) AS col2 FROM tab0 WHERE NOT ( + col2 * col1 ) IS NOT NULL
----
-29

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - 29 - COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( + col2 * col1 ) IS NOT NULL
----
-29

query I rowsort
SELECT ALL + col2 * - ( col0 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-1058
-2560
-4350

query I rowsort
SELECT + 55 * - + 45 + - col0 AS col0 FROM tab2 AS cor0
----
-2521
-2539
-2550

query I rowsort
SELECT + 30 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col1 FROM tab2 AS cor0
----
-62
-62
-62

query I rowsort
SELECT ALL + 15 AS col1 FROM tab1
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL + MIN( DISTINCT - col1 ) * ( - COUNT( * ) ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + MIN ( DISTINCT - col1 ) * ( - COUNT ( * ) ) FROM tab0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4161
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 + - CAST( NULL AS SIGNED ) * - ( + + 77 ) )
----

skipif mysql # not compatible
query III rowsort label-4161
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 + - CAST ( NULL AS INTEGER ) * - ( + + 77 ) )
----

query I rowsort
SELECT DISTINCT ( - - ( - col1 ) ) - - 14 FROM tab0 AS cor0 WHERE NOT 55 IS NULL
----
-67
-7
13

query I rowsort
SELECT col2 + + + col1 FROM tab1 AS cor0 WHERE NOT 86 * - col1 IS NULL
----
110
115
64

query I rowsort
SELECT - 18 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 * + 96 + + + col2 / - + 32 ) IS NULL
----
-1458
-18
-378

query I rowsort
SELECT + + ( - col0 ) * - col1 * + ( + col1 ) FROM tab0 AS cor0
----
38367
97
98415

query I rowsort
SELECT col1 * - 87 FROM tab1 AS cor0 WHERE NOT col0 / - col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT - + COUNT( * ) + + 51 - - - COUNT( * ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4167
SELECT - + COUNT ( * ) + + 51 - - - COUNT ( * ) FROM tab2 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT + col0 + col1 DIV col0 + col2 FROM tab2 AS cor0
----
105
133
70

skipif mysql # not compatible
query I rowsort label-4169
SELECT + col0 + col1 / col0 + col2 FROM tab2 AS cor0
----
105
133
70

query II rowsort
SELECT ALL col2 AS col1, 27 AS col2 FROM tab2
----
23
27
40
27
58
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT + COUNT( col1 ) + + 32 FROM tab2 WHERE - col2 * - col0 + + - col1 + - col0 / - col0 BETWEEN ( col1 ) AND NULL
----
32

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT + COUNT ( col1 ) + + 32 FROM tab2 WHERE - col2 * - col0 + + - col1 + - col0 / - col0 BETWEEN ( col1 ) AND NULL
----
32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 32 * + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 2 ) <> ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT ALL 29 DIV - + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL 29 / - + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT ( NULL ) > ( 20 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4176
SELECT ALL - CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + COUNT( * ) * - MIN( + 67 ) FROM tab2 cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4177
SELECT + COUNT ( * ) * - MIN ( + 67 ) FROM tab2 cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT + 22 FROM tab2 WHERE - col2 <> ( CAST( + col2 AS SIGNED ) )
----
22
22
22

skipif mysql # not compatible
query I rowsort label-4178
SELECT + 22 FROM tab2 WHERE - col2 <> ( CAST ( + col2 AS INTEGER ) )
----
22
22
22

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT - CAST( NULL AS SIGNED ) + AVG ( - ( + + col2 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT - CAST ( NULL AS INTEGER ) + AVG ( - ( + + col2 ) ) FROM tab0
----
NULL

query II rowsort
SELECT + col2 + - - col0 AS col1, + col2 FROM tab2
----
104
40
133
58
69
23

query II rowsort
SELECT DISTINCT - 99 + + - col1 AS col0, + col0 + - col2 FROM tab0
----
-100
-2
-120
77
-180
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT + CAST( MIN( DISTINCT col0 ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-4183
SELECT + CAST ( MIN ( DISTINCT col0 ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15

query I rowsort
SELECT + ( 13 ) AS col2 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT + col1 + + 87 * 87 AS col1 FROM tab1 AS cor0 WHERE col0 + col1 NOT IN ( - col0 + - - 90 + + col0 * + 17 )
----
7574
7583
7616

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT + - ( - MAX( - - col1 ) ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4186
SELECT + - ( - MAX ( - - col1 ) ) AS col1 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + - - col2, + col0, - - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + col2 / + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT ALL - - 6 - - - 91 DIV col2 FROM tab0 cor0
----
-3
5
6

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - - 6 - - - 91 / col2 FROM tab0 cor0
----
-3
5
6

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL <> + col0 + - - col0
----

query II rowsort
SELECT col2, col2 AS col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT 57 * + col0 * 11 * 97 AS col2 FROM tab2
----
2797674
3892416
4561425

query I rowsort
SELECT ( 89 ) AS col1 FROM tab1
----
89
89
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4194
SELECT DISTINCT - 64, COUNT( * ) AS col2 FROM tab0
----
-64
3

skipif mysql # not compatible
query II rowsort label-4194
SELECT DISTINCT - 64, COUNT ( * ) AS col2 FROM tab0
----
-64
3

query I rowsort
SELECT + + col2 - + 80 * ( - + ( col2 ) ) AS col0 FROM tab0 WHERE NOT ( NULL ) < + 19
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT DISTINCT - 53 DIV - COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - 53 / - COUNT ( * ) FROM tab1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL SUM( - col1 ) col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4198
SELECT ALL SUM ( - col1 ) col0 FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-4199
SELECT ALL COUNT( * ), MAX( DISTINCT + ( + - 99 ) ) AS col2 FROM tab0 AS cor0
----
3
-99

skipif mysql # not compatible
query II rowsort label-4199
SELECT ALL COUNT ( * ), MAX ( DISTINCT + ( + - 99 ) ) AS col2 FROM tab0 AS cor0
----
3
-99

query I rowsort
SELECT DISTINCT - ( + 70 ) AS col1 FROM tab0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4201
SELECT + MIN( ALL 93 ) DIV + 38 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-4201
SELECT + MIN ( ALL 93 ) / + 38 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2

query I rowsort
SELECT ALL - + 87 AS col0 FROM tab0 cor0
----
-87
-87
-87

query I rowsort
SELECT ALL + 90 AS col0 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT + 19 FROM tab1 AS cor0 WHERE NOT - col1 < ( NULL )
----

query II rowsort
SELECT DISTINCT - col1 AS col0, ( col1 ) * col1 + - + 1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 > - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-4206
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <> - col0
----
0

query I rowsort
SELECT + col0 * - - col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4209
SELECT DISTINCT - MAX( DISTINCT - CAST( 21 AS SIGNED ) ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - MAX ( DISTINCT - CAST ( 21 AS INTEGER ) ) FROM tab0
----
21

query I rowsort
SELECT col0 * + + 58 AS col1 FROM tab2
----
2668
3712
4350

query II rowsort
SELECT ALL + col2 * 25 * + - col2 AS col0, col1 * - col1 AS col2 FROM tab2
----
-13225
-2601
-40000
-5929
-84100
-4489

query I rowsort
SELECT 67 * - 96 + + col2 AS col2 FROM tab1
----
-6336
-6364
-6373

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL 88 AS col0 FROM tab1 WHERE col0 IN ( - + col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT DISTINCT - - MIN( 96 ) + + - 21 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT - - MIN ( 96 ) + + - 21 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4216
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col0 * + + col0 BETWEEN ( + CAST( ( + - ( col0 ) ) AS SIGNED ) * 24 ) AND 65 / + ( - col0 ) + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4216
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col0 * + + col0 BETWEEN ( + CAST ( ( + - ( col0 ) ) AS INTEGER ) * 24 ) AND 65 / + ( - col0 ) + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 32 AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
32
32
32

query I rowsort
SELECT - - 87 * - col2 FROM tab2 AS cor0
----
-2001
-3480
-5046

query I rowsort
SELECT - 24 * - col2 FROM tab2
----
1392
552
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( + - 91 ) col0 FROM tab1
----
-1274
-4277
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL 57 + - COUNT( * ) + - - MAX( ALL col1 ) FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL 57 + - COUNT ( * ) + - - MAX ( ALL col1 ) FROM tab1
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT ALL - ( - 4 ) DIV + col0 + - col1 - + col0 + - 32 + 40 FROM tab1
----
-130
-57
-82

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - ( - 4 ) / + col0 + - col1 - + col0 + - 32 + 40 FROM tab1
----
-130
-57
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + SUM( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT + SUM ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + 82 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
82
-46
82
-64
82
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4227
SELECT + COUNT( * ), + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4227
SELECT + COUNT ( * ), + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4228
SELECT * FROM tab2 AS cor0 WHERE NOT 4 + - ( - + CAST( NULL AS SIGNED ) ) + + col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-4228
SELECT * FROM tab2 AS cor0 WHERE NOT 4 + - ( - + CAST ( NULL AS INTEGER ) ) + + col0 < NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT col1 + - 82 NOT BETWEEN + + ( + col2 ) AND - col2 * + + 40
----

query I rowsort
SELECT DISTINCT + ( - 87 ) AS col1 FROM tab0, tab1 AS cor0
----
-87

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + + col0 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL + - ( - COUNT( DISTINCT + - ( + + 75 ) ) ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + - ( - COUNT ( DISTINCT + - ( + + 75 ) ) ) AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + + 60 > ( + col1 )
----

query I rowsort
SELECT ALL 49 * - - 37 AS col2 FROM tab1
----
1813
1813
1813

query I rowsort
SELECT 37 + - 4 AS col0 FROM tab2 AS cor0
----
33
33
33

query III rowsort
SELECT ALL - ( - ( col2 ) ) AS col2, col2 AS col2, col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to cd741e22fa35c6dfa847666b4267b499

query I rowsort
SELECT + col2 + - 75 AS col0 FROM tab0 AS cor0
----
-28
-65
24

query I rowsort
SELECT 89 + col0 FROM tab0 cor0
----
104
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT DISTINCT SUM( - 49 ) AS col0 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT SUM ( - 49 ) AS col0 FROM tab0 AS cor0
----
-147

query II rowsort
SELECT 18 AS col2, col0 * + col0 FROM tab1 AS cor0
----
18
2601
18
7225
18
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL - ( - 32 ) * COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL - ( - 32 ) * COUNT ( * ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 WHERE + - col2 BETWEEN 91 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * - - ( - - 22 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL - 60 + COUNT( * ) + + 82 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - 60 + COUNT ( * ) + + 82 FROM tab2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4246
SELECT ALL COUNT( * ) + COUNT( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL COUNT ( * ) + COUNT ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 55 ) col1 FROM tab1
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT + - 20 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4248
SELECT + - 20 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL ( + 40 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + col1 * - - col0 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - - 79 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 78 <> + + 62
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT DISTINCT + COUNT( * ) AS col2, - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
3
-6

skipif mysql # not compatible
query II rowsort label-4253
SELECT DISTINCT + COUNT ( * ) AS col2, - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
3
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4254
SELECT * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) <> col2
----

skipif mysql # not compatible
query III rowsort label-4254
SELECT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - ( ( + 38 ) ) ) NOT BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4256
SELECT ALL - 20 DIV + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - 20 / + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT col2 * + 40 AS col2 FROM tab2 cor0
----
1600
2320
920

query I rowsort
SELECT ALL - col1 * 3 AS col0 FROM tab1
----
-141
-15
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT SUM( ALL col0 ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4259
SELECT SUM ( ALL col0 ) col0 FROM tab0
----
199

query I rowsort
SELECT + + 75 * - - col2 * + 38 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT 41 * - COUNT( * ) FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT 41 * - COUNT ( * ) FROM tab0
----
-123

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - 85
----

query II rowsort
SELECT 70 + 51, 3 * 64 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * col1 * - col2 AS col1 FROM tab0
----
-18270
-57105
-9603

query II rowsort
SELECT ALL 70 AS col2, col1 AS col2 FROM tab2
----
70
51
70
67
70
77

query I rowsort
SELECT + 73 * + col0 AS col2 FROM tab0
----
1095
6351
7081

query II rowsort
SELECT ALL 4 AS col2, - 84 AS col0 FROM tab1
----
4
-84
4
-84
4
-84

query I rowsort
SELECT DISTINCT - + ( 14 ) AS col0 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT DISTINCT 41 + 66 FROM tab2
----
107

query I rowsort
SELECT DISTINCT + - ( + 46 ) FROM tab0 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL + SUM( ALL + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + SUM ( ALL + col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL SUM( - 76 ) FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL SUM ( - 76 ) FROM tab0 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-4273
SELECT ALL 9 AS col2, 94 + - MAX( DISTINCT + col0 ) FROM tab0
----
9
-3

skipif mysql # not compatible
query II rowsort label-4273
SELECT ALL 9 AS col2, 94 + - MAX ( DISTINCT + col0 ) FROM tab0
----
9
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 87 BETWEEN - 77 / - + col0 + - + col0 / - col1 AND NULL
----

query I rowsort
SELECT - 46 + col1 FROM tab0
----
-25
-45
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4276
SELECT ALL - col1 DIV 85 * + col2 + - col2 * col2 * + - CAST( + 72 AS SIGNED ) FROM tab0
----
159048
705672
7200

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - col1 / 85 * + col2 + - col2 * col2 * + - CAST ( + 72 AS INTEGER ) FROM tab0
----
159048
705672
7200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4277
SELECT ALL AVG ( col1 ) * + + SUM( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE - 72 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL AVG ( col1 ) * + + SUM ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2 WHERE - 72 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + - col2 * - col1 - + col0, - 39 * - 97 * col0 AS col2 FROM tab1 cor0
----
1293
192933
210
321555
3105
344253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * - + col1 - - - ( + col1 ) col2 FROM tab1
----
-2021
-215
-602

query I rowsort
SELECT col0 * ( - 55 ) FROM tab2
----
-2530
-3520
-4125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT DISTINCT + CAST( ( - AVG ( + ( 0 ) ) ) AS SIGNED ) col2 FROM tab1 WHERE NOT + + 87 * ( - - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4281
SELECT DISTINCT + CAST ( ( - AVG ( + ( 0 ) ) ) AS INTEGER ) col2 FROM tab1 WHERE NOT + + 87 * ( - - col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT - 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + col0 + 54 AND + col2
----

query I rowsort
SELECT ALL - 11 * + 26 FROM tab2 cor0
----
-286
-286
-286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 82 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4285
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 82 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 3 * + col0 AS col1 FROM tab1 AS cor0
----
-153
-255
-273

query I rowsort
SELECT DISTINCT - - col2 * - + col0 * col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + ( - MAX( + 92 ) ) AS col2 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-4288
SELECT + ( - MAX ( + 92 ) ) AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT - ( - + col2 ) FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col0 FROM tab0
----
44

query I rowsort
SELECT - 15 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT MAX( + - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT MAX ( + - col2 ) FROM tab0
----
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 / + - col2 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT COUNT( * ) * + MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4295
SELECT COUNT ( * ) * + MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
153

query I rowsort
SELECT ALL - - 17 * col2 AS col1 FROM tab0 AS cor0
----
1683
170
799

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 75 > NULL
----

query I rowsort
SELECT 99 * col2 AS col0 FROM tab0 cor0
----
4653
9801
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT ALL - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + - col2, - col1 AS col1 FROM tab0 cor0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT ALL - ( 47 ) FROM tab1 AS cor0 WHERE NOT NULL <= ( - col1 - + ( + 89 ) + CAST( NULL AS SIGNED ) * CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL - ( 47 ) FROM tab1 AS cor0 WHERE NOT NULL <= ( - col1 - + ( + 89 ) + CAST ( NULL AS INTEGER ) * CAST ( - col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + + 25 AS col1 FROM tab0 AS cor0
----
25

query II rowsort
SELECT DISTINCT + col1 AS col2, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 28 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT - - MAX( ALL + 42 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4306
SELECT - - MAX ( ALL + 42 ) FROM tab1 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL 91 - - COUNT( + col2 ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL 91 - - COUNT ( + col2 ) FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4308
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE - col1 + - CAST( NULL AS SIGNED ) + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 + - CAST ( NULL AS INTEGER ) + + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4309
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 - + - col1 NOT IN ( + CAST( NULL AS DECIMAL ), col1, - + col0, - + col1, + + 7 - + col2 )
----

skipif mysql # not compatible
query III rowsort label-4309
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 - + - col1 NOT IN ( + CAST ( NULL AS REAL ), col1, - + col0, - + col1, + + 7 - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 5 col0 FROM tab1 AS cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - col2, - 26 col2 FROM tab0
----
705
-26
870
-26
9603
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4312
SELECT DISTINCT + CAST( col1 AS SIGNED ) + ( - col2 ) FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + ( - col2 ) FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL 31 - - col1 * - + col2 FROM tab2 AS cor0
----
-1142
-3049
-3855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT - 15 * - + 16 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4314
SELECT - 15 * - + 16 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 21 col2 FROM tab0 AS cor0
----
21

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT 31 NOT BETWEEN - col1 AND col0 - - col0 + + col0 / 39 / + col2
----
59
68
96

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 27 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 75 ) + ( col0 ) >= 44
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col0 ) col1 FROM tab1
----
51
85
91

query II rowsort
SELECT ALL 53 AS col1, 93 AS col2 FROM tab2
----
53
93
53
93
53
93

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( 58 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT - - ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - - ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + + col2 * - + col1 + + col1 <= 36
----

query I rowsort
SELECT ( + col0 ) * ( col0 ) FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT - MAX( DISTINCT - ( + + col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4325
SELECT - MAX ( DISTINCT - ( + + col0 ) ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - 75 * + col2 FROM tab0 AS cor0
----
-3525
-7425
-750

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL + + MIN( + col1 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + + MIN ( + col1 ) AS col0 FROM tab2 cor0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-4330
SELECT ALL - 97 AS col2, + col2 DIV + col2 FROM tab1 AS cor0
----
-97
1
-97
1
-97
1

skipif mysql # not compatible
query II rowsort label-4330
SELECT ALL - 97 AS col2, + col2 / + col2 FROM tab1 AS cor0
----
-97
1
-97
1
-97
1

query II rowsort
SELECT ALL - col2, ( col1 ) * + - 67 + 40 + 10 AS col2 FROM tab2 AS cor0
----
-23
-3367
-40
-5109
-58
-4439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab2
----
19

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + - col1 <= + 98
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT DISTINCT col0 * + CAST( - ( - col2 ) AS SIGNED ) FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT col0 * + CAST ( - ( - col2 ) AS INTEGER ) FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - 90 + + - col0 FROM tab1
----
-141
-175
-181

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - 55 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col0 * + col0 - + 9 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-262153
-421884
-97345

query I rowsort
SELECT DISTINCT + 61 * - 75 AS col2 FROM tab1 AS cor0
----
-4575

query I rowsort
SELECT ALL + 58 AS col2 FROM tab1 AS cor0 WHERE NOT 25 IS NULL
----
58
58
58

query I rowsort
SELECT ALL + 98 AS col2 FROM tab0 AS cor0
----
98
98
98

query III rowsort
SELECT * FROM tab2 WHERE col1 >= - 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col1 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 = 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - + 99 ) + col1 + 44 * + col1 - - ( col2 ) AS col0 FROM tab1 AS cor0
----
2282
383
825

query I rowsort
SELECT 71 + + - 35 FROM tab2
----
36
36
36

query I rowsort
SELECT ALL - 57 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT 78 + 48 FROM tab1
----
126
126
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT - CAST( + + col2 AS SIGNED ) + - 4 FROM tab1
----
-100
-63
-72

skipif mysql # not compatible
query I rowsort label-4349
SELECT - CAST ( + + col2 AS INTEGER ) + - 4 FROM tab1
----
-100
-63
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + + 38 col2 FROM tab2
----
50
50
50

query I rowsort
SELECT DISTINCT ( - 87 ) * - - col0 FROM tab0
----
-1305
-7569
-8439

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + ( - - col2 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + + 56 NOT BETWEEN - col1 * + 79 - ( 84 ) AND - 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT - - ( 46 ) AS col2 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4356
SELECT DISTINCT + - 33 AS col1, MIN( 58 ) FROM tab1 AS cor0
----
-33
58

skipif mysql # not compatible
query II rowsort label-4356
SELECT DISTINCT + - 33 AS col1, MIN ( 58 ) FROM tab1 AS cor0
----
-33
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT ALL SUM( + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL SUM ( + col0 ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 / + + col1 / 48 * - - ( - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4359
SELECT + col2 col0, - 72 DIV 94 DIV + 4 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4359
SELECT + col2 col0, - 72 / 94 / + 4 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 39 * - - col2 AS col1, ( + ( - 43 ) ) col2 FROM tab1
----
-2301
-43
-2652
-43
-3744
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4361
SELECT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4362
SELECT * FROM tab1 AS cor0 WHERE NOT 58 + + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4362
SELECT * FROM tab1 AS cor0 WHERE NOT 58 + + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 80 col1 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT col1 * - - 57 * - 52 * + - col1 AS col0 FROM tab2 AS cor0
----
13305396
17573556
7709364

query I rowsort
SELECT col0 * - - 72 AS col2 FROM tab0 AS cor0
----
1080
6264
6984

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT MIN( ALL - + col0 ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4366
SELECT DISTINCT MIN ( ALL - + col0 ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-91

query I rowsort
SELECT ALL ( - 52 ) FROM tab1 AS cor0
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col0 FROM tab2 AS cor0
----
86

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE + 76 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( - - 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4371
SELECT ALL COUNT( * ) AS col2, - CAST( - 1 AS SIGNED ) col1 FROM tab1
----
3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4371
SELECT ALL COUNT ( * ) AS col2, - CAST ( - 1 AS INTEGER ) col1 FROM tab1
----
3
1

query I rowsort
SELECT ALL 45 + - 75 * + 27 AS col1 FROM tab1
----
-1980
-1980
-1980

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 23 IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 * - + col2 FROM tab0 AS cor0
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 2 col2 FROM tab2 cor0
----
48
66
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 83 * - + col1 + + col0 * - col1 col1 FROM tab1 AS cor0
----
-35700
-359268
-59976

query I rowsort
SELECT DISTINCT + col0 * - + col1 + + + col0 AS col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE + col2 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col2 - - + 75 FROM tab0 AS cor0
----
122
174
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = - - 60
----

query I rowsort
SELECT DISTINCT 31 - + col2 FROM tab2 AS cor0
----
-27
-9
8

query I rowsort
SELECT DISTINCT - 20 * + col0 AS col1 FROM tab1 cor0
----
-1020
-1700
-1820

query I rowsort
SELECT - - 72 FROM tab2 AS cor0 WHERE - col1 + col2 * - 55 < + 26
----
72
72
72

query I rowsort
SELECT + col2 * - 99 AS col2 FROM tab0 AS cor0
----
-4653
-9801
-990

query I rowsort
SELECT ALL - 71 - + ( - col1 ) FROM tab2 AS cor0
----
-20
-4
6

query I rowsort
SELECT DISTINCT + col0 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT COUNT( * ) - - ( - 96 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-4388
SELECT COUNT ( * ) - - ( - 96 ) FROM tab2
----
-93

query I rowsort
SELECT DISTINCT - ( 91 ) * - ( - col0 ) * 23 - col2 * - - col2 AS col0 FROM tab2
----
-135552
-160339
-96807

query I rowsort
SELECT - 31 AS col1 FROM tab1
----
-31
-31
-31

query I rowsort
SELECT + + col2 - + 71 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT + 15 DIV - col1 AS col2 FROM tab0
----
-15
0
0

skipif mysql # not compatible
query I rowsort label-4392
SELECT + 15 / - col1 AS col2 FROM tab0
----
-15
0
0

query I rowsort
SELECT DISTINCT ( + + 39 ) FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - ( MAX( DISTINCT col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4394
SELECT - ( MAX ( DISTINCT col1 ) ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + ( col1 ) * - 54 FROM tab2 cor0
----
-2754
-3618
-4158

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - 38 ) IS NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT - COUNT( * ) * - - MAX( ALL + col1 ) col0 FROM tab0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4398
SELECT - COUNT ( * ) * - - MAX ( ALL + col1 ) col0 FROM tab0
----
-243

query I rowsort
SELECT - 22 * + col0 FROM tab2
----
-1012
-1408
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4400
SELECT + 80, CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
80
NULL
80
NULL
80
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4400
SELECT + 80, CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
80
NULL
80
NULL
80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4401
SELECT + - CAST( + - 71 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-4401
SELECT + - CAST ( + - 71 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4402
SELECT * FROM tab2 cor0 WHERE NOT - 82 >= + CAST( - - col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4402
SELECT * FROM tab2 cor0 WHERE NOT - 82 >= + CAST ( - - col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + - col2, col2 * + col2 * ( - 85 ) - - 17 AS col2 FROM tab1 cor0
----
-59
-295868
-68
-393023
-96
-783343

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4404
SELECT MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL - col1 * ( + col1 ) * - 42 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT DISTINCT - - 41 AS col0, + COUNT( * ) FROM tab0 cor0
----
41
3

skipif mysql # not compatible
query II rowsort label-4406
SELECT DISTINCT - - 41 AS col0, + COUNT ( * ) FROM tab0 cor0
----
41
3

query I rowsort
SELECT ALL ( - col1 ) * 80 * - - 22 AS col2 FROM tab2
----
-117920
-135520
-89760

query II rowsort
SELECT ALL col0 + + 19 AS col0, - ( - 81 ) AS col0 FROM tab1
----
104
81
110
81
70
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT CAST( + + col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4409
SELECT CAST ( + + col0 AS INTEGER ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - MAX( + 68 ) + - 86 AS col0 FROM tab2 WHERE NULL < - ( + col1 ) * - ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT - MAX ( + 68 ) + - 86 AS col0 FROM tab2 WHERE NULL < - ( + col1 ) * - ( - col2 )
----
NULL

query I rowsort
SELECT + - 64 + + - 6 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT 72 DIV 47 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4412
SELECT 72 / 47 FROM tab0
----
1
1
1

query I rowsort
SELECT - AVG ( - 19 ) FROM tab2 WHERE - + 32 * + + 74 * 10 + + 63 IS NULL
----
NULL

query I rowsort
SELECT - col2 + + 5 AS col2 FROM tab0
----
-42
-5
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT - COUNT( * ) * + + 94 + + 96 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-4415
SELECT - COUNT ( * ) * + + 94 + + 96 FROM tab0
----
-186

query I rowsort
SELECT col2 + 15 - - 99 AS col2 FROM tab2
----
137
154
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col0 FROM tab2 WHERE NOT NULL <> - col2
----

query I rowsort
SELECT - col2 * - col1 * - + 76 + ( col1 ) * + 66 AS col1 FROM tab2
----
-228998
-290914
-85782

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL COUNT( + - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL COUNT ( + - col1 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + - col2 * col2 AS col1, + 43 FROM tab0 AS cor0
----
-100
43
-2209
43
-9801
43

query I rowsort
SELECT DISTINCT ( + - col2 ) * - col1 + col1 + - col0 AS col1 FROM tab2
----
1178
3093
3878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4422
SELECT ALL - COUNT( * ) - - - CAST( - + COUNT( * ) AS SIGNED ) AS col1, - 64 DIV + - 74 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0
0

skipif mysql # not compatible
query II rowsort label-4422
SELECT ALL - COUNT ( * ) - - - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1, - 64 / + - 74 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0
0

query I rowsort
SELECT col1 * - 94 + + col0 FROM tab1 AS cor0
----
-1265
-385
-4327

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + ( - 21 ) * - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4424
SELECT + ( - 21 ) * - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----
0

query I rowsort
SELECT ALL - - col1 - + col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT 84 + - 32 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - MAX( col1 ) col2 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4427
SELECT ALL - MAX ( col1 ) col2 FROM tab1
----
-47

query I rowsort
SELECT + 22 FROM tab0 WHERE NOT + col1 NOT BETWEEN col1 * 42 * + 24 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT 71 * + MAX( ALL - col2 ) col0 FROM tab1
----
-4189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4429
SELECT 71 * + MAX ( ALL - col2 ) col0 FROM tab1
----
-4189

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 12 * - col1 AS col1 FROM tab0
----
-12
-252
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT + COUNT( + ( 98 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT + COUNT ( + ( 98 ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL + + COUNT( * ) * + + MAX( ALL col0 ) FROM tab1 cor0
----
273

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL + + COUNT ( * ) * + + MAX ( ALL col0 ) FROM tab1 cor0
----
273

query I rowsort
SELECT + ( - - ( 49 ) ) * - + col0 FROM tab2 AS cor0
----
-2254
-3136
-3675

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT ALL + + 16 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + + 16 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - SUM( - ( - + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4438
SELECT - SUM ( - ( - + col2 ) ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 98 + - - 37 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 17b10acf07e16d67b01bcec56d331023

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT ALL + ( - 9 ) * + col1 + col1 FROM tab2
----
-408
-536
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL MIN( 64 ) * 16 FROM tab0 AS cor0
----
1024

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL MIN ( 64 ) * 16 FROM tab0 AS cor0
----
1024

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4444
SELECT * FROM tab0 AS cor0 WHERE - CAST( + col1 AS SIGNED ) < NULL AND - col0 * - + 65 * + - 18 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4444
SELECT * FROM tab0 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) < NULL AND - col0 * - + 65 * + - 18 IS NULL
----

query II rowsort
SELECT col1 + - col2 + + col0, col2 FROM tab1 AS cor0
----
-31
96
31
59
70
68

query I rowsort
SELECT DISTINCT - + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + col0 * + col2 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 51 + 71 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - - 98 ) FROM tab2 AS cor0
----
-98

query I rowsort
SELECT 9 + - 85 AS col2 FROM tab1 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT - + ( ( COUNT( * ) ) ) FROM tab2 AS cor0 WHERE NULL = - col2
----
0

skipif mysql # not compatible
query I rowsort label-4451
SELECT - + ( ( COUNT ( * ) ) ) FROM tab2 AS cor0 WHERE NULL = - col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 + 51 + col2 + - - col2 col0 FROM tab2
----
161
195
231

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) IN ( col2 + - + col2, 20, - col2 * + + col0, - col1 * col2 * + col0, 50 + - col1 * - col1 )
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4455
SELECT DISTINCT COUNT( * ) + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, 36 AS col1 FROM tab1, tab1 AS cor0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-4455
SELECT DISTINCT COUNT ( * ) + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 36 AS col1 FROM tab1, tab1 AS cor0
----
NULL
36

query I rowsort
SELECT ALL col1 + col2 - col2 * - - 75 AS col1 FROM tab0
----
-3397
-719
-7325

onlyif mysql # aggregate syntax: 
query II rowsort label-4457
SELECT + COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-4457
SELECT + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1
----
3
-3

query II rowsort
SELECT 65 AS col0, - col0 FROM tab2
----
65
-46
65
-64
65
-75

query I rowsort
SELECT ALL - + 54 + + + 20 AS col0 FROM tab2 cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT COUNT( * ) - + 82 * 36 AS col2 FROM tab0 AS cor0
----
-2949

skipif mysql # not compatible
query I rowsort label-4460
SELECT COUNT ( * ) - + 82 * 36 AS col2 FROM tab0 AS cor0
----
-2949

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 * 54 + col1 + - col2 * - col1, col0 / - + 95, col2, col0 )
----

query I rowsort
SELECT + + 30 + - + 80 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT col0 + + CAST( + - 66 AS SIGNED ) AS col2 FROM tab1
----
-15
19
25

skipif mysql # not compatible
query I rowsort label-4464
SELECT col0 + + CAST ( + - 66 AS INTEGER ) AS col2 FROM tab1
----
-15
19
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4465
SELECT ALL * FROM tab1 WHERE ( + 42 - - 51 ) >= + CAST( NULL AS SIGNED ) * 44
----

skipif mysql # not compatible
query III rowsort label-4465
SELECT ALL * FROM tab1 WHERE ( + 42 - - 51 ) >= + CAST ( NULL AS INTEGER ) * 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT - col1 DIV - + 5 AS col0 FROM tab2 AS cor0
----
10
13
15

skipif mysql # not compatible
query I rowsort label-4466
SELECT - col1 / - + 5 AS col0 FROM tab2 AS cor0
----
10
13
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL 11 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL 11 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
14

query I rowsort
SELECT ALL - + 73 - col0 AS col1 FROM tab2 AS cor0
----
-119
-137
-148

query I rowsort
SELECT DISTINCT - 25 - + 89 AS col2 FROM tab2 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT COUNT( col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT COUNT ( col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 86 * - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 33 + - - 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL - COUNT( ALL 20 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL - COUNT ( ALL 20 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 86 * col1 - 45 IS NOT NULL
----

query I rowsort
SELECT - 43 * + col0 FROM tab2
----
-1978
-2752
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT - COUNT( ALL - + 60 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4476
SELECT - COUNT ( ALL - + 60 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT - 9 * - - 23 * + 92 * - col1 FROM tab0
----
1542564
19044
399924

query II rowsort
SELECT + col1, + col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT COUNT( * ) AS col1, MIN( + 30 ) AS col0 FROM tab1
----
3
30

skipif mysql # not compatible
query II rowsort label-4479
SELECT COUNT ( * ) AS col1, MIN ( + 30 ) AS col0 FROM tab1
----
3
30

query I rowsort
SELECT 88 * + + col1 FROM tab0
----
1848
7128
88

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4481
SELECT CAST( NULL AS DECIMAL ) AS col0, - 85 FROM tab2
----
NULL
-85
NULL
-85
NULL
-85

skipif mysql # not compatible
query II rowsort label-4481
SELECT CAST ( NULL AS REAL ) AS col0, - 85 FROM tab2
----
NULL
-85
NULL
-85
NULL
-85

query I rowsort
SELECT ALL ( - col0 ) FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - ( - + 40 ) - + - 19 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT + 72 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
72

query I rowsort
SELECT DISTINCT 8 FROM tab1 cor0 WHERE NOT col0 * - col1 * col2 <= ( + 96 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT ALL + ( + col1 ) DIV col0 * - + col0 * col0 FROM tab2 AS cor0
----
-2116
-4096
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + ( + col1 ) / col0 * - + col0 * col0 FROM tab2 AS cor0
----
-2116
-4096
0

query I rowsort
SELECT ALL - col1 * - 70 * + + ( + + col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
127880
6691
85003

query I rowsort
SELECT col2 * col1 * 49 * - ( col0 ) * + + 13 + + 34 AS col2 FROM tab0 AS cor0
----
-11637956
-36375851
-6117077

query I rowsort
SELECT DISTINCT + col2 + - 40 FROM tab2 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - COUNT( * ) + + - 43 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-4490
SELECT - COUNT ( * ) + + - 43 FROM tab0
----
-46

query I rowsort
SELECT 21 + - 0 + + 76 + + col0 FROM tab2
----
143
161
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 6 * 9 + + 82, + col1 col0 FROM tab0
----
136
1
136
21
136
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4493
SELECT DISTINCT 61 * - + col1 DIV - + col1 AS col1, col1 * - - ( - - col1 ) FROM tab0
----
61
1
61
441
61
6561

skipif mysql # not compatible
query II rowsort label-4493
SELECT DISTINCT 61 * - + col1 / - + col1 AS col1, col1 * - - ( - - col1 ) FROM tab0
----
61
1
61
441
61
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * col1 * 89 + - - ( + 9 ) * + 94 col2 FROM tab1
----
-110048
-371441
-38759

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT ALL col0 + col2 DIV col2 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL col0 + col2 / col2 FROM tab1
----
52
86
92

query I rowsort
SELECT DISTINCT + ( + - col2 ) + 71 * - col1 AS col2 FROM tab2
----
-3644
-4815
-5507

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 NOT BETWEEN NULL AND - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT - 23 + + + COUNT( * ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-20

skipif mysql # not compatible
query I rowsort label-4498
SELECT - 23 + + + COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-20

query I rowsort
SELECT DISTINCT + col2 - 45 FROM tab0
----
-35
2
54

query I rowsort
SELECT ALL - 83 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query II rowsort
SELECT + col2 - + col0 * col1 * + 58 + + ( - col1 ) AS col0, col2 AS col2 FROM tab1
----
-24596
59
-248045
68
-41330
96

query I rowsort
SELECT col1 - + 36 + + - col0 FROM tab0
----
-102
-132
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col0 FROM tab2
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT SUM( DISTINCT 31 ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT SUM ( DISTINCT 31 ) FROM tab0 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 13 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4507
SELECT DISTINCT 42, 29 * + MAX( DISTINCT + CAST( - 91 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
42
-2639

skipif mysql # not compatible
query II rowsort label-4507
SELECT DISTINCT 42, 29 * + MAX ( DISTINCT + CAST ( - 91 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
42
-2639

query II rowsort
SELECT - - col2, - col2 AS col1 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + MAX( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4509
SELECT + MAX ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + - col0 * - 63 * + - col1 AS col2 FROM tab0 cor0
----
-115101
-6111
-76545

query II rowsort
SELECT + 20 AS col0, col0 AS col0 FROM tab1 AS cor0
----
20
51
20
85
20
91

query I rowsort
SELECT + ( - - 81 ) * + col1 + - col2 AS col0 FROM tab0
----
-18
1691
6514

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - + ( + + ( + col0 ) ) ) AS col0 FROM tab0 AS cor0 WHERE col2 IN ( - + 61 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4515
SELECT - - col1 DIV - col1 AS col2, ( col2 ) AS col0 FROM tab0 cor0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-4515
SELECT - - col1 / - col1 AS col2, ( col2 ) AS col0 FROM tab0 cor0
----
-1
10
-1
47
-1
99

query I rowsort
SELECT DISTINCT 65 FROM tab0 AS cor0 WHERE NOT + col2 > - - 43
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT - - ( - + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4517
SELECT - - ( - + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col2 ) * col2 + 80 - - 5 + col1 AS col1 FROM tab2 AS cor0
----
-1438
-3212
-393

query I rowsort
SELECT ALL 99 * ( - col0 ) + 33 AS col0 FROM tab0
----
-1452
-8580
-9570

query I rowsort
SELECT + - 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT - col1 FROM tab1 WHERE + 16 BETWEEN 10 AND - col1 + + 82
----
-14
-47
-5

query I rowsort
SELECT ALL - col0 * col1 + - col0 FROM tab1 AS cor0
----
-4368
-510
-765

query I rowsort
SELECT DISTINCT ( + 77 ) FROM tab2 cor0
----
77

query II rowsort
SELECT + 88 + - ( - col0 ) AS col2, - col1 * - col1 FROM tab1 AS cor0
----
139
196
173
25
179
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL MAX( ALL - ( - col0 ) ) col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4525
SELECT ALL MAX ( ALL - ( - col0 ) ) col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT + SUM( + - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT + SUM ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4527
SELECT CAST( NULL AS SIGNED ) * MIN( ALL + col0 ) AS col1, + SUM( DISTINCT CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
195

skipif mysql # not compatible
query II rowsort label-4527
SELECT CAST ( NULL AS INTEGER ) * MIN ( ALL + col0 ) AS col1, + SUM ( DISTINCT CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT - ( + - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4528
SELECT - ( + - COUNT ( * ) ) FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <> - + 46
----

query I rowsort
SELECT DISTINCT - - ( + ( + col1 ) ) + - col0 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT + 57 * col2 AS col1 FROM tab2
----
1311
2280
3306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT DISTINCT MAX( DISTINCT - - CAST( + col0 AS SIGNED ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT MAX ( DISTINCT - - CAST ( + col0 AS INTEGER ) ) FROM tab2
----
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + 49, + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 47 + + + col2 * col0 + 66 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - 36 + col2 * col2 FROM tab1
----
1357
2176
5760

query II rowsort
SELECT ( - + col0 ) AS col0, 48 * + + col1 AS col2 FROM tab1
----
-51
672
-85
240
-91
2256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT 33 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT 33 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 * col2, col0 AS col1 FROM tab0
----
210
87
3807
15
99
97

query I rowsort
SELECT DISTINCT + col1 + + col2 + col0 FROM tab2
----
120
181
200

query I rowsort
SELECT + col1 - - + 69 + - 77 FROM tab1
----
-3
39
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL - 99 + + 94 - + MIN( DISTINCT - 74 ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL - 99 + + 94 - + MIN ( DISTINCT - 74 ) AS col2 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT COUNT( * ) * + ( + - 95 ) - 89 FROM tab0 AS cor0
----
-374

skipif mysql # not compatible
query I rowsort label-4542
SELECT COUNT ( * ) * + ( + - 95 ) - 89 FROM tab0 AS cor0
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ( SUM( DISTINCT col2 ) ) + 64 + + - 55 FROM tab2 cor0
----
130

skipif mysql # not compatible
query I rowsort label-4543
SELECT ( SUM ( DISTINCT col2 ) ) + 64 + + - 55 FROM tab2 cor0
----
130

query I rowsort
SELECT ALL - + col2 * 70 + + + col1 AS col2 FROM tab0 AS cor0
----
-3209
-679
-6929

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4546
SELECT ALL + COUNT( - + col0 ) DIV + + 81 + 92 - + - COUNT( * ) - + 22 AS col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + COUNT ( - + col0 ) / + + 81 + 92 - + - COUNT ( * ) - + 22 AS col1 FROM tab2 AS cor0
----
73

query I rowsort
SELECT 97 + 49 FROM tab2
----
146
146
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 + - 22 + - - 39 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
112

query I rowsort
SELECT DISTINCT - col0 * + 61 FROM tab0
----
-5307
-5917
-915

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4550
SELECT DISTINCT CAST( - 99 AS SIGNED ) DIV col2 * - + col1 FROM tab2
----
154
204
67

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT CAST ( - 99 AS INTEGER ) / col2 * - + col1 FROM tab2
----
154
204
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT + + 85 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-4551
SELECT + + 85 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-4552
SELECT - 80 DIV + ( - col2 ) AS col0 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4552
SELECT - 80 / + ( - col2 ) AS col0 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - - 79 * + col0 * + col2 AS col2 FROM tab1 AS cor0
----
386784
396185
488852

onlyif mysql # aggregate syntax: 
query II rowsort label-4554
SELECT DISTINCT 1 AS col2, COUNT( * ) + + 17 AS col0 FROM tab2
----
1
20

skipif mysql # not compatible
query II rowsort label-4554
SELECT DISTINCT 1 AS col2, COUNT ( * ) + + 17 AS col0 FROM tab2
----
1
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4555
SELECT DISTINCT COUNT( * ) DIV + + ( - 74 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT COUNT ( * ) / + + ( - 74 ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( ALL col1 ) * 91 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( ALL col1 ) * 91 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT - MIN( ALL + col0 ) - - 73 AS col2 FROM tab1 WHERE NOT + col2 IS NULL
----
22

skipif mysql # not compatible
query I rowsort label-4557
SELECT - MIN ( ALL + col0 ) - - 73 AS col2 FROM tab1 WHERE NOT + col2 IS NULL
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col2 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 77 ) col0 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4560
SELECT - 25 DIV MAX( - + col0 ) + 23 - + + COUNT( + ( + col0 ) ) AS col2 FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-4560
SELECT - 25 / MAX ( - + col0 ) + 23 - + + COUNT ( + ( + col0 ) ) AS col2 FROM tab0 cor0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4561
SELECT ALL - MAX( + - col0 ) * 48 DIV - 57 + + 36 FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - MAX ( + - col0 ) * 48 / - 57 + + 36 FROM tab0 cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL + MIN( col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL + MIN ( col0 ) FROM tab2 cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 68 NOT BETWEEN + - col2 * + + col1 + - + col0 + + 46 * - col0 / + col0 AND - + col1 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT 33 DIV 36 - + col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4564
SELECT 33 / 36 - + col1 FROM tab2 cor0
----
-51
-67
-77

query II rowsort
SELECT ALL - ( - col0 ), ( + col2 ) AS col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT - 99 + - 81 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 220e00289e1864f7a2e2ca39a6193a4a

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL + COUNT( * ) * + 29 + - 71 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL + COUNT ( * ) * + 29 + - 71 FROM tab0
----
16

query II rowsort
SELECT ALL 71 + + + col2 AS col1, ( + 77 ) AS col1 FROM tab2 AS cor0
----
111
77
129
77
94
77

query I rowsort
SELECT DISTINCT + ( 12 ) AS col1 FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT - + 28 AS col2 FROM tab2 cor0
----
-28

query II rowsort
SELECT ALL col2 * + 27, + col0 * col0 AS col2 FROM tab2 AS cor0
----
1080
4096
1566
5625
621
2116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT ALL 43 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL 43 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT ( - + 11 ) + - col2 DIV + + col1 FROM tab0
----
-11
-11
-110

skipif mysql # not compatible
query I rowsort label-4573
SELECT ( - + 11 ) + - col2 / + + col1 FROM tab0
----
-11
-11
-110

query I rowsort
SELECT 64 * - 21 + 0 + col1 FROM tab2
----
-1267
-1277
-1293

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col2 IS NOT NULL )
----

query I rowsort
SELECT 13 + - + col2 FROM tab1
----
-46
-55
-83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4577
SELECT DISTINCT - CAST( col0 AS SIGNED ) * 94 + - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * 94 + - - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 54 * - col1 AS col1 FROM tab2
----
-2754
-3618
-4158

query II rowsort
SELECT DISTINCT - 23 * - ( - 43 ), col1 * col2 + + col1 AS col0 FROM tab2
----
-989
1224
-989
3157
-989
3953

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - + col1, + ( 66 ) * + + 68 * ( + - col2 ), col1 + + col2, + 47 )
----

query I rowsort
SELECT col2 * + - col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL 23 + + - col1 / col1 AS col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL - + COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 55 * col1 * + - col0 * + col1 FROM tab0 AS cor0 WHERE NULL <> - 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 col2 FROM tab0 cor0 WHERE col2 * - 34 IN ( + ( - - col0 ) * 64 * col0, col1 + - - 31 )
----

query I rowsort
SELECT 48 * - - col0 FROM tab0 AS cor0
----
4176
4656
720

query I rowsort
SELECT 82 - - 49 AS col2 FROM tab2
----
131
131
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ( COUNT( * ) ) - ( 22 ) * - ( COUNT( * ) + COUNT( * ) ) AS col1 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-4588
SELECT ( COUNT ( * ) ) - ( 22 ) * - ( COUNT ( * ) + COUNT ( * ) ) AS col1 FROM tab1
----
135

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + + 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab0 WHERE NOT 47 IS NULL
----
2
2
2

query I rowsort
SELECT - ( + 58 ) AS col0 FROM tab0
----
-58
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * + ( 20 ) + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 / - col2 FROM tab1 WHERE NOT + 36 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + SUM( + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4594
SELECT + SUM ( + col2 ) AS col0 FROM tab1
----
223

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT ( col0 ) = + col1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL MAX( DISTINCT + 94 ) col0 FROM tab1 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4596
SELECT ALL MAX ( DISTINCT + 94 ) col0 FROM tab1 WHERE NULL > NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 16 ) BETWEEN 10 AND col0 * - 56
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT ALL ( - COUNT( * ) ) DIV 5 + + 72 AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL ( - COUNT ( * ) ) / 5 + + 72 AS col2 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL - COUNT( 45 ) - - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL - COUNT ( 45 ) - - COUNT ( * ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 22 * + 23 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + 2 FROM tab1
----
16
49
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT + MIN( col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + MIN ( col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4603
SELECT DISTINCT COUNT( 43 ) + - 74 DIV + 47 AS col2 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT COUNT ( 43 ) + - 74 / + 47 AS col2 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT - COUNT( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4604
SELECT - COUNT ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT - 45 DIV col2 AS col1 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT - 45 / col2 AS col1 FROM tab0 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL 47 * - 19 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT DISTINCT + 94 + + col2 * 75 FROM tab1 AS cor0
----
4519
5194
7294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4608
SELECT + COUNT( * ) DIV - COUNT( * ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4608
SELECT + COUNT ( * ) / - COUNT ( * ) FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - COUNT( * ) * - 50 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4609
SELECT - COUNT ( * ) * - 50 FROM tab2 AS cor0
----
150

query I rowsort
SELECT ALL - 23 AS col0 FROM tab2 AS cor0 WHERE NOT 4 BETWEEN col2 * + ( + 27 ) AND NULL
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL ( SUM( ALL + 75 ) ) AS col2 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL ( SUM ( ALL + 75 ) ) AS col2 FROM tab1
----
225

query I rowsort
SELECT col0 * + col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - 83 AS col1 FROM tab2
----
-25
-43
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT col0 DIV + col1 + - 99 AS col2 FROM tab0
----
-2
-95
-99

skipif mysql # not compatible
query I rowsort label-4615
SELECT col0 / + col1 + - 99 AS col2 FROM tab0
----
-2
-95
-99

query I rowsort
SELECT ALL - col2 + col0 * + col1 AS col2 FROM tab2
----
2323
4888
4967

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT NULL >= ( - 58 )
----

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab0 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - col1 * + 64 + col0 AS col0 FROM tab0 cor0
----
-1257
-5169
33

query I rowsort
SELECT 17 AS col0 FROM tab1 AS cor0 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT ALL + 65 DIV 90 - 92 * COUNT( * ) FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL + 65 / 90 - 92 * COUNT ( * ) FROM tab2 AS cor0
----
-276

query I rowsort
SELECT ALL - 39 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-39
-39
-39

query I rowsort
SELECT ALL + + 69 * col0 + - 5 * + 17 AS col0 FROM tab2 AS cor0
----
3089
4331
5090

query I rowsort
SELECT DISTINCT - 86 * + col0 AS col1 FROM tab0 AS cor0
----
-1290
-7482
-8342

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4625
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( col2 AS DECIMAL ) * - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-4625
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( col2 AS REAL ) * - CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT - 30 * + col0 FROM tab2 AS cor0
----
-1380
-1920
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL + COUNT( * ) - - COUNT( DISTINCT col0 - + col1 * + 30 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL + COUNT ( * ) - - COUNT ( DISTINCT col0 - + col1 * + 30 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( + 86 ) + 8 ) IN ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - - MAX( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4629
SELECT - - MAX ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT - 50 + + COUNT( * ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - 50 + + COUNT ( * ) AS col1 FROM tab1
----
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 23 BETWEEN col0 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 70 AS col2 FROM tab0 WHERE ( + 24 ) IS NOT NULL
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NULL OR - col2 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4634
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4634
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col0 * 56 - - col0 AS col0 FROM tab2
----
2622
3648
4275

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT col2 DIV - col2 + col2 AS col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4636
SELECT col2 / - col2 + col2 AS col2 FROM tab1
----
58
67
95

query I rowsort
SELECT 23 + - col2 AS col0 FROM tab1
----
-36
-45
-73

query I rowsort
SELECT 41 * + col1 AS col0 FROM tab2
----
2091
2747
3157

query I rowsort
SELECT DISTINCT ( + 67 ) - 90 AS col0 FROM tab2 AS cor0 WHERE ( 6 + col1 ) NOT BETWEEN ( NULL ) AND - col0
----
-23

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) NOT IN ( - 90 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT DISTINCT CAST( col2 AS SIGNED ) * 91 FROM tab1 cor0
----
5369
6188
8736

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT CAST ( col2 AS INTEGER ) * 91 FROM tab1 cor0
----
5369
6188
8736

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( col2 ) + col1 ) NOT IN ( 82 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT DISTINCT COUNT( - col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4644
SELECT DISTINCT COUNT ( - col1 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL + + MIN( 40 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + + MIN ( 40 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
40

query I rowsort
SELECT ALL + 9 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT DISTINCT + 79 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( 33 ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT + 79 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( 33 ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT - 41 * + 76 + col0 AS col0 FROM tab2 AS cor0
----
-3041
-3052
-3070

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN ( col2 ) AND + 48
----

query I rowsort
SELECT col1 + + col1 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN 24 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 91 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 76 AS col1 FROM tab2 AS cor0
----
-3496
-4864
-5700

query II rowsort
SELECT DISTINCT - - 74, + 46 AS col1 FROM tab1 AS cor0
----
74
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + COUNT( * ) col1 FROM tab2 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-4654
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + 19 * + ( col0 ) + 94 AS col0 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT - col2 * + 65 AS col2 FROM tab2 WHERE NOT - 68 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + COUNT( - 8 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4657
SELECT + COUNT ( - 8 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col1 + 87 AS col2 FROM tab2
----
138
154
164

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4659
SELECT * FROM tab1 WHERE NOT - 94 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4659
SELECT * FROM tab1 WHERE NOT - 94 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - MAX( - col1 ) * 62 + + 68 FROM tab2
----
3230

skipif mysql # not compatible
query I rowsort label-4660
SELECT - MAX ( - col1 ) * 62 + + 68 FROM tab2
----
3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT - col1 / - - CAST( NULL AS SIGNED ) + - 55 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT - col1 / - - CAST ( NULL AS INTEGER ) + - 55 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4662
SELECT ALL + CAST( NULL AS SIGNED ) + + + COUNT( + col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL + CAST ( NULL AS INTEGER ) + + + COUNT ( + col2 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE col2 NOT BETWEEN + 44 AND col1 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 64 col1 FROM tab0
----
151
161
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( - 42 ) AND col0 * + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT - COUNT( * ) + - ( + - 18 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4666
SELECT - COUNT ( * ) + - ( + - 18 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT - col2 * - 0 + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT SUM( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - ( - - col0 ), - col2 * - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT SUM ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - ( - - col0 ), - col2 * - col0 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( + - col0 ) / - 0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - + + 35 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4671
SELECT * FROM tab2 AS cor0 WHERE + CAST( col2 AS SIGNED ) * - col0 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4671
SELECT * FROM tab2 AS cor0 WHERE + CAST ( col2 AS INTEGER ) * - col0 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( + ( + col1 ) ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - col2 - 78 FROM tab2 AS cor0
----
-101
-118
-136

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4674
SELECT + - col2 / + CAST( NULL AS DECIMAL ) + - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT + - col2 / + CAST ( NULL AS REAL ) + - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 75 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT ALL + 51 AS col0 FROM tab0 cor0
----
51
51
51

query I rowsort
SELECT DISTINCT col0 - + 15 FROM tab1
----
36
70
76

query I rowsort
SELECT - ( 80 ) * + col2 + + 30 FROM tab1
----
-4690
-5410
-7650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4679
SELECT - 94 * + col2 * - + 46 + + 54, - CAST( NULL AS SIGNED ) * + 21 * col1 AS col1 FROM tab2
----
173014
NULL
250846
NULL
99506
NULL

skipif mysql # not compatible
query II rowsort label-4679
SELECT - 94 * + col2 * - + 46 + + 54, - CAST ( NULL AS INTEGER ) * + 21 * col1 AS col1 FROM tab2
----
173014
NULL
250846
NULL
99506
NULL

query I rowsort
SELECT ALL - 94 * - col2 - + - 82 * - 0 AS col0 FROM tab0
----
4418
9306
940

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT + col0 DIV 85 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4681
SELECT + col0 / 85 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT MIN( ALL - col0 ) col1 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4682
SELECT DISTINCT MIN ( ALL - col0 ) col1 FROM tab1
----
-91

query II rowsort
SELECT DISTINCT col2, col1 + + + 21 FROM tab1
----
59
26
68
68
96
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4684
SELECT - col2 * ( col2 ) AS col2 FROM tab2 WHERE NOT - + col1 * CAST( NULL AS SIGNED ) / + CAST( NULL AS DECIMAL ) + 63 + + col1 = col1
----

skipif mysql # not compatible
query I rowsort label-4684
SELECT - col2 * ( col2 ) AS col2 FROM tab2 WHERE NOT - + col1 * CAST ( NULL AS INTEGER ) / + CAST ( NULL AS REAL ) + 63 + + col1 = col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( + + 47 )
----

query II rowsort
SELECT DISTINCT + ( + col1 ) AS col1, 91 AS col1 FROM tab2
----
51
91
67
91
77
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT - 74 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4687
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT - 74 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + ( + + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - 11 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4689
SELECT - 11 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT COUNT( ALL 0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT COUNT ( ALL 0 ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col1, col1 * 79 AS col2 FROM tab0 WHERE NULL < - col0 / + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4693
SELECT ALL COUNT( * ) * 27 AS col0, - 16 AS col1 FROM tab0
----
81
-16

skipif mysql # not compatible
query II rowsort label-4693
SELECT ALL COUNT ( * ) * 27 AS col0, - 16 AS col1 FROM tab0
----
81
-16

query II rowsort
SELECT col2 * + 86 AS col0, col1 FROM tab0 AS cor0
----
4042
81
8514
1
860
21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + col0 * + 22 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - 72 > ( NULL ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( 53 IN ( 41 * + + 99 ) ) )
----

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE NOT ( col2 * + + 56 - + + 37 IS NULL )
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4699
SELECT ALL col1 AS col0, + 75 FROM tab1 cor0 WHERE + col0 < + - 3 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-4699
SELECT ALL col1 AS col0, + 75 FROM tab1 cor0 WHERE + col0 < + - 3 - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 * 53 AS col0, col2 FROM tab2 AS cor0
----
-2438
23
-3392
40
-3975
58

query II rowsort
SELECT + col2, + col2 * + 9 AS col1 FROM tab0
----
10
90
47
423
99
891

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 59 = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4704
SELECT DISTINCT + col0, CAST( - 39 AS SIGNED ) FROM tab2
----
46
-39
64
-39
75
-39

skipif mysql # not compatible
query II rowsort label-4704
SELECT DISTINCT + col0, CAST ( - 39 AS INTEGER ) FROM tab2
----
46
-39
64
-39
75
-39

query II rowsort
SELECT ALL col0 AS col0, + 98 FROM tab1
----
51
98
85
98
91
98

query III rowsort
SELECT * FROM tab2 WHERE - col1 > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT - + SUM( - col0 ) * 41 FROM tab2 WHERE col2 >= - 56 + + 87 - - col0 * - col0
----
7585

skipif mysql # not compatible
query I rowsort label-4707
SELECT - + SUM ( - col0 ) * 41 FROM tab2 WHERE col2 >= - 56 + + 87 - - col0 * - col0
----
7585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT ALL - col2 * - col2 * + ( + col1 ) col2 FROM tab0 WHERE - CAST( + - col2 AS SIGNED ) < - 84
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4708
SELECT ALL - col2 * - col2 * + ( + col1 ) col2 FROM tab0 WHERE - CAST ( + - col2 AS INTEGER ) < - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT COUNT( col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4709
SELECT COUNT ( col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col1 * col0 + + 97 AS col2 FROM tab1 AS cor0
----
4374
522
811

query I rowsort
SELECT ALL + + ( + 21 ) + col1 FROM tab1 AS cor0
----
26
35
68

query II rowsort
SELECT ALL - - 17 AS col1, col2 - - 7 AS col1 FROM tab1 cor0
----
17
103
17
66
17
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT + CAST( + ( - 80 ) AS SIGNED ) FROM tab0, tab1 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

skipif mysql # not compatible
query I rowsort label-4713
SELECT + CAST ( + ( - 80 ) AS INTEGER ) FROM tab0, tab1 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4714
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 * - + 4 AND + col0 + + col1 * col1 * + - col2 * + - 7
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 = NULL
----

query I rowsort
SELECT + 59 * 51 FROM tab1
----
3009
3009
3009

query I rowsort
SELECT ALL 38 * - col0 * col0 * col1 FROM tab0
----
-357542
-6040062
-692550

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT + 77 DIV - col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT + 77 / - col0 AS col2 FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT - 25 * col0 DIV 73 FROM tab1
----
-17
-29
-31

skipif mysql # not compatible
query I rowsort label-4720
SELECT - 25 * col0 / 73 FROM tab1
----
-17
-29
-31

query I rowsort
SELECT - col0 * + col2 * - col0 AS col1 FROM tab2
----
163840
326250
48668

query II rowsort
SELECT 78 AS col2, 4 FROM tab0
----
78
4
78
4
78
4

query II rowsort
SELECT - + col0, + col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 74 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT + 71 * + - CAST( NULL AS SIGNED ) * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 71 * + - CAST ( NULL AS INTEGER ) * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab0 cor0 WHERE NOT 80 * - - 41 + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL - MIN( ALL - - 61 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - MIN ( ALL - - 61 ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT ALL 22 * 51 + + col2 + - col1 AS col1 FROM tab1 cor0
----
1143
1176
1204

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 96 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL - COUNT( * ) + - - ( COUNT( ALL 41 ) ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL - COUNT ( * ) + - - ( COUNT ( ALL 41 ) ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( + 27 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT DISTINCT COUNT( * ) col1 FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4734
SELECT DISTINCT COUNT ( * ) col1 FROM tab0, tab2 cor0
----
9

query I rowsort
SELECT + col0 / col0 * ( - col1 ) + + 13 AS col1 FROM tab1 WHERE NULL BETWEEN 60 AND + + col1
----

query I rowsort
SELECT 73 + col2 * 6 FROM tab0
----
133
355
667

query I rowsort
SELECT col1 + + + col0 AS col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL + 45 + + COUNT( DISTINCT - 16 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + 45 + + COUNT ( DISTINCT - 16 ) FROM tab0
----
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - - 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 22 + ( - 42 ) FROM tab2 AS cor0
----
-64

query I rowsort
SELECT DISTINCT + 10 * - + 88 + + col0 AS col0 FROM tab1 AS cor0
----
-789
-795
-829

query I rowsort
SELECT - 48 - col2 + ( + 42 ) AS col0 FROM tab1
----
-102
-65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT + + ( + 38 ) + + SUM( col1 ) col2 FROM tab0 cor0
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4743
SELECT + + ( + 38 ) + + SUM ( col1 ) col2 FROM tab0 cor0
----
141

query I rowsort
SELECT DISTINCT col1 + - + col1 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 / + 5 / - col1 / - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 5 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT ALL CAST( + - 25 AS SIGNED ) FROM tab2 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL CAST ( + - 25 AS INTEGER ) FROM tab2 AS cor0
----
-25
-25
-25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * col0 + - col2 * + - 48 * - + 45 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col1, - 0 AS col2 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 0 NOT IN ( + 37 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 43 <= + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 AND - 77
----

query I rowsort
SELECT col2 * + 59 AS col0 FROM tab1
----
3481
4012
5664

query I rowsort
SELECT col0 * 20 * + + col2 AS col1 FROM tab0
----
14100
17400
192060

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - MIN( col2 ) * - ( - 31 ) FROM tab1 AS cor0
----
-1829

skipif mysql # not compatible
query I rowsort label-4756
SELECT - MIN ( col2 ) * - ( - 31 ) FROM tab1 AS cor0
----
-1829

query I rowsort
SELECT col1 * col0 + - col0 FROM tab2 WHERE NOT col1 BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT + 4 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT + 90 - + - COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
99

skipif mysql # not compatible
query I rowsort label-4760
SELECT + 90 - + - COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
99

query I rowsort
SELECT DISTINCT 23 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - COUNT( * ) + - 19 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-4762
SELECT - COUNT ( * ) + - 19 FROM tab2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT COUNT( * ) * + SUM( - - col2 ) + - 53 + - MAX( ALL - col2 ) FROM tab1 AS cor0
----
675

skipif mysql # not compatible
query I rowsort label-4763
SELECT COUNT ( * ) * + SUM ( - - col2 ) + - 53 + - MAX ( ALL - col2 ) FROM tab1 AS cor0
----
675

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT + col1 + + 57 DIV + + col2 - - col2 FROM tab0 AS cor0
----
100
129
36

skipif mysql # not compatible
query I rowsort label-4764
SELECT + col1 + + 57 / + + col2 - - col2 FROM tab0 AS cor0
----
100
129
36

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL SUM( ALL 69 ) AS col1 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL SUM ( ALL 69 ) AS col1 FROM tab0 AS cor0
----
207

query I rowsort
SELECT + col0 * + + col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL - - col1 / + col2 + + + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT + MAX( + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT + MAX ( + col2 ) FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col2 * - col2 col0 FROM tab0
----
15
-2209
87
-100
97
-9801

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col0 - 22 IS NULL
----

query I rowsort
SELECT col0 - - - 54 FROM tab1
----
-3
31
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL - COUNT( ALL 73 ) + 22 - + 51 col0 FROM tab1
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4774
SELECT ALL - COUNT ( ALL 73 ) + 22 - + 51 col0 FROM tab1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT - 48 DIV + 44 - + + 58 FROM tab0 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-4775
SELECT - 48 / + 44 - + + 58 FROM tab0 AS cor0
----
-59
-59
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT - 0 * - - col2 * - 14 DIV - - col0 - + 26 FROM tab1 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-4776
SELECT - 0 * - - col2 * - 14 / - - col0 - + 26 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT ALL col0 * - col0 - + col1 + - + col0 AS col2 FROM tab2 AS cor0
----
-2213
-4237
-5767

query I rowsort
SELECT DISTINCT + - 22 * ( col1 ) * + - col1 AS col2 FROM tab2 AS cor0
----
130438
57222
98758

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT + ( - ( + col1 ) ) DIV - 82 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT + ( - ( + col1 ) ) / - 82 FROM tab1
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < 50
----

query I rowsort
SELECT - - 12 AS col2 FROM tab1 cor0
----
12
12
12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 <= + - 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT DISTINCT 32 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT 32 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ALL - SUM( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL - SUM ( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT ALL - 29 * + CAST( - col1 AS SIGNED ) + 28 FROM tab0 AS cor0
----
2377
57
637

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - 29 * + CAST ( - col1 AS INTEGER ) + 28 FROM tab0 AS cor0
----
2377
57
637

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT COUNT( * ) * + + COUNT( - - col0 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4786
SELECT COUNT ( * ) * + + COUNT ( - - col0 ) FROM tab1
----
9

query I rowsort
SELECT ALL + ( 92 ) FROM tab2
----
92
92
92

query III rowsort
SELECT * FROM tab1 WHERE NOT 4 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4789
SELECT DISTINCT COUNT( * ) DIV - - 73 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT COUNT ( * ) / - - 73 FROM tab2
----
0

query I rowsort
SELECT - + 54 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-54
-54
-54

query I rowsort
SELECT ALL - 69 FROM tab1 cor0 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 2 AS col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT DISTINCT + + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - col1 - + col2 - - 33, - 2 col2 FROM tab0 cor0
----
-176
-2
-19
-2
-68
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + + col1, col1, 50 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 / + col2 IS NOT NULL )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT - SUM( - col2 ) + + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - SUM ( - col2 ) + + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
153

query II rowsort
SELECT - - ( - + col2 ) + - col0 + + - col1, col0 + 18 - col2 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-149
49
-161
-13
-206
88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT ALL 99 DIV col1 AS col0 FROM tab0 AS cor0
----
1
4
99

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL 99 / col1 AS col0 FROM tab0 AS cor0
----
1
4
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT DISTINCT - + 35 DIV col1 + - col2 FROM tab1 AS cor0
----
-66
-68
-98

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT - + 35 / col1 + - col2 FROM tab1 AS cor0
----
-66
-68
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - + COUNT( * ) + + - 31 AS col2 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4803
SELECT - + COUNT ( * ) + + - 31 AS col2 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT 30 * + + col0 * - col1 + col2 AS col2 FROM tab1
----
-12691
-128242
-21324

query I rowsort
SELECT DISTINCT col1 * - 75 + - col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT + 56 + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT + 56 + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT 37 + - - 11 + - col1 AS col1 FROM tab1
----
1
34
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4808
SELECT ( + COUNT( * ) ) + + 24 DIV + - COUNT( * ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-4808
SELECT ( + COUNT ( * ) ) + + 24 / + - COUNT ( * ) FROM tab0
----
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - col2, col2 )
----

query II rowsort
SELECT ALL 24 + - ( + 67 ) AS col2, + col2 AS col1 FROM tab2
----
-43
23
-43
40
-43
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - + col1 col1 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL + col2 + - 65 AS col0 FROM tab1 AS cor0
----
-6
3
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT MIN( ALL + + 61 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4814
SELECT MIN ( ALL + + 61 ) FROM tab0 AS cor0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - 7 col2 FROM tab1 AS cor0
----
52
61
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 - - - col1 + - 12 col0 FROM tab1
----
-3
30
39

query I rowsort
SELECT - ( - 32 ) * + 12 AS col1 FROM tab1
----
384
384
384

query II rowsort
SELECT DISTINCT + 85 AS col2, - col0 FROM tab2 WHERE NOT + 19 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4819
SELECT + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4819
SELECT + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab0 WHERE NOT - 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 78 AS col0, - ( + - col0 ) + col1 + 61 col1 FROM tab1 AS cor0
----
78
126
78
151
78
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 * + 66 * - + col2 col2 FROM tab2 AS cor0
----
-130152
-51612
-89760

query I rowsort
SELECT - ( + - 20 ) AS col0 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT COUNT( * ) AS col0, - COUNT( * ) + COUNT( * ) + + 3 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4824
SELECT COUNT ( * ) AS col0, - COUNT ( * ) + COUNT ( * ) + + 3 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4825
SELECT DISTINCT - - col2 * + ( + ( + col1 ) ), + col2 * - CAST( + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
210
-210
3807
-3807
99
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4825
SELECT DISTINCT - - col2 * + ( + ( + col1 ) ), + col2 * - CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
210
-210
3807
-3807
99
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + 88 - col1 IS NOT NULL
----

query I rowsort
SELECT col1 * - ( - 31 ) FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4828
SELECT CAST( NULL AS DECIMAL ) * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT CAST ( NULL AS REAL ) * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL + - SUM( 17 ) * COUNT( * ) col2 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4829
SELECT ALL + - SUM ( 17 ) * COUNT ( * ) col2 FROM tab0 AS cor0
----
-153

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col2 * - + col0 * - col2 NOT IN ( 99, - col1, - - 45, 54, 37 + - + col0 + - col2 * ( + ( 74 ) ) ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4831
SELECT col2 * col0 DIV 70 + col2 DIV + + 92, - col0 AS col2 FROM tab1 AS cor0
----
70
-51
71
-85
88
-91

skipif mysql # not compatible
query II rowsort label-4831
SELECT col2 * col0 / 70 + col2 / + + 92, - col0 AS col2 FROM tab1 AS cor0
----
70
-51
71
-85
88
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) * + ( col1 ) IS NOT NULL
----

query II rowsort
SELECT ALL col1, + ( - + col0 ) - - col0 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT col2 + + - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 89 + col0 AS col0 FROM tab2 AS cor0
----
135
153
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT + 77 + - + MAX( + col0 ) AS col1 FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 77 + - + MAX ( + col0 ) AS col1 FROM tab2 cor0
----
2

query I rowsort
SELECT ( - col2 ) * - 97 * + 9 FROM tab1 cor0
----
51507
59364
83808

query I rowsort
SELECT + col2 * + - 77 AS col1 FROM tab0 AS cor0
----
-3619
-7623
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT + 96 DIV + col2 col2 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4839
SELECT + 96 / + col2 col2 FROM tab0 AS cor0
----
0
2
9

query II rowsort
SELECT ALL - col0 AS col2, col1 * - ( + 84 ) FROM tab2 AS cor0
----
-46
-4284
-64
-6468
-75
-5628

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT + COUNT( * ) * + 38 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-4841
SELECT + COUNT ( * ) * + 38 FROM tab1 AS cor0
----
114

query I rowsort
SELECT ALL + - ( - 32 ) AS col2 FROM tab2 cor0
----
32
32
32

query I rowsort
SELECT - col1 * - + 32 + col1 AS col0 FROM tab2 cor0
----
1683
2211
2541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT DISTINCT - col0 * - col1 / CAST( NULL AS SIGNED ) + col1 FROM tab0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - col0 * - col1 / CAST ( NULL AS INTEGER ) + col1 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4845
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + col0 * CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) * - 48 * col2 * - col2 - - col2 AND col2
----

skipif mysql # not compatible
query III rowsort label-4845
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + col0 * CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) * - 48 * col2 * - col2 - - col2 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT COUNT( * ) - - ( - 30 ) AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4846
SELECT COUNT ( * ) - - ( - 30 ) AS col0 FROM tab2
----
-27

query I rowsort
SELECT col1 - + + 94 FROM tab2
----
-17
-27
-43

query I rowsort
SELECT DISTINCT + col1 + - 43 AS col0 FROM tab0
----
-22
-42
38

query I rowsort
SELECT ALL - col0 * + 85 + - - 55 AS col1 FROM tab0
----
-1220
-7340
-8190

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 25 - + 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + - - col0 + - 58 + + col0 * 3 FROM tab2 AS cor0
----
177
275
309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT - MAX( ALL - CAST( col1 AS SIGNED ) ) * 39 + - - CAST( NULL AS SIGNED ) + - 56 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT - MAX ( ALL - CAST ( col1 AS INTEGER ) ) * 39 + - - CAST ( NULL AS INTEGER ) + - 56 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT - COUNT( ALL col2 ) * + + 6 - - 41 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - COUNT ( ALL col2 ) * + + 6 - - 41 FROM tab1 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > + ( - col0 ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT - 5 * - COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 5 * - COUNT ( * ) FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + MAX( DISTINCT col0 ) * - COUNT( * ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-4857
SELECT + MAX ( DISTINCT col0 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-291

query I rowsort
SELECT DISTINCT - 33 / - col0 AS col2 FROM tab0 cor0 WHERE NOT + col0 + col1 NOT BETWEEN NULL AND + col2 + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4859
SELECT - ( - COUNT( + 94 ) ) AS col1, + COUNT( * ) - + - 1 AS col0 FROM tab0 AS cor0
----
3
4

skipif mysql # not compatible
query II rowsort label-4859
SELECT - ( - COUNT ( + 94 ) ) AS col1, + COUNT ( * ) - + - 1 AS col0 FROM tab0 AS cor0
----
3
4

query I rowsort
SELECT - col1 * - + 36 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 36 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT + MAX( - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + MAX ( - col1 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / + 73 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, ( ( + col2 ) ) col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / - - col0 <> + ( + + col2 ) * - 16
----

query I rowsort
SELECT - 71 + + col0 FROM tab2
----
-25
-7
4

query I rowsort
SELECT DISTINCT col1 + + 67 AS col1 FROM tab0
----
148
68
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT 24 * - COUNT( * ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT 24 * - COUNT ( * ) AS col2 FROM tab2
----
-72

query I rowsort
SELECT - - 23 + - 96 FROM tab2 cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT ALL - 84 / col1 + + CAST( + - col0 AS SIGNED ) + + CAST( NULL AS SIGNED ) + - col0 + - 35 + - 54 / - + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - 84 / col1 + + CAST ( + - col0 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - col0 + - 35 + - 54 / - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + col0 ) + - col1 AS col0 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL - CAST( NULL AS SIGNED ) + - 3 + col0 + - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL - CAST ( NULL AS INTEGER ) + - 3 + col0 + - - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT 92 * + MAX( DISTINCT + 29 ) AS col0 FROM tab1, tab1 AS cor0
----
2668

skipif mysql # not compatible
query I rowsort label-4873
SELECT 92 * + MAX ( DISTINCT + 29 ) AS col0 FROM tab1, tab1 AS cor0
----
2668

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NULL ) IS NULL )
----

query I rowsort
SELECT 94 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 51 - col1 FROM tab0 cor0
----
-132
-52
-72

query I rowsort
SELECT ALL + col2 * + col2 * - + col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

query II rowsort
SELECT 14 + - - 5 AS col0, - col1 - col0 AS col2 FROM tab1 AS cor0
----
19
-138
19
-65
19
-90

query II rowsort
SELECT - - col2 + 81, col1 AS col2 FROM tab0 AS cor0
----
128
81
180
1
91
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT - + MIN( DISTINCT - col0 ) + - - 94 AS col1 FROM tab2 WHERE NOT col1 * - col1 * col1 NOT BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - + MIN ( DISTINCT - col0 ) + - - 94 AS col1 FROM tab2 WHERE NOT col1 * - col1 * col1 NOT BETWEEN col2 AND NULL
----
NULL

query I rowsort
SELECT + 77 + col0 AS col1 FROM tab1
----
128
162
168

query II rowsort
SELECT - ( 46 ) + + 3 AS col1, col1 FROM tab1
----
-43
14
-43
47
-43
5

query I rowsort
SELECT 95 + 23 AS col1 FROM tab0
----
118
118
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 88 + + ( - 17 ) + - col2 * + ( + 19 ) * + 60 col2 FROM tab0
----
-112788
-11308
-53428

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + SUM( ALL + 68 ) AS col2 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-4885
SELECT + SUM ( ALL + 68 ) AS col2 FROM tab2
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4886
SELECT CAST( NULL AS SIGNED ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4886
SELECT CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE 87 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * - - col0 col0 FROM tab2 AS cor0
----
-4094
-5696
-6675

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT - col0 + col2 FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) + 23 IS NULL
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-4891
SELECT - col0 + col2 FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) + 23 IS NULL
----
-23
-26
45

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT 49 + - + col0 IS NOT NULL
----

query I rowsort
SELECT 99 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 98 ) col1 FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT + + 58 AS col2 FROM tab1 AS cor0
----
58
58
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col2, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT 4 * - 41 + - COUNT( * ) FROM tab2, tab1 AS cor0
----
-173

skipif mysql # not compatible
query I rowsort label-4897
SELECT 4 * - 41 + - COUNT ( * ) FROM tab2, tab1 AS cor0
----
-173

query II rowsort
SELECT 72, - 22 AS col2 FROM tab1
----
72
-22
72
-22
72
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT SUM( + 86 ) AS col1 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-4899
SELECT SUM ( + 86 ) AS col1 FROM tab2
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT DISTINCT + CAST( 44 AS SIGNED ) + - + col1 FROM tab1
----
-3
30
39

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT + CAST ( 44 AS INTEGER ) + - + col1 FROM tab1
----
-3
30
39

query I rowsort
SELECT DISTINCT + ( - 8 ) FROM tab0
----
-8

query I rowsort
SELECT DISTINCT col0 + 47 FROM tab0
----
134
144
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * - 67 col0 FROM tab1 AS cor0
----
19765
214132
90048

query I rowsort
SELECT 88 + - 99 AS col2 FROM tab2 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + + 6 * - + ( - 82 ) AS col0, - col1 col1 FROM tab1
----
396
-14
424
-47
433
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4906
SELECT DISTINCT - COUNT( ALL 53 ) DIV - + 8 + + - COUNT( * ), - COUNT( * ) AS col1 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4906
SELECT DISTINCT - COUNT ( ALL 53 ) / - + 8 + + - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT COUNT( 12 ) + - SUM( ALL + + ( + - col1 ) ) AS col2 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-4907
SELECT COUNT ( 12 ) + - SUM ( ALL + + ( + - col1 ) ) AS col2 FROM tab0
----
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col2 AS col2, col1 AS col1, 2 col0 FROM tab2 AS cor0
----
9 values hashing to 8e30f61e1fdc5506c22bebbd9b96cb43

query II rowsort
SELECT - - col1 AS col1, ( + col1 ) FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT COUNT( DISTINCT - - col1 ) * 89 + + 41 - COUNT( * ) FROM tab0 AS cor0
----
305

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT COUNT ( DISTINCT - - col1 ) * 89 + + 41 - COUNT ( * ) FROM tab0 AS cor0
----
305

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT ALL + + 96 + - 60 DIV - 30 AS col2 FROM tab0 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL + + 96 + - 60 / - 30 AS col2 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4912
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 80 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 80 AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 33 * col2 col0 FROM tab0 cor0
----
-1551
-3267
-330

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + col0 BETWEEN - 67 AND + 80
----
51
14
96

query I rowsort
SELECT ALL + col1 * - 92 + + 70 AS col2 FROM tab1 AS cor0
----
-1218
-390
-4254

query I rowsort
SELECT ALL col1 * + 60 * - 88 - + + ( - 6 ) * col1 AS col2 FROM tab0
----
-110754
-427194
-5274

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL COUNT( * ) * + 3 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL COUNT ( * ) * + 3 FROM tab2
----
9

query I rowsort
SELECT DISTINCT - + 21 AS col2 FROM tab2 WHERE NOT - - col0 + - 9 * + - col2 NOT IN ( + + 25 + + col2, + 17 * + 27 + col2 )
----

query I rowsort
SELECT 11 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT - MAX( ALL col2 ) * - 10 FROM tab1 WHERE NOT + 86 IS NULL
----
960

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT - MAX ( ALL col2 ) * - 10 FROM tab1 WHERE NOT + 86 IS NULL
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL COUNT( DISTINCT - 68 ) * COUNT( DISTINCT - - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL COUNT ( DISTINCT - 68 ) * COUNT ( DISTINCT - - col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + MAX( ALL 32 ) * + COUNT( DISTINCT - - 37 ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-4922
SELECT + MAX ( ALL 32 ) * + COUNT ( DISTINCT - - 37 ) FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT ALL + SUM( DISTINCT - col2 ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
-223
3

skipif mysql # not compatible
query II rowsort label-4923
SELECT ALL + SUM ( DISTINCT - col2 ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
-223
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 <> - + col2 + + 80
----

query I rowsort
SELECT ALL + 77 AS col0 FROM tab1
----
77
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4926
SELECT DISTINCT + + 42 AS col2, COUNT( * ) col0 FROM tab0 AS cor0
----
42
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4926
SELECT DISTINCT + + 42 AS col2, COUNT ( * ) col0 FROM tab0 AS cor0
----
42
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4927
SELECT DISTINCT - + 9, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9
-3

skipif mysql # not compatible
query II rowsort label-4927
SELECT DISTINCT - + 9, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9
-3

query II rowsort
SELECT ALL - col2, col0 + + - col0 AS col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 2 - - 48, col0, - col0 * - + 58, - - col0 * + col0, + 16, - 45 - - + col0 - - ( + col2 ), + ( + col1 ) * - col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * + - col2 > 85 * + col2 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT ALL - col2 DIV 90 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL - col2 / 90 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT 37 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND ( - ( - - 18 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4933
SELECT DISTINCT 8 * - MAX( DISTINCT + + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT 8 * - MAX ( DISTINCT + + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4934
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - 23 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - 23 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 * + col2 + - col1 + - col2 + + + 14 * - + col2 + - 64 AS col2, + 38 + - col1 * - col2 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + - + 96 AS col0 FROM tab2
----
-147
-163
-173

query I rowsort
SELECT + 66 + + 18 - col2 AS col2 FROM tab2
----
26
44
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col0 ) + - col2 col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT 27 + col2 FROM tab1
----
123
86
95

query I rowsort
SELECT ALL + col0 + + 67 + - 84 + + - col1 * + col0 + col2 * col2 * + 52 FROM tab0
----
113651
3443
509635

query I rowsort
SELECT col2 * + + col1 + + 99 AS col2 FROM tab2
----
1272
3179
3985

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + 9 * + 46 + - + MIN( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT + 9 * + 46 + - + MIN ( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT ALL - col1 + + 33 + col2 + + col2 + col1 DIV - + col1 FROM tab1
----
121
145
210

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - col1 + + 33 + col2 + + col2 + col1 / - + col1 FROM tab1
----
121
145
210

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL - MIN( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL - MIN ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
99

query I rowsort
SELECT ALL + 26 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 37 * col2 FROM tab0 AS cor0 WHERE NOT + 72 IS NOT NULL
----

query I rowsort
SELECT 24 * - 83 FROM tab0
----
-1992
-1992
-1992

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + - 50 AS col1 FROM tab1
----
1
35
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL + MIN( - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + MIN ( - col0 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4951
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT DISTINCT + MAX( col2 ) + + - MIN( ALL col2 ) FROM tab1 cor0
----
37

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + MAX ( col2 ) + + - MIN ( ALL col2 ) FROM tab1 cor0
----
37

query I rowsort
SELECT DISTINCT - 88 * + 41 - + col1 AS col1 FROM tab0 AS cor0
----
-3609
-3629
-3689

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col2 FROM tab2 AS cor0
----
57
57
57

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 13 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT + ( - - CAST( NULL AS SIGNED ) ) * ( col2 ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4957
SELECT + ( - - CAST ( NULL AS INTEGER ) ) * ( col2 ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN + col2 * + + col0 AND 53 + + - 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT ALL + CAST( NULL AS SIGNED ) * - + 29 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 29 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL MAX( ALL - - 68 ) AS col2 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL MAX ( ALL - - 68 ) AS col2 FROM tab0
----
68

query I rowsort
SELECT DISTINCT 4 * + - ( - col0 ) AS col1 FROM tab1
----
204
340
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT - col1 * - - CAST( 36 AS SIGNED ) AS col0 FROM tab0
----
-2916
-36
-756

skipif mysql # not compatible
query I rowsort label-4962
SELECT - col1 * - - CAST ( 36 AS INTEGER ) AS col0 FROM tab0
----
-2916
-36
-756

query I rowsort
SELECT ALL col0 * - - 1 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 22 - - 24 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT DISTINCT 55 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
2
55

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT 55 / + col1 AS col0 FROM tab0 AS cor0
----
0
2
55

query I rowsort
SELECT + 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT col0 * col0 + + col1 * col1 FROM tab0 WHERE NULL IS NULL
----
6786
8010
9410

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4968
SELECT + col2 AS col0, - CAST( NULL AS SIGNED ), col0 * - 75 + + CAST( NULL AS SIGNED ) / - 93 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4968
SELECT + col2 AS col0, - CAST ( NULL AS INTEGER ), col0 * - 75 + + CAST ( NULL AS INTEGER ) / - 93 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4969
SELECT DISTINCT + col2 + col0 * - col0 + CAST( + + col2 AS SIGNED ), col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( col2, - 30 + col2 )
----

skipif mysql # not compatible
query II rowsort label-4969
SELECT DISTINCT + col2 + col0 * - col0 + CAST ( + + col2 AS INTEGER ), col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( col2, - 30 + col2 )
----

query I rowsort
SELECT - col1 + + col0 + - + 48 * + col0 FROM tab0 cor0
----
-4110
-4560
-786

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 + + col2 - - 12 <> NULL
----

query I rowsort
SELECT + 91 + + col0 AS col1 FROM tab0 AS cor0
----
106
178
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * + col2 col0 FROM tab2 AS cor0
----
1541
2680
3886

query I rowsort
SELECT - ( - - 56 ) FROM tab1 AS cor0 WHERE 7 * + col2 IS NOT NULL
----
-56
-56
-56

query I rowsort
SELECT ALL + + 55 + - 49 AS col1 FROM tab1 AS cor0 WHERE NOT ( 90 IS NULL )
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4976
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT DISTINCT - - ( - + COUNT( * ) ) * CAST( - MAX( DISTINCT col1 ) AS SIGNED ) - - COUNT( * ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT - - ( - + COUNT ( * ) ) * CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) - - COUNT ( * ) FROM tab1 AS cor0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4978
SELECT ALL * FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - ( - + col1 ) AND + 50 * 88
----

skipif mysql # not compatible
query III rowsort label-4978
SELECT ALL * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - ( - + col1 ) AND + 50 * 88
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL + COUNT( * ) + - 85 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL + COUNT ( * ) + - 85 FROM tab0 AS cor0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4981
SELECT ALL + MIN( DISTINCT + - ( - + col2 ) ) DIV COUNT( ALL + - col0 ) AS col1 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL + MIN ( DISTINCT + - ( - + col2 ) ) / COUNT ( ALL + - col0 ) AS col1 FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT 56 + COUNT( * ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT 56 + COUNT ( * ) FROM tab2
----
59

query III rowsort
SELECT * FROM tab2 WHERE col1 * 26 / - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col2 FROM tab0
----
43

query I rowsort
SELECT DISTINCT - col0 + 76 FROM tab2
----
1
12
30

query II rowsort
SELECT + 56 AS col1, + col0 FROM tab1
----
56
51
56
85
56
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT + + 62 + col1 DIV - col0 * 39 AS col0 FROM tab1 cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-4987
SELECT + + 62 + col1 / - col0 * 39 AS col0 FROM tab1 cor0
----
62
62
62

query I rowsort
SELECT + 42 + 73 FROM tab0 AS cor0
----
115
115
115

query I rowsort
SELECT - col1 + ( - 57 ) AS col2 FROM tab0
----
-138
-58
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT - col1 * col2 / + col2 + + col1 + - col2 + ( + 8 ) / + col2 / col2 + col2 + + col2 NOT BETWEEN NULL AND 23 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col1 * col2 / + col2 + + col1 + - col2 + ( + 8 ) / + col2 / col2 + col2 + + col2 NOT BETWEEN NULL AND 23 * - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL COUNT( * ) + + 4 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL COUNT ( * ) + + 4 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL COUNT( * ) FROM tab0 WHERE ( col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL COUNT ( * ) FROM tab0 WHERE ( col2 IS NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + 92
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4994
SELECT + CAST( 21 AS SIGNED ) AS col2, + col0 DIV ( + - 83 ) AS col1 FROM tab1 AS cor0
----
21
-1
21
-1
21
0

skipif mysql # not compatible
query II rowsort label-4994
SELECT + CAST ( 21 AS INTEGER ) AS col2, + col0 / ( + - 83 ) AS col1 FROM tab1 AS cor0
----
21
-1
21
-1
21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4995
SELECT + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4996
SELECT ALL + + ( COUNT( * ) ) AS col0, 31 col1 FROM tab2 AS cor0
----
3
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4996
SELECT ALL + + ( COUNT ( * ) ) AS col0, 31 col1 FROM tab2 AS cor0
----
3
31

query I rowsort
SELECT ALL - 66 AS col0 FROM tab1 cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - 11 * - + col2 FROM tab1 WHERE NOT + col2 * col2 + + + col0 + - 43 + - + 96 IS NOT NULL
----

query I rowsort
SELECT ALL 95 AS col2 FROM tab2
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col2 ) col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - 19 * - col2 AS col2 FROM tab0
----
1881
190
893

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT - CAST( NULL AS SIGNED ) * - col1 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT - CAST ( NULL AS INTEGER ) * - col1 * col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 50
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 53 + - 75 AS col0 FROM tab1
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * + col1 * + ( - + 22 ) col1 FROM tab1
----
19646
2090
5852

query I rowsort
SELECT - - ( + 12 ) * + + 85 AS col0 FROM tab2 AS cor0
----
1020
1020
1020

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT DISTINCT + 30 * + col2 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
1329
279
2969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 70 * - 16 + - - col1 * + - col1 + + + ( + + 24 ) col2, 18 FROM tab0 AS cor0
----
-1097
18
-1537
18
-7657
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT - 73 + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5013
SELECT - 73 + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5014
SELECT ALL COUNT( * ) DIV MAX( ALL 35 ) * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL COUNT ( * ) / MAX ( ALL 35 ) * + COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * 58 IS NULL
----

query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab1
----
97

query II rowsort
SELECT + col0 + - col2 * - - col0 - + col0 - - 1 AS col0, 5 AS col2 FROM tab0
----
-704
5
-869
5
-9602
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT DISTINCT - col1 + - + CAST( 4 AS SIGNED ) AS col1 FROM tab0
----
-25
-5
-85

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT - col1 + - + CAST ( 4 AS INTEGER ) AS col1 FROM tab0
----
-25
-5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT - - col2 * - 10 * + + 7 - - CAST( + + ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-4071
-4692
-6624

skipif mysql # not compatible
query I rowsort label-5019
SELECT - - col2 * - 10 * + + 7 - - CAST ( + + ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-4071
-4692
-6624

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE - col1 / + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL - 17 - + COUNT( * ) FROM tab0 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - 17 - + COUNT ( * ) FROM tab0 cor0
----
-20

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT COUNT( ALL 14 ) DIV + SUM( DISTINCT - 3 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5023
SELECT COUNT ( ALL 14 ) / + SUM ( DISTINCT - 3 ) FROM tab0
----
-1

query I rowsort
SELECT ALL + col1 + + - col2 + + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-97
115
32

query I rowsort
SELECT - - 85 AS col2 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5026
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( 32 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5026
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( 32 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT DISTINCT 4 DIV - col2 + + - col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE - 66 <= col1
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT 4 / - col2 + + - col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE - 66 <= col1
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col0 FROM tab0
----
44
44
44

query I rowsort
SELECT ALL - 38 * 52 + col2 AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-1880
-1908
-1917

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT MAX( - + col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5030
SELECT MAX ( - + col0 ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * - col2, + col0, col1 + - col2 + + 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL COUNT( * ) + COUNT( * ) * - MAX( - 30 ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL COUNT ( * ) + COUNT ( * ) * - MAX ( - 30 ) FROM tab1
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT - 80 + + + col1 FROM tab1 AS cor0
----
-33
-66
-75

query I rowsort
SELECT DISTINCT 24 * - col2 * + col2 * + col0 + + + 83 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2457517
-583933
-6055117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col2 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT 99 DIV - col1 FROM tab0
----
-1
-4
-99

skipif mysql # not compatible
query I rowsort label-5039
SELECT 99 / - col1 FROM tab0
----
-1
-4
-99

query II rowsort
SELECT col0 - + col1 AS col1, col2 FROM tab0
----
-66
47
66
10
96
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5041
SELECT ALL - CAST( - + col2 AS SIGNED ) - ( col0 ) AS col1 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL - CAST ( - + col2 AS INTEGER ) - ( col0 ) AS col1 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT DISTINCT - - SUM( DISTINCT col2 ) - - COUNT( * ) FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT - - SUM ( DISTINCT col2 ) - - COUNT ( * ) FROM tab1 AS cor0
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5043
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5043
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT - col2 + col2 + + ( - col0 ) + col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT + col1 DIV - col1 + + + col1 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-5046
SELECT + col1 / - col1 + + + col1 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT DISTINCT MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab2 cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT ALL 40 DIV col1 FROM tab1
----
0
2
8

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL 40 / col1 FROM tab1
----
0
2
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 17 ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL + ( - MIN( ALL + col2 ) ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + ( - MIN ( ALL + col2 ) ) AS col2 FROM tab0
----
-10

query II rowsort
SELECT col2, - col1 AS col2 FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT col1 * - ( col1 ) FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT 27 * 75 * col0 AS col2 FROM tab1
----
103275
172125
184275

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 WHERE NOT NULL BETWEEN 89 / + col1 + - - col0 + + col2 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 WHERE NOT NULL BETWEEN 89 / + col1 + - - col0 + + col2 AND NULL
----
0

query I rowsort
SELECT col0 * + col2 + ( 41 ) FROM tab1 AS cor0
----
4937
5056
6229

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN + - col2 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col2 FROM tab2
----
16
16
16

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <> ( - col1 + + col0 * + col2 )
----

query I rowsort
SELECT DISTINCT 99 * + col2 + + col1 AS col2 FROM tab1
----
5846
6779
9518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * col2 col1 FROM tab1
----
5369
6188
8736

query I rowsort
SELECT col1 - - 81 FROM tab2
----
132
148
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL COUNT( col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL COUNT ( col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL 69 * - 30 FROM tab0 WHERE NOT ( NULL ) > ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE 50 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + MAX( col0 ) + 89 AS col2 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-5068
SELECT + MAX ( col0 ) + 89 AS col2 FROM tab0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5069
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT MAX( - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5070
SELECT MAX ( - col1 ) FROM tab1
----
-5

query I rowsort
SELECT ALL + col2 * 13 FROM tab0
----
1287
130
611

query III rowsort
SELECT * FROM tab2 WHERE + 22 + + 46 * - 17 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5073
SELECT ALL 24 FROM tab1 WHERE 35 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL 24 FROM tab1 WHERE 35 IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 52 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT DISTINCT - col0 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - col0 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL SUM( + col2 ) AS col0 FROM tab1 WHERE NULL <> - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL SUM ( + col2 ) AS col0 FROM tab1 WHERE NULL <> - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT DISTINCT - CAST( ( col1 ) AS SIGNED ) + - ( + col0 ) FROM tab0 WHERE NULL IS NULL
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT - CAST ( ( col1 ) AS INTEGER ) + - ( + col0 ) FROM tab0 WHERE NULL IS NULL
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 IN ( col2 )
----

query I rowsort
SELECT + col1 * - ( ( col0 ) * - col0 ) AS col1 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT ALL ( + ( col2 ) ) AS col0 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE - ( col2 ) + - ( - col1 ) * 17 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 82 - - 33 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 18 + + col2 ) = NULL
----

query I rowsort
SELECT ( + col1 ) * - col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT + ( + 84 ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ( ( + COUNT( * ) ) ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5088
SELECT ( ( + COUNT ( * ) ) ) * + COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT ALL + ( col1 ) * col1 AS col2 FROM tab1
----
196
2209
25

query III rowsort
SELECT * FROM tab2 WHERE - col2 < - 29
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT - COUNT( * ) * 52 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT - COUNT ( * ) * 52 FROM tab1
----
-156

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( 2 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT DISTINCT col0 DIV + 58 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT col0 / + 58 FROM tab2
----
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( col0 + 3 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5096
SELECT DISTINCT - COUNT( ALL + col1 ) DIV 25 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT - COUNT ( ALL + col1 ) / 25 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( + 65 + 66 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 67 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT - MAX( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5100
SELECT - MAX ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 20 * - 81 <= NULL
----

query I rowsort
SELECT 79 * + col2 AS col1 FROM tab0 AS cor0
----
3713
7821
790

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT + + SUM( DISTINCT + 72 ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5103
SELECT + + SUM ( DISTINCT + 72 ) AS col2 FROM tab2 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT 14 DIV + 16 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT 14 / + 16 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 - 8 NOT IN ( - col1 + + 87 )
----

query I rowsort
SELECT DISTINCT 6 * 38 AS col2 FROM tab0 AS cor0
----
228

query I rowsort
SELECT ALL + 81 + col1 AS col1 FROM tab0 cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL + - COUNT( * ) * + SUM( 86 * - col0 ) FROM tab0 AS cor0
----
51342

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + - COUNT ( * ) * + SUM ( 86 * - col0 ) FROM tab0 AS cor0
----
51342

query I rowsort
SELECT DISTINCT 18 * - col0 FROM tab0
----
-1566
-1746
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT DISTINCT AVG ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT AVG ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 60 + - col0 )
----

query I rowsort
SELECT ALL + 92 + - col1 + - col2 FROM tab1
----
-18
-23
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT COUNT( col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5113
SELECT COUNT ( col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ( SUM( ALL - 20 ) ) AS col2 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-5114
SELECT ( SUM ( ALL - 20 ) ) AS col2 FROM tab2
----
-60

query I rowsort
SELECT col0 * - 47 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2397
-3995
-4277

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT - COUNT( + + col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5117
SELECT - COUNT ( + + col2 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT col0 IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 85 col1 FROM tab0 AS cor0
----
85
85
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - col1 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT - ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 16 <= NULL
----

query I rowsort
SELECT - + col0 + + - col0 * 72 FROM tab2 AS cor0
----
-3358
-4672
-5475

query I rowsort
SELECT col1 + + 42 AS col2 FROM tab1
----
47
56
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 86 + + col1 col2 FROM tab2
----
-1927
-3363
-4921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5126
SELECT ALL + COUNT( * ) + + 55 + - CAST( NULL AS DECIMAL ) + + CAST( - COUNT( col2 ) AS SIGNED ) / + ( + 25 * ( COUNT( * ) * COUNT( * ) ) - COUNT( DISTINCT 45 ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + COUNT ( * ) + + 55 + - CAST ( NULL AS REAL ) + + CAST ( - COUNT ( col2 ) AS INTEGER ) / + ( + 25 * ( COUNT ( * ) * COUNT ( * ) ) - COUNT ( DISTINCT 45 ) ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT col2, - col0 AS col1 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query II rowsort
SELECT DISTINCT - 4 AS col1, - col2 * - - col0 AS col1 FROM tab0 AS cor0
----
-4
-705
-4
-870
-4
-9603

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT - COUNT( + + col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5130
SELECT - COUNT ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 - + - col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL + - col2 - + - col0 AS col1 FROM tab2 AS cor0
----
17
23
24

query II rowsort
SELECT ALL - + col0, col1 * col1 + 53 AS col2 FROM tab2 cor0
----
-46
2654
-64
5982
-75
4542

query I rowsort
SELECT DISTINCT 28 * - col0 FROM tab1
----
-1428
-2380
-2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5135
SELECT + SUM( DISTINCT 52 ) FROM tab0 WHERE - - col0 * + - ( col2 ) * - CAST( + col1 * + ( col1 ) AS SIGNED ) IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-5135
SELECT + SUM ( DISTINCT 52 ) FROM tab0 WHERE - - col0 * + - ( col2 ) * - CAST ( + col1 * + ( col1 ) AS INTEGER ) IS NOT NULL
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT DISTINCT MAX( DISTINCT + + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT MAX ( DISTINCT + + col2 ) AS col0 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5137
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + CAST( NULL AS SIGNED ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-5137
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + CAST ( NULL AS INTEGER ) IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 87 - + + col1 col0 FROM tab2 AS cor0
----
1950
3403
4979

query I rowsort
SELECT + 62 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL COUNT( + - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL COUNT ( + - col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5141
SELECT DISTINCT MAX( ALL - + 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-5141
SELECT DISTINCT MAX ( ALL - + CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL

query I rowsort
SELECT - 43 * + - 33 FROM tab1
----
1419
1419
1419

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5143
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - col1 ) * - col0 ) <= - col2 + CAST( col0 - - col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5143
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - col1 ) * - col0 ) <= - col2 + CAST ( col0 - - col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 43 * + - col1 + - + 18 AS col2 FROM tab0 cor0
----
-3501
-61
-921

query I rowsort
SELECT + 92 * + col1 AS col0 FROM tab2 AS cor0
----
4692
6164
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + - ( + - col1 ) * col0 + + col1 FROM tab2 AS cor0
----
2397
5005
5092

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 BETWEEN - + col2 + - + col1 AND ( - 45 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 43 - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 33 + - col2 AS col2 FROM tab2
----
-56
-73
-91

query II rowsort
SELECT + col2 + + 56 + col2 * + 53, col2 AS col1 FROM tab0
----
2594
47
5402
99
596
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( col2 - + ( - col2 ) ) AND + col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT COUNT( * ) + + 69 AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-5154
SELECT COUNT ( * ) + + 69 AS col1 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT COUNT( * ) + + 24 AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5155
SELECT COUNT ( * ) + + 24 AS col2 FROM tab0
----
27

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL + COUNT( * ) * COUNT( * ) * - 75 FROM tab2
----
-675

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL + COUNT ( * ) * COUNT ( * ) * - 75 FROM tab2
----
-675

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5158
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5158
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND - CAST ( NULL AS REAL )
----

query I rowsort
SELECT - col2 * + 90 FROM tab0 AS cor0
----
-4230
-8910
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL + MIN( col2 ) AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL + MIN ( col2 ) AS col0 FROM tab2 cor0
----
23

query I rowsort
SELECT - col0 * - 1 AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5162
SELECT - CAST( NULL AS DECIMAL ) - + col2 - + 7 * - + col0 + col1 + + col0 + + - col0 * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT - CAST ( NULL AS REAL ) - + col2 - + 7 * - + col0 + col1 + + col0 + + - col0 * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 * + - col0 / 7 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT DISTINCT + CAST( col1 AS SIGNED ) - + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + CAST ( col1 AS INTEGER ) - + col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + + + col1 + + col2 FROM tab0 AS cor0
----
-56
113
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + col0 + - col2 IN ( - col2 )
----

query I rowsort
SELECT + + 93 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 7
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( + col1 ) / - 84 - col1 * col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 66 + + + 33 + - + col2 AS col2 FROM tab2 AS cor0
----
-56
-73
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5170
SELECT DISTINCT MIN( - col2 ) AS col0, - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 * - + 9 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5170
SELECT DISTINCT MIN ( - col2 ) AS col0, - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 * - + 9 IS NOT NULL
----
NULL
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 + + ( + col1 ) <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5172
SELECT ( - SUM( - 32 ) ) + ( CAST( + + 17 AS SIGNED ) ) FROM tab0 cor0
----
113

skipif mysql # not compatible
query I rowsort label-5172
SELECT ( - SUM ( - 32 ) ) + ( CAST ( + + 17 AS INTEGER ) ) FROM tab0 cor0
----
113

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5174
SELECT COUNT( DISTINCT - 39 ) AS col2 FROM tab2 WHERE - col0 - col0 * + col2 * 98 <> 34 * - + 23 - col2 OR - CAST( NULL AS SIGNED ) > ( + col2 * + col1 + + col0 )
----
1

skipif mysql # not compatible
query I rowsort label-5174
SELECT COUNT ( DISTINCT - 39 ) AS col2 FROM tab2 WHERE - col0 - col0 * + col2 * 98 <> 34 * - + 23 - col2 OR - CAST ( NULL AS INTEGER ) > ( + col2 * + col1 + + col0 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT - 20 DIV + + col0 col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT - 20 / + + col0 col1 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 87 ) col2 FROM tab1
----
-87
-87
-87

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + ( - col0 ) AND ( NULL )
----

query I rowsort
SELECT col0 * - 47 AS col1 FROM tab0
----
-4089
-4559
-705

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT + - 6 * COUNT( * ) FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT + - 6 * COUNT ( * ) FROM tab1 cor0
----
-18

query I rowsort
SELECT + col0 * - + ( col0 ) FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT ALL - + 12 FROM tab2 AS cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col1, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - - col0, col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5186
SELECT ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5187
SELECT - COUNT( * ), - 8 DIV + - 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5187
SELECT - COUNT ( * ), - 8 / + - 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < NULL
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT DISTINCT - + col1 * - 82 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT - + col1 * - 82 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col1 FROM tab2 AS cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IN ( + 99 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + 41 FROM tab2 AS cor0
----
108
118
92

query I rowsort
SELECT col0 * - ( - col2 ) + + col1 + col2 * - 79 AS col2 FROM tab2 cor0
----
-165
-523
-708

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT 3 + - MIN( - + col1 ) AS col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5193
SELECT 3 + - MIN ( - + col1 ) AS col0 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT - COUNT( + - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - COUNT ( + - col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + - 77 * - - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-200277
-556325
-637637

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT - col2 DIV - col0 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5196
SELECT - col2 / - col0 + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT DISTINCT + col0 DIV + + col0 + col1 DIV - col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT + col0 / + + col0 + col1 / - col2 FROM tab1
----
1

query I rowsort
SELECT ALL + 96 + + col1 AS col0 FROM tab0
----
117
177
97

query I rowsort
SELECT DISTINCT - ( - 20 ) * 97 AS col1 FROM tab0 WHERE ( - + col2 ) IS NULL
----

query I rowsort
SELECT ALL col0 + + + col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5201
SELECT DISTINCT COUNT( * ) DIV 4 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5201
SELECT DISTINCT COUNT ( * ) / 4 col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT SUM( + - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5202
SELECT SUM ( + - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT ALL - col1 DIV + - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - col1 / + - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col1 + + + 81 + - 85 FROM tab2 AS cor0
----
47
63
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL - COUNT( * ) * 21 col2 FROM tab2
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5206
SELECT ALL - COUNT ( * ) * 21 col2 FROM tab2
----
-63

query II rowsort
SELECT ALL col1, col2 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT DISTINCT + col0 AS col1, 57 FROM tab1
----
51
57
85
57
91
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT SUM( DISTINCT + + 18 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-5209
SELECT SUM ( DISTINCT + + 18 ) FROM tab1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5210
SELECT 25 DIV 28 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5210
SELECT 25 / 28 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL + - 23 + + COUNT( * ) - + - COUNT( * ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL + - 23 + + COUNT ( * ) - + - COUNT ( * ) FROM tab2 AS cor0
----
-17

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( col1 * - + 30 / - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + ( + - col1 ) + - col0 col1 FROM tab1 AS cor0
----
-1395
-3287
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 19 ) col2 FROM tab1 AS cor0
----
19
19
19

query II rowsort
SELECT - - col0 * + col0 - - col1 * col2 AS col1, + col2 FROM tab2 cor0
----
3289
23
7176
40
9511
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5216
SELECT ALL + + 42, MIN( - 46 ) AS col1 FROM tab2 AS cor0
----
42
-46

skipif mysql # not compatible
query II rowsort label-5216
SELECT ALL + + 42, MIN ( - 46 ) AS col1 FROM tab2 AS cor0
----
42
-46

query I rowsort
SELECT 43 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - 49 * + - COUNT( * ) FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-5218
SELECT - 49 * + - COUNT ( * ) FROM tab1
----
147

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - MIN( ALL + + 94 ) * + 77 col0 FROM tab0 AS cor0
----
-7238

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5220
SELECT - MIN ( ALL + + 94 ) * + 77 col0 FROM tab0 AS cor0
----
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT - MAX( - 20 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5221
SELECT - MAX ( - 20 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
60

query II rowsort
SELECT DISTINCT - + ( + 30 ) AS col1, 24 + - col2 + - + col1 + - + col0 * - 48 AS col1 FROM tab1 AS cor0
----
-30
2362
-30
4040
-30
4277

query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab1 AS cor0 WHERE NOT col1 - col2 IS NULL
----
92

query I rowsort
SELECT ALL + - 84 AS col2 FROM tab0 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL - MAX( ALL - - 81 ) AS col0 FROM tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL - MAX ( ALL - - 81 ) AS col0 FROM tab2 cor0
----
-81

query II rowsort
SELECT DISTINCT + 93, col0 FROM tab2
----
93
46
93
64
93
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * + 2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) * + 2 FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= 56
----

query I rowsort
SELECT ALL col1 + + - ( - col2 ) FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 87 ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT MIN( ( - - 19 ) ) * COUNT( ALL + col2 ) * - MAX( - col0 ) col1 FROM tab1
----
2907

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5231
SELECT MIN ( ( - - 19 ) ) * COUNT ( ALL + col2 ) * - MAX ( - col0 ) col1 FROM tab1
----
2907

query I rowsort
SELECT ALL 40 + + col2 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-3500
-4652
-9272

query II rowsort
SELECT ALL 87 AS col2, col2 + - col0 AS col0 FROM tab0 AS cor0
----
87
-77
87
2
87
32

query I rowsort
SELECT ALL - col0 * 48 AS col0 FROM tab2 AS cor0
----
-2208
-3072
-3600

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT NULL BETWEEN NULL AND ( NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT DISTINCT + COUNT( * ) + - MAX( + col0 ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT + COUNT ( * ) + - MAX ( + col0 ) FROM tab0 AS cor0
----
-94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < - + col1
----

query I rowsort
SELECT + col1 + - + col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * - col0 * - - 12 + - col2 + 4 + - + col2 AS col2 FROM tab2
----
28110
59060
60188

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT col2 DIV + - 65 * - col1 + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5240
SELECT col2 / + - 65 * - col1 + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + ( - col1 ) + - col0 - + 79 * + col0 AS col2 FROM tab1
----
-4094
-6805
-7327

query I rowsort
SELECT col2 + col1 + - col1 AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT - 53 + - 17 AS col0 FROM tab1
----
-70
-70
-70

query I rowsort
SELECT DISTINCT ( - - col0 ) + + 79 + + - col2 FROM tab1
----
102
105
34

query I rowsort
SELECT ALL 41 + - + col1 AS col2 FROM tab0
----
-40
20
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT DISTINCT + col1 DIV + - col1 + - + 77 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT + col1 / + - col1 + - + 77 FROM tab2
----
-78

query I rowsort
SELECT 69 + 63 * 33 FROM tab1
----
2148
2148
2148

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 16 IS NOT NULL
----

query I rowsort
SELECT ALL + + 47 - - col1 + - 87 FROM tab1 cor0
----
-26
-35
7

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - + col1 * - 18 AS col0 FROM tab1 cor0
----
252
846
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5252
SELECT ALL - - ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) * 84 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - - ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) * 84 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + 3 AS col1 FROM tab1
----
153
255
273

query I rowsort
SELECT ALL col2 * + + ( + - 98 ) FROM tab0
----
-4606
-9702
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT - COUNT( * ) + 8 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-1

skipif mysql # not compatible
query I rowsort label-5255
SELECT - COUNT ( * ) + 8 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-1

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT - 13 DIV + + col2 - - - col0 + + - 88 AS col1 FROM tab1
----
-139
-173
-179

skipif mysql # not compatible
query I rowsort label-5257
SELECT - 13 / + + col2 - - - col0 + + - 88 AS col1 FROM tab1
----
-139
-173
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT - + SUM( ALL + - 40 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
360

skipif mysql # not compatible
query I rowsort label-5258
SELECT - + SUM ( ALL + - 40 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col1 FROM tab0, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL + 86 * col0 * + col1 AS col1 FROM tab2
----
201756
423808
432150

query II rowsort
SELECT - - 60 * - + col2, col0 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT COUNT( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5262
SELECT COUNT ( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 * col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5263
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / - col2 IN ( - col1, + col1, + col2 * - + CAST( NULL AS SIGNED ) * - col1 - + col0, + col1 )
----

skipif mysql # not compatible
query III rowsort label-5263
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / - col2 IN ( - col1, + col1, + col2 * - + CAST ( NULL AS INTEGER ) * - col1 - + col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - - COUNT( + col0 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5264
SELECT - - COUNT ( + col0 ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + col0
----

query I rowsort
SELECT ALL col1 * 39 FROM tab2
----
1989
2613
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT DISTINCT + COUNT( * ) * 35 col0 FROM tab1
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5267
SELECT DISTINCT + COUNT ( * ) * 35 col0 FROM tab1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5268
SELECT 78, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
78
NULL
78
NULL
78
NULL

skipif mysql # not compatible
query II rowsort label-5268
SELECT 78, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
78
NULL
78
NULL
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT + MIN( ALL + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab2
----
46

query II rowsort
SELECT DISTINCT + col1 AS col0, col1 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT ALL col1, - 86 FROM tab1
----
14
-86
47
-86
5
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5272
SELECT ALL 77, - 50 * - COUNT( * ) AS col2 FROM tab2
----
77
150

skipif mysql # not compatible
query II rowsort label-5272
SELECT ALL 77, - 50 * - COUNT ( * ) AS col2 FROM tab2
----
77
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col0 FROM tab1 cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL COUNT( + - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL COUNT ( + - col2 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + col2 AS col0, - ( - + 42 ) FROM tab2 AS cor0
----
23
42
40
42
58
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT - col2 * - - col2 + - - col2 AS col1 FROM tab0 WHERE NOT + col1 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
-2162
-90
-9702

skipif mysql # not compatible
query I rowsort label-5278
SELECT - col2 * - - col2 + - - col2 AS col1 FROM tab0 WHERE NOT + col1 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-2162
-90
-9702

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 62 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col2 - + - col2 + col0 FROM tab2 cor0
----
1242
3184
4019

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT - + MIN( - 25 ) AS col0 FROM tab1 cor0
----
25

skipif mysql # not compatible
query I rowsort label-5281
SELECT - + MIN ( - 25 ) AS col0 FROM tab1 cor0
----
25

query II rowsort
SELECT ALL ( 93 ) AS col0, + col0 AS col1 FROM tab2 AS cor0
----
93
46
93
64
93
75

query I rowsort
SELECT + 60 FROM tab0 WHERE NULL <> + - col1 * col1
----

query I rowsort
SELECT ALL - col2 * + 25 FROM tab2
----
-1000
-1450
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT - + CAST( - col1 AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5285
SELECT - + CAST ( - col1 AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5286
SELECT + COUNT( - - col0 ), - COUNT( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5286
SELECT + COUNT ( - - col0 ), - COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL COUNT( * ) - - 51 + - COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL COUNT ( * ) - - 51 + - COUNT ( * ) FROM tab0
----
51

query I rowsort
SELECT col1 * + col0 * col1 + - col2 * - col2 FROM tab1 AS cor0
----
19212
205643
5606

query I rowsort
SELECT 19 + - col1 * - + ( + + col0 ) + + col1 - - + col1 * - 13 FROM tab2 AS cor0
----
1753
4023
4240

query I rowsort
SELECT ALL - 45 + col2 FROM tab1 AS cor0 WHERE - col2 + - col1 IS NOT NULL
----
14
23
51

query I rowsort
SELECT + col0 * + col0 + + - col2 * - 2 AS col2 FROM tab2 AS cor0
----
2162
4176
5741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT ALL ( + CAST( NULL AS SIGNED ) ) - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL 51 * + COUNT( ALL col0 ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL 51 * + COUNT ( ALL col0 ) FROM tab0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - 38 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5297
SELECT DISTINCT 36 DIV + col2 AS col2, - ( + - col2 ) + + - col2 + - 70 + - 75 * + col0 AS col0 FROM tab2
----
0
-4870
0
-5695
1
-3520

skipif mysql # not compatible
query II rowsort label-5297
SELECT DISTINCT 36 / + col2 AS col2, - ( + - col2 ) + + - col2 + - 70 + - 75 * + col0 AS col0 FROM tab2
----
0
-4870
0
-5695
1
-3520

query I rowsort
SELECT DISTINCT col0 * + 99 AS col0 FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL - - MAX( ALL + - 81 ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL - - MAX ( ALL + - 81 ) FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL + + 74 * SUM( DISTINCT 74 ) FROM tab0 AS cor0
----
5476

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + + 74 * SUM ( DISTINCT 74 ) FROM tab0 AS cor0
----
5476

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT - MAX( + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5301
SELECT - MAX ( + col1 ) AS col1 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > col0 * + - ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + col2 ), col1 col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE ( NOT - ( + col2 ) - + 84 <> NULL )
----

query I rowsort
SELECT - + 39 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 82
----

query II rowsort
SELECT + col2 / - - col0 / col0 * + + col2 + col0 + - + 21 * - col2 * + - 54 / + col0, - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 + col0 * + col2 * + 67 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT DISTINCT - 52 DIV - col0 AS col1 FROM tab0 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT - 52 / - col0 AS col1 FROM tab0 cor0
----
0
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - col2 / col2 * - 31 * col0 IS NOT NULL
----

query I rowsort
SELECT 14 * - col1 * - - col1 FROM tab1
----
-2744
-30926
-350

onlyif mysql # DIV for integer division: 
query I rowsort label-5310
SELECT DISTINCT col0 DIV - 29 col1 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5310
SELECT DISTINCT col0 / - 29 col1 FROM tab1
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + COUNT( DISTINCT + col1 ) * 0 * 36 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT + COUNT ( DISTINCT + col1 ) * 0 * 36 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT DISTINCT - 58 * ( COUNT( ALL - 43 ) ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT - 58 * ( COUNT ( ALL - 43 ) ) FROM tab1
----
-174

query I rowsort
SELECT + - 86 * + + col0 FROM tab2 cor0
----
-3956
-5504
-6450

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5314
SELECT DISTINCT + col2 FROM tab1 WHERE ( CAST( NULL AS DECIMAL ) * + col1 BETWEEN NULL AND + col2 / + 17 )
----

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT + col2 FROM tab1 WHERE ( CAST ( NULL AS REAL ) * + col1 BETWEEN NULL AND + col2 / + 17 )
----

query II rowsort
SELECT col0 AS col2, + col1 AS col0 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT DISTINCT + COUNT( * ) + + + ( COUNT( * ) ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT + COUNT ( * ) + + + ( COUNT ( * ) ) AS col2 FROM tab1
----
6

query II rowsort
SELECT ALL ( - 72 ) AS col0, - 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 76d076d4ad0d6f659545bbeb561cc88f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL MAX( ALL - col0 ) / - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL MAX ( ALL - col0 ) / - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 * - - col1 + 86 AS col2 FROM tab0 AS cor0
----
1301
183
1913

query I rowsort
SELECT ALL - col2 + + - col1 FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT - 59 * + - 92 + + + col1 DIV - - col2 FROM tab1
----
5428
5428
5428

skipif mysql # not compatible
query I rowsort label-5321
SELECT - 59 * + - 92 + + + col1 / - - col2 FROM tab1
----
5428
5428
5428

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT SUM( DISTINCT - col0 ) * + 0 + - COUNT( * ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5322
SELECT SUM ( DISTINCT - col0 ) * + 0 + - COUNT ( * ) col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT ( + - col0 ) + + col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT col0 + + - 24 FROM tab0
----
-9
63
73

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE - 93 NOT IN ( 12 * + col2 )
----
-59
-68
-96

query II rowsort
SELECT + ( col1 ), 3 AS col0 FROM tab1
----
14
3
47
3
5
3

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5328
SELECT ALL + COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + col1 - 57 AS col2 FROM tab2 AS cor0
----
-2403
-4985
-5082

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 37 <> + col1
----

query I rowsort
SELECT 97 AS col0 FROM tab1 cor0
----
97
97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col2 * + - 28 col1 FROM tab2 AS cor0
----
51
-644
67
-1624
77
-1120

query I rowsort
SELECT - 12 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 92 + col1 BETWEEN 87 AND - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT ALL + SUM( col2 ) * + COUNT( * ) FROM tab2 cor0
----
363

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL + SUM ( col2 ) * + COUNT ( * ) FROM tab2 cor0
----
363

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5338
SELECT DISTINCT - 1 AS col0, COUNT( * ) + 29 AS col0 FROM tab1 AS cor0
----
-1
32

skipif mysql # not compatible
query II rowsort label-5338
SELECT DISTINCT - 1 AS col0, COUNT ( * ) + 29 AS col0 FROM tab1 AS cor0
----
-1
32

query II rowsort
SELECT + col1 AS col2, 86 AS col2 FROM tab2 AS cor0
----
51
86
67
86
77
86

query III rowsort
SELECT ALL * FROM tab0 WHERE - 72 + + ( 68 ) + - 76 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 <= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 94 ), - col0 col1 FROM tab2
----
94
-46
94
-64
94
-75

query II rowsort
SELECT DISTINCT - 32 * - + col1 + col2 * + 80 AS col1, + 65 FROM tab1
----
4880
65
6944
65
8128
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = ( - + 76 ) + col1 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = ( - + 76 ) + col1 + + col0
----
0

query I rowsort
SELECT ALL + ( - 0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 <= - - col2
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - 35 AND NULL
----

query I rowsort
SELECT ALL - 33 * + - 94 AS col1 FROM tab2 AS cor0
----
3102
3102
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT COUNT( - col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5349
SELECT COUNT ( - col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + ( ( - + 14 ) ) * - + col0 AS col0 FROM tab0 cor0
----
1218
1358
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT CAST( - col0 AS SIGNED ) + - - 15 FROM tab2 AS cor0
----
-31
-49
-60

skipif mysql # not compatible
query I rowsort label-5351
SELECT CAST ( - col0 AS INTEGER ) + - - 15 FROM tab2 AS cor0
----
-31
-49
-60

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT ( + COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT ( + COUNT ( * ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL + ( col0 ) * - col1 + + - 1 AS col2 FROM tab0
----
-1216
-1828
-98

query I rowsort
SELECT DISTINCT 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL - col2 * - col0 + col1 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT - + col0 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT - MAX( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT - MAX ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + col0 * + col0 * + 17 FROM tab2 cor0
----
35972
69632
95625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT - + 96 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT - + 96 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT ALL SUM( ALL + col1 ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5364
SELECT ALL SUM ( ALL + col1 ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

query I rowsort
SELECT + - col0 AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-15
-87
-97

query II rowsort
SELECT ALL + 0, col1 AS col1 FROM tab0
----
0
1
0
21
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT ALL - col0 AS col1 FROM tab2 WHERE - ( + + 83 ) NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL - col0 AS col1 FROM tab2 WHERE - ( + + 83 ) NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL + SUM( ALL + - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL + SUM ( ALL + - col1 ) AS col2 FROM tab2
----
-195

query II rowsort
SELECT DISTINCT col2, + col2 * col0 FROM tab2
----
23
1058
40
2560
58
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT ( 84 ) / + CAST( NULL AS SIGNED ) - + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT ( 84 ) / + CAST ( NULL AS INTEGER ) - + + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5372
SELECT col2 DIV + col1 + col1 + - - col2 AS col1 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-5372
SELECT col2 / + col1 + col1 + - - col2 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT - - 74 + - col0 FROM tab2 AS cor0
----
-1
10
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 65 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col0 + 89 * - + 64 AS col0 FROM tab2 AS cor0
----
-5621
-5632
-5650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5376
SELECT ALL - + 8, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-8
NULL
-8
NULL
-8
NULL

skipif mysql # not compatible
query II rowsort label-5376
SELECT ALL - + 8, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-8
NULL
-8
NULL
-8
NULL

query I rowsort
SELECT col2 + - - 92 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5378
SELECT DISTINCT 79 AS col2, + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
79
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5378
SELECT DISTINCT 79 AS col2, + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
79
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5381
SELECT DISTINCT COUNT( * ) col2, 89 col1 FROM tab1, tab0 AS cor0
----
9
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5381
SELECT DISTINCT COUNT ( * ) col2, 89 col1 FROM tab1, tab0 AS cor0
----
9
89

query I rowsort
SELECT DISTINCT 65 FROM tab1 WHERE + col1 IS NOT NULL
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5383
SELECT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT 62 <> + ( + 26 )
----

skipif mysql # not compatible
query I rowsort label-5383
SELECT + - CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT 62 <> + ( + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT MIN( DISTINCT - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT MIN ( DISTINCT - col1 ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - COUNT( * ) * - 4 AS col2 FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-5385
SELECT - COUNT ( * ) * - 4 AS col2 FROM tab0 cor0
----
12

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL COUNT( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL COUNT ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5388
SELECT 80 DIV col1 FROM tab0 AS cor0
----
0
3
80

skipif mysql # not compatible
query I rowsort label-5388
SELECT 80 / col1 FROM tab0 AS cor0
----
0
3
80

query II rowsort
SELECT - + col2 * - + col1, - col2 AS col2 FROM tab1 AS cor0
----
1344
-96
295
-59
3196
-68

query I rowsort
SELECT DISTINCT - col2 * + 46 AS col0 FROM tab1 AS cor0
----
-2714
-3128
-4416

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT + col2 / + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - ( col1 ) * - col2 AS col2 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - - 44 AS col2 FROM tab2 cor0
----
44

query I rowsort
SELECT col2 + - + col2 + - 29 AS col0 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT ALL col0 * + 90 FROM tab2
----
4140
5760
6750

query I rowsort
SELECT col1 + - + 17 FROM tab1
----
-12
-3
30

query I rowsort
SELECT ALL - ( + col2 ) * 42 * - col2 FROM tab2
----
141288
22218
67200

query I rowsort
SELECT 3 + col0 + - col0 AS col1 FROM tab0
----
3
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT + COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT + COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - ( + 33 ) * + 51 * - 13 AS col2 FROM tab2 AS cor0
----
21879
21879
21879

query II rowsort
SELECT DISTINCT 92 AS col1, col0 FROM tab2 AS cor0
----
92
46
92
64
92
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT DISTINCT - + COUNT( * ) * 84 DIV - COUNT( * ) col1 FROM tab2 cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5402
SELECT DISTINCT - + COUNT ( * ) * 84 / - COUNT ( * ) col1 FROM tab2 cor0
----
84

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5404
SELECT DISTINCT COUNT( * ) + - - CAST( - 51 AS SIGNED ) AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT COUNT ( * ) + - - CAST ( - 51 AS INTEGER ) AS col1 FROM tab1
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-5405
SELECT DISTINCT + col1 DIV - col2 - col0 + 79 AS col2, col0 + - col0 FROM tab2
----
14
0
3
0
31
0

skipif mysql # not compatible
query II rowsort label-5405
SELECT DISTINCT + col1 / - col2 - col0 + 79 AS col2, col0 + - col0 FROM tab2
----
14
0
3
0
31
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT - 49 + 36 DIV + col1 AS col1 FROM tab0 AS cor0
----
-13
-48
-49

skipif mysql # not compatible
query I rowsort label-5406
SELECT - 49 + 36 / + col1 AS col1 FROM tab0 AS cor0
----
-13
-48
-49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + col2 + - 38 - + 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 15 AS col0 FROM tab2 cor0
----
15
15
15

query I rowsort
SELECT 46 + + col2 + + col1 + - col1 * + 38 * + 60 AS col2 FROM tab2
----
-116160
-152589
-175397

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL COUNT( - col2 ) * - 32 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL COUNT ( - col2 ) * - 32 FROM tab0
----
-96

query III rowsort
SELECT * FROM tab0 WHERE ( - ( + - 12 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + - ( + - 42 ) AS col0 FROM tab2
----
-2142
-2814
-3234

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT col1 DIV - - col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5413
SELECT col1 / - - col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) * - col2 + + - col2 AS col0 FROM tab2
----
1560
3306
506

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5415
SELECT col2, CAST( - - 30 AS SIGNED ) FROM tab0
----
10
30
47
30
99
30

skipif mysql # not compatible
query II rowsort label-5415
SELECT col2, CAST ( - - 30 AS INTEGER ) FROM tab0
----
10
30
47
30
99
30

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL NOT BETWEEN + 21 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - MAX( col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5417
SELECT - MAX ( col1 ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT DISTINCT col1, 66 FROM tab1 AS cor0
----
14
66
47
66
5
66

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT - col0 BETWEEN NULL AND + col2
----

query II rowsort
SELECT col1 AS col1, col2 FROM tab1 AS cor0 WHERE NOT col2 IN ( - col1 )
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5421
SELECT - 22 DIV 46 + col0 * 79 - + col0 + - 14 * col1 * + - 84 * - col1 * - 8 AS col2 FROM tab1 AS cor0
----
1847946
20789370
241830

skipif mysql # not compatible
query I rowsort label-5421
SELECT - 22 / 46 + col0 * 79 - + col0 + - 14 * col1 * + - 84 * - col1 * - 8 AS col2 FROM tab1 AS cor0
----
1847946
20789370
241830

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT - - MAX( DISTINCT ( + 28 ) ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5422
SELECT - - MAX ( DISTINCT ( + 28 ) ) FROM tab0 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5423
SELECT - COUNT( * ) AS col0, - 57 FROM tab2 AS cor0
----
-3
-57

skipif mysql # not compatible
query II rowsort label-5423
SELECT - COUNT ( * ) AS col0, - 57 FROM tab2 AS cor0
----
-3
-57

query I rowsort
SELECT DISTINCT - ( - 84 ) AS col2 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT + - 29 * COUNT( * ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5425
SELECT + - 29 * COUNT ( * ) FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - MAX( + + col2 ) col1 FROM tab2 cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5426
SELECT - MAX ( + + col2 ) col1 FROM tab2 cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 73 col1 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5428
SELECT - + 74 AS col1, + SUM( - col1 ) DIV + + 93 FROM tab2 cor0
----
-74
-2

skipif mysql # not compatible
query II rowsort label-5428
SELECT - + 74 AS col1, + SUM ( - col1 ) / + + 93 FROM tab2 cor0
----
-74
-2

query I rowsort
SELECT ALL - ( - ( + + col0 ) ) FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT ALL - 42 DIV - - 70 + + col1 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - 42 / - - 70 + + col1 AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - ( - col0 ) * + - 96 + 94 + - col0 FROM tab1
----
-4853
-8151
-8733

query I rowsort
SELECT col0 FROM tab2 WHERE + + 98 + - ( + 77 ) < col2 * col2 * + - 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5433
SELECT DISTINCT + col1 * col0 * col1 DIV + + col2 + - 8 + - 44 AS col1 FROM tab1
----
-16
2904
52

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + col1 * col0 * col1 / + + col2 + - 8 + - 44 AS col1 FROM tab1
----
-16
2904
52

query II rowsort
SELECT ALL col1 * + col1 + 76 * - + 38 * - - col2 AS col2, - col0 FROM tab1
----
-170367
-85
-194175
-91
-277052
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT 31 + - + COUNT( * ) AS col1 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT 31 + - + COUNT ( * ) AS col1 FROM tab0
----
28

query I rowsort
SELECT ALL - AVG ( DISTINCT 76 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT + CAST( - 80 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

skipif mysql # not compatible
query I rowsort label-5438
SELECT + CAST ( - 80 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT CAST( NULL AS SIGNED ) * 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5439
SELECT CAST ( NULL AS INTEGER ) * 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + 50, col2 AS col2 FROM tab1 cor0
----
50
59
50
68
50
96

query I rowsort
SELECT ALL - 14 + + col2 FROM tab0 AS cor0
----
-4
33
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT COUNT( * ) * - + 93 AS col0 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-5442
SELECT COUNT ( * ) * - + 93 AS col0 FROM tab2 AS cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT + - ( 60 ) - - - COUNT( * ) FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5443
SELECT + - ( 60 ) - - - COUNT ( * ) FROM tab1 cor0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 54 + col1 + + - col2 * - 4, + 61 )
----

query I rowsort
SELECT DISTINCT + col1 * - 25 FROM tab0 AS cor0
----
-2025
-25
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT DISTINCT - 10 DIV + + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT - 10 / + + col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col0 FROM tab0
----
90
90
90

query I rowsort
SELECT + ( + + col0 ) AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 42 ) * - 34 col1 FROM tab1 AS cor0
----
1428
1428
1428

query I rowsort
SELECT DISTINCT - + 74 FROM tab0 cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT + COUNT( DISTINCT - col2 ) * - SUM( - col0 ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-5452
SELECT + COUNT ( DISTINCT - col2 ) * - SUM ( - col0 ) FROM tab2
----
555

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5453
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST( - col1 AS SIGNED ) * + 77 + + - col0 * + - col1 + + + 78 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5453
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST ( - col1 AS INTEGER ) * + 77 + + - col0 * + - col1 + + + 78 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT CAST( - + MAX( DISTINCT + col0 ) AS SIGNED ) + + - 49 FROM tab0
----
-146

skipif mysql # not compatible
query I rowsort label-5455
SELECT CAST ( - + MAX ( DISTINCT + col0 ) AS INTEGER ) + + - 49 FROM tab0
----
-146

query I rowsort
SELECT + col2 + 50 FROM tab1
----
109
118
146

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT col2 + + col0 DIV + col1 + - + 80 col0 FROM tab1
----
-11
-4
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5457
SELECT col2 + + col0 / + col1 + - + 80 col0 FROM tab1
----
-11
-4
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT - 77 + COUNT( * ) col2 FROM tab0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5458
SELECT DISTINCT - 77 + COUNT ( * ) col2 FROM tab0
----
-74

query III rowsort
SELECT * FROM tab2 WHERE - col2 + - + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5460
SELECT CAST( NULL AS DECIMAL ) + - - col0 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5460
SELECT CAST ( NULL AS REAL ) + - - col0 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col0 + col2 + col2 IS NULL
----

query I rowsort
SELECT ALL + col0 + + + col1 + - + col0 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - col2 + - col2 - + 77 * - col0 + - col1 * - 61 * col1 FROM tab0 cor0
----
33580
401282
7332

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + ( 8 ) <> + col2 + - col0 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL + + COUNT( * ) - - - 97 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + + COUNT ( * ) - - - 97 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-97

query I rowsort
SELECT ALL + col2 + + ( - 0 ) AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - ( + col0 ) - + + col2 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + SUM( DISTINCT - 96 ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT + SUM ( DISTINCT - 96 ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT ALL + col0 * - col1 - + 29 AS col0 FROM tab0 AS cor0
----
-1244
-126
-1856

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - - ( + col0 ) IN ( + col2 * col2 / + 41 * - col2, col2, 97, + - 25 + - col1, - col2 * col2 * + col2 )
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 88
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT MAX( - + ( - ( + 92 ) ) ) AS col2 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-5474
SELECT MAX ( - + ( - ( + 92 ) ) ) AS col2 FROM tab2
----
92

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT 25 * + MAX( col2 ) AS col2 FROM tab1
----
2400

skipif mysql # not compatible
query I rowsort label-5476
SELECT 25 * + MAX ( col2 ) AS col2 FROM tab1
----
2400

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 + + col0 + + 25 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5479
SELECT DISTINCT CAST( - AVG ( ALL col2 ) AS SIGNED ), + COUNT( * ) * 23 AS col2 FROM tab1
----
-74
69

skipif mysql # not compatible
query II rowsort label-5479
SELECT DISTINCT CAST ( - AVG ( ALL col2 ) AS INTEGER ), + COUNT ( * ) * 23 AS col2 FROM tab1
----
-74
69

query I rowsort
SELECT col1 * - 74 * - col1 FROM tab2
----
192474
332186
438746

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5481
SELECT * FROM tab0 WHERE NOT ( NULL ) <= CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5481
SELECT * FROM tab0 WHERE NOT ( NULL ) <= CAST ( - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL + - ( + ( - COUNT( col0 ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + - ( + ( - COUNT ( col0 ) ) ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT col0, + 55 AS col2 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT + col2 DIV 91 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5484
SELECT + col2 / 91 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT SUM( DISTINCT + + 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5485
SELECT SUM ( DISTINCT + + 76 ) FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT - CAST( - + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5486
SELECT - CAST ( - + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL - + COUNT( * ) * + 30 AS col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - + COUNT ( * ) * + 30 AS col0 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT + 99 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE 32 * - 26 - 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT DISTINCT MAX( + - col0 ) + + + 74 AS col1 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT MAX ( + - col0 ) + + + 74 AS col1 FROM tab1 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5492
SELECT - col0 DIV CAST( - ( - 25 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-5492
SELECT - col0 / CAST ( - ( - 25 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 * - col1 col0 FROM tab2 AS cor0
----
-1530
-2010
-2310

query II rowsort
SELECT DISTINCT + + col0 * + + 57 AS col0, - 80 AS col0 FROM tab2 AS cor0
----
2622
-80
3648
-80
4275
-80

query I rowsort
SELECT - col0 * + ( + 85 ) AS col0 FROM tab0 cor0
----
-1275
-7395
-8245

query III rowsort
SELECT * FROM tab0 WHERE 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT 79 * COUNT( * ) + + 76 AS col0 FROM tab0
----
313

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT 79 * COUNT ( * ) + + 76 AS col0 FROM tab0
----
313

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - + ( + 54 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT DISTINCT 33 + col2 + - col1 DIV col2 FROM tab2
----
54
72
90

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT 33 + col2 + - col1 / col2 FROM tab2
----
54
72
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + 86
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5501
SELECT + col1 + - col0 * + CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5501
SELECT + col1 + - col0 * + CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col1, col2 * - 9, - 82 )
----

query I rowsort
SELECT + col2 * - 3 + + col0 FROM tab1
----
-113
-237
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT + col2, + ( + - 14 ) AS col0 FROM tab2
----
23
-14
40
-14
58
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5506
SELECT COUNT( * ), - 98 col0 FROM tab1 AS cor0
----
3
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5506
SELECT COUNT ( * ), - 98 col0 FROM tab1 AS cor0
----
3
-98

query II rowsort
SELECT ALL - + col2 AS col0, + col0 AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT MAX( - + col0 ) AS col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5508
SELECT MAX ( - + col0 ) AS col2 FROM tab0 cor0
----
-15

query II rowsort
SELECT DISTINCT 64, 0 AS col0 FROM tab1 AS cor0
----
64
0

query II rowsort
SELECT col0, - col1 * - col0 AS col1 FROM tab1 AS cor0
----
51
714
85
425
91
4277

query I rowsort
SELECT - col2 AS col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 41 * + + 13 AS col0 FROM tab0 AS cor0
----
533
533
533

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT + MIN( + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5513
SELECT + MIN ( + col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT DISTINCT 57 * + + col1 AS col2 FROM tab1
----
2679
285
798

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + ( + + ( 55 ) ) * COUNT( * ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-5515
SELECT + ( + + ( 55 ) ) * COUNT ( * ) FROM tab0
----
165

query I rowsort
SELECT - 56 AS col2 FROM tab2 cor0 WHERE NOT ( - col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT - 26 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT - 26 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-78

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + ( + + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5519
SELECT ALL + + col2 DIV col1 + - col0 AS col2, - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

skipif mysql # not compatible
query II rowsort label-5519
SELECT ALL + + col2 / col1 + - col0 AS col2, - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 1 col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 58 + col2 + - 90 + + col2 * ( col0 ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5522
SELECT + CAST( NULL AS DECIMAL ) / - col1 / col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT + CAST ( NULL AS REAL ) / - col1 / col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * - + 49 * ( - + 73 ) FROM tab2 AS cor0
----
-164542
-228928
-268275

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT DISTINCT 95 + + COUNT( * ) col1, - COUNT( * ) FROM tab2 AS cor0
----
98
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5524
SELECT DISTINCT 95 + + COUNT ( * ) col1, - COUNT ( * ) FROM tab2 AS cor0
----
98
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 81, col0, - - col2, - 64 + - col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL + - COUNT( DISTINCT + 15 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + - COUNT ( DISTINCT + 15 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query I rowsort
SELECT DISTINCT col1 * - - 29 AS col0 FROM tab0
----
2349
29
609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT DISTINCT + 43 + - + CAST( COUNT( ALL - col0 ) AS SIGNED ) AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT + 43 + - + CAST ( COUNT ( ALL - col0 ) AS INTEGER ) AS col0 FROM tab0
----
40

query II rowsort
SELECT DISTINCT + col2 + + - col0 + col1 AS col0, 66 AS col0 FROM tab2 AS cor0
----
28
66
50
66
53
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT DISTINCT + col0 DIV + 49 * + 71 DIV + + 51 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + col0 / + 49 * + 71 / + + 51 FROM tab1 AS cor0
----
1

query II rowsort
SELECT DISTINCT 51 * col2 * + - ( + - col0 ), col2 FROM tab1 cor0
----
249696
96
255765
59
315588
68

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 71 * - col0 / + ( - col1 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( + ( col0 ) ) * col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT DISTINCT - + col2 - - 83 * + col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-16
1733
6676

query I rowsort
SELECT DISTINCT 76 + + 41 * - col2 FROM tab0
----
-1851
-334
-3983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT - 45 * + col1 + CAST( 25 AS SIGNED ) AS col0 FROM tab0
----
-20
-3620
-920

skipif mysql # not compatible
query I rowsort label-5538
SELECT - 45 * + col1 + CAST ( 25 AS INTEGER ) AS col0 FROM tab0
----
-20
-3620
-920

query I rowsort
SELECT ALL - 32 + + col2 + - col0 FROM tab1
----
-55
-58
13

query II rowsort
SELECT DISTINCT col0 - - 11, col1 AS col2 FROM tab2
----
57
51
75
77
86
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 + - col1 col0 FROM tab0 cor0
----
-29
31
51

query I rowsort
SELECT DISTINCT + col0 + + ( + + col2 ) FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 57 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5544
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT - CAST ( NULL AS REAL ) + ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT - col0 AS col2 FROM tab1 WHERE NOT col2 BETWEEN - + col0 AND 55 + + - CAST( NULL AS SIGNED ) + - 36 + col0
----

skipif mysql # not compatible
query I rowsort label-5545
SELECT - col0 AS col2 FROM tab1 WHERE NOT col2 BETWEEN - + col0 AND 55 + + - CAST ( NULL AS INTEGER ) + - 36 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - SUM( - 5 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 / - col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT - SUM ( - 5 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 / - col2 <> NULL
----
NULL

query I rowsort
SELECT - - ( - - ( - ( col1 ) ) ) / + col1 - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 21 IS NOT NULL
----

query I rowsort
SELECT col2 / col0 FROM tab0 AS cor0 WHERE NOT 39 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - + ( - 17 ) * + 86 AS col1, 59 FROM tab2 cor0
----
1462
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5550
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( - ( + col1 ) AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5550
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( - ( + col1 ) AS INTEGER ) < NULL
----

query I rowsort
SELECT ALL ( - 65 ) AS col1 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL + ( + - col0 ) AS col1 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT + col2 AS col2, - col2 FROM tab2
----
23
-23
40
-40
58
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT 2 / - - 36 - - 5 - - col2 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + 78 + - 18 + - col0 FROM tab2 WHERE NOT + + col1 + col2 + - col1 BETWEEN - col2 AND - col0 * 13 + + col0
----
-44
-73
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT - MIN( DISTINCT + 66 ) AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT - MIN ( DISTINCT + 66 ) AS col2 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT ALL + COUNT( DISTINCT - col2 ) col2, 79 AS col0 FROM tab1 AS cor0
----
3
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5557
SELECT ALL + COUNT ( DISTINCT - col2 ) col2, 79 AS col0 FROM tab1 AS cor0
----
3
79

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + col2 > + col1
----
51
85
91

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT + col1 DIV - 95 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5560
SELECT + col1 / - 95 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 21 * + col0 * - + col1 col2 FROM tab2 cor0
----
-103488
-105525
-49266

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5562
SELECT * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5562
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 4 * - + col1 + + col2 AS col1 FROM tab2 AS cor0
----
-181
-210
-268

query II rowsort
SELECT DISTINCT + col2, + 67 FROM tab2
----
23
67
40
67
58
67

query I rowsort
SELECT ALL - col2 * ( 48 ) FROM tab1
----
-2832
-3264
-4608

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 <= - col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 69 AS col0 FROM tab2 WHERE - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5568
SELECT - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT + 47 + + col0 AS col0 FROM tab2
----
111
122
93

query I rowsort
SELECT ALL - - col0 - - 29 AS col0 FROM tab0 AS cor0
----
116
126
44

query II rowsort
SELECT + - 48 AS col0, + 62 - + col0 FROM tab0 AS cor0
----
-48
-25
-48
-35
-48
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT ALL + COUNT( * ) AS col1, SUM( + 65 ) * + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
588

skipif mysql # not compatible
query II rowsort label-5572
SELECT ALL + COUNT ( * ) AS col1, SUM ( + 65 ) * + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
588

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 63 FROM tab0 AS cor0
----
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 41 > + ( + + 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 = ( col1 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - col0 - + col1 * col2 FROM tab0
----
-196
-2037
-5022

query I rowsort
SELECT DISTINCT col0 - + 5 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT ALL CAST( 25 AS SIGNED ) AS col1 FROM tab0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL CAST ( 25 AS INTEGER ) AS col1 FROM tab0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT - ( + COUNT( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT - ( + COUNT ( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab0 WHERE 10 = col1 * - col0 + 18
----

query I rowsort
SELECT DISTINCT - 50 / - ( AVG ( - col1 ) ) FROM tab2 WHERE col2 + + 33 <= ( - 71 * 79 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5583
SELECT DISTINCT * FROM tab2 WHERE col2 * CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5583
SELECT DISTINCT * FROM tab2 WHERE col2 * CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT COUNT( * ) + + 14 * - COUNT( * ) AS col1 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT COUNT ( * ) + + 14 * - COUNT ( * ) AS col1 FROM tab0
----
-39

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab0
----
-95

query I rowsort
SELECT - ( col0 ) + col2 AS col1 FROM tab0
----
-77
2
32

query I rowsort
SELECT + col1 * col0 + 91 AS col1 FROM tab0
----
1306
188
1918

query I rowsort
SELECT DISTINCT - col0 * 79 AS col2 FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT - MIN( DISTINCT + 47 ) FROM tab1 WHERE NOT NULL < + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - MIN ( DISTINCT + 47 ) FROM tab1 WHERE NOT NULL < + col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 * 0 + - 35 ) > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( - col2 * col2 ) BETWEEN + col1 AND NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT DISTINCT - 16 FROM tab1 WHERE NOT col1 NOT BETWEEN - CAST( + col0 AS SIGNED ) AND ( 96 )
----
-16

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT - 16 FROM tab1 WHERE NOT col1 NOT BETWEEN - CAST ( + col0 AS INTEGER ) AND ( 96 )
----
-16

query I rowsort
SELECT DISTINCT + col1 * 34 FROM tab1
----
1598
170
476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT COUNT( + col0 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT COUNT ( + col0 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT COUNT( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5595
SELECT COUNT ( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT 85 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 * + 61 + col1 FROM tab0
----
1302
5022
62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN ( col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + 67 + + col0 AS col2 FROM tab2 AS cor0
----
3128
4352
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
185

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE + ( col2 ) * + col1 + col0 * col1 < 59
----

query I rowsort
SELECT DISTINCT - col0 + + 48 FROM tab2
----
-16
-27
2

query I rowsort
SELECT ALL - col0 * 23 - + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-1131
360
7372

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 68 * - 90 FROM tab2 cor0
----
6120
6120
6120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5606
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + 98 BETWEEN 11 AND CAST( 27 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5606
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + 98 BETWEEN 11 AND CAST ( 27 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 29 AS col0 FROM tab1 cor0
----
-29
-29
-29

query I rowsort
SELECT - 31 * - col0 + + 26 FROM tab0 AS cor0
----
2723
3033
491

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 NOT BETWEEN NULL AND ( + col0 * 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT SUM( + 17 ) + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5611
SELECT SUM ( + 17 ) + COUNT ( * ) FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT ALL - 50 + - AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - 50 + - AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 37 + + col0 * col0 FROM tab0
----
262
7606
9446

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 8 * col2 )
----

query I rowsort
SELECT col0 * + + col1 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT col2 DIV + + col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5616
SELECT col2 / + + col1 FROM tab0
----
0
0
99

query I rowsort
SELECT DISTINCT col2 + + 92 FROM tab2 WHERE NOT col0 - col2 * + 54 <= - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT + 84 * + COUNT( * ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-5618
SELECT + 84 * + COUNT ( * ) FROM tab2
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5619
SELECT COUNT( * ) DIV - 59 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5619
SELECT COUNT ( * ) / - 59 col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5620
SELECT ALL + COUNT( * ) / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + COUNT ( * ) / + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 * + - 14 + + col1 AS col1 FROM tab2
----
373
637
879

query III rowsort
SELECT * FROM tab0 WHERE 92 * 17 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT col1 * + - CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-5623
SELECT col1 * + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE ( col1 + - col1 ) NOT IN ( - ( + 97 ) )
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 WHERE col1 + 36 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IS NULL AND + 88 < col1
----

query I rowsort
SELECT ALL - 97 AS col2 FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT ( ( col1 ) ) * col2 FROM tab2 WHERE NOT ( - + col1 * col0 ) NOT BETWEEN + col1 * col0 + 65 * + 88 AND col1
----

query I rowsort
SELECT DISTINCT col1 * - + 95 * + - col2 FROM tab0
----
19950
361665
9405

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT ( + 29 * + 65 - col1 ) IN ( - 57 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT - COUNT( * ) * - 91 FROM tab2 AS cor0 WHERE ( 84 ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT - COUNT ( * ) * - 91 FROM tab2 AS cor0 WHERE ( 84 ) <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT + SUM( ALL - ( ( col0 ) ) ) * COUNT( * ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-5632
SELECT + SUM ( ALL - ( ( col0 ) ) ) * COUNT ( * ) FROM tab0 AS cor0
----
-597

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - col0 IS NOT NULL OR NOT ( NULL ) NOT BETWEEN - col2 AND - 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 19, 12 * + + col0 col1 FROM tab2 AS cor0
----
19
552
19
768
19
900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + 21 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5636
SELECT + 21 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT - ( + ( col2 ) ) DIV col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT - ( + ( col2 ) ) / col1 FROM tab0 AS cor0
----
-99
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( + col2 ) * col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 48 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT ALL - + 0 DIV + 93 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - + 0 / + 93 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + 20
----

query II rowsort
SELECT col1 AS col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + COUNT( DISTINCT ( + col2 ) ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 + 64 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT + COUNT ( DISTINCT ( + col2 ) ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 + 64 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col0 FROM tab1
----
25

query I rowsort
SELECT 14 * col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
1078
714
938

query I rowsort
SELECT ALL + col0 + - + 38 FROM tab1 WHERE NULL IS NULL
----
13
47
53

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ( 68 ) * - COUNT( * ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-5648
SELECT ( 68 ) * - COUNT ( * ) FROM tab1
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT - 4 + + COUNT( * ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5649
SELECT DISTINCT - 4 + + COUNT ( * ) col0 FROM tab0
----
-1

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT col1 * - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT DISTINCT col1 DIV - 60 AS col1 FROM tab0 WHERE NOT ( - - col0 ) <= 24
----
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT col1 / - 60 AS col1 FROM tab0 WHERE NOT ( - - col0 ) <= 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT - MAX( DISTINCT col2 ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5653
SELECT - MAX ( DISTINCT col2 ) col0 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 22 + col0 + + 64 AS col1 FROM tab2 AS cor0
----
106
117
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - COUNT( DISTINCT + col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5656
SELECT - COUNT ( DISTINCT + col2 ) AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5657
SELECT + 32 AS col1, + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
32
-1
32
-1
32
-1

skipif mysql # not compatible
query II rowsort label-5657
SELECT + 32 AS col1, + col2 / - col2 AS col1 FROM tab1 AS cor0
----
32
-1
32
-1
32
-1

query I rowsort
SELECT 10 AS col0 FROM tab0 cor0
----
10
10
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col0 + - col1 + - col0 / + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5660
SELECT + - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5660
SELECT + - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-3
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 59 < NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 70 * - col1 * + - 77 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT ALL ( CAST( + + COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL ( CAST ( + + COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT - COUNT( ALL 73 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5665
SELECT - COUNT ( ALL 73 ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 61 * - 52 - col1 - - col1 * - col2 AS col1 FROM tab1 cor0
----
-3472
-4530
-6415

query I rowsort
SELECT col0 - + 54 FROM tab2 AS cor0
----
-8
10
21

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 <> ( - - 63 ) AND ( NULL ) <= + 23
----

query I rowsort
SELECT ALL + 45 - col1 AS col2 FROM tab1
----
-2
31
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT DISTINCT COUNT( * ) FROM tab2, tab1 AS cor0 WHERE NULL <> ( 6 )
----
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT COUNT ( * ) FROM tab2, tab1 AS cor0 WHERE NULL <> ( 6 )
----
0

query I rowsort
SELECT ALL ( - + ( + col0 ) ) * - col1 + - col2 * + col2 FROM tab2
----
1661
1817
3328

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 40, 59 AS col2 FROM tab2 AS cor0
----
40
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 74 IS NULL
----

query I rowsort
SELECT ALL + - col0 * + - col2 * - 90 FROM tab1 AS cor0
----
-440640
-451350
-556920

query I rowsort
SELECT ALL - col1 * - ( + col2 ) FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT - col2 * - 58 * + col1 * 25 AS col2 FROM tab1 AS cor0
----
1948800
427750
4634200

query I rowsort
SELECT DISTINCT + + col0 * + 25 AS col1 FROM tab0 AS cor0
----
2175
2425
375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT DISTINCT - 3 * CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
138
192
225

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT - 3 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
138
192
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT - COUNT( * ) * 90 AS col1 FROM tab2 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT - COUNT ( * ) * 90 AS col1 FROM tab2 cor0
----
-270

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 44 BETWEEN ( - col2 ) AND - col0 * + + 87 * col1 / + - ( col0 )
----

query I rowsort
SELECT DISTINCT + 4 FROM tab0 AS cor0 WHERE + 90 IS NOT NULL
----
4

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col0 ) BETWEEN ( + 44 ) AND col1 / + 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5684
SELECT 84 * col1 + - + CAST( + col0 AS SIGNED ) DIV + col1 + + + 2 + + col0 - col0 * col0 FROM tab0
----
-5720
-9323
6596

skipif mysql # not compatible
query I rowsort label-5684
SELECT 84 * col1 + - + CAST ( + col0 AS INTEGER ) / + col1 + + + 2 + + col0 - col0 * col0 FROM tab0
----
-5720
-9323
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL MAX( - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL MAX ( - col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5686
SELECT + ( + col1 ) + + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT + ( + col1 ) + + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5687
SELECT ALL - 43 DIV + COUNT( * ) col0 FROM tab2
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5687
SELECT ALL - 43 / + COUNT ( * ) col0 FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5688
SELECT ALL * FROM tab2 WHERE col1 IN ( - - 59 - 97 + + - CAST( 10 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5688
SELECT ALL * FROM tab2 WHERE col1 IN ( - - 59 - 97 + + - CAST ( 10 AS INTEGER ) )
----

query I rowsort
SELECT ALL col0 * col1 + - 74 + - 12 FROM tab1
----
339
4191
628

onlyif mysql # DIV for integer division: 
query I rowsort label-5690
SELECT col2 DIV - 45 + - - ( + 91 ) FROM tab1
----
89
90
90

skipif mysql # not compatible
query I rowsort label-5690
SELECT col2 / - 45 + - - ( + 91 ) FROM tab1
----
89
90
90

query I rowsort
SELECT ALL + 61 + 70 FROM tab0
----
131
131
131

query I rowsort
SELECT + 90 + 90 AS col2 FROM tab0
----
180
180
180

query II rowsort
SELECT - col0 + 44 * - 59, col0 AS col1 FROM tab1
----
-2647
51
-2681
85
-2687
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 * + col2 - - 17 = - 40 / + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 + - col1 col1 FROM tab0 AS cor0
----
-106
-26
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT DISTINCT - MAX( + col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - MAX ( + col1 ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-5697
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----
0

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 WHERE 84 + 23 - + ( + 33 ) - - 73 / - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5699
SELECT + col0 DIV + + 45 - + 12 AS col2 FROM tab1
----
-10
-11
-11

skipif mysql # not compatible
query I rowsort label-5699
SELECT + col0 / + + 45 - + 12 AS col2 FROM tab1
----
-10
-11
-11

query III rowsort
SELECT * FROM tab1 WHERE - 50 * - col0 IS NULL
----

query II rowsort
SELECT + 95, 80 AS col1 FROM tab2 AS cor0 WHERE col2 <= - + 18 + - col2 / + 75 - + + col1
----

query I rowsort
SELECT ALL col1 * + 64 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 32 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5703
SELECT 66 FROM tab1 AS cor0 WHERE ( col0 + - col1 + CAST( NULL AS SIGNED ) * - - col0 ) NOT IN ( 91 + + col1, col0 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-5703
SELECT 66 FROM tab1 AS cor0 WHERE ( col0 + - col1 + CAST ( NULL AS INTEGER ) * - - col0 ) NOT IN ( 91 + + col1, col0 * - col2 )
----

query I rowsort
SELECT DISTINCT - col0 + col0 * + + col1 * 19 FROM tab2 cor0
----
44528
93568
95400

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 57 IN ( - 67, + col1, col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - - - ( + + col2 ) * + col0, + 48 col1 FROM tab0 cor0
----
-624
48
-849
48
-9602
48

query II rowsort
SELECT ALL col1, + ( + 59 ) FROM tab2
----
51
59
67
59
77
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT DISTINCT - MIN( + - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT - MIN ( + - col1 ) FROM tab2
----
77

query I rowsort
SELECT + 10 * col1 FROM tab0
----
10
210
810

query I rowsort
SELECT + 76 * + col0 FROM tab1
----
3876
6460
6916

query II rowsort
SELECT + col0, + col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab1 WHERE NOT 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT + COUNT( * ) + + SUM( DISTINCT 89 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
98

skipif mysql # not compatible
query I rowsort label-5714
SELECT + COUNT ( * ) + + SUM ( DISTINCT 89 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----

onlyif mysql # agg