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 # aggregate syntax: DIV for integer division: 
query I rowsort label-5716
SELECT DISTINCT 52 DIV 50 * - - ( - COUNT( * ) ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5716
SELECT DISTINCT 52 / 50 * - - ( - COUNT ( * ) ) col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT - COUNT( * ) * - + 63 col2 FROM tab1 cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5717
SELECT - COUNT ( * ) * - + 63 col2 FROM tab1 cor0
----
189

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

query I rowsort
SELECT ALL + ( + - 51 ) AS col1 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT + 89 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
89
89
89

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

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

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + + MAX ( - - 85 ) AS col0 FROM tab0 AS cor0
----
85

query I rowsort
SELECT 22 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - + ( 25 ) AS col2 FROM tab2 AS cor0
----
-1275
-1675
-1925

query I rowsort
SELECT col0 + + col0 FROM tab0 AS cor0 WHERE col2 / + 46 * col0 IS NOT NULL
----
174
194
30

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

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT SUM ( col2 ) + ( - 18 ) FROM tab0
----
138

query III rowsort
SELECT * FROM tab0 WHERE ( - 61 ) = + col2 * + col1
----

query I rowsort
SELECT ALL + 34 * + col0 AS col1 FROM tab0 WHERE + col2 IS NOT NULL
----
2958
3298
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5729
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0, tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5730
SELECT ALL col1 + - col1 DIV + 48, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
80
15

skipif mysql # not compatible
query II rowsort label-5730
SELECT ALL col1 + - col1 / + 48, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
80
15

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

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

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

query I rowsort
SELECT DISTINCT + - col0 - col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 BETWEEN NULL AND + col0
----

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

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

query I rowsort
SELECT ( - AVG ( 74 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> - 48
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5740
SELECT ALL + + col2 * - CAST( 26 AS SIGNED ) AS col0 FROM tab2 WHERE NOT + 33 IN ( col2, + col1 )
----
-1040
-1508
-598

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + + col2 * - CAST ( 26 AS INTEGER ) AS col0 FROM tab2 WHERE NOT + 33 IN ( col2, + col1 )
----
-1040
-1508
-598

query I rowsort
SELECT ALL - 30 * + 95 FROM tab1 WHERE NOT + + 17 <> ( col0 )
----

query I rowsort
SELECT ALL + col2 * + + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
210
3807
99

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5746
SELECT CAST ( + - 52 AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL MAX( + 53 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
53

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL MAX ( + 53 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
53

query I rowsort
SELECT ALL - 95 + col2 AS col0 FROM tab1
----
-27
-36
1

query II rowsort
SELECT col2, - ( - col2 ) FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL 11 * - col1 AS col0 FROM tab0 AS cor0
----
-11
-231
-891

query I rowsort
SELECT + - 58 * + col0 FROM tab0 AS cor0
----
-5046
-5626
-870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT ALL CAST( - col1 AS SIGNED ) + + 43 - + + col2 FROM tab0 AS cor0
----
-57
-85
12

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL CAST ( - col1 AS INTEGER ) + + 43 - + + col2 FROM tab0 AS cor0
----
-57
-85
12

query I rowsort
SELECT - - 88 * - - 62 AS col1 FROM tab0 AS cor0
----
5456
5456
5456

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + 37 AND NULL
----

query II rowsort
SELECT - col0 + + col1, + col2 + + + col0 AS col2 FROM tab1
----
-37
147
-44
159
-80
144

query I rowsort
SELECT col1 + + - col1 + - 82 AS col1 FROM tab0
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT ALL - 0 DIV - col1 + + 71 + - ( + - col2 ) * + col2 FROM tab1
----
3552
4695
9287

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL - 0 / - col1 + + 71 + - ( + - col2 ) * + col2 FROM tab1
----
3552
4695
9287

query I rowsort
SELECT + col1 FROM tab2 WHERE ( NULL ) < ( - 94 ) - + ( 99 ) + col0 + 41 / col0 - - + 7 * - 68 * 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT COUNT( * ) + - - 67 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-5761
SELECT COUNT ( * ) + - - 67 FROM tab0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT ALL + col0 - + 83 DIV 75 + + - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL + col0 - + 83 / 75 + + - col0 FROM tab2
----
-1
-1
-1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5764
SELECT 13 col1, - col2 DIV + 74 FROM tab1
----
13
-1
13
0
13
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5764
SELECT 13 col1, - col2 / + 74 FROM tab1
----
13
-1
13
0
13
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT ALL col2 DIV - col1 + col1 + + - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL col2 / - col1 + col1 + + - col1 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= ( 47 * ( + - 36 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5767
SELECT ALL CAST( NULL AS SIGNED ) + + col2 AS col2, 96 FROM tab0
----
NULL
96
NULL
96
NULL
96

skipif mysql # not compatible
query II rowsort label-5767
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 AS col2, 96 FROM tab0
----
NULL
96
NULL
96
NULL
96

query II rowsort
SELECT - col0 - - col2, - 72 AS col2 FROM tab2
----
-17
-72
-23
-72
-24
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT ALL CAST( 67 AS SIGNED ) * + 67 FROM tab2
----
4489
4489
4489

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL CAST ( 67 AS INTEGER ) * + 67 FROM tab2
----
4489
4489
4489

query I rowsort
SELECT DISTINCT + ( - - col0 ) + + 53 AS col1 FROM tab0
----
140
150
68

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5771
SELECT + MIN ( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL ( - + col0 ) FROM tab1
----
-51
-85
-91

query II rowsort
SELECT - col1 AS col1, + col2 + col2 FROM tab0
----
-1
198
-21
20
-81
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL MIN( ALL + + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL MIN ( ALL + + col1 ) AS col1 FROM tab1
----
5

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

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

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

query I rowsort
SELECT ALL ( + 50 ) AS col2 FROM tab0
----
50
50
50

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

skipif mysql # not compatible
query I rowsort label-5778
SELECT SUM ( + + col2 ) FROM tab2
----
121

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

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

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

query I rowsort
SELECT col2 * + 54 AS col2 FROM tab1
----
3186
3672
5184

query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab2 cor0
----
-68

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

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

query II rowsort
SELECT DISTINCT + 53, + col1 FROM tab0 AS cor0
----
53
1
53
21
53
81

onlyif mysql # DIV for integer division: 
query II rowsort label-5785
SELECT col1, col1 DIV 69 * + + 21 FROM tab2 AS cor0
----
51
0
67
0
77
21

skipif mysql # not compatible
query II rowsort label-5785
SELECT col1, col1 / 69 * + + 21 FROM tab2 AS cor0
----
51
0
67
0
77
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL + COUNT( * ) * + 73 AS col2 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + COUNT ( * ) * + 73 AS col2 FROM tab0 AS cor0
----
219

query I rowsort
SELECT ALL 22 + - col1 AS col1 FROM tab0
----
-59
1
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5788
SELECT ALL + + 45 DIV COUNT( * ) + - 56 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL + + 45 / COUNT ( * ) + - 56 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT - 17 * + col2 - col1 + + 36 - - col0 AS col2 FROM tab1 AS cor0
----
-1076
-1559
-887

query I rowsort
SELECT + + 81 * + ( - col1 ) + col0 + 58 FROM tab0 AS cor0
----
-1556
-6488
74

query I rowsort
SELECT DISTINCT + + 93 AS col1 FROM tab2 AS cor0
----
93

query I rowsort
SELECT + col2 * + col2 * 87 FROM tab2 AS cor0
----
139200
292668
46023

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT - COUNT( * ) * 3 AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5795
SELECT - COUNT ( * ) * 3 AS col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5796
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) + + 40 AS col0 FROM tab2
----
104
115
86

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) + + 40 AS col0 FROM tab2
----
104
115
86

query I rowsort
SELECT DISTINCT 54 * + 46 AS col1 FROM tab2
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT SUM( + - col0 ) - + COUNT( * ) AS col1 FROM tab0
----
-202

skipif mysql # not compatible
query I rowsort label-5798
SELECT SUM ( + - col0 ) - + COUNT ( * ) AS col1 FROM tab0
----
-202

query I rowsort
SELECT ALL + col1 + + 45 AS col0 FROM tab0
----
126
46
66

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= col0 + col2
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE - col1 * col0 * col2 < + + col1
----
-23
-40
-58

query I rowsort
SELECT ALL + - col1 - + - 83 FROM tab1 AS cor0
----
36
69
78

query II rowsort
SELECT + 48 + - - ( + - col0 ) AS col1, - col0 AS col1 FROM tab2 AS cor0
----
-16
-64
-27
-75
2
-46

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT - + MIN( - - 65 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-65

skipif mysql # not compatible
query I rowsort label-5805
SELECT - + MIN ( - - 65 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= ( - 52 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - 25 * + - col1 col1 FROM tab0
----
11025
164025
25

query I rowsort
SELECT - ( + - col0 ) * + + col0 FROM tab0 WHERE NOT + - 29 NOT BETWEEN + + 78 AND - - 4 * + - col0 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL + SUM( + 40 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL + SUM ( + 40 ) FROM tab2
----
120

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT - 64 DIV col1 AS col2 FROM tab0 AS cor0
----
-3
-64
0

skipif mysql # not compatible
query I rowsort label-5812
SELECT - 64 / col1 AS col2 FROM tab0 AS cor0
----
-3
-64
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT DISTINCT ( col0 ) DIV + col2 + + col0 FROM tab0 AS cor0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT ( col0 ) / + col2 + + col0 FROM tab0 AS cor0
----
15
95
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT DISTINCT + - col0 * + CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT + - col0 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5815
SELECT ALL * FROM tab2 WHERE - 31 + + CAST( NULL AS SIGNED ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5815
SELECT ALL * FROM tab2 WHERE - 31 + + CAST ( NULL AS INTEGER ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT 98 * - ( 44 ) FROM tab2
----
-4312
-4312
-4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5818
SELECT DISTINCT 34 DIV + 84, - COUNT( * ) - COUNT( * ) AS col0 FROM tab0
----
0
-6

skipif mysql # not compatible
query II rowsort label-5818
SELECT DISTINCT 34 / + 84, - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0
----
0
-6

query I rowsort
SELECT ( + col1 ) * - - ( - col1 ) FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT col2 + ( 96 ), 14 AS col0 FROM tab2
----
119
14
136
14
154
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5821
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 <> col1 + + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5821
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 <> col1 + + CAST ( col0 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT ALL col2 DIV col1 + ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL col2 / col1 + ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-46
-8
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5823
SELECT DISTINCT + ( 34 ) DIV + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT + ( 34 ) / + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT DISTINCT - - MIN( DISTINCT - + col1 ) AS col2 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT - - MIN ( DISTINCT - + col1 ) AS col2 FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT ALL CAST( 90 AS SIGNED ) + MAX( DISTINCT - ( - - col2 ) ) FROM tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL CAST ( 90 AS INTEGER ) + MAX ( DISTINCT - ( - - col2 ) ) FROM tab1 cor0
----
31

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

query II rowsort
SELECT DISTINCT - + col2 AS col2, - col2 * col0 - + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + 90 IS NULL
----
-23
-1035
-40
-2520
-58
-4292

query II rowsort
SELECT - 76 + - col1 + col0 AS col0, col0 FROM tab2 AS cor0
----
-68
75
-81
46
-89
64

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

query I rowsort
SELECT ALL + col2 * - 91 FROM tab1
----
-5369
-6188
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT - SUM( + col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT - SUM ( + col0 ) AS col2 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT + 18 DIV col1 FROM tab0
----
0
0
18

skipif mysql # not compatible
query I rowsort label-5835
SELECT + 18 / col1 FROM tab0
----
0
0
18

query I rowsort
SELECT ALL + ( + col0 ) - col1 - + col0 AS col1 FROM tab0
----
-1
-21
-81

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

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

query I rowsort
SELECT + - col1 - + + col1 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5840
SELECT - - 91 * - - COUNT( * ), - SUM( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
273
NULL

skipif mysql # not compatible
query II rowsort label-5840
SELECT - - 91 * - - COUNT ( * ), - SUM ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
273
NULL

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

skipif mysql # not compatible
query II rowsort label-5841
SELECT 65 AS col2, + COUNT ( * ) AS col0 FROM tab2
----
65
3

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5843
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - col0 + + col2 * CAST( + 59 AS DECIMAL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - col0 + + col2 * CAST ( + 59 AS REAL ) IS NULL
----
3

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

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

skipif mysql # not compatible
query I rowsort label-5845
SELECT COUNT ( col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col1 * col0 * - col1 + + col0 * + ( + + 3 ) * + - 77 AS col1 FROM tab1 AS cor0
----
-17510
-1785
179998

query I rowsort
SELECT ALL col1 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT DISTINCT - + 30 DIV - col1 * col0 * - col2 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT - + 30 / - col1 * col0 * - col2 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + 97 AS col2 FROM tab2 AS cor0 WHERE - 67 <= NULL
----

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

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

query II rowsort
SELECT 62 AS col1, col0 AS col1 FROM tab1 AS cor0
----
62
51
62
85
62
91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5853
SELECT ALL + + CAST( NULL AS SIGNED ) / + MAX( ALL - + 51 ) * 41 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL + + CAST ( NULL AS INTEGER ) / + MAX ( ALL - + 51 ) * 41 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + - 64 + 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col0, 69 + - 70 AS col2 FROM tab0
----
10
-1
47
-1
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT - MAX( ALL + 45 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-5856
SELECT - MAX ( ALL + 45 ) FROM tab0
----
-45

query I rowsort
SELECT ALL 43 * col1 FROM tab1
----
2021
215
602

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + COUNT( * ) * - 22 AS col1 FROM tab0 WHERE NOT - col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5859
SELECT + COUNT ( * ) * - 22 AS col1 FROM tab0 WHERE NOT - col2 > NULL
----
0

query I rowsort
SELECT - 98 * - col2 AS col2 FROM tab0
----
4606
9702
980

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL + + MAX( - 4 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL + + MAX ( - 4 ) FROM tab2 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT ( + ( + col2 ) ) * + - ( + col1 ) * 44 - + - col1 DIV 23 + - col1 + - 52 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 DIV - - col0 > col1
----
-167638
-4409
-9313

skipif mysql # not compatible
query I rowsort label-5862
SELECT ( + ( + col2 ) ) * + - ( + col1 ) * 44 - + - col1 / 23 + - col1 + - 52 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 / - - col0 > col1
----
-167638
-4409
-9313

query I rowsort
SELECT DISTINCT + - 99 FROM tab1 AS cor0
----
-99

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

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

query I rowsort
SELECT col2 + + + 10 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + + SUM( + + 17 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + + SUM ( + + 17 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + 86 AS col2 FROM tab1 cor0
----
100
133
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL COUNT( * ) FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL COUNT ( * ) FROM tab0, tab1 cor0
----
9

query I rowsort
SELECT ALL - ( + + 11 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-5870
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > col2
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5871
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE + 75 + + 79 IN ( - + col1 )
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 48 - - + col2 col1, + col2 FROM tab1 cor0
----
11
59
20
68
48
96

query I rowsort
SELECT + + col2 FROM tab0 WHERE NULL > col2 * - col1 + + - col0 * col0
----

query II rowsort
SELECT DISTINCT col0 AS col0, - col0 AS col1 FROM tab0
----
15
-15
87
-87
97
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT ( - + 39 ) * + - ( CAST( + 47 AS SIGNED ) ) FROM tab0 AS cor0
----
1833
1833
1833

skipif mysql # not compatible
query I rowsort label-5880
SELECT ( - + 39 ) * + - ( CAST ( + 47 AS INTEGER ) ) FROM tab0 AS cor0
----
1833
1833
1833

query I rowsort
SELECT + 67 AS col2 FROM tab1 cor0
----
67
67
67

query I rowsort
SELECT col1 / - - 72 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 61 AS col0 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT + 73 * - col1 * + + col1 FROM tab1
----
-14308
-161257
-1825

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT - 50 * MIN( ALL - 46 ) col1 FROM tab0 AS cor0
----
2300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5886
SELECT - 50 * MIN ( ALL - 46 ) col1 FROM tab0 AS cor0
----
2300

query I rowsort
SELECT ALL - col2 * col2 * - - col2 FROM tab1 AS cor0
----
-205379
-314432
-884736

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5890
SELECT DISTINCT * FROM tab1 WHERE - - ( + 68 ) NOT IN ( CAST( 70 AS DECIMAL ) * 39 - - col1, + 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5890
SELECT DISTINCT * FROM tab1 WHERE - - ( + 68 ) NOT IN ( CAST ( 70 AS REAL ) * 39 - - col1, + 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 88 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT + COUNT( * ) + + - 88 AS col0 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-5892
SELECT + COUNT ( * ) + + - 88 AS col0 FROM tab2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5893
SELECT + SUM( 45 ) + ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT + SUM ( 45 ) + ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 95 * - + 58 * col2 + + + col0 AS col2 FROM tab2
----
126776
220464
319655

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

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT - col1 / 12 FROM tab1
----
-1
-3
0

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

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

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

query I rowsort
SELECT - col1 + 18 FROM tab0
----
-3
-63
17

query I rowsort
SELECT - 91 + - - 39 AS col0 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + - col2 * 3 AS col1 FROM tab0 AS cor0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT - COUNT( * ) * + + 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-801

skipif mysql # not compatible
query I rowsort label-5901
SELECT - COUNT ( * ) * + + 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-801

query I rowsort
SELECT ALL col2 + 89 AS col1 FROM tab1 AS cor0
----
148
157
185

query I rowsort
SELECT + 20 + + col2 + + col1 FROM tab2 cor0
----
137
145
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5905
SELECT + ( COUNT( * ) ) + + COUNT( * ) + - COUNT( * ), COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5905
SELECT + ( COUNT ( * ) ) + + COUNT ( * ) + - COUNT ( * ), COUNT ( * ) FROM tab1 cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col1 + + + col2 col0 FROM tab2 AS cor0
----
-1150
-3040
-3828

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - - 77 - + + col1 / + col1 AS col2 FROM tab2 cor0
----
76

query I rowsort
SELECT ALL 27 * - - ( - 12 ) + + ( + col1 ) FROM tab0
----
-243
-303
-323

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 51 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT + CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5912
SELECT + CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT - col1 * - 16 FROM tab0
----
1296
16
336

query III rowsort
SELECT * FROM tab1 WHERE ( + + col2 ) >= 86 * - - 48
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT SUM( 11 ) * 27 DIV - MIN( ALL - + 34 ) AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-5915
SELECT SUM ( 11 ) * 27 / - MIN ( ALL - + 34 ) AS col2 FROM tab2
----
26

query I rowsort
SELECT ( - + col0 ) AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 80 * + col1 * + col2 * - ( + col0 ) + - 43 AS col1 FROM tab2
----
15769557
23315957
4316597

query II rowsort
SELECT ALL + ( + 3 ), + col1 * - col0 AS col1 FROM tab0
----
3
-1215
3
-1827
3
-97

query I rowsort
SELECT ALL 45 * + + col1 FROM tab1
----
2115
225
630

query II rowsort
SELECT + ( + col2 ), 51 AS col0 FROM tab2
----
23
51
40
51
58
51

onlyif mysql # DIV for integer division: 
query II rowsort label-5921
SELECT DISTINCT - col0 DIV - col0 col1, col1 AS col2 FROM tab0
----
1
1
1
21
1
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5921
SELECT DISTINCT - col0 / - col0 col1, col1 AS col2 FROM tab0
----
1
1
1
21
1
81

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

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

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT - MAX ( DISTINCT 69 ) AS col2 FROM tab1 AS cor0
----
-69

query II rowsort
SELECT ALL + 62 AS col0, col1 AS col1 FROM tab1
----
62
14
62
47
62
5

query I rowsort
SELECT ALL - ( 1 ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5926
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - 5 AS DECIMAL ) + 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5926
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - 5 AS REAL ) + 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 * 30 + + col0 AS col2, 65 + col2 FROM tab1 AS cor0
----
-1479
161
-2465
124
-2639
133

query II rowsort
SELECT + - 37, - col0 AS col1 FROM tab0 cor0
----
-37
-15
-37
-87
-37
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT - - 23 DIV - + col1 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT - - 23 / - + col1 FROM tab1 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * + + 57 col1 FROM tab0 WHERE - 64 NOT BETWEEN 34 AND col0
----
125913
558657
5700

query I rowsort
SELECT ALL 5 + - + 89 + 35 FROM tab1
----
-49
-49
-49

query I rowsort
SELECT DISTINCT 36 + col2 + 23 + col1 FROM tab0
----
159
187
90

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

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

query II rowsort
SELECT DISTINCT + col2 + - + 84 * 78 + - col2 AS col0, col2 FROM tab0
----
-6552
10
-6552
47
-6552
99

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( NOT 77 * 64 + - col1 IS NULL )
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-5937
SELECT - col2 + col1 * + 54 + col0 + - col1 DIV + - ( col2 ) col1, + 44 * + col0 AS col0 FROM tab2 AS cor0
----
2779
2024
3636
3300
4183
2816

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5937
SELECT - col2 + col1 * + 54 + col0 + - col1 / + - ( col2 ) col1, + 44 * + col0 AS col0 FROM tab2 AS cor0
----
2779
2024
3636
3300
4183
2816

query I rowsort
SELECT DISTINCT - col2 + + - col0 AS col2 FROM tab1
----
-144
-147
-159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT + MIN( ALL + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5940
SELECT + MIN ( ALL + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5941
SELECT DISTINCT - - col2 - + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT - - col2 - + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 * + + col1 - col1 col1 FROM tab1 AS cor0
----
-10010
-201066
-2130

query I rowsort
SELECT + 3 - + col1 + - col0 FROM tab1 AS cor0
----
-135
-62
-87

query I rowsort
SELECT DISTINCT 41 * - col2 AS col2 FROM tab2
----
-1640
-2378
-943

query I rowsort
SELECT DISTINCT col1 * + 1 FROM tab0
----
1
21
81

query II rowsort
SELECT DISTINCT + col2, + col0 + + 84 FROM tab2
----
23
130
40
148
58
159

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39 * - - col1 col1, + 8 col2 FROM tab0
----
3159
8
39
8
819
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL MAX( ALL - + ( - + 83 ) ) * 3 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL MAX ( ALL - + ( - + 83 ) ) * 3 FROM tab2
----
249

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT + + COUNT( + col1 ) * 74 AS col0 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-5952
SELECT + + COUNT ( + col1 ) * 74 AS col0 FROM tab2 AS cor0
----
222

query I rowsort
SELECT col2 + + + col2 * col2 * col0 FROM tab2
----
102440
24357
252358

query I rowsort
SELECT DISTINCT 0 + + - 20 AS col0 FROM tab2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT COUNT( * ) + + + ( - ( - 70 ) ) AS col2 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-5955
SELECT COUNT ( * ) + + + ( - ( - 70 ) ) AS col2 FROM tab2
----
73

query I rowsort
SELECT col2 + 83 AS col0 FROM tab1
----
142
151
179

query II rowsort
SELECT - col0, - col1 * + col2 AS col0 FROM tab1
----
-51
-1344
-85
-295
-91
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT DISTINCT col1 + - + CAST( 38 AS SIGNED ) + + 61 * + col2 * + - col0 * 78 AS col0 FROM tab1
----
-23295192
-23861403
-29442495

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT col1 + - + CAST ( 38 AS INTEGER ) + + 61 * + col2 * + - col0 * 78 AS col0 FROM tab1
----
-23295192
-23861403
-29442495

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5961
SELECT DISTINCT + 25 AS col2, + SUM( col0 ) AS col0 FROM tab0 cor0
----
25
199

skipif mysql # not compatible
query II rowsort label-5961
SELECT DISTINCT + 25 AS col2, + SUM ( col0 ) AS col0 FROM tab0 cor0
----
25
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 / - 80 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 / - 80 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5963
SELECT ( SUM( ALL - 8 ) ) AS col1, + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-72
9

skipif mysql # not compatible
query II rowsort label-5963
SELECT ( SUM ( ALL - 8 ) ) AS col1, + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-72
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5964
SELECT DISTINCT CAST( - ( AVG ( ALL - col1 ) ) AS SIGNED ) + COUNT( * ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT CAST ( - ( AVG ( ALL - col1 ) ) AS INTEGER ) + COUNT ( * ) FROM tab2
----
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col1 <> 22 * - col1 / - col2 * - col2 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT DISTINCT + 77 DIV col2 + col2 FROM tab0 AS cor0
----
17
48
99

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT + 77 / col2 + col2 FROM tab0 AS cor0
----
17
48
99

query I rowsort
SELECT DISTINCT + 37 * - 47 AS col2 FROM tab1 AS cor0
----
-1739

query I rowsort
SELECT col1 * + + col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT + col2 * ( + - 23 ) AS col1 FROM tab2
----
-1334
-529
-920

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT - 15 AS col2, - COUNT( * ) * - MIN( col1 ) AS col1 FROM tab2
----
-15
153

skipif mysql # not compatible
query II rowsort label-5970
SELECT - 15 AS col2, - COUNT ( * ) * - MIN ( col1 ) AS col1 FROM tab2
----
-15
153

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 35 col2 FROM tab0 AS cor0
----
-1645
-3465
-350

onlyif mysql # DIV for integer division: 
query I rowsort label-5973
SELECT ALL col0 DIV + + 27 FROM tab1 AS cor0
----
1
3
3

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL col0 / + + 27 FROM tab1 AS cor0
----
1
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5974
SELECT DISTINCT - col1 DIV + 2 FROM tab1 AS cor0
----
-2
-23
-7

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT - col1 / + 2 FROM tab1 AS cor0
----
-2
-23
-7

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5977
SELECT DISTINCT 83 + - 46 col0, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
37
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5977
SELECT DISTINCT 83 + - 46 col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
37
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col1, 12 FROM tab2 AS cor0
----
-51
12
-67
12
-77
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT + MIN( ALL + - 9 ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5980
SELECT + MIN ( ALL + - 9 ) AS col1 FROM tab1 AS cor0
----
-9

query II rowsort
SELECT col0 * 4, - col0 AS col1 FROM tab1 cor0
----
204
-51
340
-85
364
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT - ( - + ( + - SUM( - col0 ) ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5982
SELECT - ( - + ( + - SUM ( - col0 ) ) ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT DISTINCT - + ( - ( MIN( ALL + 53 ) ) ) AS col0 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT - + ( - ( MIN ( ALL + 53 ) ) ) AS col0 FROM tab0 AS cor0
----
53

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT col1 DIV + - 42 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5986
SELECT col1 / + - 42 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5987
SELECT ALL SUM( + + 45 ) DIV + 59 AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL SUM ( + + 45 ) / + 59 AS col1 FROM tab2
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col1 FROM tab2 WHERE ( ( NOT NULL IS NOT NULL ) )
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT 26 DIV - - 52 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT 26 / - - 52 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL - SUM( DISTINCT + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - SUM ( DISTINCT + col1 ) FROM tab1
----
-66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT col1 DIV + - ( - 42 ) + + col2 * col2 + + + col2 FROM tab2
----
1641
3423
553

skipif mysql # not compatible
query I rowsort label-5992
SELECT col1 / + - ( - 42 ) + + col2 * col2 + + + col2 FROM tab2
----
1641
3423
553

query I rowsort
SELECT + 6 FROM tab1 WHERE NULL <> col1
----

query I rowsort
SELECT - 95 + + 2 + - col2 AS col2 FROM tab0 cor0
----
-103
-140
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-5995
SELECT - - 74 + - + col2 DIV + col0 FROM tab1 AS cor0
----
73
74
74

skipif mysql # not compatible
query I rowsort label-5995
SELECT - - 74 + - + col2 / + col0 FROM tab1 AS cor0
----
73
74
74

query I rowsort
SELECT - + 59 + + 38 + col1 AS col0 FROM tab0 AS cor0
----
-20
0
60

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

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT MAX ( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + - col2 AS col1 FROM tab2 WHERE 56 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6000
SELECT ALL 74, COUNT( * ) col2 FROM tab2 AS cor0
----
74
3

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

query II rowsort
SELECT ALL col0 * - col1 AS col1, + 24 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * 44 FROM tab0 AS cor0
----
2068
4356
440

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

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

query II rowsort
SELECT col2 AS col2, + col0 + + col1 FROM tab1 cor0
----
59
90
68
138
96
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 41 * + + col1 col0 FROM tab0 AS cor0
----
3321
41
861

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL 34 * - MAX( + 68 ) AS col1 FROM tab1
----
-2312

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL 34 * - MAX ( + 68 ) AS col1 FROM tab1
----
-2312

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL COUNT( DISTINCT - 36 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL COUNT ( DISTINCT - 36 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT MIN( DISTINCT col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT ALL - 88 * + 25 FROM tab0 AS cor0
----
-2200
-2200
-2200

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 13 / + col1 * + col2 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
2392
4992
5100

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

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

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

query I rowsort
SELECT ALL col0 + + 70 AS col0 FROM tab0
----
157
167
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - + ( - 92 ) + - - col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6017
SELECT + MAX ( ALL col2 ) AS col1 FROM tab0
----
99

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

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

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

query I rowsort
SELECT 10 + + - ( col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
-215
-7559
-9399

query I rowsort
SELECT + col2 + - 73 AS col0 FROM tab0 cor0
----
-26
-63
26

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

query I rowsort
SELECT 84 + - col2 AS col2 FROM tab1 AS cor0
----
-12
16
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT 13 / ( + 9 ) + + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6024
SELECT DISTINCT 13 / ( + 9 ) + + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 18 ) + + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
-63
17

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6027
SELECT ALL CAST( - col0 AS SIGNED ) * - 46 + - col1 * - 63 FROM tab0
----
4525
5325
5793

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL CAST ( - col0 AS INTEGER ) * - 46 + - col1 * - 63 FROM tab0
----
4525
5325
5793

query I rowsort
SELECT DISTINCT + col1 + + col0 + - + col2 AS col1 FROM tab2
----
101
74
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6029
SELECT MIN( ALL + 27 ) DIV - COUNT( * ) + 51 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-6029
SELECT MIN ( ALL + 27 ) / - COUNT ( * ) + 51 FROM tab2
----
42

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 >= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6031
SELECT - CAST( NULL AS SIGNED ) + - MAX( + col2 ) AS col1 FROM tab0
----
NULL

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

query I rowsort
SELECT col0 + - 77 FROM tab2
----
-13
-2
-31

query III rowsort
SELECT * FROM tab0 WHERE col2 >= + + 59
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ( + MAX( col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6034
SELECT ( + MAX ( col1 ) ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6035
SELECT + 24, - MIN( ALL + 63 ) AS col0 FROM tab2
----
24
-63

skipif mysql # not compatible
query II rowsort label-6035
SELECT + 24, - MIN ( ALL + 63 ) AS col0 FROM tab2
----
24
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT + ( - - SUM( ALL - + col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-6036
SELECT + ( - - SUM ( ALL - + col0 ) ) FROM tab1
----
-227

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

skipif mysql # not compatible
query III rowsort label-6037
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + - CAST ( NULL AS INTEGER ) + + 51 NOT BETWEEN - col0 - col0 * + col2 + - ( col1 ) AND NULL
----

query I rowsort
SELECT ALL + + 51 + + - 35 AS col2 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT ALL + 61 * col0 AS col1 FROM tab0
----
5307
5917
915

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <= + 20
----

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

query I rowsort
SELECT 73 * - - 40 FROM tab0 AS cor0
----
2920
2920
2920

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT - MIN( col1 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6043
SELECT - MIN ( col1 ) AS col2 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT - SUM( DISTINCT - 35 ) AS col0 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-6044
SELECT - SUM ( DISTINCT - 35 ) AS col0 FROM tab0
----
35

query I rowsort
SELECT ( - 85 ) * - + col1 + - 90 FROM tab2
----
4245
5605
6455

query II rowsort
SELECT 1, 14 AS col1 FROM tab1
----
1
14
1
14
1
14

query I rowsort
SELECT + + col0 AS col0 FROM tab0 cor0 WHERE NOT 14 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 65 col0, col2 + col0 + col0 FROM tab1 AS cor0
----
65
198
65
229
65
250

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT + COUNT( * ) + - 13 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6049
SELECT + COUNT ( * ) + - 13 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab0 WHERE + col0 BETWEEN 23 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT ( col0 ) * CAST( col2 AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6051
SELECT ( col0 ) * CAST ( col2 AS INTEGER ) FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - 9 * col0 AS col1 FROM tab1
----
-459
-765
-819

query I rowsort
SELECT - col0 * 61 FROM tab2
----
-2806
-3904
-4575

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT DISTINCT - ( + CAST( + col0 AS SIGNED ) ) * + col0 FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT - ( + CAST ( + col0 AS INTEGER ) ) * + col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT + SUM( DISTINCT + col2 ) * - COUNT( * ) AS col0 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-6056
SELECT + SUM ( DISTINCT + col2 ) * - COUNT ( * ) AS col0 FROM tab0
----
-468

query I rowsort
SELECT DISTINCT col0 * - 13 FROM tab2
----
-598
-832
-975

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT col1 DIV - 51 AS col0 FROM tab2 WHERE NOT + col2 IN ( + ( 52 ) )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6059
SELECT col1 / - 51 AS col0 FROM tab2 WHERE NOT + col2 IN ( + ( 52 ) )
----
-1
-1
-1

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT + col1 / + ( - col2 ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT - col2 * 51 AS col0 FROM tab1 WHERE + 86 * - col1 + col1 IS NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 + + col0 AND - 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT ALL - 59 + 59 DIV - col0 FROM tab2
----
-59
-59
-60

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - 59 + 59 / - col0 FROM tab2
----
-59
-59
-60

query I rowsort
SELECT + ( col0 ) * 83 + - col0 FROM tab0 WHERE NULL NOT IN ( col1 + + 30 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT ( - col2 ) + CAST( col0 AS SIGNED ) FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-6066
SELECT ( - col2 ) + CAST ( col0 AS INTEGER ) FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT 70 + - 27 DIV col1 FROM tab1
----
65
69
70

skipif mysql # not compatible
query I rowsort label-6068
SELECT 70 + - 27 / col1 FROM tab1
----
65
69
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6069
SELECT ALL + CAST( NULL AS DECIMAL ) * - 11 AS col0 FROM tab0 WHERE NOT - col1 * col1 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL + CAST ( NULL AS REAL ) * - 11 AS col0 FROM tab0 WHERE NOT - col1 * col1 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 7 ) IS NOT NULL
----

query I rowsort
SELECT - 14 + - col1 * 13 AS col1 FROM tab1
----
-196
-625
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 WHERE NOT NULL >= col1 / col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6074
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE + col1 BETWEEN - col0 AND ( CAST( col2 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE + col1 BETWEEN - col0 AND ( CAST ( col2 AS INTEGER ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT ALL + 59 - + MIN( - 33 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL + 59 - + MIN ( - 33 ) FROM tab2
----
92

query I rowsort
SELECT ALL + col0 + + 10 FROM tab1
----
101
61
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT - 31 DIV - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT - 31 / - col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * - 88 AS col1 FROM tab2 WHERE ( col2 / - col2 ) IS NOT NULL
----
-4488
-5896
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL + 38 + + COUNT( * ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + 38 + + COUNT ( * ) FROM tab0
----
41

query I rowsort
SELECT ALL col0 * ( 19 ) + col0 * + 48 AS col2 FROM tab2
----
3082
4288
5025

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN 64 * col2 AND col0
----

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

query I rowsort
SELECT ALL col0 * 96 AS col2 FROM tab1
----
4896
8160
8736

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT ALL + 96 - + 66 DIV col1 FROM tab2 AS cor0
----
95
96
96

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL + 96 - + 66 / col1 FROM tab2 AS cor0
----
95
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6086
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) NOT IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-6086
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) NOT IN ( col1 )
----

query I rowsort
SELECT + 12 * col1 + - col1 FROM tab0 AS cor0
----
11
231
891

query I rowsort
SELECT DISTINCT + ( + 72 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
72

query I rowsort
SELECT ALL - 62 + - 17 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

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

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

query I rowsort
SELECT + col0 - 73 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
-27
-9
2

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

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

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

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

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

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

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

query I rowsort
SELECT + - col2 * + 28 FROM tab0 cor0
----
-1316
-2772
-280

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT COUNT( ALL - + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT COUNT ( ALL - + col2 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab2 WHERE col1 + col1 <> ( + col2 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6101
SELECT DISTINCT 44 AS col2 FROM tab1 WHERE NOT ( NULL ) <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT 44 AS col2 FROM tab1 WHERE NOT ( NULL ) <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT MAX( + col1 ) + - COUNT( * ) * 8 AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-6102
SELECT MAX ( + col1 ) + - COUNT ( * ) * 8 AS col0 FROM tab0
----
57

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 95 ) < 5 * 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 90 FROM tab1 WHERE NOT col2 = col0 / - 20
----
-90
-90
-90

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

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

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

query I rowsort
SELECT - col1 + col2 + ( col1 ) * + col2 AS col2 FROM tab2
----
1145
3043
3877

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

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

query I rowsort
SELECT DISTINCT col1 * - 18 + ( ( + col1 ) ) FROM tab0
----
-1377
-17
-357

query I rowsort
SELECT DISTINCT col1 + 12 FROM tab0 AS cor0 WHERE NOT - col1 / - col2 IS NULL
----
13
33
93

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

query I rowsort
SELECT 71 FROM tab0 AS cor0 WHERE 81 * + 53 IS NULL
----

query I rowsort
SELECT + 80 + 76 AS col0 FROM tab2 AS cor0 WHERE ( col1 * + 1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT 55 * - - MAX( col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT 55 * - - MAX ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 92 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6117
SELECT ALL + - COUNT( * ) * MIN( DISTINCT + - 46 ) DIV + 67 AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + - COUNT ( * ) * MIN ( DISTINCT + - 46 ) / + 67 AS col0 FROM tab0 AS cor0
----
2

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

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

query I rowsort
SELECT ALL - col2 * col2 - col2 FROM tab0 AS cor0
----
-110
-2256
-9900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( - - col1 ) col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL - 14 * - 56 - col0 FROM tab0
----
687
697
769

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

skipif mysql # not compatible
query I rowsort label-6122
SELECT + col1 / + col2 * col1 FROM tab1
----
0
0
0

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

query I rowsort
SELECT 25 * ( + + col0 ) AS col0 FROM tab1
----
1275
2125
2275

query II rowsort
SELECT DISTINCT + col1 + - 88 AS col2, - col1 AS col1 FROM tab0
----
-67
-21
-7
-81
-87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT - 60 * + MIN( + 47 ) FROM tab0
----
-2820

skipif mysql # not compatible
query I rowsort label-6126
SELECT - 60 * + MIN ( + 47 ) FROM tab0
----
-2820

query I rowsort
SELECT - - 54 FROM tab2 WHERE NULL IS NULL
----
54
54
54

query II rowsort
SELECT - ( - col0 ), + 87 * col1 AS col0 FROM tab1
----
51
1218
85
435
91
4089

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6129
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - MIN( DISTINCT + - ( + col0 ) ) + + 82 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT - CAST ( NULL AS REAL ) * - MIN ( DISTINCT + - ( + col0 ) ) + + 82 FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col0 FROM tab2
----
-81

query I rowsort
SELECT DISTINCT - 30 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND 55 / - 28 * - ( - col2 )
----

query I rowsort
SELECT - col2 * - - col1 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-6134
SELECT + col0 * 10 DIV + col1, col0 * + col0 AS col1 FROM tab1 cor0
----
170
7225
19
8281
36
2601

skipif mysql # not compatible
query II rowsort label-6134
SELECT + col0 * 10 / + col1, col0 * + col0 AS col1 FROM tab1 cor0
----
170
7225
19
8281
36
2601

query I rowsort
SELECT + + 98 * + col2 FROM tab0 AS cor0
----
4606
9702
980

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT col2 DIV + 60 * col1 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6137
SELECT col2 / + 60 * col1 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col1 * - - col1 col2 FROM tab0 AS cor0
----
-10
441
-47
6561
-99
1

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= ( - 96 * - col0 + col0 - - col1 - col1 )
----

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

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL + col0 * - + col1 + + col2 + + - col0 + + ( col1 ) + - col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 40 ) IN ( - col1 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 < - col0 / - 96 * + 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / + col2 col2 FROM tab0 WHERE ( + col1 - + 82 / col0 + 39 ) IS NULL
----

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

query I rowsort
SELECT + 10 + - col1 AS col1 FROM tab1 AS cor0
----
-37
-4
5

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

query I rowsort
SELECT col1 + + - ( + + 78 ) AS col2 FROM tab0 cor0
----
-57
-77
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 91 col2 FROM tab2 AS cor0
----
-16
-27
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT DISTINCT - SUM( + 66 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-594

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT - SUM ( + 66 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT SUM( - 63 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-567

skipif mysql # not compatible
query I rowsort label-6152
SELECT SUM ( - 63 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-567

query I rowsort
SELECT ALL - 26 AS col2 FROM tab1 AS cor0 WHERE - 89 + - col2 * + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( - + col2 ) + - 91 FROM tab2 AS cor0
----
-114
-131
-149

query I rowsort
SELECT ALL 80 - + + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-116
-17
18

query I rowsort
SELECT - + ( + col1 ) FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + - col0 * col2 * 99 * + - col1 AS col0 FROM tab2 AS cor0
----
19514880
28853550
5341842

query I rowsort
SELECT - 65 - 44 FROM tab0 AS cor0
----
-109
-109
-109

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

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

query I rowsort
SELECT + + col0 - 7 FROM tab0 AS cor0
----
8
80
90

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL COUNT( * ) * + 58 AS col0 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL COUNT ( * ) * + 58 AS col0 FROM tab2
----
174

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 35 * + col1 FROM tab1 WHERE NOT + col0 * col2 - + 25 + + ( + col0 ) + - + 21 - col2 IS NULL
----
1645
175
490

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6170
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6170
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT SUM( DISTINCT + 29 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT SUM ( DISTINCT + 29 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 * col0 + - 48 FROM tab1 AS cor0
----
-2649
-7273
-8329

query I rowsort
SELECT + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL = + 36
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT + - col0 DIV - 84 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6174
SELECT + - col0 / - 84 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT - 51 * + - 75 * 52 * - - 71 AS col0 FROM tab1 AS cor0
----
14121900
14121900
14121900

query I rowsort
SELECT + 64 * col1 AS col1 FROM tab2 AS cor0
----
3264
4288
4928

query I rowsort
SELECT - 38 FROM tab2 AS cor0 WHERE NOT ( col1 ) < - col0
----
-38
-38
-38

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6180
SELECT ALL - COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

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

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

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

query I rowsort
SELECT - col1 * - 40 * col0 + ( + - col2 ) * 90 AS col0 FROM tab1
----
11690
164960
19920

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

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab0 WHERE NULL IN ( - - 23 )
----

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

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

query I rowsort
SELECT DISTINCT - - col1 + + ( + col0 ) * + col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6188
SELECT ALL - 4 - - - CAST( + col2 AS SIGNED ) + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL < NULL )
----

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL - 4 - - - CAST ( + col2 AS INTEGER ) + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL < NULL )
----

query I rowsort
SELECT ( + 39 ) FROM tab1 AS cor0
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT + + col2 - + - col0 + col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( 30 * - col2 - + - CAST( + col0 AS SIGNED ) * 39, - col1 )
----

skipif mysql # not compatible
query I rowsort label-6190
SELECT + + col2 - + - col0 + col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( 30 * - col2 - + - CAST ( + col0 AS INTEGER ) * 39, - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 50 IN ( col0 )
----

query I rowsort
SELECT + + col2 * 79 FROM tab1 WHERE 14 IS NOT NULL
----
4661
5372
7584

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT DISTINCT + COUNT( * ) + + 71 AS col1 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT + COUNT ( * ) + + 71 AS col1 FROM tab2 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT + COUNT( * ) + MAX( - col0 ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6194
SELECT + COUNT ( * ) + MAX ( - col0 ) FROM tab2 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT ALL + + COUNT( * ) + + 9 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + + COUNT ( * ) + + 9 FROM tab0 AS cor0
----
12

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col2 ) NOT BETWEEN - col1 AND + col0
----
51
14
96

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

query I rowsort
SELECT ALL + col0 - ( col2 ) AS col1 FROM tab1 AS cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col0 * 37 FROM tab1 AS cor0
----
59
3145
68
3367
96
1887

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT - 76 - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 2 + - + 43 / + + col1 IS NOT NULL
----
-76

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - 76 - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 2 + - + 43 / + + col1 IS NOT NULL
----
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT 84 * + + COUNT( * ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-6204
SELECT 84 * + + COUNT ( * ) FROM tab2
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6205
SELECT COUNT( * ) DIV + 67 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6205
SELECT COUNT ( * ) / + 67 AS col1 FROM tab1
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 36 * col2 + + + 70 / - 15 AND + col2
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT DISTINCT - COUNT( * ) * 25 AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT - COUNT ( * ) * 25 AS col2 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT - 99 FROM tab2 WHERE NOT - 51 > ( + + col0 * col0 )
----
-99
-99
-99

query I rowsort
SELECT 10 * + + col1 AS col2 FROM tab2 AS cor0
----
510
670
770

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT DISTINCT - COUNT( ALL 47 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT - COUNT ( ALL 47 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, + col2 * - col2 FROM tab1 AS cor0
----
-51
-9216
-85
-3481
-91
-4624

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT ALL - col2 DIV - col0 * ( - 1 ) + + 5 AS col2 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL - col2 / - col0 * ( - 1 ) + + 5 AS col2 FROM tab2
----
5
5
5

query III rowsort
SELECT * FROM tab2 WHERE ( - - 96 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT ALL + 12 * 0 DIV col2 + col0 * 56 AS col0 FROM tab1
----
2856
4760
5096

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL + 12 * 0 / col2 + col0 * 56 AS col0 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE + + col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT 40 + + 54 FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT - + COUNT( * ) + + 68 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-6226
SELECT - + COUNT ( * ) + + 68 FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - ( 58 ) - - col1 AS col1 FROM tab1 AS cor0
----
-11
-44
-53

query I rowsort
SELECT - - col0 + + col2 + + col2 FROM tab2 AS cor0
----
144
191
92

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6231
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 78 NOT IN ( - col0 * col0, col2, CAST( + col1 AS DECIMAL ), col0 + - 2 )
----

skipif mysql # not compatible
query III rowsort label-6231
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 78 NOT IN ( - col0 * col0, col2, CAST ( + col1 AS REAL ), col0 + - 2 )
----

query I rowsort
SELECT - - 10 * ( + ( + 99 ) ) + col1 AS col1 FROM tab0 AS cor0
----
1011
1071
991

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT - 78 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 >= - col0
----

query I rowsort
SELECT ALL - 44 FROM tab1, tab1 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

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

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) / + + col2 + - + 49 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT DISTINCT - MIN( - - 7 ) * COUNT( * ) AS col1 FROM tab1 WHERE ( NOT col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT - MIN ( - - 7 ) * COUNT ( * ) AS col1 FROM tab1 WHERE ( NOT col2 IS NOT NULL )
----
NULL

query I rowsort
SELECT 0 - - 30 * 4 FROM tab0
----
120
120
120

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT DISTINCT + ( + col0 ) DIV col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT + ( + col0 ) / col2 FROM tab2 AS cor0
----
1
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT ALL + - col1 + + - 44 FROM tab1 cor0 WHERE CAST( - + col2 AS SIGNED ) * - col0 < col0
----

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL + - col1 + + - 44 FROM tab1 cor0 WHERE CAST ( - + col2 AS INTEGER ) * - col0 < col0
----

query II rowsort
SELECT - col1 AS col1, 59 FROM tab2
----
-51
59
-67
59
-77
59

query I rowsort
SELECT ALL ( + - col0 ) AS col0 FROM tab0
----
-15
-87
-97

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 54 + col2 * col1 col1 FROM tab1 WHERE NOT - col2 * 81 IS NOT NULL
----

query I rowsort
SELECT + col1 * + + col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6249
SELECT ALL col0, ( - CAST( - 92 AS SIGNED ) ) FROM tab2
----
46
92
64
92
75
92

skipif mysql # not compatible
query II rowsort label-6249
SELECT ALL col0, ( - CAST ( - 92 AS INTEGER ) ) FROM tab2
----
46
92
64
92
75
92

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) <= - col1 + col2 - - col1 + col2 * - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-6252
SELECT 37 AS col0, col1 DIV - 18 + col1 FROM tab2
----
37
49
37
64
37
73

skipif mysql # not compatible
query II rowsort label-6252
SELECT 37 AS col0, col1 / - 18 + col1 FROM tab2
----
37
49
37
64
37
73

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6254
SELECT ALL - col2 AS col1, col1 DIV + 9 FROM tab1 AS cor0
----
-59
0
-68
5
-96
1

skipif mysql # not compatible
query II rowsort label-6254
SELECT ALL - col2 AS col1, col1 / + 9 FROM tab1 AS cor0
----
-59
0
-68
5
-96
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6255
SELECT ALL CAST( 65 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL CAST ( 65 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT DISTINCT COUNT( - + col2 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT COUNT ( - + col2 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT 51 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-6257
SELECT 51 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-153

query I rowsort
SELECT DISTINCT + col1 + - - 29 FROM tab0 AS cor0
----
110
30
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT + 23 > - col1
----
0

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT + 23 > - col1
----
0

query II rowsort
SELECT ALL + ( col0 ), + col1 * - col1 AS col1 FROM tab0 cor0
----
15
-6561
87
-441
97
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6262
SELECT ALL + - COUNT( ALL + col2 ), + 5 col1 FROM tab0 AS cor0
----
-3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6262
SELECT ALL + - COUNT ( ALL + col2 ), + 5 col1 FROM tab0 AS cor0
----
-3
5

query I rowsort
SELECT ALL - - col2 + 5 + - 38 + ( 46 ) FROM tab2 AS cor0
----
36
53
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT COUNT( * ) + + 96 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-6264
SELECT COUNT ( * ) + + 96 FROM tab2
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 + - 82 col2 FROM tab1
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT + COUNT( * ) * + 12 AS col2 FROM tab2, tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-6266
SELECT + COUNT ( * ) * + 12 AS col2 FROM tab2, tab0 AS cor0
----
108

query I rowsort
SELECT + ( - - col0 ) * + 53 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6268
SELECT + 70 DIV - COUNT( * ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6268
SELECT + 70 / - COUNT ( * ) AS col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT COUNT( * ) * - + 59 AS col0 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-6269
SELECT COUNT ( * ) * - + 59 AS col0 FROM tab2
----
-177

query II rowsort
SELECT + col1 AS col0, + col2 FROM tab0 WHERE ( NOT ( NOT col2 * - - col0 * + col0 <= - col1 + + + col1 + + - col1 * + 33 ) )
----

query II rowsort
SELECT col2, col1 AS col0 FROM tab1
----
59
5
68
47
96
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT COUNT( * ) * - + MAX( + 40 ) * - ( 29 ) AS col1 FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT COUNT ( * ) * - + MAX ( + 40 ) * - ( 29 ) AS col1 FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL col0 * - - ( - 18 ) * + col1 + + col0 - + col1 * 5 FROM tab1
----
-12871
-7590
-77130

query I rowsort
SELECT DISTINCT + + 61 AS col0 FROM tab0 AS cor0
----
61

query I rowsort
SELECT ALL col2 + - 49 + ( + + col1 ) * col1 + - + col0 * - 28 AS col1 FROM tab1 AS cor0
----
1671
2415
4776

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

query I rowsort
SELECT - - col1 * + - ( + col2 ) - + col2 AS col1 FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT ALL + col1 - + col1 * - 2 AS col2 FROM tab0
----
243
3
63

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6281
SELECT col1 + + + col1 AS col0, col2 * + + col1 - CAST( - col1 AS SIGNED ) * col0 AS col0 FROM tab2
----
102
3519
134
8911
154
8008

skipif mysql # not compatible
query II rowsort label-6281
SELECT col1 + + + col1 AS col0, col2 * + + col1 - CAST ( - col1 AS INTEGER ) * col0 AS col0 FROM tab2
----
102
3519
134
8911
154
8008

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

query II rowsort
SELECT DISTINCT - col0, + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

query II rowsort
SELECT col1, + 26 AS col0 FROM tab0
----
1
26
21
26
81
26

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6288
SELECT DISTINCT + 90 DIV - + col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT + 90 / - + col2 FROM tab2
----
-1
-2
-3

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

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

query I rowsort
SELECT DISTINCT - col2 * + - 17 FROM tab2 AS cor0
----
391
680
986

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

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

skipif mysql # not compatible
query I rowsort label-6293
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 68 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6297
SELECT * FROM tab1 WHERE + col0 + + col2 NOT BETWEEN + CAST( + col2 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6297
SELECT * FROM tab1 WHERE + col0 + + col2 NOT BETWEEN + CAST ( + col2 AS REAL ) AND NULL
----

query I rowsort
SELECT DISTINCT 24 + + - 64 * 82 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-5224

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - MIN( ALL - - 94 ) AS col2 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6303
SELECT - MIN ( ALL - - 94 ) AS col2 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT 36 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT col2 * - ( - 92 ) FROM tab0 cor0
----
4324
9108
920

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

query I rowsort
SELECT DISTINCT + - 10 - - col2 + - col1 FROM tab2 WHERE col1 <> + col1 AND NOT ( 61 ) BETWEEN col0 AND col2 * - col2
----

query I rowsort
SELECT ALL + ( 61 ) + - - 38 FROM tab1
----
99
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6309
SELECT MIN( + ( - + CAST( + col1 AS SIGNED ) ) ) + - 85 + + 6 AS col2 FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT MIN ( + ( - + CAST ( + col1 AS INTEGER ) ) ) + - 85 + + 6 AS col2 FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - 97 col2 FROM tab2
----
143
161
172

query I rowsort
SELECT ALL - + 11 * + 8 FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6312
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN + - col2 + - 31 + + - CAST( NULL AS SIGNED ) / + col0 * + - 28 * - col0 + - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6312
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN + - col2 + - 31 + + - CAST ( NULL AS INTEGER ) / + col0 * + - 28 * - col0 + - col1 AND NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 92 * + + 92 FROM tab0
----
8464
8464
8464

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1
----
-9

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

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

query II rowsort
SELECT - col2, - col1 AS col0 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

query II rowsort
SELECT - col1, col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT 57 * + ( + - col0 ) FROM tab1 AS cor0
----
-2907
-4845
-5187

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

skipif mysql # not compatible
query I rowsort label-6320
SELECT - - MAX ( - - col2 ) FROM tab0 AS cor0
----
99

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

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

query I rowsort
SELECT ALL + 66 * + + col0 * - col1 + col1 - - 44 * - + col2 FROM tab0 AS cor0
----
-10757
-121001
-82177

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT - ( - MIN( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6323
SELECT - ( - MIN ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6324
SELECT - - 20 * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col2 - col1, + col1 * - 14 * + + 32 * - CAST( NULL AS SIGNED ) / + - 82 )
----

skipif mysql # not compatible
query I rowsort label-6324
SELECT - - 20 * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col2 - col1, + col1 * - 14 * + + 32 * - CAST ( NULL AS INTEGER ) / + - 82 )
----

query I rowsort
SELECT DISTINCT + 1 * + 51 FROM tab2, tab0 AS cor0 WHERE NULL IS NULL
----
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 = - 60 * - + col2 + - - 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 42 * + 76 * + 39 + + col2 + col1 FROM tab0
----
124519
124588
124616

query I rowsort
SELECT - col2 + + 45 FROM tab2
----
-13
22
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT + ( + - CAST( 45 AS SIGNED ) ) FROM tab2
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-6330
SELECT + ( + - CAST ( 45 AS INTEGER ) ) FROM tab2
----
-45
-45
-45

query II rowsort
SELECT - col0 * - 42, + col0 * 0 AS col1 FROM tab1 AS cor0
----
2142
0
3570
0
3822
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < ( NULL )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT DISTINCT - + col0 + - + CAST( - 17 AS SIGNED ) AS col0 FROM tab2 cor0
----
-29
-47
-58

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT - + col0 + - + CAST ( - 17 AS INTEGER ) AS col0 FROM tab2 cor0
----
-29
-47
-58

query I rowsort
SELECT - 80 + - col0 + + - col0 AS col2 FROM tab0 AS cor0
----
-110
-254
-274

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT DISTINCT + col2 DIV col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT + col2 / col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 14 + + + col0 NOT BETWEEN NULL AND col2
----

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

query I rowsort
SELECT ALL + 94 AS col2 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT COUNT( ALL - + 32 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT COUNT ( ALL - + 32 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 11 + + - col2 + + 72 AS col2 FROM tab0
----
-16
36
73

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - 90 FROM tab0
----
10
-90
47
-90
99
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT DISTINCT 74 * COUNT( * ) * - + COUNT( * ) FROM tab0
----
-666

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT 74 * COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
-666

query I rowsort
SELECT DISTINCT col1 + + ( col2 ) AS col0 FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT 60 DIV col2 col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6347
SELECT 60 / col2 col1 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT - col1 + + 92 AS col1 FROM tab2
----
15
25
41

query II rowsort
SELECT - col1, 5 AS col1 FROM tab2
----
-51
5
-67
5
-77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL - + 96 * + 42 * COUNT( * ) FROM tab1 AS cor0
----
-12096

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL - + 96 * + 42 * COUNT ( * ) FROM tab1 AS cor0
----
-12096

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6352
SELECT - - 1 * - MIN( - - col1 ) * + 3 FROM tab2 WHERE NOT + + col2 * col0 + - - CAST( NULL AS SIGNED ) BETWEEN + col2 AND - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6352
SELECT - - 1 * - MIN ( - - col1 ) * + 3 FROM tab2 WHERE NOT + + col2 * col0 + - - CAST ( NULL AS INTEGER ) BETWEEN + col2 AND - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL - COUNT( ALL - 42 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6353
SELECT ALL - COUNT ( ALL - 42 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 19 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6356
SELECT - MIN( ALL col0 ) DIV + 8 col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6356
SELECT - MIN ( ALL col0 ) / + 8 col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL - 54 * - 62 * col2 FROM tab2 AS cor0
----
133920
194184
77004

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 40 + 1 col1 FROM tab1 AS cor0
----
2361
2721
3841

query I rowsort
SELECT ( + col1 ) * - - 25 * + col0 * col2 FROM tab0 AS cor0
----
1427625
240075
456750

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 10 >= + col0 + - col0 OR + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT ALL + col2 DIV + ( - 47 ) AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL + col2 / + ( - 47 ) AS col0 FROM tab0
----
-1
-2
0

query II rowsort
SELECT DISTINCT col1 AS col0, + col1 AS col2 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - 17 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 * - + 21 FROM tab1 AS cor0
----
105
294
987

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6367
SELECT - 83 + COUNT ( * ) col2 FROM tab2 AS cor0
----
-80

query I rowsort
SELECT + - 60 + - col1 AS col0 FROM tab0 cor0
----
-141
-61
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 45 ) * - 53 + - col0 col0 FROM tab0
----
-2400
-2472
-2482

query III rowsort
SELECT * FROM tab1 WHERE - col2 > - ( col2 )
----

query I rowsort
SELECT 93 * - - 91 AS col1 FROM tab0 WHERE - 26 < NULL
----

query I rowsort
SELECT ALL + col1 + - col0 - - 90 FROM tab0 cor0
----
-6
156
24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT DISTINCT + - col1 + 93 + + col0 DIV col1 DIV + ( col0 ) + 18 FROM tab2 AS cor0
----
34
44
60

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT + - col1 + 93 + + col0 / col1 / + ( col0 ) + 18 FROM tab2 AS cor0
----
34
44
60

query I rowsort
SELECT DISTINCT col0 - - + 86 FROM tab1 AS cor0
----
137
171
177

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6377
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 95 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT DISTINCT SUM( ALL + 14 ) col1 FROM tab1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6380
SELECT DISTINCT SUM ( ALL + 14 ) col1 FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT - SUM( - + 15 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6381
SELECT - SUM ( - + 15 ) FROM tab1 AS cor0
----
45

query II rowsort
SELECT - col0 AS col0, - 26 + + + ( - col2 ) FROM tab1 AS cor0
----
-51
-122
-85
-85
-91
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT DISTINCT 40 * + + MAX( + 10 ) + - 69 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
331

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT 40 * + + MAX ( + 10 ) + - 69 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
331

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

query I rowsort
SELECT ALL col2 * 92 AS col0 FROM tab2 AS cor0
----
2116
3680
5336

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT ALL + col1 DIV 45 * + col2 FROM tab1 AS cor0
----
0
0
68

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + col1 / 45 * + col2 FROM tab1 AS cor0
----
0
0
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6387
SELECT 58 DIV ( - 28 ) FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6387
SELECT 58 / ( - 28 ) FROM tab1 cor0
----
-2
-2
-2

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

query II rowsort
SELECT - col0 AS col0, col0 * ( - col1 ) * - - col0 - + + 45 FROM tab0 AS cor0
----
-15
-18270
-87
-158994
-97
-9454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT ALL + CAST( 90 AS SIGNED ) * 30 * - 44 AS col1 FROM tab0 AS cor0
----
-118800
-118800
-118800

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL + CAST ( 90 AS INTEGER ) * 30 * - 44 AS col1 FROM tab0 AS cor0
----
-118800
-118800
-118800

query I rowsort
SELECT 0 FROM tab0 AS cor0 WHERE NOT - 43 IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT 73 DIV + - col0 AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT 73 / + - col0 AS col0 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT DISTINCT + + MIN( ALL col0 ) * + + 59 FROM tab2 AS cor0
----
2714

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT + + MIN ( ALL col0 ) * + + 59 FROM tab2 AS cor0
----
2714

query I rowsort
SELECT ALL + - 87 + + 47 AS col1 FROM tab1 AS cor0
----
-40
-40
-40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6396
SELECT col0 DIV - - ( + 94 ) + - + 52 FROM tab1
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-6396
SELECT col0 / - - ( + 94 ) + - + 52 FROM tab1
----
-52
-52
-52

query I rowsort
SELECT + 92 * ( + - 74 ) + - 32 FROM tab0
----
-6840
-6840
-6840

query I rowsort
SELECT DISTINCT + ( + - col2 ) * + + col0 + + col0 AS col0 FROM tab1
----
-4845
-4930
-6097

query II rowsort
SELECT DISTINCT 62 + - - 84, - 49 AS col1 FROM tab0 AS cor0
----
146
-49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT + col1 DIV + - 86 - - + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6402
SELECT + col1 / + - 86 - - + col2 FROM tab1
----
59
68
96

query I rowsort
SELECT + + col1 FROM tab1 WHERE 72 > NULL
----

query I rowsort
SELECT ALL + col2 + - 24 AS col2 FROM tab0
----
-14
23
75

query II rowsort
SELECT ALL - 28 * - col0 - col2, + col1 + col2 AS col0 FROM tab1
----
1332
110
2321
64
2480
115

query I rowsort
SELECT ALL col1 + - 46 FROM tab1 AS cor0
----
-32
-41
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6407
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE 28 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6407
SELECT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE 28 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 2 * - col0 IS NULL
----

query I rowsort
SELECT col1 * - 4 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-204
-268
-308

query I rowsort
SELECT DISTINCT 2 - + 66 AS col2 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT ALL + - col1 - ( - + col0 ) AS col2 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT + col1 * - + 29 * - col0 AS col0 FROM tab0
----
2813
35235
52983

query I rowsort
SELECT DISTINCT + 93 - col1 FROM tab1
----
46
79
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col1 FROM tab0
----
-1
-1
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6416
SELECT + MIN( - 48 ) * + - ( - SUM( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT + MIN ( - 48 ) * + - ( - SUM ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + col1 AS col0, + 28 + - ( - 3 ) FROM tab1 WHERE NOT + col0 < NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT - 53 * - ( - - col0 ) + col1 AS col1 FROM tab0 cor0
----
4632
5142
876

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6424
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + - 46 * CAST( col2 AS SIGNED ) / + col2 * col2 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6424
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + - 46 * CAST ( col2 AS INTEGER ) / + col2 * col2 * + col2 IS NOT NULL
----

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

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

query II rowsort
SELECT + col0 * + + ( - + col2 ) AS col1, - col0 * - col1 AS col2 FROM tab2
----
-1058
2346
-2560
4928
-4350
5025

query III rowsort
SELECT ALL * FROM tab2 WHERE - 65 / 55 + + col2 * + - col0 >= - - 76 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL + COUNT( * ) * + 14 AS col2 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + COUNT ( * ) * + 14 AS col2 FROM tab2 AS cor0
----
42

query II rowsort
SELECT ALL - 46, col0 * + + col2 AS col1 FROM tab1 AS cor0
----
-46
4896
-46
5015
-46
6188

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

query I rowsort
SELECT col1 * 92 FROM tab2 AS cor0
----
4692
6164
7084

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6433
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <= - + col1 * - ( - col2 ) / - col1 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6433
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <= - + col1 * - ( - col2 ) / - col1 + - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 * + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-225
-7569
-9409

query I rowsort
SELECT - col1 * + 63 AS col1 FROM tab0 AS cor0
----
-1323
-5103
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT + - MIN( DISTINCT 12 ) AS col1 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6436
SELECT + - MIN ( DISTINCT 12 ) AS col1 FROM tab1 AS cor0
----
-12

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

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

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

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

query I rowsort
SELECT ALL 16 * + - ( - 29 ) + - + 72 + + - col1 * - col2 FROM tab1
----
1736
3588
687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + col1 * + 82 + + 66 col1 FROM tab1
----
59
476
68
3920
96
1214

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT DISTINCT COUNT( DISTINCT ( - col1 ) ) * + ( SUM( - col2 ) ) + - - SUM( 68 ) * - - COUNT( * ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT COUNT ( DISTINCT ( - col1 ) ) * + ( SUM ( - col2 ) ) + - - SUM ( 68 ) * - - COUNT ( * ) FROM tab1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT - - 92 * + COUNT( ALL - 77 ) + 26 + 95 AS col1 FROM tab0 WHERE 16 NOT BETWEEN ( - col0 ) AND - col1
----
397

skipif mysql # not compatible
query I rowsort label-6442
SELECT - - 92 * + COUNT ( ALL - 77 ) + 26 + 95 AS col1 FROM tab0 WHERE 16 NOT BETWEEN ( - col0 ) AND - col1
----
397

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

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

query I rowsort
SELECT DISTINCT 12 + - + ( - 32 ) + - col1 * + + col1 * - + col2 + col1 + + col2 * + col2 AS col0 FROM tab2
----
238881
263837
60447

query I rowsort
SELECT - col1 + - col1 + col0 * - - col2 + col2 + col0 * - ( + col2 ) FROM tab1 AS cor0
----
-26
49
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - + SUM( ALL + 56 ) AS col1 FROM tab1 AS cor0 WHERE col1 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT - + SUM ( ALL + 56 ) AS col1 FROM tab1 AS cor0 WHERE col1 * - col1 IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT col0 FROM tab1 WHERE col1 BETWEEN - + col2 * - CAST( CAST( ( + CAST( col0 AS SIGNED ) ) AS SIGNED ) AS SIGNED ) + + 97 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6450
SELECT col0 FROM tab1 WHERE col1 BETWEEN - + col2 * - CAST ( CAST ( ( + CAST ( col0 AS INTEGER ) ) AS INTEGER ) AS INTEGER ) + + 97 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL COUNT ( * ) + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6452
SELECT + 66 / + CAST( NULL AS SIGNED ) AS col2, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6452
SELECT + 66 / + CAST ( NULL AS INTEGER ) AS col2, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab2 WHERE 69 NOT BETWEEN NULL AND col1
----
46
51
23
75
67
58

query I rowsort
SELECT DISTINCT - col0 + - - col2 - - - ( - col2 ) AS col1 FROM tab2 AS cor0
----
0
16
41

query I rowsort
SELECT + 86 - + + col1 FROM tab0 AS cor0
----
5
65
85

query I rowsort
SELECT DISTINCT ( + ( + col2 ) ) - - col0 AS col0 FROM tab1 AS cor0
----
144
147
159

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 - 84 FROM tab0 cor0
----
-3
-63
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT ALL - MAX( DISTINCT + col2 ) FROM tab2 cor0 WHERE + 67 IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL - MAX ( DISTINCT + col2 ) FROM tab2 cor0 WHERE + 67 IS NOT NULL
----
-58

query I rowsort
SELECT ALL - 55 AS col1 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT + COUNT( * ) * + 90 col2 FROM tab0 cor0
----
270

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT DISTINCT - SUM( DISTINCT - 55 ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT - SUM ( DISTINCT - 55 ) FROM tab1
----
55

query III rowsort
SELECT * FROM tab0 WHERE NOT + 54 BETWEEN - 85 AND + ( col2 ) / + 6 + - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2, - col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL + col0 * - 57 AS col2 FROM tab0
----
-4959
-5529
-855

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - col2 / + - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6469
SELECT DISTINCT - ( col2 ) DIV + 37 AS col1, - 10 * + - 6 AS col0 FROM tab2
----
-1
60
0
60

skipif mysql # not compatible
query II rowsort label-6469
SELECT DISTINCT - ( col2 ) / + 37 AS col1, - 10 * + - 6 AS col0 FROM tab2
----
-1
60
0
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6470
SELECT - CAST( NULL AS DECIMAL ) / + - col0 * col2 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT - CAST ( NULL AS REAL ) / + - col0 * col2 * col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT MIN( ALL col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT MIN ( ALL col1 ) FROM tab2
----
51

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

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

query I rowsort
SELECT DISTINCT - 76 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col2 * + 93 AS col1 FROM tab1 AS cor0
----
5487
6324
8928

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

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

query II rowsort
SELECT ALL 69 AS col0, 29 * - + col1 + col1 FROM tab0 AS cor0
----
69
-2268
69
-28
69
-588

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT MAX( ALL - + 3 ) FROM tab2, tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6478
SELECT MAX ( ALL - + 3 ) FROM tab2, tab1 AS cor0
----
-3

query I rowsort
SELECT 71 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT MIN( + + 28 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT MIN ( + + 28 ) FROM tab1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT + col2 / - col2 * 33 / + 44 FROM tab2 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query I rowsort label-6483
SELECT + col2 / - col2 * 33 / + 44 FROM tab2 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND + col0
----

query I rowsort
SELECT + 71 + - col0 AS col2 FROM tab2
----
-4
25
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT + COUNT( DISTINCT - col0 ) + + ( + COUNT( ALL - col1 ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6485
SELECT + COUNT ( DISTINCT - col0 ) + + ( + COUNT ( ALL - col1 ) ) FROM tab1
----
6

query I rowsort
SELECT ALL + 92 + + col2 AS col0 FROM tab2
----
115
132
150

query II rowsort
SELECT - col1 + - col0 * - - col2 AS col2, + col0 * col1 FROM tab2
----
-1109
2346
-2637
4928
-4417
5025

query I rowsort
SELECT col1 * col1 + - + 5 FROM tab1
----
191
20
2204

query I rowsort
SELECT ALL col0 + - + col0 AS col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT 74 * col1 * - col0 * - 10 AS col1 FROM tab1 AS cor0 WHERE - 24 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6494
SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL NOT BETWEEN NULL AND 19
----

query I rowsort
SELECT - col0 FROM tab2 WHERE - - ( + 35 ) / + ( + - col2 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - - 26 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6498
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL - col2 * - - ( + 19 ) + col2 + - + ( - - 7 ), col1 FROM tab0 AS cor0
----
-1789
1
-187
21
-853
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ( + MIN( - - 89 ) ) FROM tab0 cor0
----
89

skipif mysql # not compatible
query I rowsort label-6500
SELECT ( + MIN ( - - 89 ) ) FROM tab0 cor0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6501
SELECT 52, COUNT( 33 ) AS col0 FROM tab2 AS cor0
----
52
3

skipif mysql # not compatible
query II rowsort label-6501
SELECT 52, COUNT ( 33 ) AS col0 FROM tab2 AS cor0
----
52
3

query I rowsort
SELECT - col1 * col2 * 71 FROM tab1
----
-20945
-226916
-95424

query I rowsort
SELECT DISTINCT col0 * + col2 * + + col1 AS col2 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT - 10 * - + 0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT 18 * COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6505
SELECT 18 * COUNT ( * ) FROM tab1
----
54

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

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL COUNT ( + - col0 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 * col0 * + col0 + + 17 + + - col2 FROM tab1 AS cor0 WHERE NOT - col2 >= col1 + col1 - 84
----
249617
563057

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT DISTINCT + col1 DIV + 98 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT + col1 / + 98 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6511
SELECT - CAST( + + col0 AS SIGNED ), col0 * + col2 AS col1 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

skipif mysql # not compatible
query II rowsort label-6511
SELECT - CAST ( + + col0 AS INTEGER ), col0 * + col2 AS col1 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

query II rowsort
SELECT col1 * - col0 AS col0, + 38 + col2 + + col2 AS col2 FROM tab0 AS cor0
----
-1215
132
-1827
58
-97
236

query I rowsort
SELECT ALL 46 + - + 25 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT COUNT( DISTINCT 80 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6514
SELECT COUNT ( DISTINCT 80 ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT - col1, + col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT ALL + + CAST( - - ( - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL + + CAST ( - - ( - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT + 43 * - 14 * - + COUNT( * ) FROM tab0 AS cor0
----
1806

skipif mysql # not compatible
query I rowsort label-6518
SELECT + 43 * - 14 * - + COUNT ( * ) FROM tab0 AS cor0
----
1806

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT MIN( + - 95 ) AS col0 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-6519
SELECT MIN ( + - 95 ) AS col0 FROM tab1
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + col2 * + + 33 * - col0 FROM tab0
----
-23265
-28710
-316899

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

query I rowsort
SELECT DISTINCT 34 + 88 FROM tab2
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-6524
SELECT + col0 * - col0 + - + col0 DIV - col1 + + col2 * col2 + - + 57 FROM tab0
----
-7522
1927
432

skipif mysql # not compatible
query I rowsort label-6524
SELECT + col0 * - col0 + - + col0 / - col1 + + col2 * col2 + - + 57 FROM tab0
----
-7522
1927
432

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

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

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT - COUNT ( ALL 43 ) AS col0 FROM tab0
----
-3

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

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

query I rowsort
SELECT + 86 * + - 82 AS col0 FROM tab1
----
-7052
-7052
-7052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6529
SELECT col1 / - 7 + - + col1 * + 98 FROM tab0 cor0 WHERE NOT 97 <= - + CAST( NULL AS SIGNED ) - + ( - 9 )
----

skipif mysql # not compatible
query I rowsort label-6529
SELECT col1 / - 7 + - + col1 * + 98 FROM tab0 cor0 WHERE NOT 97 <= - + CAST ( NULL AS INTEGER ) - + ( - 9 )
----

query II rowsort
SELECT - col0, - 67 AS col1 FROM tab0 cor0
----
-15
-67
-87
-67
-97
-67

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 = col0
----
-59
-68
-96

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

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

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

query I rowsort
SELECT ALL + ( + 22 ) * - 96 FROM tab2 AS cor0
----
-2112
-2112
-2112

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

query I rowsort
SELECT DISTINCT 35 FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, + col2 + + - col2 - 80 FROM tab1 AS cor0
----
51
-80
85
-80
91
-80

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6539
SELECT ALL - 62 AS col0, - 22 + 39 DIV 68 FROM tab1
----
-62
-22
-62
-22
-62
-22

skipif mysql # not compatible
query II rowsort label-6539
SELECT ALL - 62 AS col0, - 22 + 39 / 68 FROM tab1
----
-62
-22
-62
-22
-62
-22

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

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

query I rowsort
SELECT + ( + 35 ) AS col0 FROM tab1
----
35
35
35

query I rowsort
SELECT ( + 76 ) FROM tab1
----
76
76
76

query I rowsort
SELECT ALL - - col1 * col0 * col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # DIV for integer division: 
query I rowsort label-6544
SELECT DISTINCT - - 68 DIV - 21 AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT - - 68 / - 21 AS col1 FROM tab0 cor0
----
-3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col1 + + 25 + - col0 AS col1 FROM tab1 AS cor0
----
-12
-19
-55

query I rowsort
SELECT ALL 23 * + col1 AS col1 FROM tab2 AS cor0
----
1173
1541
1771

query I rowsort
SELECT ALL - 42 FROM tab2 AS cor0 WHERE NOT col0 < + + col0 * 68 - + - 41 + - ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6549
SELECT + + 48 + - 95 + - CAST( + + col1 AS SIGNED ) * col1 * + ( - + col2 ) FROM tab0 AS cor0
----
308320
4363
52

skipif mysql # not compatible
query I rowsort label-6549
SELECT + + 48 + - 95 + - CAST ( + + col1 AS INTEGER ) * col1 * + ( - + col2 ) FROM tab0 AS cor0
----
308320
4363
52

query II rowsort
SELECT ALL + 89 * + col1 + + col1 AS col1, ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE 19 IS NOT NULL
----
1890
-21
7290
-81
90
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT 50 * COUNT( * ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-6553
SELECT 50 * COUNT ( * ) FROM tab0
----
150

onlyif mysql # DIV for integer division: 
query II rowsort label-6554
SELECT DISTINCT col1 + - 31 - - col2, 46 DIV - col2 AS col2 FROM tab0
----
0
-4
69
0
97
0

skipif mysql # not compatible
query II rowsort label-6554
SELECT DISTINCT col1 + - 31 - - col2, 46 / - col2 AS col2 FROM tab0
----
0
-4
69
0
97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT ALL + MAX( DISTINCT + CAST( - col1 AS SIGNED ) ) * + COUNT( * ) + - COUNT( DISTINCT + + 86 ) AS col2 FROM tab2
----
-154

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + MAX ( DISTINCT + CAST ( - col1 AS INTEGER ) ) * + COUNT ( * ) + - COUNT ( DISTINCT + + 86 ) AS col2 FROM tab2
----
-154

query I rowsort
SELECT ALL + col1 - - + col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL + 24 - + 93 FROM tab2 AS cor0
----
-69
-69
-69

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT DISTINCT SUM( 1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT SUM ( 1 ) FROM tab2
----
3

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

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

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

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

query I rowsort
SELECT ALL col1 * col1 - 11 AS col0 FROM tab2
----
2590
4478
5918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6565
SELECT CAST( - 39 AS SIGNED ) FROM tab2 WHERE NULL < 99 * + ( col2 * ( col1 ) ) + + 44 * + ( ( 24 ) * + col2 )
----

skipif mysql # not compatible
query I rowsort label-6565
SELECT CAST ( - 39 AS INTEGER ) FROM tab2 WHERE NULL < 99 * + ( col2 * ( col1 ) ) + + 44 * + ( ( 24 ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL MIN( ALL 12 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL MIN ( ALL 12 ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL - MIN( ALL + col0 ) - + 29 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - MIN ( ALL + col0 ) - + 29 FROM tab0
----
-44

query I rowsort
SELECT DISTINCT - col2 - 99 AS col0 FROM tab0
----
-109
-146
-198

query III rowsort
SELECT * FROM tab0 WHERE - col0 + col1 <= col2 + + 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT + ( + COUNT( * ) ) + + COUNT( * ) * COUNT( ALL - 90 ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-6570
SELECT + ( + COUNT ( * ) ) + + COUNT ( * ) * COUNT ( ALL - 90 ) AS col2 FROM tab2
----
12

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 84 / col1 <> ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT 63 * SUM( ALL + 63 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
11907

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT 63 * SUM ( ALL + 63 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
11907

query I rowsort
SELECT ALL - col2 + 48 * - col2 AS col2 FROM tab1
----
-2891
-3332
-4704

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

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

query I rowsort
SELECT col2 FROM tab0 WHERE ( + 51 ) IN ( + col1 )
----

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

query I rowsort
SELECT DISTINCT - ( 94 ) AS col1 FROM tab1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT MAX( - col2 ) FROM tab2 WHERE col1 * col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6579
SELECT MAX ( - col2 ) FROM tab2 WHERE col1 * col2 IS NULL
----
NULL

query I rowsort
SELECT 98 FROM tab2 WHERE NOT ( 69 ) NOT BETWEEN + col0 AND ( col1 * - 50 + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6581
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) col0 FROM tab1 WHERE 73 NOT IN ( col2 + - col2 * + CAST( - col0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6581
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 WHERE 73 NOT IN ( col2 + - col2 * + CAST ( - col0 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT ALL MAX( DISTINCT col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL MAX ( DISTINCT col0 ) AS col0 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col0 FROM tab1
----
51
85
91

query I rowsort
SELECT col2 * 27 AS col0 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

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

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

query I rowsort
SELECT + col2 * - 40 AS col1 FROM tab1 AS cor0
----
-2360
-2720
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-6588
SELECT ALL - ( + col2 ) DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - ( + col2 ) / - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + + 93 AS col0 FROM tab2 AS cor0
----
16
26
42

query I rowsort
SELECT col1 + 50 AS col1 FROM tab0 cor0
----
131
51
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT 83 DIV col1 + + col1 AS col0 FROM tab1 AS cor0
----
19
21
48

skipif mysql # not compatible
query I rowsort label-6591
SELECT 83 / col1 + + col1 AS col0 FROM tab1 AS cor0
----
19
21
48

query I rowsort
SELECT - ( - col1 ) * col0 + + 64 FROM tab1 AS cor0
----
4341
489
778

query I rowsort
SELECT DISTINCT col1 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col0 = - col0 / - 17
----

query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT ALL - - COUNT( * ) * 87 + 74 FROM tab2 cor0
----
335

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL - - COUNT ( * ) * 87 + 74 FROM tab2 cor0
----
335

query I rowsort
SELECT ALL + col1 * 36 AS col1 FROM tab1 cor0
----
1692
180
504

query I rowsort
SELECT DISTINCT 72 FROM tab1 AS cor0 WHERE NOT col2 * + col2 >= ( ( col0 ) * - col1 + 40 )
----

query I rowsort
SELECT + 20 * - col1 AS col0 FROM tab1 cor0
----
-100
-280
-940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT + + MIN( + col2 ) * - 54 FROM tab1 AS cor0
----
-3186

skipif mysql # not compatible
query I rowsort label-6603
SELECT + + MIN ( + col2 ) * - 54 FROM tab1 AS cor0
----
-3186

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

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

query I rowsort
SELECT ALL + ( + 81 ) FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT col1 * col1 AS col2 FROM tab0 WHERE + col2 + - 62 BETWEEN NULL AND 33
----

query I rowsort
SELECT col1 + - col1 * - col1 FROM tab0 WHERE ( ( col2 ) * ( col1 - - col2 * + col0 ) ) >= col0 * col0 + col1
----
2
462
6642

query I rowsort
SELECT col1 * - - col2 + + 34 AS col2 FROM tab2
----
1207
3114
3920

query I rowsort
SELECT + 89 AS col2 FROM tab2 WHERE 82 < 60 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + + 50 col1 FROM tab1
----
3
36
45

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * - col1 IS NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE + 58 + col1 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 61 + + col1 FROM tab0 AS cor0
----
142
62
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + - MIN( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6615
SELECT + - MIN ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
-1

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

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT COUNT ( * ) / - - ( + 37 ) FROM tab1 AS cor0
----
0

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

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

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

query I rowsort
SELECT - 38 AS col0 FROM tab1, tab2 AS cor0 WHERE NULL NOT IN ( + 21 )
----

query I rowsort
SELECT - ( - 61 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6621
SELECT col2 * + CAST( col2 AS SIGNED ) FROM tab2
----
1600
3364
529

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6622
SELECT ALL - SUM( ALL + CAST( - - col0 AS SIGNED ) ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - SUM ( ALL + CAST ( - - col0 AS INTEGER ) ) AS col2 FROM tab2
----
-185

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

skipif mysql # not compatible
query I rowsort label-6623
SELECT - + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT - ( MAX( ALL + + col2 ) ) * + MIN( + col1 * col1 ) FROM tab1 AS cor0
----
-2400

skipif mysql # not compatible
query I rowsort label-6625
SELECT - ( MAX ( ALL + + col2 ) ) * + MIN ( + col1 * col1 ) FROM tab1 AS cor0
----
-2400

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 91 + - 78 - - col1 ) IS NULL
----

query I rowsort
SELECT - - col2 * - - 89 AS col2 FROM tab0 AS cor0
----
4183
8811
890

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL - COUNT( 8 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - COUNT ( 8 ) FROM tab0
----
-3

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + col1 * col2 BETWEEN ( NULL ) AND col1 * 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT col0 + + 75 + col1 FROM tab1
----
140
165
213

query I rowsort
SELECT ALL - 26 + col1 AS col1 FROM tab0
----
-25
-5
55

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

query I rowsort
SELECT ALL - col1 * - 81 + + col2 FROM tab2 AS cor0
----
4154
5485
6277

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT - + ( - COUNT( + + col2 ) ) * + SUM( col2 ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-6641
SELECT - + ( - COUNT ( + + col2 ) ) * + SUM ( col2 ) FROM tab0 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT DISTINCT + 73 * COUNT( * ) * + + 51 AS col1 FROM tab1 AS cor0
----
11169

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + 73 * COUNT ( * ) * + + 51 AS col1 FROM tab1 AS cor0
----
11169

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6644
SELECT * FROM tab1 WHERE ( - - ( + CAST( - col2 AS SIGNED ) ) ) < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6644
SELECT * FROM tab1 WHERE ( - - ( + CAST ( - col2 AS INTEGER ) ) ) < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 22 * + col1 + + col0 AS col1, + 75 - - col1 FROM tab0
----
119
76
1797
156
549
96

query I rowsort
SELECT ALL col0 - 52 FROM tab0 AS cor0
----
-37
35
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - 81 + + COUNT( col2 ) + + 37 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 81 + + COUNT ( col2 ) + + 37 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-38

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6649
SELECT + + 27 * CAST( col0 AS SIGNED ) + - + ( - ( + col1 ) ) col0 FROM tab1 AS cor0
----
1391
2300
2504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6649
SELECT + + 27 * CAST ( col0 AS INTEGER ) + - + ( - ( + col1 ) ) col0 FROM tab1 AS cor0
----
1391
2300
2504

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

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

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT ALL 64 - col1 AS col2 FROM tab1 cor0
----
17
50
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 50 * + 66 * + - col0 + + col2 * 54 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 - + + col0 * - col2 FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL + ( + MAX( ALL col0 ) ) * + COUNT( * ) + 77 FROM tab0 AS cor0 WHERE - col2 + - - 89 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL + ( + MAX ( ALL col0 ) ) * + COUNT ( * ) + 77 FROM tab0 AS cor0 WHERE - col2 + - - 89 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT + col1 DIV + - 90 + + 36 - - col2 - col2 - - col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-6656
SELECT + col1 / + - 90 + + 36 - - col2 - col2 - - col1 / - col1 AS col0 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT - col0 FROM tab1 WHERE + col1 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT DISTINCT col0 + - - col1 DIV + col0 FROM tab2 WHERE NOT col1 * 97 IS NULL
----
47
65
75

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT col0 + - - col1 / + col0 FROM tab2 WHERE NOT col1 * 97 IS NULL
----
47
65
75

query I rowsort
SELECT ALL - 20 * - 86 AS col2 FROM tab1
----
1720
1720
1720

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 60 + - + ( - col2 ) col1 FROM tab0
----
2867
6039
610

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

query I rowsort
SELECT DISTINCT - 37 + - 86 FROM tab2
----
-123

query I rowsort
SELECT col0 - - 50 AS col1 FROM tab0
----
137
147
65

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

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - COUNT ( * ) * ( + CAST ( NULL AS INTEGER ) ) * - 95 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + col1 * + col1 - ( + 74 ) + + col1 FROM tab2
----
2578
4482
5932

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 0 AS col0, 96 col1 FROM tab0 cor0
----
0
96
0
96
0
96

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

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

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

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

query I rowsort
SELECT DISTINCT - - 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6672
SELECT ALL 11 * + col0 FROM tab1 WHERE NOT + CAST( - + ( + + 69 ) AS SIGNED ) / col0 IN ( + 88 / - CAST( + col0 + + col0 AS DECIMAL ) )
----
1001
561
935

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL 11 * + col0 FROM tab1 WHERE NOT + CAST ( - + ( + + 69 ) AS INTEGER ) / col0 IN ( + 88 / - CAST ( + col0 + + col0 AS REAL ) )
----
1001
561
935

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 96 < NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col0 + col0 col2 FROM tab1 cor0
----
2652
7310
8372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6676
SELECT - - COUNT( + - col0 ) DIV - 5 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6676
SELECT - - COUNT ( + - col0 ) / - 5 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, - col1 )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-6678
SELECT + + 91 DIV + - 95 AS col0, 61 - - 13 - + col1, - col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 9d7cf121d7c3edc7f5f5a822573c0fb6

skipif mysql # not compatible
query III rowsort label-6678
SELECT + + 91 / + - 95 AS col0, 61 - - 13 - + col1, - col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 9d7cf121d7c3edc7f5f5a822573c0fb6

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

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

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab2 WHERE ( - 94 ) >= col2 * + - 61
----
23
40
58

query I rowsort
SELECT - - col2 + + - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT + SUM( DISTINCT col2 ) * - - 78 + + + 41 + - COUNT( * ) FROM tab2 AS cor0
----
9476

skipif mysql # not compatible
query I rowsort label-6684
SELECT + SUM ( DISTINCT col2 ) * - - 78 + + + 41 + - COUNT ( * ) FROM tab2 AS cor0
----
9476

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT ALL COUNT( * ) - - + 77 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
80

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL COUNT ( * ) - - + 77 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
80

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

skipif mysql # not compatible
query I rowsort label-6686
SELECT CAST ( NULL AS INTEGER ) + + - MAX ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6687
SELECT + ( + + CAST( - col0 AS SIGNED ) ) + - col0 + - 82 col0 FROM tab1 AS cor0
----
-184
-252
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6687
SELECT + ( + + CAST ( - col0 AS INTEGER ) ) + - col0 + - 82 col0 FROM tab1 AS cor0
----
-184
-252
-264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6688
SELECT - - CAST( - COUNT( DISTINCT col1 ) AS SIGNED ) + - + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6688
SELECT - - CAST ( - COUNT ( DISTINCT col1 ) AS INTEGER ) + - + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT col2 + + - col1 * - col2 AS col1 FROM tab0
----
198
220
3854

query I rowsort
SELECT ALL + 82 + + + col0 * - col1 * + ( + col1 ) + + - col1 FROM tab2
----
-119615
-336660
-379451

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + 89
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6692
SELECT - COUNT ( * ) - - + CAST ( + - 19 AS INTEGER ) col2 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT ( - col0 ) - + - col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT DISTINCT - 1 + - - col2 + + ( 4 ) DIV col0 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT - 1 + - - col2 + + ( 4 ) / col0 FROM tab0 AS cor0
----
46
9
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 - col2 + + - col0 + col2 / col1 * col1 < ( 78 * - col1 + col0 )
----
97
1
99

query I rowsort
SELECT DISTINCT + 47 - ( - col2 ) FROM tab2 AS cor0
----
105
70
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT ( - col2 ) - - col1 DIV 8 DIV + col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6697
SELECT ( - col2 ) - - col1 / 8 / + col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT ALL + col1 * + col1 AS col1 FROM tab2 WHERE + col0 - 80 + - 63 * - 8 + + - CAST( + 80 AS SIGNED ) IS NOT NULL AND NOT col2 + - col0 NOT BETWEEN NULL AND ( - 36 )
----

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + col1 * + col1 AS col1 FROM tab2 WHERE + col0 - 80 + - 63 * - 8 + + - CAST ( + 80 AS INTEGER ) IS NOT NULL AND NOT col2 + - col0 NOT BETWEEN NULL AND ( - 36 )
----

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

query II rowsort
SELECT DISTINCT + + col0, col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
46
64
64
75
75

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + + CAST ( + - 88 AS INTEGER ) ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT - COUNT( * ) * - MAX( ALL col1 ) * - 74 FROM tab2
----
-17094

skipif mysql # not compatible
query I rowsort label-6704
SELECT - COUNT ( * ) * - MAX ( ALL col1 ) * - 74 FROM tab2
----
-17094

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6705
SELECT COUNT( * ) DIV + SUM( ALL col1 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT COUNT ( * ) / + SUM ( ALL col1 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT - col0 * + 47 AS col0 FROM tab0
----
-4089
-4559
-705

query II rowsort
SELECT - 17, + col0 - col0 + + col1 AS col2 FROM tab2
----
-17
51
-17
67
-17
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT DISTINCT + MAX( - + col1 ) FROM tab1 cor0 WHERE + col2 * col1 < + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT + MAX ( - + col1 ) FROM tab1 cor0 WHERE + col2 * col1 < + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL SUM( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL SUM ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - 64 * 51 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - 92, + 56 / + 43 )
----

query I rowsort
SELECT ALL + - col0 * + 24 + - col1 FROM tab0 AS cor0
----
-2109
-2329
-441

query I rowsort
SELECT + col0 * + col2 - + 25 - + col0 AS col1 FROM tab0 cor0 WHERE NOT 13 > + col0
----
665
758
9481

query I rowsort
SELECT DISTINCT 37 * - 58 AS col1 FROM tab1 AS cor0
----
-2146

query I rowsort
SELECT ALL + 34 * - ( col1 ) + col2 + + + col0 FROM tab0 AS cor0
----
-2692
-617
162

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6716
SELECT DISTINCT + CAST( + - col2 AS DECIMAL ) / CAST( - + ( col1 ) AS SIGNED ) col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6716
SELECT DISTINCT + CAST ( + - col2 AS REAL ) / CAST ( - + ( col1 ) AS INTEGER ) col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + col1 + - col0 - + col2 + + 36 FROM tab1
----
-144
-162
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6718
SELECT + 73 + - - CAST( + - ( - 99 ) AS SIGNED ) AS col0 FROM tab2
----
172
172
172

skipif mysql # not compatible
query I rowsort label-6718
SELECT + 73 + - - CAST ( + - ( - 99 ) AS INTEGER ) AS col0 FROM tab2
----
172
172
172

query I rowsort
SELECT ALL col0 * - col1 + - + col1 FROM tab0
----
-1296
-1848
-98

query III rowsort
SELECT * FROM tab2 WHERE + - col1 - + 94 / - - 10 + - 43 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - + col0 AS col1, + 77 col2 FROM tab2
----
-1058
77
-2560
77
-4350
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col1 FROM tab2 WHERE + 53 IS NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6725
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6725
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col1 + 45 FROM tab1
----
4322
470
759

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT 74 * + + 72 * - COUNT( * ) * - ( COUNT( * ) ) * + 83 + + - 43 AS col1 FROM tab0
----
3979973

skipif mysql # not compatible
query I rowsort label-6727
SELECT 74 * + + 72 * - COUNT ( * ) * - ( COUNT ( * ) ) * + 83 + + - 43 AS col1 FROM tab0
----
3979973

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT ( - MAX( 64 ) ) FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT ( - MAX ( 64 ) ) FROM tab1
----
-64

query I rowsort
SELECT ALL 96 + - 2 FROM tab1 cor0
----
94
94
94

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6731
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE ( - + 39 ) < CAST( + + col1 AS SIGNED ) + - - 17
----
3

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE ( - + 39 ) < CAST ( + + col1 AS INTEGER ) + - - 17
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL 13 * + 56 * COUNT( * ) AS col2 FROM tab2 cor0
----
2184

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL 13 * + 56 * COUNT ( * ) AS col2 FROM tab2 cor0
----
2184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - 35 AS col2 FROM tab2 AS cor0
----
-23
-35
-40
-35
-58
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT - 11 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6735
SELECT - 11 / col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 76 * + ( + 94 ) FROM tab1
----
7144
7144
7144

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

query II rowsort
SELECT col1 * - - col2, + col2 FROM tab2
----
1173
23
3080
40
3886
58

query I rowsort
SELECT - - col2 AS col0 FROM tab1 WHERE NOT + - 96 <> + - 76
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - ( - + col0 ) AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL + ( - 85 ) FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + col2 * - 46 + + - 2 FROM tab2
----
-1060
-1842
-2670

query II rowsort
SELECT ALL - col2 * - - 37 + + 10 * - - col2 + col1 AS col2, + 27 + + col2 FROM tab1 AS cor0
----
-1588
86
-1789
95
-2578
123

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

query I rowsort
SELECT ALL 24 * - 46 FROM tab2 AS cor0
----
-1104
-1104
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT 39 * COUNT( * ) FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-6747
SELECT 39 * COUNT ( * ) FROM tab1 AS cor0
----
117

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6748
SELECT DISTINCT - - col1 / col2 col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6749
SELECT + col1, + 11 * col0 DIV - col1 AS col2 FROM tab1
----
14
-40
47
-21
5
-187

skipif mysql # not compatible
query II rowsort label-6749
SELECT + col1, + 11 * col0 / - col1 AS col2 FROM tab1
----
14
-40
47
-21
5
-187

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col0 + col1 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + + col2 ) + ( + col1 ) - col0 * + col1 col1, col0 FROM tab1
----
-361
85
-4162
91
-604
51

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

query I rowsort
SELECT ALL col0 + 16 AS col1 FROM tab0
----
103
113
31

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

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

query I rowsort
SELECT - + col0 + - + 69 FROM tab2 AS cor0
----
-115
-133
-144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT - - 37 + - - SUM( + + col2 ) AS col0 FROM tab0 AS cor0
----
193

skipif mysql # not compatible
query I rowsort label-6759
SELECT - - 37 + - - SUM ( + + col2 ) AS col0 FROM tab0 AS cor0
----
193

query I rowsort
SELECT ALL 74 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # aggregate syntax: 
query II rowsort label-6761
SELECT MIN( DISTINCT - + col2 ), 22 * - + 68 AS col0 FROM tab2
----
-58
-1496

skipif mysql # not compatible
query II rowsort label-6761
SELECT MIN ( DISTINCT - + col2 ), 22 * - + 68 AS col0 FROM tab2
----
-58
-1496

query I rowsort
SELECT DISTINCT - col2 * + + 17 AS col2 FROM tab0 AS cor0
----
-1683
-170
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT + MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6763
SELECT + MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1

query II rowsort
SELECT + ( ( - 96 ) ) AS col1, col0 FROM tab0 AS cor0
----
-96
15
-96
87
-96
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT - MAX( - 61 ) AS col1 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-6765
SELECT - MAX ( - 61 ) AS col1 FROM tab1 AS cor0
----
61

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6769
SELECT - CAST( NULL AS SIGNED ) * 95 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT - CAST ( NULL AS INTEGER ) * 95 AS col0 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col2 * + - col1 FROM tab0 AS cor0
----
210
3807
99

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

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

query II rowsort
SELECT ALL col1 AS col0, + 3 FROM tab2 AS cor0
----
51
3
67
3
77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT - - COUNT( DISTINCT 98 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6774
SELECT - - COUNT ( DISTINCT 98 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT - 5 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

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

query I rowsort
SELECT + col0 + 6 AS col1 FROM tab0 AS cor0
----
103
21
93

query I rowsort
SELECT DISTINCT - + 93 AS col2 FROM tab0 AS cor0
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6779
SELECT ALL - 70 + - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL - 70 + - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, - col0 * - 5 AS col2 FROM tab1
----
51
255
85
425
91
455

query I rowsort
SELECT ALL - 81 + 25 + - col0 + + col0 AS col2 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT + 66 * - col1 * - - 17 * + col2 FROM tab0
----
-111078
-235620
-4271454

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE NULL = NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( + MIN( 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-6785
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6786
SELECT ALL col0 * + + col0 * - CAST( NULL AS SIGNED ) + + 17 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL col0 * + + col0 * - CAST ( NULL AS INTEGER ) + + 17 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 99 + + col0 FROM tab2
----
145
163
174

query I rowsort
SELECT DISTINCT - col0 - + ( - 77 ) FROM tab0
----
-10
-20
62

query I rowsort
SELECT ALL col1 * col1 + + - col0 * + 37 FROM tab1
----
-1158
-1691
-3120

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 68 IS NULL
----

query I rowsort
SELECT ALL - 16 * - 0 AS col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, - 45 col2 FROM tab0
----
-15
-45
-87
-45
-97
-45

query II rowsort
SELECT ALL + col1 AS col0, 32 * + + col2 AS col0 FROM tab1 AS cor0
----
14
3072
47
2176
5
1888

onlyif mysql # DIV for integer division: 
query II rowsort label-6794
SELECT ALL col2, - col0 + + + 67 DIV col1 AS col1 FROM tab0 AS cor0
----
10
-84
47
-15
99
-30

skipif mysql # not compatible
query II rowsort label-6794
SELECT ALL col2, - col0 + + + 67 / col1 AS col1 FROM tab0 AS cor0
----
10
-84
47
-15
99
-30

query I rowsort
SELECT + 97 * - 51 FROM tab2
----
-4947
-4947
-4947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6796
SELECT CAST( + + col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6796
SELECT CAST ( + + col2 AS INTEGER ) FROM tab2
----
23
40
58

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 76 - - - 15 NOT IN ( - + col1, - col0, col2, + - col2 * + 26 )
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL = - - ( + + 84 ) * col1
----

query III rowsort
SELECT * FROM tab0 WHERE - 86 * + ( + col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6804
SELECT + - COUNT( * ) AS col0, 44 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
35

skipif mysql # not compatible
query II rowsort label-6804
SELECT + - COUNT ( * ) AS col0, 44 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
35

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE col2 * - col1 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - ( + col2 ) + col2 + + + 95 AS col0 FROM tab2 AS cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 97 col2, col1 FROM tab2 AS cor0
----
97
51
97
67
97
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT - + 12 * + COUNT( * ) + - 54 + 4 AS col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-6809
SELECT - + 12 * + COUNT ( * ) + - 54 + 4 AS col0 FROM tab1 AS cor0
----
-86

query II rowsort
SELECT ALL + + col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6811
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6811
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
3
3

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

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

query I rowsort
SELECT DISTINCT + 35 * col0 * 72 FROM tab2 WHERE NOT 68 * + col0 IS NULL
----
115920
161280
189000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT ALL - CAST( - 10 AS SIGNED ) + - - col1 FROM tab0
----
11
31
91

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL - CAST ( - 10 AS INTEGER ) + - - col1 FROM tab0
----
11
31
91

query II rowsort
SELECT + ( + col0 ), + 53 * 35 AS col2 FROM tab1 WHERE + + 23 + - 40 * - - col0 - + col0 BETWEEN 22 - + col1 AND NULL
----

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

query I rowsort
SELECT 54 + - ( + + col1 ) FROM tab0
----
-27
33
53

query I rowsort
SELECT col0 * 82 + + 21 + - col1 AS col0 FROM tab2
----
3742
5192
6104

query I rowsort
SELECT DISTINCT col2 - + col1 * + col0 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - 41 * + MAX( DISTINCT 36 ) AS col2 FROM tab1
----
-1476

skipif mysql # not compatible
query I rowsort label-6820
SELECT - 41 * + MAX ( DISTINCT 36 ) AS col2 FROM tab1
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT - ( - MIN( ALL - 34 ) ) AS col2 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT - ( - MIN ( ALL - 34 ) ) AS col2 FROM tab1
----
-34

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

query I rowsort
SELECT DISTINCT + - 52 AS col0 FROM tab2 AS cor0
----
-52

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

query I rowsort
SELECT ALL col2 * + - col0 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT DISTINCT + ( - - 64 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + ( - - 64 ) / - col1 AS col0 FROM tab1 AS cor0
----
-1
-12
-4

query I rowsort
SELECT DISTINCT col0 * + 66 FROM tab2
----
3036
4224
4950

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - - col1 + + 64 / + 89 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-6829
SELECT DISTINCT - 96 col0, COUNT( * ) AS col2 FROM tab1
----
-96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6829
SELECT DISTINCT - 96 col0, COUNT ( * ) AS col2 FROM tab1
----
-96
3

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

query I rowsort
SELECT DISTINCT col2 * col1 + - + col2 FROM tab2
----
1150
3040
3828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT MAX( + - ( - col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6833
SELECT MAX ( + - ( - col1 ) ) AS col0 FROM tab0
----
81

query I rowsort
SELECT 52 * - col0 AS col1 FROM tab1
----
-2652
-4420
-4732

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT DISTINCT MIN( ALL - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT MIN ( ALL - col2 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT + COUNT( * ) * - 63 AS col0 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-6837
SELECT + COUNT ( * ) * - 63 AS col0 FROM tab0
----
-189

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

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

query II rowsort
SELECT ALL + 50 AS col1, 65 FROM tab1 AS cor0
----
50
65
50
65
50
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT DISTINCT 34 + MIN( + col2 ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT 34 + MIN ( + col2 ) AS col0 FROM tab1
----
93

query III rowsort
SELECT ALL * FROM tab1 WHERE 10 < + col0 * - - 83 + - + 71 + - ( - 49 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT COUNT( * ) * 19 + - + 46 AS col0 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-6843
SELECT COUNT ( * ) * 19 + - + 46 AS col0 FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL COUNT( * ) * - 56 AS col0 FROM tab0, tab0 cor0
----
-504

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL COUNT ( * ) * - 56 AS col0 FROM tab0, tab0 cor0
----
-504

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT DISTINCT - COUNT( DISTINCT - 55 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT - COUNT ( DISTINCT - 55 ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6847
SELECT ALL + + col2 + 18 + + - 88 DIV + col1 col0 FROM tab1 AS cor0
----
108
60
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6847
SELECT ALL + + col2 + 18 + + - 88 / + col1 col0 FROM tab1 AS cor0
----
108
60
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT COUNT( * ) * MAX( - 21 ) AS col2 FROM tab2 AS cor0 WHERE 3 = - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT COUNT ( * ) * MAX ( - 21 ) AS col2 FROM tab2 AS cor0 WHERE 3 = - col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 5 IS NOT NULL
----

query I rowsort
SELECT col0 * - ( - + 87 ) FROM tab2 AS cor0
----
4002
5568
6525

query III rowsort
SELECT * FROM tab2 WHERE + 53 BETWEEN 17 AND col0
----
64
77
40
75
67
58

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL 66 * + + col2 FROM tab0
----
3102
6534
660

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

query II rowsort
SELECT - 46 AS col0, + col0 AS col0 FROM tab0
----
-46
15
-46
87
-46
97

query I rowsort
SELECT ALL 20 + + col1 AS col0 FROM tab1
----
25
34
67

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

query II rowsort
SELECT DISTINCT 38 + + + 68 + + 90 AS col0, col1 AS col1 FROM tab1
----
196
14
196
47
196
5

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

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

query I rowsort
SELECT - col2 * 93 FROM tab0 AS cor0
----
-4371
-9207
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT DISTINCT - SUM( DISTINCT + - col1 ) col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6863
SELECT DISTINCT - SUM ( DISTINCT + - col1 ) col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 65 + - col1 col1 FROM tab1 AS cor0 WHERE NOT + col0 <> col2 + - col1
----

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

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

query I rowsort
SELECT + 59 FROM tab2 AS cor0 WHERE NULL IS NULL AND NULL NOT BETWEEN - ( - - 53 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6867
SELECT ( col1 ) AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6867
SELECT ( col1 ) AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT ALL + col0 * - col0, col0 FROM tab0 AS cor0
----
-225
15
-7569
87
-9409
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6869
SELECT DISTINCT - 97 DIV + COUNT( * ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT - 97 / + COUNT ( * ) FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT COUNT( DISTINCT 59 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6870
SELECT COUNT ( DISTINCT 59 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6871
SELECT DISTINCT MIN( DISTINCT - - col0 ) DIV - 54 AS col0, - COUNT( * ) FROM tab2
----
0
-3

skipif mysql # not compatible
query II rowsort label-6871
SELECT DISTINCT MIN ( DISTINCT - - col0 ) / - 54 AS col0, - COUNT ( * ) FROM tab2
----
0
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT ALL - 11 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - 11 / col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL 11 + - MAX( + + col1 ) AS col0 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL 11 + - MAX ( + + col1 ) AS col0 FROM tab0
----
-70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT SUM( DISTINCT - 56 ) FROM tab2, tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT SUM ( DISTINCT - 56 ) FROM tab2, tab1 AS cor0
----
-56

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT + 23 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT col2 + - - col0 + - - 14 FROM tab1
----
158
161
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT 76 * 0 * - MAX( ALL - - col0 ) * + + SUM( col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT 76 * 0 * - MAX ( ALL - - col0 ) * + + SUM ( col0 ) FROM tab0 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT - col0 - + col0 DIV + col2 AS col1 FROM tab0 cor0
----
-15
-95
-97

skipif mysql # not compatible
query I rowsort label-6883
SELECT - col0 - + col0 / + col2 AS col1 FROM tab0 cor0
----
-15
-95
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT - MIN( DISTINCT - - col2 ) - - 28 AS col0 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6884
SELECT - MIN ( DISTINCT - - col2 ) - - 28 AS col0 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT - col1 - - + 3 AS col0 FROM tab1 AS cor0
----
-11
-2
-44

query I rowsort
SELECT ALL - 43 - + col1 * - + col1 FROM tab1 AS cor0
----
-18
153
2166

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

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

query I rowsort
SELECT - 83 * + col2 + 92 AS col1 FROM tab0
----
-3809
-738
-8125

onlyif mysql # aggregate syntax: 
query II rowsort label-6890
SELECT DISTINCT COUNT( * ) * + COUNT( * ), COUNT( + col2 ) AS col0 FROM tab1
----
9
3

skipif mysql # not compatible
query II rowsort label-6890
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ), COUNT ( + col2 ) AS col0 FROM tab1
----
9
3

query I rowsort
SELECT ALL + col1 + 49 FROM tab0
----
130
50
70

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 22 * col1 <> - 2
----

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab2
----
-87

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

query I rowsort
SELECT DISTINCT + col0 * - col1 * + 76 AS col2 FROM tab2 AS cor0
----
-178296
-374528
-381900

query I rowsort
SELECT DISTINCT - 28 AS col1 FROM tab0 cor0
----
-28

query II rowsort
SELECT - col1 AS col2, 26 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT DISTINCT SUM( + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT SUM ( + col1 ) AS col2 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * - 57 col0 FROM tab1
----
-4617
-4617
-4617

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL 47 * COUNT( * ) FROM tab0, tab2 AS cor0
----
423

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL 47 * COUNT ( * ) FROM tab0, tab2 AS cor0
----
423

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL + 19 * + 53 - - - COUNT( * ) FROM tab0 AS cor0
----
1004

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL + 19 * + 53 - - - COUNT ( * ) FROM tab0 AS cor0
----
1004

query I rowsort
SELECT DISTINCT - col2 * 42 FROM tab0 AS cor0
----
-1974
-4158
-420

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 <= + col0 + - - col1
----

query I rowsort
SELECT - 7 + + - 22 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT col1 * col0 * + 99 FROM tab2
----
232254
487872
497475

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / + + 14 - + 63 / - - col0 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6911
SELECT + 39 + - 67 * ( + - col1 ), + 36 * - 31 FROM tab1 WHERE - + col1 + + CAST( NULL AS SIGNED ) > + col0
----

skipif mysql # not compatible
query II rowsort label-6911
SELECT + 39 + - 67 * ( + - col1 ), + 36 * - 31 FROM tab1 WHERE - + col1 + + CAST ( NULL AS INTEGER ) > + col0
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT - 22 > + + 11 * + 33 - + + 82
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT DISTINCT + MAX( ALL col0 ) FROM tab2 WHERE col1 * - 71 - + col0 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT + MAX ( ALL col0 ) FROM tab2 WHERE col1 * - 71 - + col0 IS NOT NULL
----
75

query I rowsort
SELECT + 50 * - col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( ( - 45 ) + 86 ) AND NULL OR NOT NULL IS NOT NULL
----
-2550
-4250
-4550

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col2 AS col0, 45 FROM tab1
----
59
45
68
45
96
45

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 - + - col0 + + + col0 AS col1 FROM tab2
----
-23
138
-40
192
-58
225

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT ALL - + COUNT( * ) * - - 79 AS col0 FROM tab1 cor0
----
-237

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL - + COUNT ( * ) * - - 79 AS col0 FROM tab1 cor0
----
-237

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

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

query I rowsort
SELECT + 24 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query II rowsort label-6927
SELECT ALL - ( + COUNT( * ) ) AS col0, + SUM( + 32 ) AS col2 FROM tab0
----
-3
96

skipif mysql # not compatible
query II rowsort label-6927
SELECT ALL - ( + COUNT ( * ) ) AS col0, + SUM ( + 32 ) AS col2 FROM tab0
----
-3
96

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

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

query I rowsort
SELECT ALL - - 75 + + - col2 AS col2 FROM tab2 AS cor0
----
17
35
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT + COUNT( * ) * - COUNT( * ) * + - COUNT( * ), 93 * + - 5 AS col0 FROM tab2 AS cor0
----
27
-465

skipif mysql # not compatible
query II rowsort label-6930
SELECT + COUNT ( * ) * - COUNT ( * ) * + - COUNT ( * ), 93 * + - 5 AS col0 FROM tab2 AS cor0
----
27
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT - MIN( + - 80 ) AS col0 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6931
SELECT - MIN ( + - 80 ) AS col0 FROM tab0 AS cor0
----
80

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 7 * - 25 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - col0
----

query II rowsort
SELECT col2, 21 * + col2 AS col1 FROM tab2
----
23
483
40
840
58
1218

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6937
SELECT ALL + CAST( 57 AS SIGNED ) + + 8 col2, col1 - - col0 AS col2 FROM tab0
----
65
108
65
96
65
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6937
SELECT ALL + CAST ( 57 AS INTEGER ) + + 8 col2, col1 - - col0 AS col2 FROM tab0
----
65
108
65
96
65
98

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

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

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

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

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

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

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

query I rowsort
SELECT + col0 * + 3 + - + 8 FROM tab2 AS cor0
----
130
184
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT - - 99 * + 13 + + 30 * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
1287

skipif mysql # not compatible
query I rowsort label-6944
SELECT - - 99 * + 13 + + 30 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
1287

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

query I rowsort
SELECT ALL col0 + + 54 FROM tab0
----
141
151
69

query I rowsort
SELECT - 46 FROM tab0 WHERE NULL BETWEEN col2 AND + 61
----

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

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

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

query I rowsort
SELECT + 75 * col0 + + 3 * + - col2 AS col0 FROM tab1 AS cor0
----
3537
6198
6621

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

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

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

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

query I rowsort
SELECT ALL + col0 + + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

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

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

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

query I rowsort
SELECT - 87 * - - col2 FROM tab0 AS cor0
----
-4089
-8613
-870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT - 96 * + CAST( - 26 AS SIGNED ) FROM tab0
----
2496
2496
2496

skipif mysql # not compatible
query I rowsort label-6957
SELECT - 96 * + CAST ( - 26 AS INTEGER ) FROM tab0
----
2496
2496
2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 41 + + 77 col1, + col0 FROM tab0
----
118
15
118
87
118
97

query I rowsort
SELECT DISTINCT - + col2 + + col2 * + - ( - col2 ) FROM tab1 AS cor0
----
3422
4556
9120

query I rowsort
SELECT - col2 * + - col0 + - col0 + + - col1 + col0 * col2 AS col2 FROM tab0 AS cor0
----
1314
1632
19108

query II rowsort
SELECT DISTINCT - + col2 AS col0, - 35 - - col0 * - col0 FROM tab0 AS cor0
----
-10
-7604
-47
-260
-99
-9444

onlyif mysql # aggregate syntax: 
query II rowsort label-6962
SELECT ALL - 63 col2, 84 * - + COUNT( * ) FROM tab0 cor0
----
-63
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6962
SELECT ALL - 63 col2, 84 * - + COUNT ( * ) FROM tab0 cor0
----
-63
-252

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

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

skipif mysql # not compatible
query I rowsort label-6964
SELECT COUNT ( * ) + + CAST ( 54 AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
165

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

query I rowsort
SELECT DISTINCT + col2 + - 40 AS col1 FROM tab0 cor0
----
-30
59
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 54 = - - 25
----

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

query I rowsort
SELECT 68 * + ( - ( - 59 ) ) * col1 AS col1 FROM tab0
----
324972
4012
84252

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

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

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

query I rowsort
SELECT ALL 28 + + + 42 FROM tab0
----
70
70
70

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6976
SELECT - col0 + 31 DIV 23 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-14
NULL
-86
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-6976
SELECT - col0 + 31 / 23 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-14
NULL
-86
NULL
-96
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IS NOT NULL AND NOT ( - 61 ) BETWEEN col2 * col0 AND + 95
----

query I rowsort
SELECT + 81 + + col0 FROM tab0
----
168
178
96

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE + 42 BETWEEN NULL AND + col1
----

query I rowsort
SELECT - 34 + - col1 FROM tab1
----
-39
-48
-81

query I rowsort
SELECT ALL 87 + - 16 AS col1 FROM tab0
----
71
71
71

query II rowsort
SELECT ALL - - col1 AS col0, col0 + + col2 + col2 AS col1 FROM tab0 AS cor0
----
1
295
21
107
81
109

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col0 NOT IN ( 98, - col1 ) )
----

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

query I rowsort
SELECT DISTINCT + - AVG ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL = col1
----
NULL

query II rowsort
SELECT DISTINCT + 24 AS col1, - 34 * - col1 AS col0 FROM tab2 AS cor0
----
24
1734
24
2278
24
2618

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - ( - 44 )
----

query I rowsort
SELECT + 44 * - 45 AS col1 FROM tab2 AS cor0
----
-1980
-1980
-1980

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * 69 * + 36 col1 FROM tab2
----
201204

query I rowsort
SELECT 41 * col2 * - 35 FROM tab2
----
-33005
-57400
-83230

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - + + col0 IN ( + ( 0 ), col1, - col1 / + + 76 * - - 13 + col2, + ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 73 * - - 10 FROM tab1
----
-730
-730
-730

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT DISTINCT + col1 DIV + col2 * - + col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT + col1 / + col2 * - + col2 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + + 79 col0 FROM tab0 WHERE NOT col1 - + 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6997
SELECT DISTINCT MIN( DISTINCT + + 28 ), - ( MAX( DISTINCT col2 ) ) AS col2 FROM tab1 WHERE NOT - col1 > 47 / + 97
----
28
-96

skipif mysql # not compatible
query II rowsort label-6997
SELECT DISTINCT MIN ( DISTINCT + + 28 ), - ( MAX ( DISTINCT col2 ) ) AS col2 FROM tab1 WHERE NOT - col1 > 47 / + 97
----
28
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT + 65 + CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-10
1
19

skipif mysql # not compatible
query I rowsort label-6998
SELECT + 65 + CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-10
1
19

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

skipif mysql # not compatible
query I rowsort label-6999
SELECT + COUNT ( * ) + MAX ( - + col0 ) FROM tab0
----
-12

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 NOT IN ( - col1, 89 - + - col0, - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT DISTINCT + COUNT( * ) + + 67 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT + COUNT ( * ) + + 67 FROM tab2 AS cor0
----
70

query I rowsort
SELECT DISTINCT + 62 * - col2 FROM tab0 cor0
----
-2914
-6138
-620

query I rowsort
SELECT DISTINCT col1 * + 94 FROM tab1 AS cor0
----
1316
4418
470

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT + + 70 * - COUNT( * ) + + SUM( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NULL = - 84 / col0 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT + + 70 * - COUNT ( * ) + + SUM ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NULL = - 84 / col0 + col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7007
SELECT 17 AS col2, COUNT( * ) * + 24 AS col1 FROM tab2 AS cor0
----
17
72

skipif mysql # not compatible
query II rowsort label-7007
SELECT 17 AS col2, COUNT ( * ) * + 24 AS col1 FROM tab2 AS cor0
----
17
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 87 * 91 IS NULL
----

query II rowsort
SELECT + col1 AS col2, 60 FROM tab2 WHERE + 2 IS NULL
----

query I rowsort
SELECT DISTINCT + 13 - + col0 FROM tab2 AS cor0
----
-33
-51
-62

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

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

query I rowsort
SELECT ALL + col0 - - ( + + col2 ) + col0 FROM tab1 AS cor0
----
198
229
250

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT - MAX( + 83 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-83

skipif mysql # not compatible
query I rowsort label-7013
SELECT - MAX ( + 83 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 >= 43 * + - 67
----

query I rowsort
SELECT 73 * - - 22 AS col1 FROM tab0 cor0
----
1606
1606
1606

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL 31 * COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL 31 * COUNT ( * ) FROM tab2 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN + 3 AND 49 * - CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN + 3 AND 49 * - CAST ( + - col2 AS INTEGER )
----

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

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

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT col1 / + 46 AS col1 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7022
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7022
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab1 WHERE col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7026
SELECT DISTINCT COUNT( * ) AS col0, + 76 FROM tab1
----
3
76

skipif mysql # not compatible
query II rowsort label-7026
SELECT DISTINCT COUNT ( * ) AS col0, + 76 FROM tab1
----
3
76

query I rowsort
SELECT ALL + 53 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL - COUNT( * ) * - COUNT( * ) col0 FROM tab2
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT + 50 <> + + col0 + + 2
----
0

skipif mysql # not compatible
query I rowsort label-7029
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT + 50 <> + + col0 + + 2
----
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT 1 NOT BETWEEN ( col0 ) AND ( - 15 * - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 - col0 BETWEEN + col0 - 95 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + 33 * - 21 + + col1 FROM tab1 WHERE - col0 = + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7034
SELECT - ( MIN( + 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-7034
SELECT - ( MIN ( + CAST ( NULL AS INTEGER ) ) ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 22 * - col1 FROM tab1
----
1034
110
308

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col2 FROM tab1 WHERE NOT 63 IS NOT NULL
----

query I rowsort
SELECT - 73 * + ( 73 ) AS col0 FROM tab2
----
-5329
-5329
-5329

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE col0 * + col1 <= NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7042
SELECT SUM( + ( 52 ) ) FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN NULL AND + col2 + col0 * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT SUM ( + ( 52 ) ) FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND + col2 + col0 * + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7043
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE - 20 + + 70 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 48 * col1 AS col1 FROM tab1
----
2256
240
672

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL + COUNT( * ) * + 75 + 84 AS col1 FROM tab2
----
309

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL + COUNT ( * ) * + 75 + 84 AS col1 FROM tab2
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL COUNT( * ) * + 62 + - 31 AS col2 FROM tab1 WHERE ( ( 80 ) ) IS NULL
----
-31

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL COUNT ( * ) * + 62 + - 31 AS col2 FROM tab1 WHERE ( ( 80 ) ) IS NULL
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT 54 * + COUNT( * ) AS col2 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-7048
SELECT 54 * + COUNT ( * ) AS col2 FROM tab2
----
162

query I rowsort
SELECT col2 * - 4 AS col2 FROM tab1
----
-236
-272
-384

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT + 45 * - ( - ( + col1 ) ) AS col0 FROM tab2 WHERE col2 * - CAST( NULL AS SIGNED ) IS NULL
----
2295
3015
3465

skipif mysql # not compatible
query I rowsort label-7051
SELECT + 45 * - ( - ( + col1 ) ) AS col0 FROM tab2 WHERE col2 * - CAST ( NULL AS INTEGER ) IS NULL
----
2295
3015
3465

query I rowsort
SELECT DISTINCT + col2 * - 86 AS col0 FROM tab2
----
-1978
-3440
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT + MIN( - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7053
SELECT + MIN ( - col2 ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL - COUNT( * ) * - 87 AS col0 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL - COUNT ( * ) * - 87 AS col0 FROM tab1
----
261

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7056
SELECT - 22 - + ( ( + COUNT( * ) ) + - 18 DIV + 97 ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-7056
SELECT - 22 - + ( ( + COUNT ( * ) ) + - 18 / + 97 ) FROM tab1
----
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT DISTINCT COUNT( * ) * ( - COUNT( * ) ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT COUNT ( * ) * ( - COUNT ( * ) ) AS col2 FROM tab0
----
-9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * col1 + col1 col2 FROM tab0
----
1596
6156
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7061
SELECT + 36 DIV COUNT( * ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7061
SELECT + 36 / COUNT ( * ) AS col2 FROM tab2
----
12

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7063
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7063
SELECT DISTINCT - CAST ( NULL AS REAL ) col1 FROM tab2 cor0
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7064
SELECT ALL + COUNT ( ALL ( 6 ) ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7065
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7065
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col0 IS NULL
----

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

query I rowsort
SELECT 49 AS col0 FROM tab0 cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT - 20 * SUM( DISTINCT + 48 ) + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT - 20 * SUM ( DISTINCT + 48 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col0 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) IN ( 50 )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT - MAX( + 1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7073
SELECT - MAX ( + 1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 27 + + - col0 FROM tab2
----
-19
-37
-48

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT + COUNT( * ) * + 85 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT + COUNT ( * ) * + 85 FROM tab1
----
255

query I rowsort
SELECT DISTINCT 72 * col0 FROM tab1
----
3672
6120
6552

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7080
SELECT DISTINCT 93 DIV - col1 + + 56 AS col1 FROM tab1
----
38
50
55

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT 93 / - col1 + + 56 AS col1 FROM tab1
----
38
50
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( 5 * col0 )
----

skipif mysql # not compatible
query I rowsort label-7082
SELECT + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( 5 * col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT DISTINCT COUNT( * ) * - MAX( col2 ) AS col0 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT COUNT ( * ) * - MAX ( col2 ) AS col0 FROM tab2 AS cor0
----
-174

query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab2 WHERE 16 NOT IN ( + col0 / - 51 )
----
-1173
-3080
-3886

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

query I rowsort
SELECT ALL + + 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - 52 + - 25 * + col0 AS col2 FROM tab0 WHERE ( + 94 * col2 ) BETWEEN - ( - 11 ) - + col0 AND col1
----

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

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

query I rowsort
SELECT + col1 - - col1 FROM tab1 cor0 WHERE + col1 NOT IN ( - + col1 )
----
10
28
94

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - col0 / - col1 + 0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 - - - col0 - + col1 + - 61 AS col0 FROM tab0 AS cor0
----
-142
-62
-82

query I rowsort
SELECT ALL col0 - 0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT - - col0 * + + 54 * + + col2 + - col1 - + 89 DIV + col0 AS col1 FROM tab0 AS cor0
----
37984
46958
518561

skipif mysql # not compatible
query I rowsort label-7097
SELECT - - col0 * + + 54 * + + col2 + - col1 - + 89 / + col0 AS col1 FROM tab0 AS cor0
----
37984
46958
518561

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

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

skipif mysql # not compatible
query I rowsort label-7099
SELECT - - MAX ( ALL col2 ) - - + 22 FROM tab0 AS cor0
----
121

query I rowsort
SELECT - col0 * + col1 - ( 0 ) AS col1 FROM tab1 cor0
----
-425
-4277
-714

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT ALL - SUM( ALL + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL - SUM ( ALL + col0 ) FROM tab0
----
-199

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

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

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

query I rowsort
SELECT ALL - col2 + + col1 AS col0 FROM tab2 WHERE ( NULL ) IS NULL AND NOT 74 <> 74
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT ALL CAST( NULL AS SIGNED ) * 13 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL CAST ( NULL AS INTEGER ) * 13 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= ( col2 * + col1 )
----

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + col1 + 25 AS col2 FROM tab2
----
102
76
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT ALL col1 * - CAST( NULL AS SIGNED ) + + 25 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN + 31 AND - col2
----

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) + + 25 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN + 31 AND - col2
----

query I rowsort
SELECT DISTINCT 31 + - col2 FROM tab2 AS cor0
----
-27
-9
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL + 58 * MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
290

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL + 58 * MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
290

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT - - ( - SUM( DISTINCT + - 78 ) ) FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-7114
SELECT - - ( - SUM ( DISTINCT + - 78 ) ) FROM tab2 cor0
----
78

query I rowsort
SELECT ALL - 27 FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * - - 46 AS col0 FROM tab1 AS cor0
----
-2714
-3128
-4416

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7118
SELECT ALL - 66 col1, CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-66
10
-66
47
-66
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7118
SELECT ALL - 66 col1, CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-66
10
-66
47
-66
99

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

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

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

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

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

query I rowsort
SELECT ALL + + 71 FROM tab1 AS cor0
----
71
71
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7125
SELECT ALL col1 AS col1, CAST( - - col0 AS SIGNED ) FROM tab0
----
1
97
21
87
81
15

skipif mysql # not compatible
query II rowsort label-7125
SELECT ALL col1 AS col1, CAST ( - - col0 AS INTEGER ) FROM tab0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT - col0 + 8 + - col2 DIV + - col0 col2 FROM tab0
----
-4
-79
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7126
SELECT - col0 + 8 + - col2 / + - col0 col2 FROM tab0
----
-4
-79
-88

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT + col0 NOT BETWEEN col0 AND 28
----

query I rowsort
SELECT DISTINCT col2 + ( col2 ) + - + 2 * - col0 AS col2 FROM tab1
----
288
294
318

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col2 BETWEEN + + col0 * col0 AND - - col2
----
51
85
91

query II rowsort
SELECT + 42 * col2, + 30 AS col0 FROM tab1
----
2478
30
2856
30
4032
30

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

query III rowsort
SELECT * FROM tab2 WHERE ( - 80 / - + col1 ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT 69 + - col1 AS col0 FROM tab2
----
-8
18
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 cor0 WHERE - 35 * + - col2 NOT IN ( - col1 * + col0 + + - 67 )
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - - 19 col1, - col2 FROM tab2
----
70
-23
86
-58
96
-40

query I rowsort
SELECT - 57 + 49 + - - 10 * - + 70 * + 34 * - - col1 + col1 FROM tab2
----
-1213757
-1594541
-1832531

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

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

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

skipif mysql # not compatible
query I rowsort label-7141
SELECT - col2 + - col0 + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 27 - + col1, - 60 + + col0 AS col1 FROM tab0 cor0
----
-108
-45
-28
37
-48
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL - COUNT( ALL - 61 ) FROM tab2 AS cor0 WHERE NOT 27 / - + 33 + + col0 >= - - col2
----
0

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL - COUNT ( ALL - 61 ) FROM tab2 AS cor0 WHERE NOT 27 / - + 33 + + col0 >= - - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT col0 * col2 DIV + + col1 AS col1 FROM tab2
----
20
33
64

skipif mysql # not compatible
query I rowsort label-7145
SELECT col0 * col2 / + + col1 AS col1 FROM tab2
----
20
33
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE NOT col1 * - col1 <> + 28
----
0

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE NOT col1 * - col1 <> + 28
----
0

query I rowsort
SELECT + 61 * - 99 FROM tab2
----
-6039
-6039
-6039

query I rowsort
SELECT ALL col0 * - ( + col0 ) AS col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT DISTINCT COUNT( * ) * - MIN( + + ( - - col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT COUNT ( * ) * - MIN ( + + ( - - col1 ) ) FROM tab0
----
-3

query I rowsort
SELECT - col2 - + 80 FROM tab1
----
-139
-148
-176

query III rowsort
SELECT * FROM tab0 WHERE NULL = + + col0
----

query I rowsort
SELECT col2 * + + col2 FROM tab0
----
100
2209
9801

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

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

query I rowsort
SELECT - - col2 + + col2 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
116
46
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7155
SELECT ALL COUNT( * ) col0, - COUNT( * ) AS col1 FROM tab1 cor0
----
3
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT - + MAX( col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7156
SELECT - + MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
-75

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

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

query I rowsort
SELECT DISTINCT + - 99 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL < 80
----

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 WHERE ( col2 IS NOT NULL )
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7161
SELECT ALL + COUNT( * ) DIV - + MAX( + 5 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + COUNT ( * ) / - + MAX ( + 5 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT DISTINCT + COUNT( 84 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT + COUNT ( 84 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT ALL - MAX( - ( + col2 ) ) FROM tab0 AS cor0 WHERE NOT 19 * + + 12 IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL - MAX ( - ( + col2 ) ) FROM tab0 AS cor0 WHERE NOT 19 * + + 12 IS NULL
----
10

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

query I rowsort
SELECT + + col2 * col2 + 79 + + + 30 AS col2 FROM tab0 AS cor0
----
209
2318
9910

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

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

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

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

query II rowsort
SELECT col0 AS col1, + 92 FROM tab0
----
15
92
87
92
97
92

query I rowsort
SELECT ALL + - 18 AS col2 FROM tab0 WHERE + 62 IN ( - col0 / + - col0, - col1 )
----

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

query II rowsort
SELECT - col2 AS col0, col0 * col0 AS col0 FROM tab1
----
-59
7225
-68
8281
-96
2601

query I rowsort
SELECT DISTINCT + col0 + - - col2 AS col2 FROM tab1
----
144
147
159

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

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

query I rowsort
SELECT DISTINCT 47 + col1 FROM tab1
----
52
61
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7176
SELECT 79 + - 91 + + COUNT( * ), + 84 AS col0 FROM tab1
----
-9
84

skipif mysql # not compatible
query II rowsort label-7176
SELECT 79 + - 91 + + COUNT ( * ), + 84 AS col0 FROM tab1
----
-9
84

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

query I rowsort
SELECT - + 9 + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
6
78
88

query I rowsort
SELECT 12 + - col2 AS col1 FROM tab2 AS cor0
----
-11
-28
-46

query II rowsort
SELECT - - col0 + 24 * - ( - + col2 ) + + - col0, 1 * - 88 AS col0 FROM tab1 AS cor0
----
1416
-88
1632
-88
2304
-88

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN 35 + - 42 + - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT 38 + + - COUNT( * ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT 38 + + - COUNT ( * ) FROM tab0
----
35

query I rowsort
SELECT + AVG ( + 33 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT + col1 * - + ( + + 54 ) + - col1 * + ( + + col0 ) - - + col1 FROM tab0 AS cor0
----
-150
-2940
-5508

query I rowsort
SELECT ALL col1 * 36 AS col2 FROM tab2 AS cor0
----
1836
2412
2772

query I rowsort
SELECT - 78 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-78
-78
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 59 - col1 AS col2 FROM tab2 AS cor0
----
-110
-126
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT col1 DIV 27 - + col1 AS col1 FROM tab2 AS cor0
----
-50
-65
-75

skipif mysql # not compatible
query I rowsort label-7189
SELECT col1 / 27 - + col1 AS col1 FROM tab2 AS cor0
----
-50
-65
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT + + COUNT( * ) + + ( 96 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7190
SELECT + + COUNT ( * ) + + ( 96 ) FROM tab1 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE 79 + + 51 - 51 - + col1 > + ( + col1 ) + - col1 / + col0 - - - col2
----
46
51
23
75
67
58

query I rowsort
SELECT ALL + col1 - 16 FROM tab1 AS cor0
----
-11
-2
31

query II rowsort
SELECT ALL - col2 * + col1, + col0 FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97

query I rowsort
SELECT 21 * + - 76 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to dfb74a97de7e93b6b439c867c8780b36

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7196
SELECT col2 + + - 57 AS col0 FROM tab0 WHERE NOT - - 53 / CAST( NULL AS SIGNED ) IS NOT NULL
----
-10
-47
42

skipif mysql # not compatible
query I rowsort label-7196
SELECT col2 + + - 57 AS col0 FROM tab0 WHERE NOT - - 53 / CAST ( NULL AS INTEGER ) IS NOT NULL
----
-10
-47
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL SUM( DISTINCT + 54 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL SUM ( DISTINCT + 54 ) FROM tab1
----
54

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7201
SELECT ( - 68 ) AS col0, + ( - COUNT( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-68
-3

skipif mysql # not compatible
query II rowsort label-7201
SELECT ( - 68 ) AS col0, + ( - COUNT ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-68
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7202
SELECT ALL + col2 DIV - + col2, ( + col0 ) FROM tab0 WHERE NULL IS NULL
----
-1
15
-1
87
-1
97

skipif mysql # not compatible
query II rowsort label-7202
SELECT ALL + col2 / - + col2, ( + col0 ) FROM tab0 WHERE NULL IS NULL
----
-1
15
-1
87
-1
97

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

query II rowsort
SELECT ALL - col0, + col0 + 80 + 51 + - 56 AS col0 FROM tab1
----
-51
126
-85
160
-91
166

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * + 30 > NULL
----

query I rowsort
SELECT col2 + 51 AS col0 FROM tab0 AS cor0
----
150
61
98

query I rowsort
SELECT + - col0 + - 73 AS col2 FROM tab2 cor0
----
-119
-137
-148

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7212
SELECT MAX ( DISTINCT col0 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT DISTINCT + col1 + + + 93 * 97 AS col2 FROM tab2
----
9072
9088
9098

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

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

query I rowsort
SELECT DISTINCT - ( 45 ) FROM tab0 AS cor0
----
-45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT ALL + 33 - - - 0 - + col2 + - + col1 + - col0 DIV + - ( 82 ) AS col0 FROM tab1 cor0
----
-30
-77
-81

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL + 33 - - - 0 - + col2 + - + col1 + - col0 / + - ( 82 ) AS col0 FROM tab1 cor0
----
-30
-77
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 - + - col0 * + col1 col2 FROM tab2
----
2396
4978
5075

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT SUM( ALL col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7221
SELECT SUM ( ALL col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL - col1 + 78 AS col1 FROM tab2 cor0
----
1
11
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 78
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col0 * - - 59 + col1 * - 96 / - col1 / - col1, col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT + - MIN( + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7226
SELECT + - MIN ( + col1 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + ( 7 ) ) NOT BETWEEN ( NULL ) AND + col2 * - 10 + 72 * + 57 + - - 73 * - - col2
----

query II rowsort
SELECT + 73 AS col2, - col2 * - 89 * - ( - col1 ) AS col1 FROM tab2
----
73
104397
73
274120
73
345854

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + 26 * - 65 IS NOT NULL
----

query II rowsort
SELECT ALL col1, 64 AS col0 FROM tab2
----
51
64
67
64
77
64

query II rowsort
SELECT ALL col1 AS col1, + col0 * + col0 FROM tab1
----
14
2601
47
8281
5
7225

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

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT - col2 AS col1, + ( + + col2 ) FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7234
SELECT * FROM tab2 WHERE NOT + 85 >= - - CAST( NULL AS DECIMAL ) * - + 58
----

skipif mysql # not compatible
query III rowsort label-7234
SELECT * FROM tab2 WHERE NOT + 85 >= - - CAST ( NULL AS REAL ) * - + 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7235
SELECT DISTINCT 49 DIV - - col1 + col0 + col1 AS col0 FROM tab0 AS cor0
----
110
147
96

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT 49 / - - col1 + col0 + col1 AS col0 FROM tab0 AS cor0
----
110
147
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, + 57 + - 42 - - 73 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - 71 IS NOT NULL
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT - - SUM( + col2 ), + 44 AS col1 FROM tab0 AS cor0
----
156
44

skipif mysql # not compatible
query II rowsort label-7241
SELECT - - SUM ( + col2 ), + 44 AS col1 FROM tab0 AS cor0
----
156
44

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

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

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

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

query I rowsort
SELECT ALL 26 + - col1 FROM tab0
----
-55
25
5

query I rowsort
SELECT - col0 - - + col0 FROM tab1 WHERE - 56 + 69 > col1
----
0

query I rowsort
SELECT DISTINCT ( 78 ) AS col1 FROM tab0, tab0 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7249
SELECT ALL + - CAST( + col0 AS SIGNED ) + 27, + 35 * - col0 AS col2 FROM tab2 AS cor0
----
-19
-1610
-37
-2240
-48
-2625

skipif mysql # not compatible
query II rowsort label-7249
SELECT ALL + - CAST ( + col0 AS INTEGER ) + 27, + 35 * - col0 AS col2 FROM tab2 AS cor0
----
-19
-1610
-37
-2240
-48
-2625

onlyif mysql # DIV for integer division: 
query II rowsort label-7250
SELECT + col1 DIV col2 * + col2 * + col0 - ( col1 ) * col0 + - col0, col2 FROM tab0 AS cor0
----
-174
10
-194
99
-525
47

skipif mysql # not compatible
query II rowsort label-7250
SELECT + col1 / col2 * + col2 * + col0 - ( col1 ) * col0 + - col0, col2 FROM tab0 AS cor0
----
-174
10
-194
99
-525
47

query I rowsort
SELECT - col1 + 45 AS col1 FROM tab2 AS cor0
----
-22
-32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT + MIN( - - col2 ) + + + COUNT( * ) * - + 70 FROM tab1 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-7252
SELECT + MIN ( - - col2 ) + + + COUNT ( * ) * - + 70 FROM tab1 AS cor0
----
-151

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL - 26 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL - 26 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col2 * - - 22 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7256
SELECT ALL CAST( - - 29 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL CAST ( - - 29 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7257
SELECT * FROM tab2 cor0 WHERE NOT col2 * 73 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7257
SELECT * FROM tab2 cor0 WHERE NOT col2 * 73 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT + COUNT( - 48 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7258
SELECT + COUNT ( - 48 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT + - COUNT( * ) * + COUNT( * ) + + - COUNT( * ) FROM tab1 WHERE NOT + 20 = + + col2
----
-12

skipif mysql # not compatible
query I rowsort label-7259
SELECT + - COUNT ( * ) * + COUNT ( * ) + + - COUNT ( * ) FROM tab1 WHERE NOT + 20 = + + col2
----
-12

query I rowsort
SELECT ALL 44 * + + 19 FROM tab1
----
836
836
836

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

skipif mysql # not compatible
query I rowsort label-7261
SELECT + MIN ( col0 ) * 9 FROM tab0
----
135

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

query I rowsort
SELECT + col1 * 42 + 66 - - col0 FROM tab1 AS cor0
----
2131
361
705

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 97 * - 87 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7266
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <> + + col1
----

skipif mysql # not compatible
query III rowsort label-7266
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> + + col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT - ( COUNT( * ) ) + 71 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - ( COUNT ( * ) ) + 71 FROM tab2 AS cor0
----
68

query I rowsort
SELECT - col0 + - 89 FROM tab2 AS cor0
----
-135
-153
-164

query I rowsort
SELECT ALL col2 + - + 72 - - col1 AS col2 FROM tab2 AS cor0
----
2
45
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ( + + ( - + MAX( ALL + 68 ) ) ) + - + 13 * - SUM( ALL + + col0 ) FROM tab1 cor0
----
2883

skipif mysql # not compatible
query I rowsort label-7272
SELECT ( + + ( - + MAX ( ALL + 68 ) ) ) + - + 13 * - SUM ( ALL + + col0 ) FROM tab1 cor0
----
2883

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

query II rowsort
SELECT DISTINCT + 38, + ( - - col0 ) AS col2 FROM tab1 cor0
----
38
51
38
85
38
91

query I rowsort
SELECT ALL + ( + ( col0 ) ) AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT col0 * - 0 + - - col0 + + + col1 AS col0 FROM tab0
----
108
96
98

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

query I rowsort
SELECT ALL 24 + - - col2 - + col1 * 39 AS col1 FROM tab2
----
-1942
-2531
-2939

query I rowsort
SELECT DISTINCT 51 + col2 AS col2 FROM tab1
----
110
119
147

onlyif mysql # DIV for integer division: 
query II rowsort label-7280
SELECT ALL 90 + + 45 AS col1, + 3 DIV - col0 FROM tab2
----
135
0
135
0
135
0

skipif mysql # not compatible
query II rowsort label-7280
SELECT ALL 90 + + 45 AS col1, + 3 / - col0 FROM tab2
----
135
0
135
0
135
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT DISTINCT col1 DIV - 20 + + 7 FROM tab0
----
3
6
7

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT col1 / - 20 + + 7 FROM tab0
----
3
6
7

query I rowsort
SELECT DISTINCT + 2 + col2 + - 84 FROM tab1
----
-14
-23
14

query I rowsort
SELECT + 57 + + + col2 FROM tab0 WHERE + + col0 NOT BETWEEN ( 58 ) AND - col1
----
104
156
67

query I rowsort
SELECT + col1 - + 24 AS col2 FROM tab2 AS cor0
----
27
43
53

query II rowsort
SELECT col0, col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT 29 * - COUNT( * ) AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-7288
SELECT 29 * - COUNT ( * ) AS col1 FROM tab1
----
-87

query I rowsort
SELECT ( + 79 ) * - col2 AS col0 FROM tab2
----
-1817
-3160
-4582

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7290
SELECT col0, CAST( - 16 AS SIGNED ) FROM tab2
----
46
-16
64
-16
75
-16

skipif mysql # not compatible
query II rowsort label-7290
SELECT col0, CAST ( - 16 AS INTEGER ) FROM tab2
----
46
-16
64
-16
75
-16

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT CAST( 12 AS SIGNED ) FROM tab2 cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-7292
SELECT CAST ( 12 AS INTEGER ) FROM tab2 cor0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT - 67 AS col1 FROM tab0 cor0 WHERE NOT - CAST( + - col2 AS SIGNED ) * - ( col1 ) * - col0 + - 18 IS NULL
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-7293
SELECT - 67 AS col1 FROM tab0 cor0 WHERE NOT - CAST ( + - col2 AS INTEGER ) * - ( col1 ) * - col0 + - 18 IS NULL
----
-67
-67
-67

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

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

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

query II rowsort
SELECT DISTINCT col0, col1 * + 61 AS col2 FROM tab0 AS cor0
----
15
4941
87
1281
97
61

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

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

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

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT - col0 + + 74 + + + col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

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

query I rowsort
SELECT - - 63 FROM tab1 cor0
----
63
63
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= + 82 * + col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col0 FROM tab0
----
59
59
59

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * + - col2 * + col1 FROM tab0
----
-18270
-57105
-9603

query II rowsort
SELECT ALL + 69 * + 64 AS col0, - ( col1 ) AS col0 FROM tab0
----
4416
-1
4416
-21
4416
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 <= - col1 + col1 * + 71
----
97
1
99

query I rowsort
SELECT ALL + col2 * 68 * - - 35 FROM tab2 WHERE NOT ( NOT 33 IS NOT NULL )
----
138040
54740
95200

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

query I rowsort
SELECT 21 + - - col2 FROM tab0 cor0
----
120
31
68

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 13 + - col1 > 21
----

query I rowsort
SELECT - + 59 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

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

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

query I rowsort
SELECT DISTINCT 27 * - col1 AS col1 FROM tab1 AS cor0
----
-1269
-135
-378

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NOT + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT COUNT( * ) * + 87 col2 FROM tab1
----
261

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT + col0 + - CAST( + 56 AS SIGNED ) FROM tab2
----
-10
19
8

skipif mysql # not compatible
query I rowsort label-7319
SELECT + col0 + - CAST ( + 56 AS INTEGER ) FROM tab2
----
-10
19
8

query I rowsort
SELECT ALL - col2 + - 86 FROM tab2
----
-109
-126
-144

query II rowsort
SELECT ALL col0 - 28 * + col0 * + - col2 + - 19 - - - 69 AS col1, col0 FROM tab2
----
121787
75
29582
46
71656
64

query I rowsort
SELECT 51 * - 53 + col1 AS col0 FROM tab0
----
-2622
-2682
-2702

query I rowsort
SELECT ALL - 17 + - col2 AS col0 FROM tab2
----
-40
-57
-75

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-35

query I rowsort
SELECT DISTINCT - ( + - col2 ) * - col1 + + col0 FROM tab1 AS cor0
----
-1293
-210
-3105

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

skipif mysql # not compatible
query I rowsort label-7326
SELECT + MAX ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-15

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT - col0 * - 77 AS col2 FROM tab2
----
3542
4928
5775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7330
SELECT ALL - MAX( col2 ) DIV + + 36 AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL - MAX ( col2 ) / + + 36 AS col0 FROM tab1
----
-2

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

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

query I rowsort
SELECT ALL + col2 * + + 46 FROM tab2 AS cor0
----
1058
1840
2668

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + - 83 FROM tab2 cor0 WHERE - col1 * col0 IS NOT NULL
----
-83
-83
-83

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

skipif mysql # not compatible
query I rowsort label-7337
SELECT - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
104
133
69

query I rowsort
SELECT col1 * 71 AS col1 FROM tab0
----
1491
5751
71

query III rowsort
SELECT * FROM tab0 WHERE NOT 75 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7341
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7342
SELECT + - 75, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-75
3

skipif mysql # not compatible
query II rowsort label-7342
SELECT + - 75, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-75
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT DISTINCT - - col2 AS col1 FROM tab0 AS cor0 WHERE ( NOT - - col0 NOT IN ( col2, CAST( - col1 AS SIGNED ), + - 60 ) )
----

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - - col2 AS col1 FROM tab0 AS cor0 WHERE ( NOT - - col0 NOT IN ( col2, CAST ( - col1 AS INTEGER ), + - 60 ) )
----

query I rowsort
SELECT DISTINCT - 30 FROM tab0 cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT ALL COUNT( * ) + + 89 + - COUNT( * ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL COUNT ( * ) + + 89 + - COUNT ( * ) FROM tab1
----
89

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col2 col2 FROM tab1 AS cor0
----
144
147
159

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT + ( 91 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 80 NOT BETWEEN + col0 AND NULL
----
-182

skipif mysql # not compatible
query I rowsort label-7352
SELECT + ( 91 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 80 NOT BETWEEN + col0 AND NULL
----
-182

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

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

query I rowsort
SELECT + 15 * - + col1 AS col0 FROM tab2 cor0
----
-1005
-1155
-765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 18 col2 FROM tab1 AS cor0
----
-252
-846
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - 43 IS NULL )
----

query III rowsort
SELECT col2, + col1 + 47 AS col0, - 28 AS col1 FROM tab0
----
9 values hashing to aa1937c0bce1972311f3f94db763571b

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

query I rowsort
SELECT DISTINCT col0 + - col1 * col2 + + + col1 FROM tab1
----
-1279
-205
-3058

query I rowsort
SELECT - col0 - - - 26 AS col1 FROM tab2
----
-101
-72
-90

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

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

query I rowsort
SELECT DISTINCT - 95 + - + col1 FROM tab0
----
-116
-176
-96

query I rowsort
SELECT - col0 * + + col0 - - col1 * - col1 FROM tab2
----
-10025
-10114
-4717

query I rowsort
SELECT ALL - col1 * + col2 + - + col0 * - ( + - col0 ) FROM tab2
----
-3289
-7176
-9511

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT ALL - ( - COUNT( * ) ) * - 70 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL - ( - COUNT ( * ) ) * - 70 FROM tab1
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7366
SELECT ALL + CAST( NULL AS SIGNED ) + + - col1 FROM tab2 AS cor0 WHERE NOT col1 >= - col2
----

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL + CAST ( NULL AS INTEGER ) + + - col1 FROM tab2 AS cor0 WHERE NOT col1 >= - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT ALL - col1 col0 FROM tab2 AS cor0 WHERE NOT CAST( + 25 AS SIGNED ) < + col1 * + + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7368
SELECT ALL - col1 col0 FROM tab2 AS cor0 WHERE NOT CAST ( + 25 AS INTEGER ) < + col1 * + + col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT DISTINCT + - col2 DIV - col0 + - + ( col2 ) * + 95 FROM tab0 AS cor0
----
-4462
-9404
-950

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + - col2 / - col0 + - + ( col2 ) * + 95 FROM tab0 AS cor0
----
-4462
-9404
-950

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

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

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

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + + CAST ( NULL AS INTEGER ) / - ( 3 ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL + + ( COUNT( * ) ) + + 45 FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + + ( COUNT ( * ) ) + + 45 FROM tab0 cor0
----
48

query I rowsort
SELECT + col1 + 79 * - col2 FROM tab2 cor0
----
-1766
-3083
-4515

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7376
SELECT ALL - 51 * col2 + col1 AS col2, CAST( NULL AS DECIMAL ) FROM tab2
----
-1122
NULL
-1963
NULL
-2891
NULL

skipif mysql # not compatible
query II rowsort label-7376
SELECT ALL - 51 * col2 + col1 AS col2, CAST ( NULL AS REAL ) FROM tab2
----
-1122
NULL
-1963
NULL
-2891
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL + MIN( - 52 ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL + MIN ( - 52 ) FROM tab0
----
-52

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

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

query I rowsort
SELECT + col0 - - 70 FROM tab2 AS cor0
----
116
134
145

query I rowsort
SELECT - - 35 - + - col0 FROM tab1 cor0
----
120
126
86

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7382
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) <> - col2 / CAST( NULL AS DECIMAL ) * - col2
----

skipif mysql # not compatible
query III rowsort label-7382
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) <> - col2 / CAST ( NULL AS REAL ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT - ( + COUNT( ALL - - col1 ) ) - + - 14 AS col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7383
SELECT - ( + COUNT ( ALL - - col1 ) ) - + - 14 AS col1 FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7384
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 * col2 + - col1 * - col2 + 94, col1, + + ( + 45 ), + col2, col1, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7384
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 * col2 + - col1 * - col2 + 94, col1, + + ( + 45 ), + col2, col1, - CAST ( NULL AS INTEGER ) )
----

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

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

query I rowsort
SELECT DISTINCT - col0 * + + col0 - col0 FROM tab2
----
-2162
-4160
-5700

query I rowsort
SELECT - + 59 AS col1 FROM tab1 WHERE + - col0 IS NOT NULL
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT - - 11 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - 11 IS NOT NULL
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT + 58 * - 86 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-4988

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7394
SELECT DISTINCT MAX( - 91 ) * + + 4 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT MAX ( - 91 ) * + + 4 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT MIN( ALL + col0 ) + - + 67 AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7397
SELECT MIN ( ALL + col0 ) + - + 67 AS col2 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT DISTINCT 82 + + - col1 AS col0 FROM tab0 AS cor0
----
1
61
81

query I rowsort
SELECT ALL 94 * - + col1 * - + col0 + - 46 FROM tab0
----
114164
171692
9072

query I rowsort
SELECT - ( - - 95 ) * - 84 * 99 + - col2 FROM tab1
----
789924
789952
789961

query I rowsort
SELECT DISTINCT col0 + + + col0 FROM tab1
----
102
170
182

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

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

query I rowsort
SELECT DISTINCT + col1 * + - col1 FROM tab1 AS cor0
----
-196
-2209
-25

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

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

query I rowsort
SELECT - + col0 - + col1 * 13 FROM tab2 AS cor0
----
-1065
-709
-946

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

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7407
SELECT 82 DIV COUNT( * ) + + 78 AS col0 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-7407
SELECT 82 / COUNT ( * ) + + 78 AS col0 FROM tab0
----
105

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + + 75 + - col0 * - col0 = NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT DISTINCT + col2 + ( - CAST( + - col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT + col2 + ( - CAST ( + - col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT ALL + + MIN( 87 ) * 32 - - + 69 FROM tab1 AS cor0
----
2853

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL + + MIN ( 87 ) * 32 - - + 69 FROM tab1 AS cor0
----
2853

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT MAX( ALL - ( - CAST( NULL AS SIGNED ) ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT MAX ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT MIN( ALL - 62 ) * COUNT( * ) col1 FROM tab1
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7417
SELECT MIN ( ALL - 62 ) * COUNT ( * ) col1 FROM tab1
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT col0 * - CAST( - col1 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-7418
SELECT col0 * - CAST ( - col1 AS INTEGER ) FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT - MIN( col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7419
SELECT - MIN ( col2 ) AS col2 FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col0 FROM tab2
----
67

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

query I rowsort
SELECT 83 * + - col1 FROM tab2
----
-4233
-5561
-6391

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

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

skipif mysql # not compatible
query I rowsort label-7424
SELECT col1 / - - CAST ( + + col0 AS INTEGER ) FROM tab1
----
0
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT DISTINCT + - CAST( - 31 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT + - CAST ( - 31 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
31

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

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

query I rowsort
SELECT ALL col2 * - 35 FROM tab2 cor0
----
-1400
-2030
-805

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 96 + col1 col0 FROM tab1 AS cor0
----
1358
4559
485

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7436
SELECT - MIN ( + col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - 18 FROM tab0 AS cor0 WHERE col1 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col1 ) col1 FROM tab2
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-7440
SELECT + 88 + COUNT ( * ) + COUNT ( * ) FROM tab1
----
94

query III rowsort
SELECT * FROM tab1 WHERE - col2 > NULL
----

query I rowsort
SELECT ALL + + 4 * + - col1 + + 68 AS col1 FROM tab2 AS cor0
----
-136
-200
-240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7443
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 23 * + 20 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + + col1 NOT BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query II rowsort label-7443
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 23 * + 20 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + + col1 NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7444
SELECT ALL COUNT( + col0 ) DIV - - COUNT( * ) - - - 56 + + + COUNT( - - col1 ) FROM tab0 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL COUNT ( + col0 ) / - - COUNT ( * ) - - - 56 + + + COUNT ( - - col1 ) FROM tab0 cor0
----
-52

query I rowsort
SELECT 40 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 21 AS col2, + 75 FROM tab0 AS cor0
----
21
75
21
75
21
75

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 28, col2 col2 FROM tab0 AS cor0
----
28
10
28
47
28
99

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7453
SELECT + MIN ( + ( col0 ) ) FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * + col0 * 78 col2 FROM tab0
----
427518
476658
73710

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL MIN( DISTINCT + 32 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL MIN ( DISTINCT + 32 ) FROM tab0
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-7456
SELECT + col2 DIV + col1 AS col2, col1 AS col2 FROM tab0
----
0
21
0
81
99
1

skipif mysql # not compatible
query II rowsort label-7456
SELECT + col2 / + col1 AS col2, col1 AS col2 FROM tab0
----
0
21
0
81
99
1

query I rowsort
SELECT ALL + 46 * - 5 FROM tab1
----
-230
-230
-230

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + + 2 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7459
SELECT + + 2 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 6
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 80 BETWEEN + col0 AND - 95
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7463
SELECT COUNT( * ), 75 col2 FROM tab2
----
3
75

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

query II rowsort
SELECT + col2 AS col2, col0 FROM tab2 AS cor0 WHERE + col1 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT + COUNT( * ) + + + 11 + - + MIN( DISTINCT + ( - + 85 ) ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7465
SELECT + COUNT ( * ) + + + 11 + - + MIN ( DISTINCT + ( - + 85 ) ) FROM tab2 AS cor0
----
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7466
SELECT ALL + MIN ( DISTINCT - 27 ) col0 FROM tab0 AS cor0
----
-27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT 92 * col0 + - col1 DIV 14 * - col0 col0 FROM tab0 AS cor0
----
1455
8091
8924

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7468
SELECT 92 * col0 + - col1 / 14 * - col0 col0 FROM tab0 AS cor0
----
1455
8091
8924

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7472
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * + col2 / - CAST( NULL AS SIGNED ) BETWEEN - 14 AND + col1
----

skipif mysql # not compatible
query III rowsort label-7472
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * + col2 / - CAST ( NULL AS INTEGER ) BETWEEN - 14 AND + col1
----

query I rowsort
SELECT DISTINCT ( - 61 ) AS col1 FROM tab1 AS cor0
----
-61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + + col0 + + col2 / - + col1 * + 30 * - 85 + - col0 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + MIN ( ALL + 12 ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL col1 + - - col1 + + col2 * - - col0 + - + col1 FROM tab1
----
4910
5020
6235

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT DISTINCT + col0 * + 0 + 67 + - - 21 - - - col1 DIV + col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT + col0 * + 0 + 67 + - - 21 - - - col1 / + col1 FROM tab0
----
87

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

query I rowsort
SELECT DISTINCT + col1 + col2 + 87 FROM tab0
----
118
187
215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT - + COUNT( * ) DIV + - 93 * - + 7 * - - 73 * - 96 col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7481
SELECT DISTINCT - + COUNT ( * ) / + - 93 * - + 7 * - - 73 * - 96 col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT SUM( + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7482
SELECT SUM ( + col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT + 86 * + col0 FROM tab0
----
1290
7482
8342

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 < col1 / col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT 75 + MIN( ALL - + col0 ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT 75 + MIN ( ALL - + col0 ) FROM tab1 AS cor0
----
-16

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT ALL - col0 * CAST( NULL AS SIGNED ) * - 95 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) * - 95 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7489
SELECT + + col1 AS col0, CAST( NULL AS SIGNED ) * + col1 * col2 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7489
SELECT + + col1 AS col0, CAST ( NULL AS INTEGER ) * + col1 * col2 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL + MIN( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + MIN ( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT + 18 * - + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-54

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT + 18 * - + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-54

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 27 ) col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * - ( - 90 ) + + col0 AND - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT DISTINCT + 20 * + MAX( DISTINCT + + 8 ) * 58 - + 61 FROM tab2 cor0
----
9219

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT + 20 * + MAX ( DISTINCT + + 8 ) * 58 - + 61 FROM tab2 cor0
----
9219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, - col2 + + col0 col1 FROM tab0
----
15
-32
87
77
97
-2

query I rowsort
SELECT + col1 * col0 * - + col0 FROM tab1
----
-36125
-36414
-389207

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7501
SELECT col2, CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
59
5
68
47
96
14

skipif mysql # not compatible
query II rowsort label-7501
SELECT col2, CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT 6 + - col2 + + 21 FROM tab0 AS cor0
----
-20
-72
17

query I rowsort
SELECT + 37 + ( + + 26 ) FROM tab1 AS cor0
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT 19 + - 60 + + + col2 DIV 84 AS col2 FROM tab1
----
-40
-41
-41

skipif mysql # not compatible
query I rowsort label-7504
SELECT 19 + - 60 + + + col2 / 84 AS col2 FROM tab1
----
-40
-41
-41

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

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

query I rowsort
SELECT ALL col1 * + col0 * + - col0 + - 35 FROM tab1
----
-36160
-36449
-389242

query I rowsort
SELECT DISTINCT 67 * - 78 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-5226

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 96 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT DISTINCT col2 + col0, ( 31 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

query II rowsort
SELECT + ( - - col2 ), col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + 0 BETWEEN - col0 AND - + col1 * 26 + - + col1 + + 22 * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + col0 + + col1 + col0 FROM tab0 WHERE + 14 IS NOT NULL
----
111
195
195

query I rowsort
SELECT - 63 + + + col1 FROM tab1
----
-16
-49
-58

query I rowsort
SELECT ALL col1 * - col2 + - col1 FROM tab1
----
-1358
-300
-3243

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT MAX( col1 ), - 28 col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7516
SELECT MAX ( col1 ), - 28 col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL
-28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + col1 * + col2 + - 83
----

query I rowsort
SELECT DISTINCT 49 - 13 AS col2 FROM tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT 52 - + 62 AS col0 FROM tab1 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + 45 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE - col1 > col2
----
0

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE - col1 > col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT + SUM( ALL - 29 ) AS col0 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-7523
SELECT + SUM ( ALL - 29 ) AS col0 FROM tab2
----
-87

query I rowsort
SELECT + col1 - + 1 FROM tab2
----
50
66
76

query I rowsort
SELECT - 49 * col1 AS col2 FROM tab0 WHERE ( col0 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 > + 82
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( 8 * + 3 + + 82 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7528
SELECT ALL col0 + - col0 FROM tab0 WHERE ( ( + CAST( NULL AS SIGNED ) ) ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL col0 + - col0 FROM tab0 WHERE ( ( + CAST ( NULL AS INTEGER ) ) ) IS NULL
----
0
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 14 / 38 - + col0 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT COUNT( * ) + + MAX( - 78 + + col0 ) AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-7533
SELECT COUNT ( * ) + + MAX ( - 78 + + col0 ) AS col0 FROM tab1
----
16

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - 16
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7535
SELECT 38 + - MAX( + col0 ) DIV 20 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-7535
SELECT 38 + - MAX ( + col0 ) / 20 FROM tab0
----
34

query I rowsort
SELECT - 41 AS col0 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT ALL + col2 + - 38 * 24 FROM tab1
----
-816
-844
-853

query I rowsort
SELECT ALL - col1 - + col1 FROM tab1
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7539
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND ( CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-7539
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND ( CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + + col2 )
----

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

skipif mysql # not compatible
query III rowsort label-7540
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT - COUNT( * ) * 0 AS col2 FROM tab2 WHERE - col2 * col2 IN ( 36 )
----
0

skipif mysql # not compatible
query I rowsort label-7541
SELECT - COUNT ( * ) * 0 AS col2 FROM tab2 WHERE - col2 * col2 IN ( 36 )
----
0

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

query I rowsort
SELECT ALL 70 * - 58 + col2 AS col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT ALL + col0 - + ( col1 ) FROM tab1 AS cor0 WHERE 57 IS NOT NULL
----
37
44
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ( 2 ) * COUNT( DISTINCT 6 + 22 ) FROM tab2 AS cor0 CROSS JOIN tab0 WHERE + 74 * 97 IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-7546
SELECT ( 2 ) * COUNT ( DISTINCT 6 + 22 ) FROM tab2 AS cor0 CROSS JOIN tab0 WHERE + 74 * 97 IS NOT NULL
----
2

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

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT AVG ( col1 ) * CAST ( NULL AS INTEGER ) + 38 FROM tab2
----
NULL

query I rowsort
SELECT 99 FROM tab2 WHERE col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL NOT IN ( 4 )
----

query I rowsort
SELECT 52 * - col2 + - col1 * 73 AS col0 FROM tab0
----
-2053
-5221
-8357

query I rowsort
SELECT ALL col2 + 3 AS col0 FROM tab0 AS cor0
----
102
13
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL COUNT( * ) * MIN( col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL COUNT ( * ) * MIN ( col1 ) FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > + col2 / - col1 + - 41
----
0

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > + col2 / - col1 + - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT - + 98 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-7554
SELECT - + 98 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-95

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7559
SELECT + col2 DIV 14 AS col2 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-7559
SELECT + col2 / 14 AS col2 FROM tab2 AS cor0
----
1
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT DISTINCT + 30 + + + COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT + 30 + + + COUNT ( * ) FROM tab0
----
33

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

query I rowsort
SELECT 18 * + + 94 FROM tab1
----
1692
1692
1692

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT col1 - - + col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT COUNT( * ) DIV - COUNT( col2 ) - + 29 * 93 AS col2 FROM tab2
----
-2698

skipif mysql # not compatible
query I rowsort label-7565
SELECT COUNT ( * ) / - COUNT ( col2 ) - + 29 * 93 AS col2 FROM tab2
----
-2698

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT DISTINCT - col1 + + col0 + - col2 DIV 82 AS col1 FROM tab1
----
36
44
80

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT - col1 + + col0 + - col2 / 82 AS col1 FROM tab1
----
36
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7567
SELECT DISTINCT * FROM tab0 WHERE col1 = col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7567
SELECT DISTINCT * FROM tab0 WHERE col1 = col0 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - col1 * + ( + 80 ) * col2 - - col1 FROM tab0 cor0
----
-16779
-304479
-7919

query I rowsort
SELECT ALL col0 * + col2 - - col2 FROM tab2 AS cor0
----
1081
2600
4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT col0 FROM tab1 cor0 WHERE CAST( + col1 AS SIGNED ) + 60 BETWEEN NULL AND col2 + - 73 * CAST( NULL AS SIGNED ) AND col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7570
SELECT col0 FROM tab1 cor0 WHERE CAST ( + col1 AS INTEGER ) + 60 BETWEEN NULL AND col2 + - 73 * CAST ( NULL AS INTEGER ) AND col1 IS NULL
----

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab0, tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab0, tab0 cor0
----
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT - + col2 DIV + - col0 * - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7580
SELECT - + col2 / + - col0 * - col1 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7582
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( 25 ) - + col2 * 86 ) <= ( col1 + 60 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7582
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( 25 ) - + col2 * 86 ) <= ( col1 + 60 * - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 * - 88 col0 FROM tab0 AS cor0
----
-5016
-5016
-5016

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7587
SELECT ALL + - col0 * - col0 + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL + - col0 * - col0 + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT + col1 * - 77 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1078
-3619
-385

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

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

query I rowsort
SELECT col2 - + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL + COUNT( * ) * + 42 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + COUNT ( * ) * + 42 FROM tab1
----
126

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ( - - 71 ) * - COUNT( * ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-7594
SELECT ( - - 71 ) * - COUNT ( * ) FROM tab1
----
-213

query I rowsort
SELECT DISTINCT + 70 + + 67 AS col2 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7596
SELECT DISTINCT col0 + + 70 DIV CAST( + + col1 AS SIGNED ) col0 FROM tab2
----
47
64
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT DISTINCT col0 + + 70 / CAST ( + + col1 AS INTEGER ) col0 FROM tab2
----
47
64
76

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 11 * col1 ) <= ( NULL )
----

query I rowsort
SELECT + 22 FROM tab1 WHERE NOT ( col0 ) > NULL
----

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

skipif mysql # not compatible
query I rowsort label-7599
SELECT + COUNT ( + - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL + 80 * + MIN( ALL + col2 ) * + - MIN( 3 ) + + 43 AS col2 FROM tab1 cor0
----
-14117

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL + 80 * + MIN ( ALL + col2 ) * + - MIN ( 3 ) + + 43 AS col2 FROM tab1 cor0
----
-14117

query I rowsort
SELECT DISTINCT - + 78 * col0 FROM tab1 AS cor0
----
-3978
-6630
-7098

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 > - ( - 84 )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7603
SELECT * FROM tab2 cor0 WHERE col1 NOT BETWEEN NULL AND ( - 70 * - - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7603
SELECT * FROM tab2 cor0 WHERE col1 NOT BETWEEN NULL AND ( - 70 * - - CAST ( NULL AS REAL ) )
----

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

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

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

query I rowsort
SELECT DISTINCT 37 + col1 * - + ( col0 ) * col0 FROM tab1
----
-36088
-36377
-389170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT + 15 * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 52 * + CAST( NULL AS SIGNED ) NOT BETWEEN ( + + 23 / 47 + + 6 * col1 ) AND + CAST( NULL AS SIGNED ) * col2
----
0

skipif mysql # not compatible
query I rowsort label-7607
SELECT + 15 * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 52 * + CAST ( NULL AS INTEGER ) NOT BETWEEN ( + + 23 / 47 + + 6 * col1 ) AND + CAST ( NULL AS INTEGER ) * col2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 65 * - col2 + col1 ) NOT BETWEEN col0 AND + col2 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT DISTINCT - COUNT( * ) - 14 + 8 col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7610
SELECT DISTINCT - COUNT ( * ) - 14 + 8 col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT col0 - 14 * + + 3 FROM tab1 AS cor0
----
43
49
9

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

query I rowsort
SELECT ALL + + 68 AS col0 FROM tab2 AS cor0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 - 3 * col1 * - 73 col1 FROM tab2 AS cor0
----
10787
13783
9996

query I rowsort
SELECT + + 87 - + 16 AS col1 FROM tab2 AS cor0
----
71
71
71

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT DISTINCT + col2 DIV + 60 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT + col2 / + 60 AS col0 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= - 14 - 93
----

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

query I rowsort
SELECT col2 + + 60 * + col1 AS col1 FROM tab2
----
3083
4078
4660

query III rowsort
SELECT * FROM tab2 WHERE - + 13 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( + + col2 ) AS col2, + 37 col2 FROM tab0 AS cor0
----
10
37
47
37
99
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
3

query II rowsort
SELECT + - 88 AS col1, 24 FROM tab2 AS cor0
----
-88
24
-88
24
-88
24

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, - 69 * - ( + col0 ) col1 FROM tab0 AS cor0
----
10
6003
47
1035
99
6693

onlyif mysql # aggregate syntax: 
query II rowsort label-7628
SELECT ALL COUNT( * ) col1, 45 * COUNT( ALL - 2 ) AS col1 FROM tab2 AS cor0
----
3
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7628
SELECT ALL COUNT ( * ) col1, 45 * COUNT ( ALL - 2 ) AS col1 FROM tab2 AS cor0
----
3
135

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7629
SELECT col1 * CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 92 * col1 col1 FROM tab1 AS cor0
----
-123648
-27140
-294032

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT DISTINCT COUNT( * ) * - + 5 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT COUNT ( * ) * - + 5 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL - 67 * ( + col2 ) + - + col2 AS col0 FROM tab2 AS cor0
----
-1564
-2720
-3944

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

query I rowsort
SELECT - + 45 AS col2 FROM tab2 cor0
----
-45
-45
-45

query I rowsort
SELECT - - 46 AS col2 FROM tab1 cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
29

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

query I rowsort
SELECT DISTINCT - ( - 42 ) + col1 FROM tab0
----
123
43
63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 = NULL
----

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

query II rowsort
SELECT ALL col1 AS col1, col1 AS col1 FROM tab2
----
51
51
67
67
77
77

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

skipif mysql # not compatible
query I rowsort label-7643
SELECT SUM ( + col2 ) FROM tab2
----
121

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT DISTINCT - - COUNT( * ) * + - MIN( + CAST( col2 AS SIGNED ) ) * + 22 - + 90 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT - - COUNT ( * ) * + - MIN ( + CAST ( col2 AS INTEGER ) ) * + 22 - + 90 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT ALL + - ( - - CAST( + + MAX( DISTINCT + 33 ) AS SIGNED ) ) * MAX( DISTINCT col0 ) col2 FROM tab0 AS cor0
----
-3201

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT 80 + + - 94 - + col1 AS col1 FROM tab1
----
-19
-28
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - 88 ) AS col2, 36 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 5a96ed734eb9d5a65740f4bd5853f106

query II rowsort
SELECT - 50 + + + col1 AS col0, - 40 FROM tab0 AS cor0
----
-29
-40
-49
-40
31
-40

query I rowsort
SELECT DISTINCT + + 4 + col1 FROM tab2 cor0
----
55
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL + MIN( - 76 ) - - 38 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-38

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL + MIN ( - 76 ) - - 38 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-38

query I rowsort
SELECT ALL col0 - + 7 FROM tab0 AS cor0
----
8
80
90

query I rowsort
SELECT ALL 32 * - + col2 FROM tab1
----
-1888
-2176
-3072

query I rowsort
SELECT col1 - - - 95 AS col1 FROM tab2
----
-18
-28
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT ALL + MAX( + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL + MAX ( + col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT ( + col2 ) * col1 + col0 + + + col2 * - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT ( + col2 ) * col1 + col0 + + + col2 * - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT ALL COUNT( * ) AS col1, - 68 AS col1 FROM tab1
----
3
-68

skipif mysql # not compatible
query II rowsort label-7659
SELECT ALL COUNT ( * ) AS col1, - 68 AS col1 FROM tab1
----
3
-68

query I rowsort
SELECT DISTINCT col1 * - 32 FROM tab1
----
-1504
-160
-448

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

query I rowsort
SELECT - 67 * - col1 FROM tab0
----
1407
5427
67

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ( - ( - ( + - COUNT( - 1 ) ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7666
SELECT ( - ( - ( + - COUNT ( - 1 ) ) ) ) FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( col2, 17, + col2 + - + col2, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7668
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col2 + col0 * - col1 * ( - CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7668
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col2 + col0 * - col1 * ( - CAST ( NULL AS REAL ) ) IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, 96 col0 FROM tab0 AS cor0
----
-15
96
-87
96
-97
96

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

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col1, 10 FROM tab0 AS cor0
----
10
10
47
10
99
10

query I rowsort
SELECT 47 * - - 35 AS col0 FROM tab0
----
1645
1645
1645

query II rowsort
SELECT ( - + col2 ), - col1 AS col2 FROM tab1
----
-59
-5
-68
-47
-96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7677
SELECT CAST( NULL AS SIGNED ) * + 87 AS col1, 38 col2 FROM tab0
----
NULL
38
NULL
38
NULL
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7677
SELECT CAST ( NULL AS INTEGER ) * + 87 AS col1, 38 col2 FROM tab0
----
NULL
38
NULL
38
NULL
38

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

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) FROM tab0
----
3

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

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT + 60 + - COUNT ( * ) FROM tab2
----
57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + - 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7681
SELECT ALL - col0 * CAST( NULL AS SIGNED ), col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7681
SELECT ALL - col0 * CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7682
SELECT DISTINCT 39 + - - ( - COUNT( * ) ), 4 col2 FROM tab1
----
36
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7682
SELECT DISTINCT 39 + - - ( - COUNT ( * ) ), 4 col2 FROM tab1
----
36
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT + COUNT( * ) * - - MAX( 6 ) FROM tab0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT + COUNT ( * ) * - - MAX ( 6 ) FROM tab0 WHERE NULL = NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 <= - 74 + col2
----
46
51
23

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

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL - 31 + COUNT ( * ) FROM tab0
----
-28

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7688
SELECT - 63 DIV col2 AS col1, + CAST( - col0 AS SIGNED ) * + 51 * + + col0 FROM tab1 AS cor0
----
-1
-368475
0
-132651
0
-422331

skipif mysql # not compatible
query II rowsort label-7688
SELECT - 63 / col2 AS col1, + CAST ( - col0 AS INTEGER ) * + 51 * + + col0 FROM tab1 AS cor0
----
-1
-368475
0
-132651
0
-422331

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

skipif mysql # not compatible
query I rowsort label-7689
SELECT COUNT ( * ) * - + COUNT ( * ) + - COUNT ( * ) * + 87 FROM tab0 cor0
----
-270

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - col0 + - + col2 FROM tab0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab1 WHERE + + 51 IN ( + col0 + + col2 + - col0 * + 36 * - - 33 )
----

query I rowsort
SELECT 72 * - col1 * + + col0 - - 7 FROM tab0 AS cor0
----
-131537
-6977
-87473

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL 2 - + 45 * SUM( ALL + + col2 ) FROM tab1 AS cor0
----
-10033

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL 2 - + 45 * SUM ( ALL + + col2 ) FROM tab1 AS cor0
----
-10033

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL + COUNT( * ) * - 60 AS col0 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL + COUNT ( * ) * - 60 AS col0 FROM tab0 AS cor0
----
-180

query II rowsort
SELECT ALL + col1 * + - ( + - col0 ), - col2 AS col0 FROM tab0 AS cor0
----
1215
-47
1827
-10
97
-99

query I rowsort
SELECT DISTINCT - col0 * - 73 AS col1 FROM tab2 AS cor0
----
3358
4672
5475

query I rowsort
SELECT ALL 62 * - col1 * - col2 FROM tab0
----
13020
236034
6138

query I rowsort
SELECT + 11 * + col2 * + + col0 FROM tab2
----
11638
28160
47850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + col2 col1, + 62 FROM tab1
----
4896
62
5015
62
6188
62

query II rowsort
SELECT DISTINCT - col1 / - 81 / + 4 AS col0, col2 AS col1 FROM tab0 WHERE NOT ( NULL ) = 42 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 69 - + 85 col0 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT DISTINCT - COUNT( * ) * + - 4 AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - COUNT ( * ) * + - 4 AS col1 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT - SUM( + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT - SUM ( + col2 ) AS col1 FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query II rowsort label-7707
SELECT ALL col0 DIV - + 40, - col1 AS col2 FROM tab2
----
-1
-51
-1
-67
-1
-77

skipif mysql # not compatible
query II rowsort label-7707
SELECT ALL col0 / - + 40, - col1 AS col2 FROM tab2
----
-1
-51
-1
-67
-1
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col2 / + 69 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - ( - + COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7709
SELECT - ( - + COUNT ( * ) ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 48 * col0, - col0 col1 FROM tab1 AS cor0
----
-2448
-51
-4080
-85
-4368
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT MAX( DISTINCT - col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7711
SELECT MAX ( DISTINCT - col1 ) col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT col0 * + col2, col2 * - + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
705
-705
870
-870
9603
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT DISTINCT - SUM( DISTINCT + col1 ) col0 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7713
SELECT DISTINCT - SUM ( DISTINCT + col1 ) col0 FROM tab2
----
-195

query I rowsort
SELECT 40 * - ( - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT + + COUNT( * ) * + + 23 AS col0 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7717
SELECT + + COUNT ( * ) * + + 23 AS col0 FROM tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT + col2 + 48 FROM tab0 AS cor0
----
147
58
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT CAST( NULL AS SIGNED ) * - + 20 + + - col1 / + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT CAST ( NULL AS INTEGER ) * - + 20 + + - col1 / + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT DISTINCT + + MIN( - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT + + MIN ( - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = ( + ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT COUNT( 8 ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7723
SELECT DISTINCT COUNT ( 8 ) col0 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT ALL - CAST( col1 AS SIGNED ) + col1 / - CAST( NULL AS SIGNED ) * + 5 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL - CAST ( col1 AS INTEGER ) + col1 / - CAST ( NULL AS INTEGER ) * + 5 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT - COUNT( * ) + 33 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-7725
SELECT - COUNT ( * ) + 33 FROM tab2
----
30

query I rowsort
SELECT - 60 FROM tab0 WHERE NULL IS NULL
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7727
SELECT * FROM tab2 WHERE + + CAST( NULL AS SIGNED ) - + - 10 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7727
SELECT * FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) - + - 10 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + 87 + + 38 FROM tab2
----
4475
5867
6737

query I rowsort
SELECT DISTINCT col1 * - - col2 + - + col1 * - - col1 FROM tab1
----
1148
270
987

query I rowsort
SELECT DISTINCT + - 75 / + 45 + 12 FROM tab2 AS cor0 WHERE 28 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + - 97 ) AS col0 FROM tab1 cor0
----
97

query I rowsort
SELECT ALL 54 * col0 + + col2 AS col1 FROM tab0
----
4708
5337
857

query I rowsort
SELECT ALL col2 + + + 65 * - col0 * + - 99 * - ( col2 ) * + 94 + - 30 FROM tab2 WHERE NULL NOT BETWEEN 57 AND + 31
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col2 AS col1, - 0 col0, - - col2 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

query II rowsort
SELECT ALL + ( + - col2 ), col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT ALL + 69 * + ( + - col1 ) * - 51 * + - ( 13 ) FROM tab1 AS cor0 WHERE NOT 39 NOT BETWEEN NULL AND + + col1
----

query I rowsort
SELECT ALL + col2 * + 77 + - col1 FROM tab1 AS cor0
----
4538
5189
7378

query I rowsort
SELECT DISTINCT - 49 AS col2 FROM tab0 cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE ( NOT - col0 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE ( NOT - col0 IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT + ( - - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7741
SELECT + ( - - COUNT ( * ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) * col1 IS NOT NULL
----

query I rowsort
SELECT 30 * - col2 FROM tab1
----
-1770
-2040
-2880

query I rowsort
SELECT 48 * - + col2 AS col2 FROM tab2
----
-1104
-1920
-2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col0 col0 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT DISTINCT - 15 AS col0, - col0 FROM tab0
----
-15
-15
-15
-87
-15
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7747
SELECT ALL 97 AS col0, MIN( ALL + + 18 ) col2 FROM tab0
----
97
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7747
SELECT ALL 97 AS col0, MIN ( ALL + + 18 ) col2 FROM tab0
----
97
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7748
SELECT DISTINCT - + 4 * col0 + + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT - + 4 * col0 + + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col0 AS col1 FROM tab2 cor0 WHERE NOT - col1 + - + col0 BETWEEN - + 31 AND NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < + col2
----
0

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < + col2
----
0

query II rowsort
SELECT DISTINCT - + col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT ALL COUNT( * ) * 12 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL COUNT ( * ) * 12 FROM tab0 AS cor0
----
36

query I rowsort
SELECT + - 4 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col1 * - col1 * + 61 AS col1 FROM tab0 AS cor0
----
-26901
-400221
-61

query I rowsort
SELECT - col1 + + - col0 AS col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ALL 67 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query II rowsort
SELECT ( - 19 ), - col2 AS col0 FROM tab0
----
-19
-10
-19
-47
-19
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + 53 + + 68 AS col2 FROM tab1
----
126
135
168

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL > - + col1 )
----

query I rowsort
SELECT ALL - ( - 77 ) * - col0 AS col0 FROM tab2 cor0
----
-3542
-4928
-5775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT DISTINCT col0 * - col1 * + - 56 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT col0 * - col1 * + - 56 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + 47 AS col2 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT - + 37 * 9 AS col1 FROM tab1 cor0
----
-333
-333
-333

query I rowsort
SELECT + ( + + 63 ) * - 69 FROM tab2 AS cor0
----
-4347
-4347
-4347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7766
SELECT + COUNT( ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7766
SELECT + COUNT ( ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7767
SELECT - COUNT( * ) / SUM( - - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT - COUNT ( * ) / SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT ALL + MAX( + col0 ) + - + 89 * AVG ( ALL ( + CAST( NULL AS SIGNED ) ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7768
SELECT ALL + MAX ( + col0 ) + - + 89 * AVG ( ALL ( + CAST ( NULL AS INTEGER ) ) ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE + 64 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT DISTINCT col0 DIV col2 * + - col1 AS col2 FROM tab2
----
-102
-67
-77

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT col0 / col2 * + - col1 AS col2 FROM tab2
----
-102
-67
-77

query I rowsort
SELECT ALL - col2 * + + col0 + + col2 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT col2 + 3 AS col0 FROM tab0
----
102
13
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7773
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + 96 = + col0
----

skipif mysql # not compatible
query III rowsort label-7773
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + 96 = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT ALL - CAST( + col1 AS SIGNED ) + - col0 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - CAST ( + col1 AS INTEGER ) + - col0 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + - 49 AS col0 FROM tab1 AS cor0
----
10
19
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + col1 ) ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT - CAST( - - 95 AS SIGNED ) FROM tab0 AS cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-7778
SELECT - CAST ( - - 95 AS INTEGER ) FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL - 58 - + col1 FROM tab1 AS cor0
----
-105
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL MAX( ALL col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL MAX ( ALL col2 ) FROM tab0
----
99

query II rowsort
SELECT DISTINCT + ( - 15 ) AS col0, + 18 AS col2 FROM tab2
----
-15
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7782
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * - 99 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7782
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * - 99 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT + 42 * + 7 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2646

skipif mysql # not compatible
query I rowsort label-7783
SELECT + 42 * + 7 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2646

query I rowsort
SELECT ( + 84 ) AS col1 FROM tab0 AS cor0
----
84
84
84

query II rowsort
SELECT ALL + - 88 AS col1, - col0 * col1 AS col2 FROM tab2 AS cor0
----
-88
-2346
-88
-4928
-88
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7786
SELECT - + 82 DIV + + COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7786
SELECT - + 82 / + + COUNT ( * ) FROM tab2 AS cor0
----
-27

query II rowsort
SELECT - col0, 65 * + ( + ( - 82 ) ) AS col0 FROM tab2 AS cor0
----
-46
-5330
-64
-5330
-75
-5330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - + 96 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT COUNT( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7790
SELECT COUNT ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT + COUNT( ALL + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7791
SELECT + COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ALL - + COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7792
SELECT ALL - + COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 - col2 / - - col2 / + - col2 AS col2 FROM tab0 WHERE NOT + col0 * - 54 + + col0 * - col2 * - col2 - col2 < NULL
----

query I rowsort
SELECT 17 * + col0 FROM tab2
----
1088
1275
782

query I rowsort
SELECT ALL ( + ( + 54 ) ) AS col2 FROM tab2
----
54
54
54

query I rowsort
SELECT + 34 * - - col2 FROM tab2 cor0
----
1360
1972
782

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 52 / - ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT SUM( DISTINCT 50 ) AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-7798
SELECT SUM ( DISTINCT 50 ) AS col1 FROM tab1
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + col0 col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query II rowsort label-7800
SELECT ALL + ( + col0 ) DIV col1, col2 FROM tab1
----
1
68
17
59
3
96

skipif mysql # not compatible
query II rowsort label-7800
SELECT ALL + ( + col0 ) / col1, col2 FROM tab1
----
1
68
17
59
3
96

query II rowsort
SELECT - col0 + col1 * + col1, col1 FROM tab0 cor0
----
-96
1
354
21
6546
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND col0 * + - col0 + + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7803
SELECT - + col0 + + 12 + CAST( NULL AS DECIMAL ) + - col0 + - - col2 - - 46 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT - + col0 + + 12 + CAST ( NULL AS REAL ) + - col0 + - - col2 - - 46 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2
2
2

query I rowsort
SELECT - 64 AS col0 FROM tab1 AS cor0 WHERE ( + 44 / + 38 + col0 ) IS NOT NULL
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7806
SELECT ALL - + COUNT( * ) AS col0, + 76 AS col2 FROM tab0 AS cor0
----
-3
76

skipif mysql # not compatible
query II rowsort label-7806
SELECT ALL - + COUNT ( * ) AS col0, + 76 AS col2 FROM tab0 AS cor0
----
-3
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab0, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab0, tab2 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT col1 DIV - + 72 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT col1 / - + 72 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE col1 <= - + col0
----

query I rowsort
SELECT ALL 27 + + 35 AS col1 FROM tab1
----
62
62
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col1 - + 27 + + col2 AS col1 FROM tab0
----
101
4
73

query I rowsort
SELECT DISTINCT - col0 + + ( col1 ) FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT 57 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT 57 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT - COUNT( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - COUNT ( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + 27 + + + col2 AS col0 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7818
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT DISTINCT + - CAST( - - 29 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NOT col2 + - + col0 * - 9 * + col0 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT + - CAST ( - - 29 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NOT col2 + - + col0 * - 9 * + col0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT ALL - 95 DIV - 22 AS col2 FROM tab2 cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL - 95 / - 22 AS col2 FROM tab2 cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7821
SELECT ALL 47 DIV 44 * CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL 47 / 44 * CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT - + col2 AS col0 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ( + - COUNT( * ) ) * - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7823
SELECT ( + - COUNT ( * ) ) * - COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT COUNT( * ) * - 73 AS col1 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT COUNT ( * ) * - 73 AS col1 FROM tab0
----
-219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col1 FROM tab0 WHERE NOT + 62 + + - col2 + + col2 * + 79 * - - col2 IS NOT NULL
----

query I rowsort
SELECT col1 * - 51 AS col0 FROM tab2
----
-2601
-3417
-3927

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7827
SELECT * FROM tab1 WHERE NOT NULL IN ( + + CAST( + col0 AS DECIMAL ) * + 11 - - col0 )
----

skipif mysql # not compatible
query III rowsort label-7827
SELECT * FROM tab1 WHERE NOT NULL IN ( + + CAST ( + col0 AS REAL ) * + 11 - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT DISTINCT - 98 + 66 * + - CAST( - col1 AS SIGNED ) + + + col2 + col1 FROM tab2
----
3342
4449
5101

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT - 98 + 66 * + - CAST ( - col1 AS INTEGER ) + + + col2 + col1 FROM tab2
----
3342
4449
5101

query I rowsort
SELECT 89 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT COUNT( - 83 ) FROM tab1 AS cor0 WHERE 9 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7830
SELECT COUNT ( - 83 ) FROM tab1 AS cor0 WHERE 9 IS NULL
----
0

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * - - col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT - col2 * - - 52 + - col1 FROM tab1 AS cor0
----
-3073
-3583
-5006

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT col0 DIV - + col2 - + ( + + col1 ) FROM tab2 cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-7834
SELECT col0 / - + col2 - + ( + + col1 ) FROM tab2 cor0
----
-53
-68
-78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col0 - 98 + + 91 * - col2 * 84 * + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7836
SELECT + + COUNT( * ) + + CAST( NULL AS SIGNED ), + 63 AS col2 FROM tab1 AS cor0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-7836
SELECT + + COUNT ( * ) + + CAST ( NULL AS INTEGER ), + 63 AS col2 FROM tab1 AS cor0
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT 57 + + SUM( ALL + - 81 ) AS col0 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-7837
SELECT 57 + + SUM ( ALL + - 81 ) AS col0 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT col1 + - - col2 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab1 WHERE + - 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col0 AS col0, - 72 FROM tab2 cor0 WHERE - 61 IS NULL
----

query I rowsort
SELECT - col1 * + col2 - + - 93 FROM tab1 AS cor0
----
-1251
-202
-3103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col0 + + 64 IS NULL
----

query II rowsort
SELECT ALL + col2 AS col0, + 95 AS col0 FROM tab2 AS cor0
----
23
95
40
95
58
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL col2 - col0 FROM tab1 AS cor0 WHERE NOT + col0 * - CAST( NULL AS SIGNED ) * + col2 <> + 64 * col1 + + 53
----

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL col2 - col0 FROM tab1 AS cor0 WHERE NOT + col0 * - CAST ( NULL AS INTEGER ) * + col2 <> + 64 * col1 + + 53
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + - 47 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7846
SELECT + - col2, - 56 * - col2 DIV - col2 + + col2 DIV - col0 - 75 AS col1 FROM tab2 AS cor0
----
-23
-131
-40
-131
-58
-131

skipif mysql # not compatible
query II rowsort label-7846
SELECT + - col2, - 56 * - col2 / - col2 + + col2 / - col0 - 75 AS col1 FROM tab2 AS cor0
----
-23
-131
-40
-131
-58
-131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, 90 AS col2 FROM tab0 AS cor0
----
15
90
87
90
97
90

query III rowsort
SELECT - ( + + col1 ) * + col0, 8 AS col1, col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to a2ef887ecfa50001c209e06b6f6b2566

onlyif mysql # DIV for integer division: 
query I rowsort label-7849
SELECT col2 DIV - - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7849
SELECT col2 / - - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT DISTINCT col0 DIV - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT col0 / - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7851
SELECT + col1 DIV - 11 FROM tab2 cor0
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-7851
SELECT + col1 / - 11 FROM tab2 cor0
----
-4
-6
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL MAX( - + 97 ) col2 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7852
SELECT ALL MAX ( - + 97 ) col2 FROM tab1 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE + 14 NOT BETWEEN NULL AND col0 * 49
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7854
SELECT ALL COUNT( - CAST( + + CAST( - col0 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL COUNT ( - CAST ( + + CAST ( - col0 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL + COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL + COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT col0, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - 39
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col0 FROM tab2
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT ALL col0 DIV + col0 + 25 AS col1 FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL col0 / + col0 + 25 AS col1 FROM tab1
----
26
26
26

query I rowsort
SELECT - 30 * + col1 FROM tab0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT 7 * + COUNT( * ) AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-7861
SELECT 7 * + COUNT ( * ) AS col2 FROM tab1
----
21

query I rowsort
SELECT - - 85 * - - col1 * + - col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-114240
-25075
-271660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT ALL + - col2 col0 FROM tab1 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) * + 51 + - col2 IS NULL
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7863
SELECT ALL + - col2 col0 FROM tab1 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) * + 51 + - col2 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT + 46 * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-7864
SELECT + 46 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-138

query I rowsort
SELECT ALL - + 64 FROM tab0 cor0
----
-64
-64
-64

query II rowsort
SELECT DISTINCT - col1 AS col2, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NULL AND NULL IS NULL
----

query I rowsort
SELECT ( - col0 ) + + - ( - - col1 ) * - - col2 AS col0 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE 53 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 - - 48 AS col0 FROM tab0 AS cor0
----
147
58
95

query I rowsort
SELECT 90 + - - 32 FROM tab2 AS cor0
----
122
122
122

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + ( + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 10 * 32 AS col1 FROM tab0 cor0
----
320
320
320

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT + + COUNT( * ) * - + 18 * - COUNT( * ) AS col2 FROM tab0 cor0
----
162

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + + COUNT ( * ) * - + 18 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT - SUM( + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7876
SELECT - SUM ( + col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + + 57 * - col0 + - col1 FROM tab1 WHERE - col1 > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT MIN( DISTINCT + 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-7878
SELECT MIN ( DISTINCT + 14 ) FROM tab1
----
14

query I rowsort
SELECT col2 * + - col1 - + 48 AS col0 FROM tab0
----
-147
-258
-3855

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT - COUNT( * ) - + COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7880
SELECT - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2
----
-6

query I rowsort
SELECT col2 - + ( - + col0 ) FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT 18 * - COUNT( * ) + + + MAX( - 7 ) * - + MIN( DISTINCT + - col2 ) FROM tab0
----
-747

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT 18 * - COUNT ( * ) + + + MAX ( - 7 ) * - + MIN ( DISTINCT + - col2 ) FROM tab0
----
-747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT + 68 - + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + + 93 * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT + 68 - + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 93 * - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7884
SELECT + - col0 DIV - col1 + col2 DIV col1 FROM tab1 AS cor0
----
2
28
9

skipif mysql # not compatible
query I rowsort label-7884
SELECT + - col0 / - col1 + col2 / col1 FROM tab1 AS cor0
----
2
28
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT ALL - ( - COUNT( DISTINCT + 25 ) ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL - ( - COUNT ( DISTINCT + 25 ) ) AS col0 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 AND - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( 82 ) * col0 col0 FROM tab0
----
-57810
-71340
-787446

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT ALL - CAST( - ( - + 17 ) AS SIGNED ) FROM tab0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL - CAST ( - ( - + 17 ) AS INTEGER ) FROM tab0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL - COUNT( DISTINCT + col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL - COUNT ( DISTINCT + col2 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col1 FROM tab0 cor0
----
52
52
52

query I rowsort
SELECT ALL 62 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT ALL + - COUNT( * ) * + SUM( + col2 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-471

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + - COUNT ( * ) * + SUM ( + col2 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-471

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - 91 AND + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7897
SELECT DISTINCT 39 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT 39 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT ALL MIN( DISTINCT + col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL MIN ( DISTINCT + col2 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + ( - col1 ) FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7900
SELECT DISTINCT - 99 + - 54, COUNT( * ) AS col1 FROM tab2
----
-153
3

skipif mysql # not compatible
query II rowsort label-7900
SELECT DISTINCT - 99 + - 54, COUNT ( * ) AS col1 FROM tab2
----
-153
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + ( - col0 ) ) IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - ( - - col1 ) ) + ( + - 37 ) + - - col0 FROM tab1
----
0
43
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL + 87 + + COUNT( * ) FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL + 87 + + COUNT ( * ) FROM tab2 cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT - col2 - CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-7904
SELECT - col2 - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT + COUNT( * ) + + + 11 AS col2 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7906
SELECT + COUNT ( * ) + + + 11 AS col2 FROM tab0 AS cor0
----
14

query I rowsort
SELECT ALL col0 * + + col1 - - col0 AS col2 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT ALL - 64 * + + 28 * + col2 FROM tab0 AS cor0
----
-177408
-17920
-84224

query II rowsort
SELECT DISTINCT - 72 AS col0, + col2 + - + ( - col1 ) - + col2 * col0 AS col2 FROM tab2 AS cor0
----
-72
-2443
-72
-4225
-72
-984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT ALL + CAST( NULL AS SIGNED ) * 5 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL + CAST ( NULL AS INTEGER ) * 5 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT ALL + col1 * col0 DIV + col2 AS col0 FROM tab1
----
62
7
7

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL + col1 * col0 / + col2 AS col0 FROM tab1
----
62
7
7

query I rowsort
SELECT DISTINCT - col0 * - - 92 AS col2 FROM tab0 AS cor0
----
-1380
-8004
-8924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7913
SELECT - CAST( 29 AS SIGNED ) * + + col1 col2, + 9 FROM tab0 cor0
----
-2349
9
-29
9
-609
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7913
SELECT - CAST ( 29 AS INTEGER ) * + + col1 col2, + 9 FROM tab0 cor0
----
-2349
9
-29
9
-609
9

query I rowsort
SELECT + - 4 + + 74 - col1 FROM tab2 AS cor0
----
-7
19
3

query I rowsort
SELECT DISTINCT + col1 * + col1 - 39 FROM tab0 AS cor0
----
-38
402
6522

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT + col0 + + - col1 DIV - 89 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7916
SELECT + col0 + + - col1 / - 89 AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT ( - col1 ) * - col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 98 AS col0, col1 * - + 88 AS col0 FROM tab0
----
98
-1848
98
-7128
98
-88

query I rowsort
SELECT 91 * + - col0 AS col1 FROM tab2
----
-4186
-5824
-6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + col2 col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - 20 + + 47 FROM tab1 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT DISTINCT - + SUM( - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT - + SUM ( - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE - CAST( NULL AS SIGNED ) + - + 12 > + col1
----

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + - + 12 > + col1
----

query II rowsort
SELECT ALL + col1, 93 AS col0 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT - 54 + col2 FROM tab2
----
-14
-31
4

query II rowsort
SELECT ALL col0 * - 23 + + col2 + + col0, 20 + + + col0 * 60 AS col1 FROM tab1
----
-1026
3080
-1811
5120
-1934
5480

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT 47 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL + - ( + col1 ) - - - ( - + col2 ) FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT 72 + - 84 AS col1 FROM tab1 AS cor0 WHERE col2 * - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - 75 + col0 col2 FROM tab2 cor0
----
144
179
208

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col1 < NULL
----

query I rowsort
SELECT - col0 * + col2 FROM tab0 AS cor0 WHERE 12 / + - col1 * - col1 IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT ALL ( - 14 ) AS col1 FROM tab0 cor0
----
-14
-14
-14

query I rowsort
SELECT ALL + 16 AS col1 FROM tab2
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT col1 DIV + + 88 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT col1 / + + 88 AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT - SUM( col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7938
SELECT - SUM ( col2 ) FROM tab1
----
-223

query I rowsort
SELECT ALL - ( - - 62 ) FROM tab2
----
-62
-62
-62

query II rowsort
SELECT DISTINCT + col2, + 68 + + 51 FROM tab2
----
23
119
40
119
58
119

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT col0 DIV + col1 AS col0 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7941
SELECT col0 / + col1 AS col0 FROM tab1 cor0
----
1
17
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 3 col1 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7943
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) * col0 - col2 + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7943
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) * col0 - col2 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + + 29 * + - col1 AND - col2 * - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + - col0 - col0 / - col2 > NULL
----

query I rowsort
SELECT ALL col2 * col2 * - col2 * - + col2 FROM tab0 cor0
----
10000
4879681
96059601

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT DISTINCT - 43 * + 71 * + 74 + MIN( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-225899

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT - 43 * + 71 * + 74 + MIN ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-225899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col1, 46 AS col2 FROM tab1 AS cor0
----
59
46
68
46
96
46

query II rowsort
SELECT + col0, col0 FROM tab0 cor0
----
15
15
87
87
97
97

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - - 68 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + col2 <> + 31 + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7953
SELECT col1 + + col0 * - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT col1 + + col0 * - - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - + col0 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( + ( + col2 ) ) * + 22 FROM tab0
----
1034
2178
220

query I rowsort
SELECT ALL col1 * + col0 * + col0 - - col1 AS col0 FROM tab2 AS cor0
----
107967
315469
376942

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + COUNT( ALL - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7958
SELECT + COUNT ( ALL - col0 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT SUM( ALL + - 89 ) + 58 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-743

skipif mysql # not compatible
query I rowsort label-7959
SELECT SUM ( ALL + - 89 ) + 58 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query II rowsort
SELECT ALL col0, col1 * + col2 AS col1 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

query I rowsort
SELECT - 33 * - 64 AS col2 FROM tab1 AS cor0
----
2112
2112
2112

query I rowsort
SELECT 9 * + col1 FROM tab1 AS cor0
----
126
423
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col1 FROM tab1
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7966
SELECT + col0 DIV + + col0 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7966
SELECT + col0 / + + col0 AS col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7968
SELECT DISTINCT - MAX( - col0 ) col0, SUM( DISTINCT + + col0 ) - + MIN( - col1 ) FROM tab2 AS cor0
----
46
262

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7968
SELECT DISTINCT - MAX ( - col0 ) col0, SUM ( DISTINCT + + col0 ) - + MIN ( - col1 ) FROM tab2 AS cor0
----
46
262

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( ( NULL ) IS NOT NULL ) )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT + + 7 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
7

query I rowsort
SELECT - 14 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT + 60 + col1 FROM tab2
----
111
127
137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab1 WHERE NOT + - 27 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 99 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT + col2 * + 40 AS col0 FROM tab2
----
1600
2320
920

query I rowsort
SELECT DISTINCT - 66 * - col1 + - col0 FROM tab0 AS cor0
----
-31
1299
5331

query I rowsort
SELECT DISTINCT + - ( + - col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT + - 65 + - COUNT( + col2 ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7978
SELECT + - 65 + - COUNT ( + col2 ) FROM tab0 AS cor0
----
-68

query I rowsort
SELECT col1 + - 23 AS col0 FROM tab1 AS cor0
----
-18
-9
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT + COUNT( * ) + + COUNT( * ) col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7980
SELECT + COUNT ( * ) + + COUNT ( * ) col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE ( - col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7983
SELECT col2, CAST( col0 AS SIGNED ) - + 59 * + col1 FROM tab0
----
10
-1152
47
-4764
99
38

skipif mysql # not compatible
query II rowsort label-7983
SELECT col2, CAST ( col0 AS INTEGER ) - + 59 * + col1 FROM tab0
----
10
-1152
47
-4764
99
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7984
SELECT CAST( ( 2 ) AS SIGNED ) AS col0 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7984
SELECT CAST ( ( 2 ) AS INTEGER ) AS col0 FROM tab2
----
2
2
2

query III rowsort
SELECT * FROM tab1 WHERE - 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7986
SELECT COUNT( * ), SUM( DISTINCT + - col0 ) AS col0 FROM tab2
----
3
-185

skipif mysql # not compatible
query II rowsort label-7986
SELECT COUNT ( * ), SUM ( DISTINCT + - col0 ) AS col0 FROM tab2
----
3
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL - - SUM( + + col2 ) - + 42 FROM tab1 AS cor0
----
181

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - - SUM ( + + col2 ) - + 42 FROM tab1 AS cor0
----
181

query II rowsort
SELECT DISTINCT + + 83 - col0 AS col1, col0 FROM tab0 AS cor0
----
-14
97
-4
87
68
15

query II rowsort
SELECT ALL + col2, col0 AS col1 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7990
SELECT - + col0 + + col2, - CAST( ( - - 6 ) AS SIGNED ) - - col0 AS col2 FROM tab0 AS cor0
----
-77
81
2
91
32
9

skipif mysql # not compatible
query II rowsort label-7990
SELECT - + col0 + + col2, - CAST ( ( - - 6 ) AS INTEGER ) - - col0 AS col2 FROM tab0 AS cor0
----
-77
81
2
91
32
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 71 col1 FROM tab2
----
-6
20
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT + COUNT( DISTINCT + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7992
SELECT + COUNT ( DISTINCT + col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + + MIN( col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7994
SELECT + + MIN ( col1 ) AS col1 FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7995
SELECT DISTINCT - ( - CAST( + - col2 AS SIGNED ) ) col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7995
SELECT DISTINCT - ( - CAST ( + - col2 AS INTEGER ) ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL MAX( - col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL MAX ( - col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> - col1
----

query I rowsort
SELECT - col0 * - col1 * + - 75 AS col1 FROM tab2 AS cor0
----
-175950
-369600
-376875

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8000
SELECT ALL CAST( - + col1 AS SIGNED ) DIV col2 * + col1 * - 65 AS col0 FROM tab0
----
0
2730
5265

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL CAST ( - + col1 AS INTEGER ) / col2 * + col1 * - 65 AS col0 FROM tab0
----
0
2730
5265

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT - SUM( DISTINCT + 97 ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT - SUM ( DISTINCT + 97 ) FROM tab2
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-8002
SELECT - ( - col1 ) DIV col2 AS col1, - col2 col1 FROM tab0
----
0
-99
1
-47
2
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8002
SELECT - ( - col1 ) / col2 AS col1, - col2 col1 FROM tab0
----
0
-99
1
-47
2
-10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8003
SELECT + 83 DIV + CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8003
SELECT + 83 / + CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
1
1
1

query II rowsort
SELECT ALL - col2 AS col0, ( - 43 ) AS col1 FROM tab1
----
-59
-43
-68
-43
-96
-43

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8006
SELECT ALL + COUNT( * ) AS col1, + 22 * - - 96 AS col2 FROM tab0
----
3
2112

skipif mysql # not compatible
query II rowsort label-8006
SELECT ALL + COUNT ( * ) AS col1, + 22 * - - 96 AS col2 FROM tab0
----
3
2112

onlyif mysql # aggregate syntax: 
query II rowsort label-8007
SELECT ALL + COUNT( * ), + COUNT( * ) AS col2 FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8007
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + col0 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT COUNT( * ) * - - 7 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT COUNT ( * ) * - - 7 FROM tab0 AS cor0
----
21

query I rowsort
SELECT 54 + - + 52 - - + col1 * - - col2 AS col1 FROM tab0 AS cor0
----
101
212
3809

query I rowsort
SELECT col0 - 92 AS col2 FROM tab2
----
-17
-28
-46

query I rowsort
SELECT 23 - - col0 * - col2 AS col2 FROM tab2
----
-1035
-2537
-4327

query I rowsort
SELECT ALL + 84 * col1 FROM tab1
----
1176
3948
420

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 77 * + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE 76 * col2 + + 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - col2 + + 62 * - col1 IN ( col2 / 8 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - COUNT( DISTINCT 75 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8018
SELECT - COUNT ( DISTINCT 75 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT ALL + 88 - + col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8020
SELECT + col0 DIV - ( col1 ) AS col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-8020
SELECT + col0 / - ( col1 ) AS col1 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8021
SELECT - 61 DIV COUNT( * ) AS col0 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-8021
SELECT - 61 / COUNT ( * ) AS col0 FROM tab2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT col1 DIV - col0 FROM tab0 WHERE + 68 + - col0 <= + col1
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT col1 / - col0 FROM tab0 WHERE + 68 + - col0 <= + col1
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL - COUNT( * ) * COUNT( * ) - 74 AS col2 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - COUNT ( * ) * COUNT ( * ) - 74 AS col2 FROM tab1
----
-83

query I rowsort
SELECT col0 * + 68 FROM tab1
----
3468
5780
6188

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) < ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT ALL + col2 DIV + col1 + col0 AS col1 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL + col2 / + col1 + col0 AS col1 FROM tab1
----
57
92
96

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE 45 + col0 <> ( 57 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT - 4 + + CAST( NULL AS SIGNED ) * 87 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT - 4 + + CAST ( NULL AS INTEGER ) * 87 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 94 + col1 FROM tab2 AS cor0
----
145
161
171

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 29 < - col2
----

query I rowsort
SELECT ALL - 42 * - ( + col1 ) - - col2 FROM tab0 AS cor0
----
141
3449
892

query I rowsort
SELECT DISTINCT + col1 * - 25 AS col2 FROM tab1 AS cor0
----
-1175
-125
-350

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <= 73 + 69
----

query I rowsort
SELECT ALL 62 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + col2 * - 64 = ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT ALL 58 DIV - 23 AS col2 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL 58 / - 23 AS col2 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT ALL + ( + col1 ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT - ( + 68 ) AS col2 FROM tab2 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8040
SELECT - - COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8040
SELECT - - COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 8 + col0 NOT BETWEEN - col1 AND col2 + 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT ALL - col1 DIV - 50 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL - col1 / - 50 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT 62 + col1 * col1 FROM tab2 cor0 WHERE NOT 31 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8045
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - CAST( - 83 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8045
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - CAST ( - 83 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 WHERE 4 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL MAX( DISTINCT - 30 ) AS col2 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL MAX ( DISTINCT - 30 ) AS col2 FROM tab0
----
-30

query I rowsort
SELECT DISTINCT col1 * col1 AS col1 FROM tab0 WHERE NOT col2 NOT BETWEEN ( col1 + col1 * col2 ) AND ( + ( - col1 ) ) OR NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT + MAX( ALL col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8051
SELECT + MAX ( ALL col2 ) AS col1 FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT DISTINCT - MAX( - + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT - MAX ( - + col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT - MAX( ALL + + col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8054
SELECT - MAX ( ALL + + col2 ) AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT COUNT( ALL + col1 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8055
SELECT DISTINCT COUNT ( ALL + col1 ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT ALL - CAST( NULL AS SIGNED ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL - CAST ( NULL AS INTEGER ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + AVG ( DISTINCT - 89 ) FROM tab1 AS cor0 WHERE ( 4 * col1 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 70 * + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - - col2 ) + + + col2 AS col2 FROM tab1
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8061
SELECT COUNT( * ) * - CAST( - 21 AS SIGNED ) + - MIN( ALL ( - col1 ) + - col0 DIV col0 ) col1 FROM tab2
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8061
SELECT COUNT ( * ) * - CAST ( - 21 AS INTEGER ) + - MIN ( ALL ( - col1 ) + - col0 / col0 ) col1 FROM tab2
----
141

query I rowsort
SELECT DISTINCT + 16 + col2 FROM tab0
----
115
26
63

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
21

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - + col0
----

query I rowsort
SELECT DISTINCT + 30 * + col1 + - - ( + col2 ) FROM tab0
----
129
2477
640

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8066
SELECT * FROM tab2 AS cor0 WHERE 64 * col2 <= - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8066
SELECT * FROM tab2 AS cor0 WHERE 64 * col2 <= - CAST ( col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT - - CAST( NULL AS SIGNED ) + - 67 + + + ( - col1 ) + + col1 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT - - CAST ( NULL AS INTEGER ) + - 67 + + + ( - col1 ) + + col1 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT DISTINCT - - SUM( + 86 ) AS col0 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT - - SUM ( + 86 ) AS col0 FROM tab2 AS cor0
----
258

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN 3 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8070
SELECT + 24 DIV + - col1 * - - col1 - 73 DIV - 35 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1602
3366
531

skipif mysql # not compatible
query I rowsort label-8070
SELECT + 24 / + - col1 * - - col1 - 73 / - 35 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1602
3366
531

query I rowsort
SELECT - col2 + + 66 - - 2 FROM tab0 cor0
----
-31
21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + + 61 + + 73 + + COUNT( * ) FROM tab1 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-8072
SELECT + + 61 + + 73 + + COUNT ( * ) FROM tab1 AS cor0
----
137

query I rowsort
SELECT ALL + 63 * - + col1 + 98 - + 61 FROM tab1 AS cor0
----
-278
-2924
-845

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col1 - + - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 * - col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - + 1 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT DISTINCT - ( - - COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT - ( - - COUNT ( * ) ) FROM tab2 cor0
----
-3

query II rowsort
SELECT DISTINCT - 96, + col2 AS col1 FROM tab1 cor0
----
-96
59
-96
68
-96
96

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE - - 39 IS NULL
----

query I rowsort
SELECT ALL + col0 - + 0 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT ( - col1 ) * - col0 DIV - col0 - col1 - - col0 * + 83 FROM tab0
----
1083
7179
8049

skipif mysql # not compatible
query I rowsort label-8081
SELECT ( - col1 ) * - col0 / - col0 - col1 - - col0 * + 83 FROM tab0
----
1083
7179
8049

query I rowsort
SELECT ALL - col0 + - - col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT DISTINCT 0 DIV 51 - - col0 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT 0 / 51 - - col0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT 14 - + CAST( NULL AS SIGNED ) + - col1 * - + ( 68 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT 14 - + CAST ( NULL AS INTEGER ) + - col1 * - + ( 68 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - 15 - - 42 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT - ( COUNT( * ) ) + + MIN( DISTINCT - col0 ) AS col2 FROM tab2 cor0 WHERE NOT - col1 * - - col1 IN ( + - col1 )
----
-78

skipif mysql # not compatible
query I rowsort label-8086
SELECT - ( COUNT ( * ) ) + + MIN ( DISTINCT - col0 ) AS col2 FROM tab2 cor0 WHERE NOT - col1 * - - col1 IN ( + - col1 )
----
-78

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE ( NOT + col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, 18 FROM tab1
----
14
18
47
18
5
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL MIN( + - 87 ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL MIN ( + - 87 ) FROM tab1
----
-87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 87 * + + col2 FROM tab0 AS cor0
----
-4089
-8613
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8092
SELECT ALL - COUNT( * ) * + 86 * 89 col0, ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
-22962
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8092
SELECT ALL - COUNT ( * ) * + 86 * 89 col0, ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
-22962
NULL

query I rowsort
SELECT DISTINCT - - 91 * 15 AS col1 FROM tab0 cor0
----
1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT + CAST( col0 AS SIGNED ) + + col2 FROM tab2 AS cor0 WHERE NOT ( + 7 / - + col2 ) NOT IN ( 98 )
----

skipif mysql # not compatible
query I rowsort label-8094
SELECT + CAST ( col0 AS INTEGER ) + + col2 FROM tab2 AS cor0 WHERE NOT ( + 7 / - + col2 ) NOT IN ( 98 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT SUM( + 87 ) AS col1 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8096
SELECT SUM ( + 87 ) AS col1 FROM tab0 AS cor0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8097
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( + 82 AS SIGNED ) * + col2 * col1 NOT IN ( + col2 * col2 )
----

skipif mysql # not compatible
query III rowsort label-8097
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( + 82 AS INTEGER ) * + col2 * col1 NOT IN ( + col2 * col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 < + col2 * + col1 + + 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8099
SELECT ALL * FROM tab0 WHERE - CAST( - - 18 AS DECIMAL ) < + col1 + + - ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8099
SELECT ALL * FROM tab0 WHERE - CAST ( - - 18 AS REAL ) < + col1 + + - ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * ( + 3 ) FROM tab2
----
153
201
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + - col1 col0 FROM tab2
----
-22
-38
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8102
SELECT ALL - COUNT( DISTINCT ( - CAST( 20 AS SIGNED ) ) ) / - 45 * + - CAST( NULL AS DECIMAL ) * MAX( + 86 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL - COUNT ( DISTINCT ( - CAST ( 20 AS INTEGER ) ) ) / - 45 * + - CAST ( NULL AS REAL ) * MAX ( + 86 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 WHERE NULL IN ( + + col0 * - - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8104
SELECT - MIN( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT - MIN ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( 93 ) + + col2 FROM tab0
----
103
140
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT - + SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT - + SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL >= + 56
----

skipif mysql # not compatible
query I rowsort label-8108
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL >= + 56
----

query I rowsort
SELECT ALL + 54 * col1 + col1 AS col0 FROM tab2 WHERE - + 91 BETWEEN NULL AND 19 * - col1 * 23 - + + 83
----

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col0 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 NOT IN ( 34, col2 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 >= + - 56
----

query I rowsort
SELECT ALL - 3 - col2 AS col1 FROM tab0 AS cor0
----
-102
-13
-50

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) >= col2
----

query I rowsort
SELECT DISTINCT - 39 + + 44 AS col0 FROM tab0 cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT DISTINCT + - 3 DIV 72 + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT + - 3 / 72 + col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 65 <= + + col0 * + + ( 71 ) - - + col0 * - + col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT - MIN( + col0 ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-8118
SELECT - MIN ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT DISTINCT - COUNT( ALL col0 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8119
SELECT DISTINCT - COUNT ( ALL col0 ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 81 + + ( col0 ) * - ( + col2 ) FROM tab0
----
-624
-789
-9522

query II rowsort
SELECT DISTINCT 35, + col2 FROM tab0
----
35
10
35
47
35
99

query I rowsort
SELECT ALL - 8 * - col0 FROM tab2 WHERE NOT - col1 = col1
----
368
512
600

query I rowsort
SELECT 96 + + + col0 FROM tab2
----
142
160
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT DISTINCT ( COUNT( * ) ) - + - COUNT( * ) FROM tab0 WHERE - col2 + + 26 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT ( COUNT ( * ) ) - + - COUNT ( * ) FROM tab0 WHERE - col2 + + 26 = NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - 89 * + col2
----

query I rowsort
SELECT ALL - 32 * 17 * + col0 * - - col0 FROM tab0
----
-122400
-4117536
-5118496

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 61 / col2 >= NULL
----

query I rowsort
SELECT ALL ( - + 10 ) AS col1 FROM tab2
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + - 61 AS col1 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT ALL ( - 41 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 76 + ( - + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT 70 NOT IN ( - col2 + - 55, col2 )
----

query I rowsort
SELECT ALL col2 * - 68 FROM tab2 cor0
----
-1564
-2720
-3944

query I rowsort
SELECT + + col2 * + col0 * + - 50 FROM tab2 AS cor0
----
-128000
-217500
-52900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) * 45 AS col0 FROM tab0 AS cor0
----
3645
45
945

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) * 45 AS col0 FROM tab0 AS cor0
----
3645
45
945

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT ALL + col2 DIV + - col1 col2 FROM tab1 AS cor0 WHERE + 37 < - 16 + + col0 * + 10
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8137
SELECT ALL + col2 / + - col1 col2 FROM tab1 AS cor0 WHERE + 37 < - 16 + + col0 * + 10
----
-1
-11
-6

query I rowsort
SELECT DISTINCT ( - + col1 ) * - + col1 + col2 FROM tab1
----
2277
292
84

query I rowsort
SELECT ( - 8 ) FROM tab0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8140
SELECT CAST( NULL AS SIGNED ), + 73 + - - col1 AS col0 FROM tab2
----
NULL
124
NULL
140
NULL
150

skipif mysql # not compatible
query II rowsort label-8140
SELECT CAST ( NULL AS INTEGER ), + 73 + - - col1 AS col0 FROM tab2
----
NULL
124
NULL
140
NULL
150

query I rowsort
SELECT ALL - col1 + + + col1 * + col0 FROM tab1
----
420
4230
700

query II rowsort
SELECT col2, - col0 AS col0 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT + 35 * + col0 AS col2 FROM tab0 AS cor0
----
3045
3395
525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT ALL + - COUNT( ALL + - col0 ) DIV - 28 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL + - COUNT ( ALL + - col0 ) / - 28 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT 35 * - - col1 + + + col0 FROM tab2 cor0
----
1831
2420
2759

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT - - COUNT( * ) * - + SUM( DISTINCT - - 62 ) - - - 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-564

skipif mysql # not compatible
query I rowsort label-8146
SELECT - - COUNT ( * ) * - + SUM ( DISTINCT - - 62 ) - - - 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-564

query I rowsort
SELECT + col2 + 66 FROM tab1
----
125
134
162

query I rowsort
SELECT ALL + 34 + + + col0 FROM tab0
----
121
131
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col0 + - + col0 col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 71 + + + ( + col2 ) + + ( - 51 ) FROM tab1 AS cor0
----
116
79
88

query I rowsort
SELECT DISTINCT - ( + ( - 98 ) ) FROM tab0 AS cor0
----
98

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * + ( - 49 ) + + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT - 62 - COUNT( * ) FROM tab0 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT - 62 - COUNT ( * ) FROM tab0 cor0
----
-65

query I rowsort
SELECT + - 88 AS col2 FROM tab0 cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - 50 + - + 93 FROM tab0, tab1 AS cor0
----
-143

query I rowsort
SELECT DISTINCT - ( ( - ( - 94 ) ) ) FROM tab2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT CAST( - - col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8159
SELECT CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8160
SELECT * FROM tab1 WHERE NOT + col1 + col0 <> ( + col2 * + ( col0 ) + col2 * - CAST( + col1 AS SIGNED ) + + - col0 )
----

skipif mysql # not compatible
query III rowsort label-8160
SELECT * FROM tab1 WHERE NOT + col1 + col0 <> ( + col2 * + ( col0 ) + col2 * - CAST ( + col1 AS INTEGER ) + + - col0 )
----

query I rowsort
SELECT DISTINCT 30 * - 12 FROM tab0
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8162
SELECT - + COUNT( * ) DIV CAST( + 10 AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8162
SELECT - + COUNT ( * ) / CAST ( + 10 AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----
0

query II rowsort
SELECT 66 * - col2 AS col2, + col2 - + col0 * 92 AS col2 FROM tab0
----
-3102
-1333
-6534
-8825
-660
-7994

onlyif mysql # DIV for integer division: 
query II rowsort label-8164
SELECT - col1 DIV - col0 AS col1, col1 AS col0 FROM tab2
----
0
67
1
51
1
77

skipif mysql # not compatible
query II rowsort label-8164
SELECT - col1 / - col0 AS col1, col1 AS col0 FROM tab2
----
0
67
1
51
1
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT DISTINCT CAST( 73 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT CAST ( 73 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8167
SELECT ALL MAX( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL MAX ( DISTINCT CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 77 * + - col0 AS col2 FROM tab0
----
1155
6699
7469

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT ALL + 52 col2, COUNT( * ) FROM tab2
----
52
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8169
SELECT ALL + 52 col2, COUNT ( * ) FROM tab2
----
52
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + + ( + 53 ) FROM tab0 cor0
----
53
53
53

query I rowsort
SELECT col1 + + + col1 - col1 FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL MIN( ALL col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL MIN ( ALL col1 ) FROM tab1 cor0
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - col2 * col2 < NULL ) )
----

query II rowsort
SELECT - 56, ( - col1 ) AS col0 FROM tab0 AS cor0
----
-56
-1
-56
-21
-56
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 NOT BETWEEN ( - + col2 ) AND + + col1
----
75
67
58

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * + - col2 FROM tab1 WHERE ( - 63 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL COUNT( * ) + 17 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL COUNT ( * ) + 17 FROM tab0
----
20

query III rowsort
SELECT * FROM tab1 WHERE + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + + 11 = ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - + col1 - + col2 - - col2 * - 26 AS col1 FROM tab1 AS cor0
----
-1598
-1883
-2606

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + + col1, col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
1
21
21
81
81

query I rowsort
SELECT + col2 + 43 FROM tab1 cor0
----
102
111
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - - MIN( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8188
SELECT - - MIN ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8189
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN col2 + + + col1 * - 88 AND + - 67 * - col0 / + CAST( NULL AS SIGNED ) + - 69
----

skipif mysql # not compatible
query III rowsort label-8189
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN col2 + + + col1 * - 88 AND + - 67 * - col0 / + CAST ( NULL AS INTEGER ) + - 69
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN NULL AND - - 33
----
15
81
47
97
1
99

query I rowsort
SELECT col0 * col1 * - col0 FROM tab1
----
-36125
-36414
-389207

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8193
SELECT ALL + col1 / + - CAST( NULL AS SIGNED ) AS col1, - 49 FROM tab0
----
NULL
-49
NULL
-49
NULL
-49

skipif mysql # not compatible
query II rowsort label-8193
SELECT ALL + col1 / + - CAST ( NULL AS INTEGER ) AS col1, - 49 FROM tab0
----
NULL
-49
NULL
-49
NULL
-49

query I rowsort
SELECT ( - - col0 ) * + - 41 + - 93 FROM tab1
----
-2184
-3578
-3824

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT DISTINCT + COUNT( ALL - 9 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT + COUNT ( ALL - 9 ) FROM tab2
----
3

query I rowsort
SELECT ALL + + col1 * - col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - col1 > col1
----

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col1 > col1
----

query II rowsort
SELECT ALL col1, + ( - 7 ) FROM tab2 AS cor0
----
51
-7
67
-7
77
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT + COUNT( * ) + 2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8200
SELECT + COUNT ( * ) + 2 FROM tab0 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + 12 * - - col0 - + ( 33 ) * col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT + col1 DIV - 20 + col1 col0 FROM tab1 AS cor0
----
14
45
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8202
SELECT + col1 / - 20 + col1 col0 FROM tab1 AS cor0
----
14
45
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT - 61 + - MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8203
SELECT - 61 + - MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8204
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * - col2 - - + col1 = col0 + - - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8204
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * - col2 - - + col1 = col0 + - - ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 70 + + col1 * + col0 + + col0 FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL MAX( DISTINCT + 45 ) AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL MAX ( DISTINCT + 45 ) AS col1 FROM tab0 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 36 NOT IN ( 51, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE 6 * col0 IS NULL
----

query I rowsort
SELECT - col1 + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - - col0 col2, 25 * - col0 FROM tab0 AS cor0
----
174
-2175
194
-2425
30
-375

onlyif mysql # aggregate syntax: 
query II rowsort label-8211
SELECT - COUNT( * ) + + COUNT( * ), - 20 AS col2 FROM tab1 AS cor0
----
0
-20

skipif mysql # not compatible
query II rowsort label-8211
SELECT - COUNT ( * ) + + COUNT ( * ), - 20 AS col2 FROM tab1 AS cor0
----
0
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT ALL SUM( ( + + ( - col1 ) ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL SUM ( ( + + ( - col1 ) ) ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT 71 + + 89 FROM tab0 WHERE NULL IS NULL
----
160

query I rowsort
SELECT ALL - 62 + + + col1 FROM tab1
----
-15
-48
-57

query I rowsort
SELECT DISTINCT + ( - + col0 ) + + + ( col0 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT + AVG ( col2 ) FROM tab2 WHERE + col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - - col0 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 76 + - col2 * + col2 + - col1 + + col2 + + col0 * + col1 + col0 FROM tab2 AS cor0
----
1651
1759
3279

query II rowsort
SELECT DISTINCT + + col1, col2 * - 95 FROM tab0 cor0
----
1
-9405
21
-950
81
-4465

query I rowsort
SELECT ALL col0 + + - col2 FROM tab0
----
-2
-32
77

query III rowsort
SELECT * FROM tab1 WHERE col1 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT - - COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8223
SELECT - - COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 7 * - 77 * + col2 BETWEEN NULL AND - 20 + - 73 + + 50 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 34 FROM tab2 cor0
----
34
34
34

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + col2 * + col2 - - + col0 / + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 56 * 25 * + col1 FROM tab2
----
-107800
-71400
-93800

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - COUNT( * ) * 36 * - - ( - 54 ) FROM tab0
----
5832

skipif mysql # not compatible
query I rowsort label-8228
SELECT - COUNT ( * ) * 36 * - - ( - 54 ) FROM tab0
----
5832

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT - COUNT( ALL col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - COUNT ( ALL col2 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT ALL 37 DIV + - 39 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL 37 / + - 39 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL MIN( + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL MIN ( + col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT col2 * + + col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + - col2 * col1 + 99 + col2 + - 50 AS col0 FROM tab0 AS cor0
----
-151
-3711
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT DISTINCT - + MIN( - 99 ) FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - + MIN ( - 99 ) FROM tab2 cor0
----
99

query II rowsort
SELECT - col0, col0 * + + col1 AS col1 FROM tab1 AS cor0 WHERE + 87 - - col2 / col0 * + col1 > NULL
----

query I rowsort
SELECT ALL + col1 * - 78 * 45 FROM tab0 AS cor0
----
-284310
-3510
-73710

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT DISTINCT col0 DIV - col2 - + + ( + 51 ) FROM tab0 AS cor0
----
-51
-59

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT col0 / - col2 - + + ( + 51 ) FROM tab0 AS cor0
----
-51
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL - COUNT( ALL + - col1 ) * 56 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL - COUNT ( ALL + - col1 ) * 56 FROM tab0 AS cor0
----
-168

query I rowsort
SELECT - col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT DISTINCT col1 DIV - - col1 + 82 col1 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8241
SELECT DISTINCT col1 / - - col1 + 82 col1 FROM tab0 AS cor0
----
83

query I rowsort
SELECT - 16 + - col2 AS col0 FROM tab2 AS cor0
----
-39
-56
-74

query I rowsort
SELECT - + col1 * 27 * - col0 * col2 + 25 FROM tab2 AS cor0
----
1456891
5322265
7869175

query I rowsort
SELECT col2 + - - 9 + col0 + 33 * + ( col2 ) + col1 FROM tab0 AS cor0
----
1703
3473
457

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT - col2 + + - 35 DIV - + col2 * - col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8245
SELECT - col2 + + - 35 / - + col2 * - col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-12

query I rowsort
SELECT DISTINCT col1 + + - 31 AS col2 FROM tab0
----
-10
-30
50

query I rowsort
SELECT ALL col1 + - 17 AS col1 FROM tab1
----
-12
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT NULL = + - col0
----
0

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT NULL = + - col0
----
0

query I rowsort
SELECT DISTINCT + + ( col2 ) + + col1 AS col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT 92 - 59 FROM tab2
----
33
33
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 75 NOT BETWEEN - col2 * - col1 + - col1 - 35 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL - - COUNT( ALL - col1 ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - - COUNT ( ALL - col1 ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col1 * - 45 col1 FROM tab0 AS cor0
----
15
-3645
87
-945
97
-45

query II rowsort
SELECT + col1 AS col1, 66 FROM tab2 cor0
----
51
66
67
66
77
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( col0 * - ( col1 ) * + col2 )
----

query I rowsort
SELECT + ( - 35 ) AS col2 FROM tab2 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT 12 * - COUNT( * ) FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT 12 * - COUNT ( * ) FROM tab2 cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL COUNT( DISTINCT + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL COUNT ( DISTINCT + col0 ) FROM tab1
----
3

query I rowsort
SELECT ALL + ( - 35 ) AS col2 FROM tab0
----
-35
-35
-35

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8262
SELECT ALL COUNT( * ) AS col2, 38 AS col0 FROM tab2, tab2 cor0
----
9
38

skipif mysql # not compatible
query II rowsort label-8262
SELECT ALL COUNT ( * ) AS col2, 38 AS col0 FROM tab2, tab2 cor0
----
9
38

query I rowsort
SELECT ALL 46 * + 30 FROM tab1
----
1380
1380
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT ( - MIN( + col2 ) ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT ( - MIN ( + col2 ) ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT + col1 * 58 * + col1 AS col2 FROM tab1
----
11368
128122
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT - 1 * - + COUNT( * ) * 55 AS col1 FROM tab2 cor0
----
165

skipif mysql # not compatible
query I rowsort label-8266
SELECT - 1 * - + COUNT ( * ) * 55 AS col1 FROM tab2 cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL SUM( DISTINCT - 97 ) * + 24 FROM tab2 AS cor0
----
-2328

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL SUM ( DISTINCT - 97 ) * + 24 FROM tab2 AS cor0
----
-2328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8268
SELECT ALL + + CAST( NULL AS SIGNED ) + + MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + + CAST ( NULL AS INTEGER ) + + MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 50 FROM ( tab0 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NULL )
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT col2 + 10 AS col1 FROM tab2
----
33
50
68

query I rowsort
SELECT col0 + - - col1 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT ALL - 81 * + col2 FROM tab2 AS cor0
----
-1863
-3240
-4698

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT DISTINCT - 31 * + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT - 31 * + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
-93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8275
SELECT ALL COUNT( * ) DIV 18 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL COUNT ( * ) / 18 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8277
SELECT DISTINCT - col0 DIV + ( + col2 ) AS col0, - col2 - col2 FROM tab1 AS cor0
----
-1
-118
-1
-136
0
-192

skipif mysql # not compatible
query II rowsort label-8277
SELECT DISTINCT - col0 / + ( + col2 ) AS col0, - col2 - col2 FROM tab1 AS cor0
----
-1
-118
-1
-136
0
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col1 col1 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL 19 + + - COUNT( * ) col0 FROM tab1
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8279
SELECT ALL 19 + + - COUNT ( * ) col0 FROM tab1
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8280
SELECT - COUNT( ALL CAST( + 61 AS DECIMAL ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8280
SELECT - COUNT ( ALL CAST ( + 61 AS REAL ) ) FROM tab0
----
-3

query II rowsort
SELECT ALL + 82 AS col1, - 13 + + 67 + - 51 FROM tab2
----
82
3
82
3
82
3

query I rowsort
SELECT + ( + - 7 ) AS col0 FROM tab0
----
-7
-7
-7

query II rowsort
SELECT 8 - - 14, col2 FROM tab2
----
22
23
22
40
22
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 - + + col0, col2 col0 FROM tab0
----
-66
10
-96
99
66
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 - col1 col1 FROM tab1
----
-10
-19
-52

query I rowsort
SELECT col2 - + + col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT ALL + col1 + - + col2 AS col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL - ( + 22 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + - + ( - 71 ) < - col0
----
-22
-22
-22

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - + 48 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 JOIN tab1 AS cor1 ON NOT NULL < NULL
----

query I rowsort
SELECT ALL + ( + 8 ) * - 55 * - 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 41e6b134418b1f3430f6d8682add120a

query I rowsort
SELECT + 40 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 84 + - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8294
SELECT DISTINCT CAST( - - col1 AS SIGNED ), CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8294
SELECT DISTINCT CAST ( - - col1 AS INTEGER ), CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT - MAX( ALL + 24 ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT - MAX ( ALL + 24 ) FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT + MIN( ALL - - 91 ) AS col0 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-8296
SELECT + MIN ( ALL - - 91 ) AS col0 FROM tab2
----
91

query I rowsort
SELECT + 91 * - ( + 54 ) AS col0 FROM tab2
----
-4914
-4914
-4914

query II rowsort
SELECT DISTINCT - - col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT + - col1 * - CAST( NULL AS SIGNED ) * + - col1 * - col2 + col1 * - ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT + - col1 * - CAST ( NULL AS INTEGER ) * + - col1 * - col2 + col1 * - ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 82 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT ALL + - ( + - ( COUNT( * ) ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL + - ( + - ( COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT DISTINCT - col0 DIV + col0 - - col0 + col2 + - 91 AS col1 FROM tab2 cor0
----
-23
12
41

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT - col0 / + col0 - - col0 + col2 + - 91 AS col1 FROM tab2 cor0
----
-23
12
41

query I rowsort
SELECT ALL - ( + - col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT 69 + + + COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8304
SELECT 69 + + + COUNT ( * ) FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL - COUNT( * ) FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL - COUNT ( * ) FROM tab0, tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 29 * 9 AS col1 FROM tab2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL - COUNT( * ) - - 59 AS col1 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL - COUNT ( * ) - - 59 AS col1 FROM tab0 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8308
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT - MIN( DISTINCT + 15 ) col1 FROM tab1 cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8309
SELECT - MIN ( DISTINCT + 15 ) col1 FROM tab1 cor0
----
-15

query I rowsort
SELECT - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + - - 5 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8311
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ), - CAST( + + 52 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8311
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ), - CAST ( + + 52 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8312
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8313
SELECT ALL - COUNT( * ) AS col2, 62 AS col0 FROM tab0
----
-3
62

skipif mysql # not compatible
query II rowsort label-8313
SELECT ALL - COUNT ( * ) AS col2, 62 AS col0 FROM tab0
----
-3
62

query II rowsort
SELECT ALL + col2 AS col1, col2 FROM tab0 cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8315
SELECT - 21 col0, col1 * 56 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
-21
NULL
-21
NULL
-21
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8315
SELECT - 21 col0, col1 * 56 + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
-21
NULL
-21
NULL
-21
NULL

query I rowsort
SELECT + - 93 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 59 ) >= 56
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + - ( - - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 <> + + col1
----

query I rowsort
SELECT ALL col0 + + + col1 - + col0 * - col0 FROM tab0
----
321
7677
9507

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> col0 + + col2
----

query I rowsort
SELECT + + 68 AS col2 FROM tab0 cor0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 27 col1 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT + 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query III rowsort
SELECT * FROM tab1 WHERE + - 52 + - - col2 IS NULL
----

query I rowsort
SELECT - col0 + - - col1 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT - COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8326
SELECT - COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 IN ( col2 )
----

query I rowsort
SELECT ALL + 69 AS col2 FROM tab1 cor0
----
69
69
69

query I rowsort
SELECT - col1 * + - col0 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + + col2 * - 48 FROM tab0 cor0
----
-2256
-4752
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT 97 - + ( - COUNT( * ) ) AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-8331
SELECT 97 - + ( - COUNT ( * ) ) AS col1 FROM tab0
----
100

query I rowsort
SELECT + col1 - - - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( - + 43 ) FROM tab1 WHERE - col0 IS NOT NULL
----
-43
-43
-43

query I rowsort
SELECT DISTINCT col1 * - 83 AS col0 FROM tab1
----
-1162
-3901
-415

query I rowsort
SELECT ALL + 90 * + ( 74 ) AS col2 FROM tab0
----
6660
6660
6660

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT - ( + col1 ) DIV + 44 + col1 col0 FROM tab0
----
1
21
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8336
SELECT - ( + col1 ) / + 44 + col1 col0 FROM tab0
----
1
21
80

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 ) BETWEEN + - ( + ( - + 70 ) ) * col1 AND NULL
----

query I rowsort
SELECT ALL + ( - 83 ) AS col2 FROM tab0 AS cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + col1 * + - col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + + 59 AS col1 FROM tab1 cor0
----
59

query I rowsort
SELECT + 44 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 69 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT ALL - 85 + col2 * col2 AS col0 FROM tab2 cor0 WHERE - 60 <> - col2
----
1515
3279
444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8345
SELECT DISTINCT - 84 DIV - COUNT( * ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT - 84 / - COUNT ( * ) FROM tab1
----
28

query II rowsort
SELECT ( + 40 ) AS col1, - col2 AS col1 FROM tab0
----
40
-10
40
-47
40
-99

query II rowsort
SELECT 13, col1 FROM tab2
----
13
51
13
67
13
77

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL = - col1 + col1 + col0 * - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL + MAX( ALL + ( - col1 ) ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL + MAX ( ALL + ( - col1 ) ) AS col2 FROM tab2
----
-51

query II rowsort
SELECT ALL + 50, col2 FROM tab0 cor0
----
50
10
50
47
50
99

query I rowsort
SELECT 61 AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + + col2 + - + 84 FROM tab0 AS cor0
----
-37
-74
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8353
SELECT ( 9 ) * + - 8 * + CAST( - col0 AS SIGNED ) - 15 FROM tab0 AS cor0
----
1065
6249
6969

skipif mysql # not compatible
query I rowsort label-8353
SELECT ( 9 ) * + - 8 * + CAST ( - col0 AS INTEGER ) - 15 FROM tab0 AS cor0
----
1065
6249
6969

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT + COUNT( + + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8354
SELECT + COUNT ( + + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 + - 12 FROM tab1
----
47
56
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT MAX( ALL + 97 ) * - COUNT( * ) AS col1 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-8356
SELECT MAX ( ALL + 97 ) * - COUNT ( * ) AS col1 FROM tab1
----
-291

query I rowsort
SELECT ( + col2 ) - + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

query II rowsort
SELECT + 51 - - col0 AS col0, - 21 + col2 AS col1 FROM tab1 AS cor0
----
102
75
136
38
142
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 >= + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - col1 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
2491
7161
8166

query II rowsort
SELECT - + col0 + + + col2 AS col2, - col1 - - 10 FROM tab1 AS cor0
----
-23
-37
-26
5
45
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT ALL - - 44 - - col2 DIV + - col1 * col2 * + col0 FROM tab2 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - - 44 - - col2 / + - col1 * col2 * + col0 FROM tab2 AS cor0
----
44
44
44

query II rowsort
SELECT - col1 + col0 + + 7 * - col2 * col0 * 3 * col2 AS col1, - 95 AS col1 FROM tab1 AS cor0
----
-6213505
-95
-8836420
-95
-9870299
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-8364
SELECT + col0 + + col1 DIV + + col1 AS col2, 2 FROM tab2 cor0
----
47
2
65
2
76
2

skipif mysql # not compatible
query II rowsort label-8364
SELECT + col0 + + col1 / + + col1 AS col2, 2 FROM tab2 cor0
----
47
2
65
2
76
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT + 53 + + + COUNT( ALL 53 ) AS col2 FROM tab2 cor0
----
56

skipif mysql # not compatible
query I rowsort label-8365
SELECT + 53 + + + COUNT ( ALL 53 ) AS col2 FROM tab2 cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT col2 * + + col1 AS col2 FROM tab1
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 82 + + col1 + col2 - - 29 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8369
SELECT DISTINCT col1 AS col0, CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-8369
SELECT DISTINCT col1 AS col0, CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT ALL + col1 AS col0, col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT - - SUM( + - 8 ) AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8371
SELECT - - SUM ( + - 8 ) AS col2 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT ALL + - col1 * - + 58 FROM tab1 AS cor0
----
2726
290
812

query II rowsort
SELECT 77 AS col2, col1 * - col1 * col2 FROM tab0 AS cor0
----
77
-308367
77
-4410
77
-99

query I rowsort
SELECT DISTINCT - ( 46 ) * - + ( + + col1 ) AS col0 FROM tab0 AS cor0
----
3726
46
966

query I rowsort
SELECT DISTINCT 6 * col0 AS col1 FROM tab2 AS cor0
----
276
384
450

query I rowsort
SELECT DISTINCT + ( - - 32 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8377
SELECT DISTINCT - col1 * - CAST( col0 AS SIGNED ) FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT - col1 * - CAST ( col0 AS INTEGER ) FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT - col0 * - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8379
SELECT - col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + - 18 FROM tab0
----
1566
1746
270

query I rowsort
SELECT + 52 + col1 FROM tab1 cor0
----
57
66
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT ( - col2 ) + 60 DIV - + 79 * - col0 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8382
SELECT ( - col2 ) + 60 / - + 79 * - col0 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 31 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - col2 * - + 47 - + col2 * - ( - 77 ) FROM tab1 cor0
----
-1765
-1993
-2866

query I rowsort
SELECT - + col2 * + ( - + 80 ) + + - 96 FROM tab0 AS cor0
----
3664
704
7824

query I rowsort
SELECT + 12 + + + col2 AS col0 FROM tab1 AS cor0
----
108
71
80

query I rowsort
SELECT ALL - 23 * 84 + - + 46 FROM tab1 AS cor0
----
-1978
-1978
-1978

onlyif mysql # DIV for integer division: 
query I rowsort label-8388
SELECT DISTINCT col1 DIV - col1 AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT col1 / - col1 AS col2 FROM tab0 cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 58 IS NOT NULL OR NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + + 95 AS col0 FROM tab2 AS cor0
----
141
159
170

query I rowsort
SELECT ALL + 41 + + col2 AS col1 FROM tab2
----
64
81
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8392
SELECT + 59, ( SUM( ALL + col2 ) ) AS col0 FROM tab1
----
59
223

skipif mysql # not compatible
query II rowsort label-8392
SELECT + 59, ( SUM ( ALL + col2 ) ) AS col0 FROM tab1
----
59
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT ALL COUNT( * ) + + ( + MIN( CAST( + col1 AS SIGNED ) ) ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL COUNT ( * ) + + ( + MIN ( CAST ( + col1 AS INTEGER ) ) ) FROM tab0
----
4

query I rowsort
SELECT + col2 * + 66 FROM tab0
----
3102
6534
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col0 AS col2 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT ALL col2 * + col2 * + + ( - col2 ) AS col2 FROM tab1
----
-205379
-314432
-884736

query I rowsort
SELECT - 46 * + - 55 AS col1 FROM tab1
----
2530
2530
2530

query I rowsort
SELECT DISTINCT col0 + + + 3 + 81 * - 71 * + col1 * col0 FROM tab2
----
-13491797
-28340861
-28898697

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT ( COUNT( * ) ) + COUNT( - - 16 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT ( COUNT ( * ) ) + COUNT ( - - 16 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
6

query I rowsort
SELECT col1 * + col2 * + 77 FROM tab0 cor0
----
16170
293139
7623

query I rowsort
SELECT - 78 - 10 + - 37 * - col1 AS col0 FROM tab1 cor0
----
1651
430
97

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

query II rowsort
SELECT 78, - col2 * 93 * + 32 AS col0 FROM tab2
----
78
-119040
78
-172608
78
-68448

query II rowsort
SELECT + col2 AS col2, col1 AS col0 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT DISTINCT - - 4 - - 36, col1 FROM tab1 AS cor0
----
40
14
40
47
40
5

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE col0 / - col1 + + 14 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT DISTINCT + + 75 DIV 65 - - + col1 AS col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT + + 75 / 65 - - + col1 AS col1 FROM tab2 AS cor0
----
52
68
78

query II rowsort
SELECT DISTINCT - 32, + 8 AS col1 FROM tab0 cor0
----
-32
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL col2 * - - ( + col1 ) FROM tab1 WHERE NOT - + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + - col1 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8414
SELECT - MAX( ALL + - CAST( NULL AS SIGNED ) ) AS col1, + SUM( ALL col1 ) FROM tab2
----
NULL
195

skipif mysql # not compatible
query II rowsort label-8414
SELECT - MAX ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1, + SUM ( ALL col1 ) FROM tab2
----
NULL
195

query II rowsort
SELECT col1 * col0 AS col0, + 87 AS col2 FROM tab1
----
425
87
4277
87
714
87

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT + COUNT( + 57 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8417
SELECT + COUNT ( + 57 ) FROM tab1
----
3

query I rowsort
SELECT 30 * - col1 FROM tab2
----
-1530
-2010
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL - COUNT( ALL + - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL - COUNT ( ALL + - col2 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8420
SELECT + + 13 DIV 74 * 1 DIV - 11 + + + 12 * - - MAX( DISTINCT - - col2 ) + - 59 FROM tab2 cor0
----
637

skipif mysql # not compatible
query I rowsort label-8420
SELECT + + 13 / 74 * 1 / - 11 + + + 12 * - - MAX ( DISTINCT - - col2 ) + - 59 FROM tab2 cor0
----
637

query I rowsort
SELECT DISTINCT + ( + 64 ) * - + col2 * + col2 FROM tab2 cor0
----
-102400
-215296
-33856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col0 FROM tab2 AS cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8423
SELECT + COUNT( * ) DIV 66 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT + COUNT ( * ) / 66 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL = - - col1
----

query I rowsort
SELECT 35 * 14 FROM tab2
----
490
490
490

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8426
SELECT col1, CAST( + 47 AS SIGNED ) AS col1 FROM tab1
----
14
47
47
47
5
47

skipif mysql # not compatible
query II rowsort label-8426
SELECT col1, CAST ( + 47 AS INTEGER ) AS col1 FROM tab1
----
14
47
47
47
5
47

query I rowsort
SELECT DISTINCT 52 * + + 67 FROM tab2
----
3484

query I rowsort
SELECT DISTINCT + 58 + ( - ( ( col0 ) ) ) + - - 39 AS col1 FROM tab0
----
0
10
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8429
SELECT ALL 70 DIV COUNT( - 62 ) col1, 72 FROM tab1
----
23
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8429
SELECT ALL 70 / COUNT ( - 62 ) col1, 72 FROM tab1
----
23
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT + COUNT( * ) * + 94 AS col0 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT + COUNT ( * ) * + 94 AS col0 FROM tab1 AS cor0
----
282

query I rowsort
SELECT ALL + 42 AS col0 FROM tab1 cor0
----
42
42
42

query I rowsort
SELECT ALL - 24 * - ( col2 ) + - col2 + + 76 FROM tab0 AS cor0
----
1157
2353
306

query II rowsort
SELECT - col2, col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT + col0 * - - col2 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8435
SELECT 72 DIV - + COUNT( * ) + SUM( ALL + - 5 ) AS col1 FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8435
SELECT 72 / - + COUNT ( * ) + SUM ( ALL + - 5 ) AS col1 FROM tab2 cor0
----
-39

query I rowsort
SELECT - col1 + 17 * col1 FROM tab1
----
224
752
80

query II rowsort
SELECT + col1 * - col0 + + 78 * + - col0, - col1 + - col1 - col1 AS col0 FROM tab0
----
-2385
-243
-7663
-3
-8613
-63

query I rowsort
SELECT DISTINCT - 39 + + 2 AS col1 FROM tab2
----
-37

query I rowsort
SELECT ALL - col0 + - - col0 * + col1 AS col2 FROM tab1
----
340
4186
663

query I rowsort
SELECT col1 + - + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 + + 41 FROM tab1
----
126
132
92

onlyif mysql # DIV for integer division: 
query II rowsort label-8442
SELECT ALL + 15 DIV col1 AS col1, col2 * + col1 AS col0 FROM tab2 AS cor0
----
0
1173
0
3080
0
3886

skipif mysql # not compatible
query II rowsort label-8442
SELECT ALL + 15 / col1 AS col1, col2 * + col1 AS col0 FROM tab2 AS cor0
----
0
1173
0
3080
0
3886

query I rowsort
SELECT ALL + 45 - + + ( col2 ) AS col1 FROM tab1 AS cor0
----
-14
-23
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT ALL + COUNT( + 99 ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL + COUNT ( + 99 ) FROM tab0, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT DISTINCT COUNT( * ) DIV 26 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT COUNT ( * ) / 26 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8446
SELECT DISTINCT - COUNT( col1 ) DIV + + 88 + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT - COUNT ( col1 ) / + + 88 + + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8448
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8448
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT + MAX( DISTINCT - - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8449
SELECT + MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8450
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND - + col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8450
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND - + col0 + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8451
SELECT ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + 71, 60 * col1 AS col2 FROM tab1 cor0
----
71
2820
71
300
71
840

query II rowsort
SELECT ALL + + col0, + 9 + - 97 FROM tab1 AS cor0
----
51
-88
85
-88
91
-88

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE col1 < - - col2
----
97

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 WHERE NOT col2 + - - 77 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT col2 + - - 77 < NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 11 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1, col0 - 81 * col0 * col2 * - col1 * + + col2 FROM tab2
----
51
100523800
67
1369232175
77
638668864

onlyif mysql # aggregate syntax: 
query II rowsort label-8459
SELECT DISTINCT - + COUNT( * ), - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8459
SELECT DISTINCT - + COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT MIN( + + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT MIN ( + + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL + COUNT( DISTINCT - - 96 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + COUNT ( DISTINCT - - 96 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8462
SELECT DISTINCT + col2 AS col2, - col1 AS col0, - col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
9 values hashing to a936356e9123890478abbb41624d7326

skipif mysql # not compatible
query III rowsort label-8462
SELECT DISTINCT + col2 AS col2, - col1 AS col0, - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
9 values hashing to a936356e9123890478abbb41624d7326

query I rowsort
SELECT + col2 * + + col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT COUNT( * ) * 19 AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8465
SELECT COUNT ( * ) * 19 AS col2 FROM tab0 AS cor0
----
57

query I rowsort
SELECT ALL col1 + + + 93 AS col2 FROM tab1
----
107
140
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8467
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + + + col2 + ( - - 23 ) col1 FROM tab2
----
50
67
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 94 * + 29 + col2 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL ( + COUNT( col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL ( + COUNT ( col2 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL + COUNT( ALL - col0 ) + 82 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL + COUNT ( ALL - col0 ) + 82 FROM tab0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 + col1 col0 FROM tab2 AS cor0
----
24
40
50

onlyif mysql # DIV for integer division: 
query II rowsort label-8473
SELECT col1 DIV + 7 + - col2, + col0 FROM tab2 AS cor0
----
-16
46
-29
64
-49
75

skipif mysql # not compatible
query II rowsort label-8473
SELECT col1 / + 7 + - col2, + col0 FROM tab2 AS cor0
----
-16
46
-29
64
-49
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL 57 * - + 16 * + col1 * - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
178752
2014608
22800

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 35 + + col0 FROM tab0
----
122
132
50

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 48
----

query I rowsort
SELECT ALL + col1 * - 47 * - 11 AS col1 FROM tab0
----
10857
41877
517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8480
SELECT ALL + 35 DIV - 4 + + ( COUNT( * ) ) AS col1 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + 35 / - 4 + + ( COUNT ( * ) ) AS col1 FROM tab2
----
-5

query I rowsort
SELECT col2 - - + 86 + + + 70 * - 49 FROM tab1
----
-3248
-3276
-3285

query I rowsort
SELECT ALL - 49 * - 88 - + col2 - - - 13 * + col0 FROM tab0
----
2952
3171
4070

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT COUNT( * ) - 2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8483
SELECT COUNT ( * ) - 2 FROM tab2
----
1

query I rowsort
SELECT 49 - col1 FROM tab2 AS cor0
----
-18
-2
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 - col0 col0 FROM tab2 AS cor0
----
-1
10
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT ALL + + CAST( NULL AS SIGNED ) - + - ( AVG ( DISTINCT - col0 ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + + CAST ( NULL AS INTEGER ) - + - ( AVG ( DISTINCT - col0 ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + - col1 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 * 38 FROM tab1
----
1938
3230
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT MAX( col0 ) * - 56 AS col2 FROM tab2
----
-4200

skipif mysql # not compatible
query I rowsort label-8489
SELECT MAX ( col0 ) * - 56 AS col2 FROM tab2
----
-4200

query I rowsort
SELECT col0 * - 28 AS col2 FROM tab0
----
-2436
-2716
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL COUNT( * ) * - 14 + + COUNT( - col0 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL COUNT ( * ) * - 14 + + COUNT ( - col0 ) FROM tab2
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( col1 ) + col2 col2 FROM tab2
----
2624
4547
5969

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + 21 FROM tab0 WHERE NOT 67 + - col0 >= - ( col0 ) + + ( + ( - col1 ) + - col0 )
----

query I rowsort
SELECT ALL 95 AS col2 FROM tab0 WHERE NOT ( + col1 ) NOT BETWEEN - col0 / + 26 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - COUNT( ALL + col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8496
SELECT - COUNT ( ALL + col2 ) FROM tab2
----
-3

query I rowsort
SELECT ALL + col0 * col0 - - 96 FROM tab2
----
2212
4192
5721

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> col1 + col1
----

query I rowsort
SELECT ALL + 59 - col0 AS col1 FROM tab1
----
-26
-32
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8500
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ( ( + ( col1 ) ) ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT - ( + ( ( + ( 40 ) ) ) ) AS col2 FROM tab1 WHERE NOT ( col1 * col0 ) <= ( 29 * - 10 )
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT CAST( 61 AS SIGNED ) AS col0 FROM tab1
----
61
61
61

skipif mysql # not compatible
query I rowsort label-8503
SELECT CAST ( 61 AS INTEGER ) AS col0 FROM tab1
----
61
61
61

query III rowsort
SELECT * FROM tab2 WHERE NOT + 69 * col1 - 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 76 IS NULL
----

query I rowsort
SELECT ALL - 84 FROM tab0 WHERE NOT NULL NOT IN ( col2 + + ( 15 - - 61 / - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT COUNT( * ) + COUNT( * ) * - 6 AS col2 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-8508
SELECT COUNT ( * ) + COUNT ( * ) * - 6 AS col2 FROM tab2
----
-15

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT 96 IN ( + col2 )
----
1
21
81

query I rowsort
SELECT - 53 AS col0 FROM tab2 WHERE 35 * - 15 IN ( - 90 )
----

query I rowsort
SELECT - 52 * col2 + col1 AS col2 FROM tab0
----
-2363
-499
-5147

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) > col0 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT DISTINCT SUM( ALL col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT SUM ( ALL col1 ) FROM tab2
----
195

query III rowsort
SELECT * FROM tab0 WHERE NOT - 98 IS NOT NULL
----

query I rowsort
SELECT ALL + 88 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN 41 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT COUNT( DISTINCT 76 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( ( - 11 ) / col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT COUNT ( DISTINCT 76 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( ( - 11 ) / col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8517
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col2 NOT BETWEEN col2 + + CAST( - col1 AS SIGNED ) / + 97 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8517
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col2 NOT BETWEEN col2 + + CAST ( - col1 AS INTEGER ) / + 97 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT DISTINCT - SUM( 89 ) * 50 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT - SUM ( 89 ) * 50 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8519
SELECT DISTINCT - 52 * 23 AS col1 FROM tab2 AS cor0 WHERE NULL <> 17 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT - 52 * 23 AS col1 FROM tab2 AS cor0 WHERE NULL <> 17 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 47 * - col1 FROM tab0 cor0 WHERE NOT NULL > col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT col0 + col2 DIV - col2 col1 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8521
SELECT col0 + col2 / - col2 col1 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT MIN( 32 ) AS col0 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-8522
SELECT MIN ( 32 ) AS col0 FROM tab0
----
32

query I rowsort
SELECT DISTINCT - 7 + - 14 FROM tab2
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 79 + col0 FROM tab2 AS cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT - + 66 - 5 AS col1 FROM tab0 AS cor0
----
-71
-71
-71

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = col1
----

query I rowsort
SELECT DISTINCT - ( 1 ) * col2 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 AND + 12 * col0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT + - MAX( ALL + col2 ) + - 99 AS col0 FROM tab0 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8530
SELECT + - MAX ( ALL + col2 ) + - 99 AS col0 FROM tab0 cor0
----
-198

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE ( - 48 + - col0 ) >= ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8532
SELECT + CAST( - 72 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
-14
-32
-49

skipif mysql # not compatible
query I rowsort label-8532
SELECT + CAST ( - 72 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
-14
-32
-49

query I rowsort
SELECT ALL col2 + ( - ( + 77 ) ) * 44 AS col1 FROM tab0 AS cor0 WHERE NOT + 23 BETWEEN ( col1 ) * - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT COUNT( 36 ) + COUNT( - col0 + 50 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8534
SELECT COUNT ( 36 ) + COUNT ( - col0 + 50 ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT - MIN( DISTINCT - ( 90 ) ) * - 50 + MIN( + col1 ) AS col2 FROM tab1 AS cor0
----
-4495

skipif mysql # not compatible
query I rowsort label-8535
SELECT - MIN ( DISTINCT - ( 90 ) ) * - 50 + MIN ( + col1 ) AS col2 FROM tab1 AS cor0
----
-4495

query I rowsort
SELECT + col1 * col0 AS col0 FROM tab1 AS cor0 WHERE - col2 = - col0
----

query I rowsort
SELECT + 64 + + + col2 FROM tab2
----
104
122
87

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( - col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT + COUNT( 35 ) + 36 * + COUNT( * ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-8539
SELECT + COUNT ( 35 ) + 36 * + COUNT ( * ) FROM tab2
----
111

query III rowsort
SELECT * FROM tab2 WHERE - col0 + - col2 BETWEEN ( NULL ) AND - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8541
SELECT ( - + 62 ) + col0 DIV col2 FROM tab0
----
-54
-62
-62

skipif mysql # not compatible
query I rowsort label-8541
SELECT ( - + 62 ) + col0 / col2 FROM tab0
----
-54
-62
-62

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE ( - col0 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8543
SELECT DISTINCT 44 + - 3 DIV + 7 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT 44 + - 3 / + 7 FROM tab0
----
44

query I rowsort
SELECT - col2 * - ( - col2 ) * 51 + - col0 AS col1 FROM tab0
----
-112674
-499948
-5187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT DISTINCT CAST( col2 AS SIGNED ) * col1 + 84 * 79 FROM tab1
----
6931
7980
9832

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col1 + 84 * 79 FROM tab1
----
6931
7980
9832

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN ( - 34 - col1 ) AND col0 + 95
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL - COUNT( * ) - - MIN( DISTINCT + 99 ) col1 FROM tab2
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8548
SELECT ALL - COUNT ( * ) - - MIN ( DISTINCT + 99 ) col1 FROM tab2
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( col2 ) ) BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) * - ( + 25 * col1 ) + + col2 FROM tab2
----
-123160
-125567
-58627

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT DISTINCT + 78 - - COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT + 78 - - COUNT ( * ) FROM tab1
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 - - 26 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT COUNT( * ) - - - 97 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8553
SELECT COUNT ( * ) - - - 97 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT - MIN( ALL + ( - col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8554
SELECT - MIN ( ALL + ( - col1 ) ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL + MIN( col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + MIN ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT ALL - col1 DIV col0 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8556
SELECT ALL - col1 / col0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8558
SELECT DISTINCT + col2 DIV - 41 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT + col2 / - 41 AS col2 FROM tab0
----
-1
-2
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 - 55 ) <= + 55
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL NOT IN ( - 30 )
----

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab1, tab1 AS cor0
----
8

query I rowsort
SELECT ALL + 92 - col2 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8564
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( col1 * + col1 + - 14 ) OR NOT ( + col0 * + col0 + - col1 ) IN ( + col0 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 <> - col1 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT MAX( + ( col0 ) ) + AVG ( 86 ) / + 14 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) <> + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT MAX ( + ( col0 ) ) + AVG ( 86 ) / + 14 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) <> + col0
----
NULL

query I rowsort
SELECT - ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT DISTINCT - 33 DIV - col1 * - + col2 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT - 33 / - col1 * - + col2 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - col2 * + col1 FROM tab0 WHERE NOT col1 >= - - col1
----

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab1 WHERE col2 + - 72 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 80
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8574
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * CAST( col1 AS DECIMAL ) * 76 + + col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-8574
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * CAST ( col1 AS REAL ) * 76 + + col2 > NULL
----

query I rowsort
SELECT - col2 * + 61 AS col2 FROM tab2 WHERE NULL > ( NULL ) AND NOT col1 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT ALL MIN( DISTINCT - - col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL MIN ( DISTINCT - - col0 ) AS col1 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8577
SELECT col0 DIV + CAST( + + ( + col0 ) AS SIGNED ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8577
SELECT col0 / + CAST ( + + ( + col0 ) AS INTEGER ) FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT + col0 DIV + - col2 AS col0 FROM tab0 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8578
SELECT + col0 / + - col2 AS col0 FROM tab0 cor0
----
-8
0
0

query I rowsort
SELECT - col1 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * - 56 <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT + + col1 + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + 68 AS col1 FROM tab2
----
108
126
91

query I rowsort
SELECT col2 * - col2 + + - col0 - + + ( - 32 ) + col2 * col2 FROM tab2
----
-14
-32
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT + COUNT( * ) + 48 AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT + COUNT ( * ) + 48 AS col1 FROM tab2
----
51

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE ( ( NULL ) NOT BETWEEN ( - col2 ) AND - 95 ) OR + 49 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT SUM( - + 19 ) AS col1 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT SUM ( - + 19 ) AS col1 FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT + + ( - - CAST( NULL AS SIGNED ) ) + + col1 - + col0 + 60 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT + + ( - - CAST ( NULL AS INTEGER ) ) + + col1 - + col0 + 60 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 AS col1, col0 - + col1 FROM tab0 AS cor0
----
10
66
47
-66
99
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 IN ( 75 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - ( col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8590
SELECT ALL COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) + + + 70 AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) + + + 70 AS col1 FROM tab1 AS cor0
----
70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + 70 + - col2 + + 32 * + col0 BETWEEN NULL AND + col0 + + 61 / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + 15 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8592
SELECT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + 15 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col2 * 40 * + 48 * + col1 AS col2 FROM tab1
----
2580480
566400
6136320

query I rowsort
SELECT ALL col1 + - 3 * - col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
120
197
241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT DISTINCT col0 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT col0 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + 1 AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL 94 * + col0 + + col0 AS col2 FROM tab0
----
1425
8265
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + MIN( DISTINCT - ( col1 ) ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8598
SELECT + MIN ( DISTINCT - ( col1 ) ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT ALL - - COUNT( + col2 ) * - MAX( - col1 ), COUNT( - ( 28 ) ) AS col0 FROM tab1 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-8599
SELECT ALL - - COUNT ( + col2 ) * - MAX ( - col1 ), COUNT ( - ( 28 ) ) AS col0 FROM tab1 AS cor0
----
15
3

query I rowsort
SELECT 25 FROM tab1 cor0 WHERE NOT - col2 * - - 3 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8601
SELECT ALL CAST( - SUM( DISTINCT col2 ) AS SIGNED ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL CAST ( - SUM ( DISTINCT col2 ) AS INTEGER ) FROM tab0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8602
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE NOT NULL IN ( + + 48 * + + col0 )
----

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE NOT NULL IN ( + + 48 * + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT DISTINCT + col1 * col0 DIV col0 AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT + col1 * col0 / col0 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - - col1 * + - 24 * 80 AS col0 FROM tab1 cor0
----
-26880
-90240
-9600

query I rowsort
SELECT - 20 FROM tab1 AS cor0 WHERE NOT ( NOT + col0 * + col0 / col0 NOT IN ( 21 ) )
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ALL + MAX( + - ( 13 ) ) AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL + MAX ( + - ( 13 ) ) AS col1 FROM tab0 AS cor0
----
-13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 51
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 / - col2 < col2 * + col1 / - 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 16 * col2 AS col2, + 82 FROM tab1 AS cor0
----
1088
82
1536
82
944
82

query I rowsort
SELECT + col0 * col0 * - + col2 AS col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

query II rowsort
SELECT ALL col1 + - col2 - + col2, col2 FROM tab2
----
-3
40
-49
58
5
23

query I rowsort
SELECT DISTINCT + col2 * + + col1 FROM tab1
----
1344
295
3196

query II rowsort
SELECT - 68 AS col2, col0 - - ( + col2 ) + + col0 FROM tab0
----
-68
184
-68
293
-68
77

query I rowsort
SELECT DISTINCT + 23 + + + 31 FROM tab1
----
54

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT - CAST( NULL AS SIGNED ) + + 59 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT - CAST ( NULL AS INTEGER ) + + 59 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 WHERE NOT col0 * - 2 < col0 + - - 80
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT + 81 + - + MAX( ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8619
SELECT + 81 + - + MAX ( ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE 20 + - col2 IN ( + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT + col1 DIV + + 80 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT + col1 / + + 80 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT DISTINCT - - 43 - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
52

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT - - 43 - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT + + MIN( - 22 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-22

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + + MIN ( - 22 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8624
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT DISTINCT + COUNT( * ) - - 88 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT + COUNT ( * ) - - 88 FROM tab0 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 10 / - 39 * - col2 + 70 + - col2 + - col1 + col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT 25 + col0 FROM tab2 cor0
----
100
71
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8628
SELECT ALL col2 DIV + col0 + col1 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL col2 / + col0 + col1 FROM tab1 AS cor0
----
15
47
5

query I rowsort
SELECT DISTINCT - 11 - - 20 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1291
-1511
-931

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + col1 / col1 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL - MAX( DISTINCT ( 2 ) ) col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8631
SELECT ALL - MAX ( DISTINCT ( 2 ) ) col2 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col0 * col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8633
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) / + 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8633
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / + 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT + COUNT( DISTINCT + + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT + COUNT ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT DISTINCT + COUNT( * ) + 2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT + COUNT ( * ) + 2 FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT + 20 + - SUM( - col0 ) * 49 + + 4 AS col1 FROM tab0 AS cor0
----
9775

skipif mysql # not compatible
query I rowsort label-8636
SELECT + 20 + - SUM ( - col0 ) * 49 + + 4 AS col1 FROM tab0 AS cor0
----
9775

query I rowsort
SELECT - col1 + - 16 AS col1 FROM tab0
----
-17
-37
-97

query I rowsort
SELECT col2 + col2 + + col2 * + col2 AS col1 FROM tab0
----
120
2303
9999

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL MIN( DISTINCT - 99 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL MIN ( DISTINCT - 99 ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL - COUNT( - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - COUNT ( - col0 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8641
SELECT ALL col0 AS col2, col2 + + col2 DIV + - 13 AS col2 FROM tab1 AS cor0
----
51
89
85
55
91
63

skipif mysql # not compatible
query II rowsort label-8641
SELECT ALL col0 AS col2, col2 + + col2 / + - 13 AS col2 FROM tab1 AS cor0
----
51
89
85
55
91
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT + MAX( + + col0 ) col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8642
SELECT DISTINCT + MAX ( + + col0 ) col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 33 = - 77
----

query II rowsort
SELECT DISTINCT + col1, col1 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 = 56 / - - 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 21 * - 47 AS col2 FROM tab1 AS cor0
----
-987
-987
-987

onlyif mysql # aggregate syntax: 
query II rowsort label-8647
SELECT ALL 84, + COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
84
3

skipif mysql # not compatible
query II rowsort label-8647
SELECT ALL 84, + COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
84
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8648
SELECT DISTINCT - CAST( + 52 AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT - CAST ( + 52 AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL + MAX( + ( + col2 ) ) * - COUNT( * ) * + 73 AS col1 FROM tab0 AS cor0
----
-21681

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + MAX ( + ( + col2 ) ) * - COUNT ( * ) * + 73 AS col1 FROM tab0 AS cor0
----
-21681

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8650
SELECT + + 68 * - - col2 + + ( - - 98 ) - + - 90 + CAST( NULL AS SIGNED ) AS col0, - ( + col1 ) * col2 + + + col2 + - + 0 + - col1 AS col2 FROM tab1 AS cor0
----
NULL
-1262
NULL
-241
NULL
-3175

skipif mysql # not compatible
query II rowsort label-8650
SELECT + + 68 * - - col2 + + ( - - 98 ) - + - 90 + CAST ( NULL AS INTEGER ) AS col0, - ( + col1 ) * col2 + + + col2 + - + 0 + - col1 AS col2 FROM tab1 AS cor0
----
NULL
-1262
NULL
-241
NULL
-3175

query I rowsort
SELECT DISTINCT col1 * - col2 * + + col1 AS col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT ALL - ( - - col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( + - 36 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + 12 AS col0 FROM tab2 AS cor0
----
35
52
70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col1 FROM tab2 WHERE - col1 < col1
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT - + MAX( - + col2 ) AS col0 FROM tab2 WHERE - 9 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT - + MAX ( - + col2 ) AS col0 FROM tab2 WHERE - 9 IS NOT NULL
----
23

query I rowsort
SELECT DISTINCT + col2 * + col2 + - col1 AS col1 FROM tab1
----
3476
4577
9202

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8660
SELECT DISTINCT + 8 DIV - - COUNT( * ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT + 8 / - - COUNT ( * ) FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT - 52 + + MIN( DISTINCT - col0 ) col2 FROM tab0 cor0
----
-149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8661
SELECT - 52 + + MIN ( DISTINCT - col0 ) col2 FROM tab0 cor0
----
-149

query I rowsort
SELECT - 56 + - + ( - 89 ) FROM tab1 cor0
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL - MAX( DISTINCT + 59 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL - MAX ( DISTINCT + 59 ) FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT COUNT( + col1 ) * + 22 AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8665
SELECT COUNT ( + col1 ) * + 22 AS col2 FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT SUM( col2 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 18 * - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT SUM ( col2 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 18 * - col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + - 96 * - col0 * - col2 - - - 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 10 - - col0 AS col1 FROM tab1 AS cor0
----
101
61
95

query II rowsort
SELECT 32 - - col2 + + 97 AS col1, - col2 + - - col0 + - - col0 FROM tab2 AS cor0
----
152
69
169
88
187
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT - MAX( DISTINCT col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT - MAX ( DISTINCT col0 ) FROM tab0
----
-97

query I rowsort
SELECT + 1 * + - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 * col0 * + 89 col2 FROM tab2
----
200606
279104
327075

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT - COUNT( * ) * MIN( DISTINCT + + col1 ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-8673
SELECT - COUNT ( * ) * MIN ( DISTINCT + + col1 ) AS col0 FROM tab1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT 31 DIV - 76 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8674
SELECT 31 / - 76 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 * - col0 col1 FROM tab1
----
132651
614125
753571

query I rowsort
SELECT + 69 * - col1 AS col2 FROM tab1
----
-3243
-345
-966

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 BETWEEN NULL AND ( ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 ) = NULL
----

query II rowsort
SELECT + 87 * + 53 AS col1, + col1 AS col0 FROM tab1
----
4611
14
4611
47
4611
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT - 35 * - COUNT( * ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-8680
SELECT - 35 * - COUNT ( * ) FROM tab2
----
105

query III rowsort
SELECT * FROM tab0 WHERE NOT - 83 * + col1 / - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL - + SUM( ALL col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - + SUM ( ALL col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT - 6 + + 44 + - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-8684
SELECT - 6 + + 44 + - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
47

query II rowsort
SELECT 93 * - + 80 * - 98, + col0 AS col1 FROM tab2 AS cor0
----
729120
46
729120
64
729120
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8686
SELECT DISTINCT 13 DIV - SUM( + - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT 13 / - SUM ( + - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 59 + col0 / + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col1 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT 77 * COUNT( * ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-8689
SELECT 77 * COUNT ( * ) FROM tab2 AS cor0
----
231

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 * + col2, 50 )
----

query I rowsort
SELECT DISTINCT 79 + - + col2 FROM tab0 cor0
----
-20
32
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8692
SELECT + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - 5 > NULL
----

query II rowsort
SELECT col1 AS col1, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT - MIN( 94 ) * + + CAST( NULL AS SIGNED ) - + + COUNT( * ) + + 53 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8695
SELECT - MIN ( 94 ) * + + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) + + 53 col2 FROM tab0
----
NULL

query I rowsort
SELECT col0 + 4 FROM tab0
----
101
19
91

query II rowsort
SELECT col0 + col1, - col2 AS col1 FROM tab2
----
141
-40
142
-58
97
-23

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col2 + + col1 * - 50 / + - col1 AND NULL AND col1 IS NULL
----

query II rowsort
SELECT DISTINCT + ( - ( col0 ) ) + 19 AS col1, col0 AS col2 FROM tab0
----
-68
87
-78
97
4
15

query II rowsort
SELECT DISTINCT - 44 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
-44
51
-44
67
-44
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT ALL CAST( + col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8701
SELECT ALL CAST ( + col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col2 * - 42 * - - col1 FROM tab2 AS cor0
----
-129360
-163212
-49266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col2, col1 AS col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT - MIN( DISTINCT - - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8704
SELECT - MIN ( DISTINCT - - col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL COUNT( * ) + - + 84 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL COUNT ( * ) + - + 84 FROM tab2
----
-81

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) <> - 35 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT ALL 17 * + 87 + + COUNT( * ) - - - ( 76 ) AS col2 FROM tab1 AS cor0
----
1406

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL 17 * + 87 + + COUNT ( * ) - - - ( 76 ) AS col2 FROM tab1 AS cor0
----
1406

query I rowsort
SELECT DISTINCT + + 20 - - col0 AS col0 FROM tab1 AS cor0
----
105
111
71

query I rowsort
SELECT DISTINCT + - 71 AS col2 FROM tab0 AS cor0
----
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + 64 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8711
SELECT COUNT( * ) FROM tab1 cor0 WHERE NOT - CAST( 18 AS SIGNED ) NOT BETWEEN + 21 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-8711
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NOT - CAST ( 18 AS INTEGER ) NOT BETWEEN + 21 AND + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT ALL - COUNT( * ) * - 57 * - 63 * - MAX( 15 ) AS col0 FROM tab1 AS cor0
----
161595

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL - COUNT ( * ) * - 57 * - 63 * - MAX ( 15 ) AS col0 FROM tab1 AS cor0
----
161595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 / 6 col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT + COUNT( * ) * + - 44 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-8715
SELECT + COUNT ( * ) * + - 44 FROM tab2
----
-132

query I rowsort
SELECT + - col2 + - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1, - col2 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8719
SELECT DISTINCT col0 DIV 15 FROM tab1
----
3
5
6

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT col0 / 15 FROM tab1
----
3
5
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8720
SELECT - CAST( NULL AS SIGNED ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8720
SELECT - CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT DISTINCT - 88, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-88
3

skipif mysql # not compatible
query II rowsort label-8721
SELECT DISTINCT - 88, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-88
3

query I rowsort
SELECT ALL - 76 * + - 53 - + - ( 84 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61001f79288243b8470aaef122833e3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + col2 BETWEEN NULL AND + ( 20 ) * col0
----

query I rowsort
SELECT - 30 * 99 - + col1 + - col0 * + - col2 AS col2 FROM tab2 cor0
----
-1963
-487
1313

query I rowsort
SELECT - ( - col1 ) + + 68 FROM tab2 AS cor0
----
119
135
145

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT col1 DIV + - col0 + col0 + - - ( + 22 ) FROM tab2 AS cor0
----
67
85
97

skipif mysql # not compatible
query I rowsort label-8726
SELECT col1 / + - col0 + col0 + - - ( + 22 ) FROM tab2 AS cor0
----
67
85
97

query I rowsort
SELECT + + col2 + + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT - COUNT( * ) * + COUNT( * ) * COUNT( * ) col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8728
SELECT - COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) col2 FROM tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8729
SELECT DISTINCT - MIN( ALL - - CAST( - col1 AS SIGNED ) ) + - - 96 + 42 + - 23 * - - 51 FROM tab0 cor0
----
-954

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT - MIN ( ALL - - CAST ( - col1 AS INTEGER ) ) + - - 96 + 42 + - 23 * - - 51 FROM tab0 cor0
----
-954

query I rowsort
SELECT ALL + 20 + - 54 AS col2 FROM tab2
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT + col0 DIV + col1 + + 87 FROM tab2 WHERE NULL IS NULL
----
87
87
88

skipif mysql # not compatible
query I rowsort label-8731
SELECT + col0 / + col1 + + 87 FROM tab2 WHERE NULL IS NULL
----
87
87
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT DISTINCT + col0 / + col0 FROM tab0 WHERE - - CAST( + col0 AS SIGNED ) * - col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT + col0 / + col0 FROM tab0 WHERE - - CAST ( + col0 AS INTEGER ) * - col2 > NULL
----

query I rowsort
SELECT + 15 AS col0 FROM tab2 WHERE + col2 * + col2 + col2 + + + col0 * - + 63 * + col2 IS NULL
----

query I rowsort
SELECT - ( - 58 ) FROM tab1
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT + 46 * - + ( - - 75 ) + - MIN( - col2 ) + 49 col2 FROM tab2 AS cor0
----
-3343

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8735
SELECT DISTINCT + 46 * - + ( - - 75 ) + - MIN ( - col2 ) + 49 col2 FROM tab2 AS cor0
----
-3343

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 31 * + col2 * ( + col2 ) + + + col1 + 57 + - - 37 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - col0 <= - 97 AND col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 >= + + col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8740
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN + col1 - + + 73 AND + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8740
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN + col1 - + + 73 AND + - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8742
SELECT - - MIN( DISTINCT + CAST( col0 AS SIGNED ) ) col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8742
SELECT - - MIN ( DISTINCT + CAST ( col0 AS INTEGER ) ) col2 FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT - col1 * 62 + + col0 FROM tab0 AS cor0
----
-1215
-5007
35

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT MAX( ALL - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8745
SELECT MAX ( ALL - - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT - + col1 FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT ALL + + col0 * - col0 + 58 + col0 + - + 44 FROM tab2 WHERE NOT - + 8 / - - col0 + + - col1 * - - 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - col2 ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + + col0 + + + ( + 66 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT col1 * - CAST( NULL AS SIGNED ) * + 15 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT col1 * - CAST ( NULL AS INTEGER ) * + 15 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT + col2 / - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8751
SELECT + col2 / - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT col2 * - CAST( NULL AS SIGNED ) / - 42 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT col2 * - CAST ( NULL AS INTEGER ) / - 42 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL COUNT( * ) * + - 84 FROM tab0 cor0
----
-252

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL COUNT ( * ) * + - 84 FROM tab0 cor0
----
-252

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 77 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT + 13 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 / + - col2 NOT BETWEEN NULL AND + + col0 * - + col0
----
16

skipif mysql # not compatible
query I rowsort label-8755
SELECT + 13 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 / + - col2 NOT BETWEEN NULL AND + + col0 * - + col0
----
16

query I rowsort
SELECT ALL - col0 * - col0 + 21 AS col2 FROM tab1 cor0
----
2622
7246
8302

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8757
SELECT ALL CAST( + - col1 AS SIGNED ) DIV + 11 AS col2, + col1 FROM tab0 AS cor0
----
-1
21
-7
81
0
1

skipif mysql # not compatible
query II rowsort label-8757
SELECT ALL CAST ( + - col1 AS INTEGER ) / + 11 AS col2, + col1 FROM tab0 AS cor0
----
-1
21
-7
81
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8758
SELECT DISTINCT + - col1 * - + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + - col1 * - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT + - 22 * - + ( - 12 ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
-264
-3

skipif mysql # not compatible
query II rowsort label-8759
SELECT + - 22 * - + ( - 12 ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
-264
-3

query I rowsort
SELECT DISTINCT + - ( + - col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT COUNT( + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT COUNT ( + col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ( - + 37 ) + - col1 + + + col1 FROM tab1
----
-37
-37
-37

query I rowsort
SELECT ( 16 ) + + 98 FROM tab2
----
114
114
114

query I rowsort
SELECT + 44 * + col0 + - - 44 FROM tab2
----
2068
2860
3344

query I rowsort
SELECT 2 + + col0 + 91 * col2 * col0 AS col1 FROM tab0
----
64172
79259
873972

query II rowsort
SELECT - col2 AS col2, col0 + + col0 FROM tab1 AS cor0 WHERE + col2 + 9 > NULL
----

query I rowsort
SELECT col1 - + col2 - - 67 FROM tab2
----
104
76
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT COUNT( * ) * + 24 * - - ( + - 39 ) col0 FROM tab2
----
-2808

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8768
SELECT COUNT ( * ) * + 24 * - - ( + - 39 ) col0 FROM tab2
----
-2808

query I rowsort
SELECT ALL ( - 87 ) FROM tab2
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 88 col1 FROM tab2 AS cor0
----
51
88
67
88
77
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col0 FROM tab1 cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT COUNT( - 25 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8772
SELECT COUNT ( - 25 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - ( - + 75 ) AS col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8774
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8774
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT ( - + 81 ) AS col0 FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT + SUM( col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8776
SELECT + SUM ( col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + col1 * + col1 - col1 AS col2 FROM tab2 AS cor0
----
2550
4422
5852

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 + col0 + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT DISTINCT + CAST( - col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 + ( + ( col0 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - col2 ) * - col0 * + col0 AS col2 FROM tab0
----
10575
75690
931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, - col2 * + - col1 col0 FROM tab0
----
1
99
21
210
81
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT DISTINCT + 70 * CAST( + col0 AS SIGNED ) col2 FROM tab2
----
3220
4480
5250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8783
SELECT DISTINCT + 70 * CAST ( + col0 AS INTEGER ) col2 FROM tab2
----
3220
4480
5250

query I rowsort
SELECT 81 * - - 10 FROM tab2 AS cor0
----
810
810
810

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT + COUNT( * ) AS col2, 72 * 35 AS col1 FROM tab0 AS cor0
----
3
2520

skipif mysql # not compatible
query II rowsort label-8785
SELECT + COUNT ( * ) AS col2, 72 * 35 AS col1 FROM tab0 AS cor0
----
3
2520

query I rowsort
SELECT ( - 20 ) FROM tab2 cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL + COUNT( * ) * + 33 AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL + COUNT ( * ) * + 33 AS col0 FROM tab1 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT DISTINCT - col0 DIV col2 + + ( - - col0 ) * - col2 FROM tab1 AS cor0
----
-4896
-5016
-6189

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT - col0 / col2 + + ( - - col0 ) * - col2 FROM tab1 AS cor0
----
-4896
-5016
-6189

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT - + col1 DIV 22 * - col0 AS col2 FROM tab0 AS cor0
----
0
0
45

skipif mysql # not compatible
query I rowsort label-8789
SELECT - + col1 / 22 * - col0 AS col2 FROM tab0 AS cor0
----
0
0
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT IN ( col1, 44, + 46 - col1, - col0 * + 56 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8791
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <= - col0
----

skipif mysql # not compatible
query III rowsort label-8791
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= - col0
----

query I rowsort
SELECT DISTINCT - + ( + 78 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-78

query III rowsort
SELECT * FROM tab1 WHERE + ( + col0 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - 99 ) * + col1 + - col0 col2 FROM tab0
----
1992
2
8004

query II rowsort
SELECT - col1 + + col0 AS col1, col1 * + 41 * 68 * - 30 FROM tab0 AS cor0
----
-66
-6774840
66
-1756440
96
-83640

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT + SUM( DISTINCT 85 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8796
SELECT + SUM ( DISTINCT 85 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
88

query I rowsort
SELECT + - 94 + 19 AS col1 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT - - col2 * + 3 AS col1 FROM tab0 AS cor0
----
141
297
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT - COUNT( * ) + + + 48 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-8799
SELECT - COUNT ( * ) + + + 48 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-8800
SELECT + 25, MIN( + col0 ) AS col2 FROM tab1
----
25
51

skipif mysql # not compatible
query II rowsort label-8800
SELECT + 25, MIN ( + col0 ) AS col2 FROM tab1
----
25
51

query I rowsort
SELECT - 43 - - + 20 AS col0 FROM tab0
----
-23
-23
-23

query I rowsort
SELECT + col2 - - col0 * - + col2 * - - col1 AS col0 FROM tab2
----
-197080
-291392
-53935

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL AND ( ( + + 80 * - + col1 * - + ( col2 ) <> ( + col1 ) ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8804
SELECT ALL CAST( NULL AS DECIMAL ) - - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL CAST ( NULL AS REAL ) - - - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT col0 - - - CAST( + col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8805
SELECT col0 - - - CAST ( + col0 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT DISTINCT + 36 - + COUNT( ALL + ( - - col2 ) ) + + COUNT( * ) AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT + 36 - + COUNT ( ALL + ( - - col2 ) ) + + COUNT ( * ) AS col2 FROM tab1
----
36

query I rowsort
SELECT - col1 - 41 AS col1 FROM tab2
----
-108
-118
-92

query I rowsort
SELECT DISTINCT col0 - + 94 FROM tab1 AS cor0
----
-3
-43
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT 97 + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8809
SELECT 97 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
100

query I rowsort
SELECT DISTINCT - - 87 + + - 90 AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 / col1 NOT BETWEEN - - col1 AND NULL
----
15
81
47
87
21
10

query II rowsort
SELECT 83, + col2 FROM tab0 WHERE NOT NULL < + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 58 BETWEEN NULL AND col1 + ( 90 ) * + 94
----

query I rowsort
SELECT col1 * - - col2 + + + 25 - - - col0 FROM tab1 WHERE NOT + col0 - - col1 + col2 - + + col0 / + col1 < col1
----
1318
235
3130

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * col2 <> - col1 + ( + col2 ) + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT + - MIN( ( + 35 ) ) AS col2 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT + - MIN ( ( + 35 ) ) AS col2 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT - + 4 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT + col0 * - - CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT + col0 * - - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT CAST( - 51 AS SIGNED ) AS col2 FROM tab2
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-8819
SELECT CAST ( - 51 AS INTEGER ) AS col2 FROM tab2
----
-51
-51
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN NULL AND col0 * 87
----

query I rowsort
SELECT + 14 * - 51 FROM tab2
----
-714
-714
-714

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + 56 * + + col0 AS col1 FROM tab1
----
145656
404600
463736

query I rowsort
SELECT + 81 + col1 AS col0 FROM tab2
----
132
148
158

query I rowsort
SELECT ALL ( - + 9 ) + - + col0 FROM tab1
----
-100
-60
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8826
SELECT ALL 20 * ( - MIN( ALL 52 ) ) * - COUNT( * ), 48 * + 61 AS col1 FROM tab0
----
3120
2928

skipif mysql # not compatible
query II rowsort label-8826
SELECT ALL 20 * ( - MIN ( ALL 52 ) ) * - COUNT ( * ), 48 * + 61 AS col1 FROM tab0
----
3120
2928

query II rowsort
SELECT DISTINCT - col0 AS col1, + col2 + + 36 * - - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-46
-93613
-64
-213404
-75
-161546

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( col1, col0 - - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 86 AS col0, 66 AS col2 FROM tab2 WHERE - col1 <= NULL
----

query I rowsort
SELECT DISTINCT 39 + - - 53 FROM tab0
----
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 85 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 67 + col0 AS col0 FROM tab1 AS cor0
----
-16
18
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT + 76 + + - COUNT( * ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8833
SELECT + 76 + + - COUNT ( * ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT + col2 * 39 + - + col1 + - 64 FROM tab2 AS cor0
----
1419
2131
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 3 + + + col0 + - - col2 FROM tab2
----
107
136
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - MAX( + 10 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-8837
SELECT - MAX ( + 10 ) FROM tab1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT + COUNT( * ) + - MAX( - 10 ) - + COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT + COUNT ( * ) + - MAX ( - 10 ) - + COUNT ( * ) FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT ALL - 76 + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL - 76 + ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT COUNT( * ) + - 79 AS col1 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT COUNT ( * ) + - 79 AS col1 FROM tab1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT ALL col1 DIV + + 29 + col1 AS col0 FROM tab0
----
1
21
83

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL col1 / + + 29 + col1 AS col0 FROM tab0
----
1
21
83

query I rowsort
SELECT ALL 52 AS col2 FROM tab2 WHERE NULL IS NULL
----
52
52
52

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND - 26
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col2 * 87 + + 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT - CAST( NULL AS SIGNED ) * - 1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT - CAST ( NULL AS INTEGER ) * - 1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 5 ) * 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e983481a009a385caf95bee7c23b224a

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT + MAX( DISTINCT - + ( - 24 ) ) col0 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8847
SELECT + MAX ( DISTINCT - + ( - 24 ) ) col0 FROM tab2 AS cor0
----
24

query II rowsort
SELECT DISTINCT + + 90 AS col0, - col0 + + - 50 AS col0 FROM tab0 AS cor0
----
90
-137
90
-147
90
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-8849
SELECT ALL 16 col2, + 35 + ( - + 61 ) DIV + 86 FROM tab0 AS cor0
----
16
35
16
35
16
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8849
SELECT ALL 16 col2, + 35 + ( - + 61 ) / + 86 FROM tab0 AS cor0
----
16
35
16
35
16
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
47

query III rowsort
SELECT ALL * FROM tab0 WHERE - 30 - + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT MIN( ALL - 23 ) AS col2 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-8853
SELECT MIN ( ALL - 23 ) AS col2 FROM tab1
----
-23

query III rowsort
SELECT * FROM tab2 WHERE NOT - 74 * + col2 BETWEEN + - col0 + + col0 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT - 43 * - + MIN( ALL + col0 ) FROM tab0
----
645

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT - 43 * - + MIN ( ALL + col0 ) FROM tab0
----
645

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT DISTINCT 66 * 66 + 63 DIV + 2 AS col1 FROM tab0
----
4387

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT 66 * 66 + 63 / + 2 AS col1 FROM tab0
----
4387

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT + col0 * - + col2 * - 13 FROM tab0 AS cor0
----
11310
124839
9165

query I rowsort
SELECT col0 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 61 + + col0 AS col1 FROM tab0
----
148
158
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT DISTINCT + 76 + MIN( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT + 76 + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT ALL + - 25 + - ( - col0 ) + ( + - col1 ) AS col1, col0 AS col2 FROM tab0 AS cor0
----
-91
15
41
87
71
97

query I rowsort
SELECT DISTINCT 59 - - - col2 FROM tab2 AS cor0
----
1
19
36

query I rowsort
SELECT - col2 * - col1 * col1 * + ( - col1 ) * - + col2 FROM tab0 cor0
----
1173953169
926100
9801

query I rowsort
SELECT + 68 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 / col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL AND NOT 21 >= + - col1
----

query I rowsort
SELECT DISTINCT + col1 * - - col0 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT + 58 DIV + - col2 - 54 AS col0 FROM tab0
----
-54
-55
-59

skipif mysql # not compatible
query I rowsort label-8869
SELECT + 58 / + - col2 - 54 AS col0 FROM tab0
----
-54
-55
-59

query I rowsort
SELECT ALL 3 * col2 FROM tab1
----
177
204
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT DISTINCT CAST( - + col2 AS SIGNED ) * + 79 FROM tab1
----
-4661
-5372
-7584

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) * + 79 FROM tab1
----
-4661
-5372
-7584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT DISTINCT COUNT( * ) + 10 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT COUNT ( * ) + 10 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 97 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT ( NOT ( NOT col0 IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8875
SELECT col2 DIV + - 22 AS col1 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-8875
SELECT col2 / + - 22 AS col1 FROM tab1
----
-2
-3
-4

query I rowsort
SELECT ( - - 36 ) FROM tab0
----
36
36
36

query I rowsort
SELECT ( - col0 ) * - - col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 / - ( - 58 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 / - ( - 58 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + + ( - + col1 ) ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT - - ( - 65 ) AS col1 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT + 15 FROM tab0 AS cor0 WHERE NOT col0 * col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT CAST( 69 AS SIGNED ) col0 FROM tab1 cor0
----
69
69
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8882
SELECT CAST ( 69 AS INTEGER ) col0 FROM tab1 cor0
----
69
69
69

query I rowsort
SELECT ALL + 19 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8884
SELECT DISTINCT col1 DIV + CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT col1 / + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT DISTINCT CAST( - 45 AS SIGNED ) AS col0 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT CAST ( - 45 AS INTEGER ) AS col0 FROM tab1
----
-45

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 cor0 WHERE NOT col0 * + + col0 * + + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT + + COUNT( * ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8887
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab1 cor0
----
3

query I rowsort
SELECT + 42 AS col1 FROM tab1 AS cor0 WHERE NOT col1 = + ( + col1 ) + + col0 + - 34
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + 84 AS col0, col2 col2 FROM tab0 cor0
----
3948
47
8316
99
840
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8890
SELECT 91 AS col1, COUNT( * ) AS col1 FROM tab0
----
91
3

skipif mysql # not compatible
query II rowsort label-8890
SELECT 91 AS col1, COUNT ( * ) AS col1 FROM tab0
----
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT COUNT( DISTINCT col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8891
SELECT COUNT ( DISTINCT col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL - MIN( col0 ) + - COUNT( * ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL - MIN ( col0 ) + - COUNT ( * ) FROM tab2
----
-49

query I rowsort
SELECT ALL + col0 + + 58 FROM tab1
----
109
143
149

query II rowsort
SELECT DISTINCT col2, col0 AS col1 FROM tab2 AS cor0 WHERE NOT 15 IS NULL
----
23
46
40
64
58
75

query I rowsort
SELECT 90 * + - col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8896
SELECT * FROM tab2 WHERE + 68 BETWEEN - + CAST( + + 87 AS SIGNED ) AND + col1
----
64
77
40

skipif mysql # not compatible
query III rowsort label-8896
SELECT * FROM tab2 WHERE + 68 BETWEEN - + CAST ( + + 87 AS INTEGER ) AND + col1
----
64
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8897
SELECT ALL - MIN( - 77 ) * + 81 * CAST( NULL AS SIGNED ) - 26 * + 27 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL - MIN ( - 77 ) * + 81 * CAST ( NULL AS INTEGER ) - 26 * + 27 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 + 47 + - 60 AS col2 FROM tab1 cor0
----
-109
-72
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 4 - - - 12 col2 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - col1 * + - 39 - + col1 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
-120197
-222775
-24990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT - + AVG ( ALL - CAST( NULL AS SIGNED ) ) + 90 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT - + AVG ( ALL - CAST ( NULL AS INTEGER ) ) + 90 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 + 50 * - 31 FROM tab0 cor0
----
-1560
-1597
-1649

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 / + + col1 IS NOT NULL
----

query I rowsort
SELECT col0 + + 64 AS col0 FROM tab0 AS cor0
----
151
161
79

query I rowsort
SELECT - + col0 + + - col0 AS col0 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL - COUNT( * ) * + MIN( + 63 ) FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL - COUNT ( * ) * + MIN ( + 63 ) FROM tab1 AS cor0
----
-189

query I rowsort
SELECT - 21 * - - 15 AS col1 FROM tab2 AS cor0
----
-315
-315
-315

onlyif mysql # aggregate syntax: 
query II rowsort label-8908
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8908
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0
0

query I rowsort
SELECT + 12 * + ( - col1 ) FROM tab2
----
-612
-804
-924

query II rowsort
SELECT col1 AS col0, - col2 AS col0 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - COUNT( ALL - ( - + col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8911
SELECT - COUNT ( ALL - ( - + col1 ) ) FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + 21 AS col2 FROM tab1
----
1071
1785
1911

query II rowsort
SELECT ALL 80 AS col0, - 39 FROM tab0
----
80
-39
80
-39
80
-39

query I rowsort
SELECT ALL ( + 76 ) * + 74 * + col2 - - 1 * 75 * - col0 FROM tab0 AS cor0
----
263203
49715
549501

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT + MIN( - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8916
SELECT + MIN ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, col1 * 73 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT ALL - CAST( - - 58 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL - CAST ( - - 58 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + + 39 - - 1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT DISTINCT 19 + + - ( COUNT( * ) ) + - COUNT( * ) + - + 36 DIV - + 69 AS col0 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT 19 + + - ( COUNT ( * ) ) + - COUNT ( * ) + - + 36 / - + 69 AS col0 FROM tab1
----
13

query I rowsort
SELECT 78 + - + col1 AS col1 FROM tab2 AS cor0
----
1
11
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT + - 85 + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8923
SELECT + - 85 + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-94

query II rowsort
SELECT ALL - 51, col1 FROM tab0 AS cor0
----
-51
1
-51
21
-51
81

query I rowsort
SELECT col0 * + - ( + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE - + 72 <> col0 / ( - - 92 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT ALL - col2 / + 35 + - ( + + col2 ) * - col2 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL - col2 / + 35 + - ( + + col2 ) * - col2 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 3 + 18 FROM tab2
----
15

query I rowsort
SELECT DISTINCT - 93 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( 42 ) AS col1 FROM tab2
----
42
42
42

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 cor0 WHERE col1 * 62 - col1 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col1 AS col0, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT - - 0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - - col1 * + col2 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT - ( - col1 ) * - 57 AS col0 FROM tab2
----
-2907
-3819
-4389

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT col1 DIV - + col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8936
SELECT col1 / - + col2 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT + COUNT( * ) * + - 91 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-8937
SELECT + COUNT ( * ) * + - 91 FROM tab1
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT - 29 * - - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT - 29 * - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT DISTINCT - - 41 * + col1 AS col2 FROM tab0 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
3321
41
861

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT - - 41 * + col1 AS col2 FROM tab0 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
3321
41
861

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL 44 * - COUNT( * ) FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL 44 * - COUNT ( * ) FROM tab0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT COUNT( DISTINCT + + 70 ) AS col1 FROM tab1, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8941
SELECT COUNT ( DISTINCT + + 70 ) AS col1 FROM tab1, tab0 AS cor0
----
1

query I rowsort
SELECT + 95 * + ( - 99 ) FROM tab1
----
-9405
-9405
-9405

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab1 WHERE NOT + + 8 + col1 + - + col2 / col1 IS NULL
----
95

query II rowsort
SELECT ALL + 47 + - col1 * + col1 AS col2, + col2 + - col2 FROM tab2
----
-2554
0
-4442
0
-5882
0

query I rowsort
SELECT ( col2 ) FROM tab2 AS cor0 WHERE col2 + + + 9 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT - col1 DIV - 9 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-8947
SELECT - col1 / - 9 FROM tab0 AS cor0
----
0
2
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8948
SELECT ALL - + COUNT( + ( ( - ( col1 ) ) ) ) col1, - CAST( 63 AS SIGNED ) * + 49 FROM tab1 AS cor0
----
-3
-3087

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8948
SELECT ALL - + COUNT ( + ( ( - ( col1 ) ) ) ) col1, - CAST ( 63 AS INTEGER ) * + 49 FROM tab1 AS cor0
----
-3
-3087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT DISTINCT CAST( NULL AS SIGNED ) / 42 * - col0 * + 79 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 42 * - col0 * + 79 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 + + col1 * col2 - - - col2 AS col2 FROM tab2 AS cor0
----
1196
3104
3903

query I rowsort
SELECT ALL + 64 + - + 31 + 90 AS col0 FROM tab2
----
123
123
123

query II rowsort
SELECT ALL + col0, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 <> NULL
----

query I rowsort
SELECT 85 + + ( - 33 ) + 46 * col0 AS col0 FROM tab0
----
4054
4514
742

query I rowsort
SELECT - - col2 FROM tab1 WHERE + + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT DISTINCT - COUNT( * ) + + + 33 * + 49 AS col1 FROM tab2
----
1614

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT - COUNT ( * ) + + + 33 * + 49 AS col1 FROM tab2
----
1614

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL - COUNT( * ) - + 71 * COUNT( ALL col1 ) col1 FROM tab1 cor0
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8957
SELECT ALL - COUNT ( * ) - + 71 * COUNT ( ALL col1 ) col1 FROM tab1 cor0
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT DISTINCT + 23 DIV 48 * - col2 + + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT + 23 / 48 * - col2 + + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + + ( + col2 ) + + col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8960
SELECT - - COUNT( * ), + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8960
SELECT - - COUNT ( * ), + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE 65 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8961
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE 65 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT - ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8962
SELECT DISTINCT - ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 0 - - col2 * - col0 AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT + 88 * - COUNT( * ) * + 23 FROM tab2 AS cor0
----
-6072

skipif mysql # not compatible
query I rowsort label-8964
SELECT + 88 * - COUNT ( * ) * + 23 FROM tab2 AS cor0
----
-6072

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8966
SELECT ALL - CAST( + - COUNT( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL - CAST ( + - COUNT ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8968
SELECT DISTINCT + ( - 60 ) AS col0, + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
-60
0
-60
1
-60
3

skipif mysql # not compatible
query II rowsort label-8968
SELECT DISTINCT + ( - 60 ) AS col0, + col2 / + col0 AS col0 FROM tab0 AS cor0
----
-60
0
-60
1
-60
3

query I rowsort
SELECT + 33 AS col0 FROM tab2 cor0
----
33
33
33

query I rowsort
SELECT + + col1 * 87 AS col2 FROM tab0 AS cor0
----
1827
7047
87

query I rowsort
SELECT ALL - - 85 AS col0 FROM tab2 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT ALL - ( col0 ) FROM tab0 cor0 WHERE + col0 * + CAST( - col2 AS SIGNED ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL - ( col0 ) FROM tab0 cor0 WHERE + col0 * + CAST ( - col2 AS INTEGER ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT col1 * + - 44 * + + CAST( NULL AS SIGNED ) * 17 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8973
SELECT col1 * + - 44 * + + CAST ( NULL AS INTEGER ) * 17 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT SUM( DISTINCT + 90 ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-8974
SELECT SUM ( DISTINCT + 90 ) AS col2 FROM tab1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8975
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + - CAST( - col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8975
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + - CAST ( - col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * col2 * ( - - col0 ) FROM tab2 AS cor0
----
102400
24334
252300

query I rowsort
SELECT + ( + + col1 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT - SUM( DISTINCT - + 36 ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8978
SELECT - SUM ( DISTINCT - + 36 ) FROM tab0 AS cor0
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8979
SELECT - 36 AS col0, + col1 + col2 + + col1 + + - col0 * - - col1 * - CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab0 AS cor0
----
-36
NULL
-36
NULL
-36
NULL

skipif mysql # not compatible
query II rowsort label-8979
SELECT - 36 AS col0, + col1 + col2 + + col1 + + - col0 * - - col1 * - CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab0 AS cor0
----
-36
NULL
-36
NULL
-36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + 33 AS col2 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ( COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8982
SELECT ( COUNT ( * ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT - COUNT( * ) * - 13 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8983
SELECT - COUNT ( * ) * - 13 FROM tab2
----
39

query I rowsort
SELECT - ( ( 49 ) ) * 49 FROM tab0
----
-2401
-2401
-2401

query I rowsort
SELECT 5 FROM tab2 WHERE NOT + col0 NOT IN ( + col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT - MIN( + col0 ) / - 28 col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8986
SELECT - MIN ( + col0 ) / - 28 col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - 21 * - col1 FROM tab1
----
105
294
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 24 AS col0 FROM tab2 WHERE - col0 + + col2 / - col2 NOT IN ( + col0 )
----
24
24
24

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8991
SELECT ALL col1 * + col2 AS col2 FROM tab2 WHERE ( NULL ) >= ( col0 + - CAST( NULL AS DECIMAL ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL col1 * + col2 AS col2 FROM tab2 WHERE ( NULL ) >= ( col0 + - CAST ( NULL AS REAL ) * col2 )
----

query I rowsort
SELECT DISTINCT col1 + + 88 AS col2 FROM tab1
----
102
135
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8993
SELECT ALL + col0 + + col1 / - 87 FROM tab0 WHERE NULL BETWEEN + col1 + - col2 * + CAST( col1 AS SIGNED ) AND col0
----

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL + col0 + + col1 / - 87 FROM tab0 WHERE NULL BETWEEN + col1 + - col2 * + CAST ( col1 AS INTEGER ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL MAX( DISTINCT col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT DISTINCT col2 / 98 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT COUNT( * ) + - AVG ( - 85 ) AS col2 FROM tab1 WHERE col2 * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT COUNT ( * ) + - AVG ( - 85 ) AS col2 FROM tab1 WHERE col2 * col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8997
SELECT ALL - CAST( MAX( ALL col0 ) AS SIGNED ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL - CAST ( MAX ( ALL col0 ) AS INTEGER ) FROM tab2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT 18 DIV - col1 + col2 AS col0 FROM tab1
----
56
68
95

skipif mysql # not compatible
query I rowsort label-8998
SELECT 18 / - col1 + col2 AS col0 FROM tab1
----
56
68
95

query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab0
----
-42

query I rowsort
SELECT DISTINCT 97 FROM tab1 WHERE NOT NULL IS NOT NULL
----
97

query I rowsort
SELECT ALL - 67 * + 57 AS col0 FROM tab1
----
-3819
-3819
-3819

query III rowsort
SELECT * FROM tab2 WHERE + col0 < col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE col0 = col2
----

query I rowsort
SELECT DISTINCT - col1 * + 76 FROM tab2
----
-3876
-5092
-5852

onlyif mysql # DIV for integer division: 
query I rowsort label-9005
SELECT 40 DIV col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9005
SELECT 40 / col0 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9006
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( - 21 - ( + CAST( col1 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-9006
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( - 21 - ( + CAST ( col1 AS REAL ) ) )
----

query I rowsort
SELECT DISTINCT ( + 32 ) * - 43 + - col0 FROM tab1
----
-1427
-1461
-1467

query III rowsort
SELECT * FROM tab2 WHERE col0 = ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + col0 ) * - 47 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 / + col1 + - col2 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 * - col1 IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9011
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 * - col1 IN ( - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT - MIN( col2 ) + - COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9012
SELECT - MIN ( col2 ) + - COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT - col0 + + 21 AS col0 FROM tab2 AS cor0
----
-25
-43
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 21 + + col0 col2 FROM tab1 cor0
----
-1020
-1700
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT COUNT( ALL + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 93 * - 17 AS col2 FROM tab0 AS cor0
----
-1581

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * - col0 col1 FROM tab2 AS cor0
----
-2024
-2816
-3300

query I rowsort
SELECT + col2 + + 41 FROM tab0 cor0
----
140
51
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT - CAST( - ( + AVG ( - col2 ) ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT - CAST ( - ( + AVG ( - col2 ) ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND - 56
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 / col2 + 20 ) < - ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 43 * 83 AS col1 FROM tab0
----
3569
3569
3569

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ( COUNT( ALL - col2 ) ) * - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9022
SELECT ( COUNT ( ALL - col2 ) ) * - COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT + 61 AS col0 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + 55 * 89 FROM tab1 AS cor0
----
4895
4895
4895

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT + - MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9025
SELECT + - MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 43 * col0 FROM tab1 AS cor0
----
-2193
-3655
-3913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col2 FROM tab0 cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL - MIN( DISTINCT + 72 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL - MIN ( DISTINCT + 72 ) FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT - MIN( DISTINCT col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9030
SELECT - MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN ( + col1 ) AND - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT + COUNT( * ) * + + 91 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT + COUNT ( * ) * + + 91 FROM tab1
----
273

query I rowsort
SELECT + 30 * - - 97 * 1 FROM tab0
----
2910
2910
2910

query I rowsort
SELECT + 97 + - col1 FROM tab1
----
50
83
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9035
SELECT + 82 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND ( col2 ) NOT BETWEEN CAST( NULL AS DECIMAL ) AND ( ( + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-9035
SELECT + 82 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND ( col2 ) NOT BETWEEN CAST ( NULL AS REAL ) AND ( ( + col1 ) )
----

query I rowsort
SELECT ALL + - 20 AS col1 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - 92 * + col2 + + col2 * + 89 AS col0 FROM tab0 AS cor0
----
-141
-297
-30

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 79 + - + 92 + + ( col1 ) FROM tab1 AS cor0
----
-124
-157
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT - COUNT( * ) + 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9040
SELECT - COUNT ( * ) + 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ( - 26 ) * - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9041
SELECT ( - 26 ) * - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
234

query I rowsort
SELECT - ( + 92 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT COUNT( * ) FROM tab0 WHERE + col1 NOT BETWEEN NULL AND ( col0 )
----
1

skipif mysql # not compatible
query I rowsort label-9043
SELECT COUNT ( * ) FROM tab0 WHERE + col1 NOT BETWEEN NULL AND ( col0 )
----
1

query I rowsort
SELECT DISTINCT 36 + + - col0 + + - 86 * + col1 FROM tab1
----
-1219
-4097
-479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 91 * col2 * 27 IS NULL
----

query I rowsort
SELECT ALL - + 56 FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9049
SELECT DISTINCT + 48 - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + 48 - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col0 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 41 + - 53 * + 2 * - col0 + col0 FROM tab0 AS cor0
----
10420
1646
9350

query I rowsort
SELECT + 74 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col0 col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + 48 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9057
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col2 + col1 NOT BETWEEN + ( - 69 ) AND col0 + 95
----
0

skipif mysql # not compatible
query I rowsort label-9059
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col2 + col1 NOT BETWEEN + ( - 69 ) AND col0 + 95
----
0

query I rowsort
SELECT ALL + col2 * - + 61 FROM tab2
----
-1403
-2440
-3538

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - - col2 AND - 41
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9063
SELECT - MAX( DISTINCT - col2 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT - MAX ( DISTINCT - col2 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + + 67 col0 FROM tab0
----
154
154
154

query I rowsort
SELECT + col2 + 12 FROM tab1
----
108
71
80

query I rowsort
SELECT DISTINCT + col1 + - 37 AS col1 FROM tab0
----
-16
-36
44

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 * - 4 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT COUNT( * ) FROM tab2 WHERE 24 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9068
SELECT COUNT ( * ) FROM tab2 WHERE 24 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 42 + + col0 FROM tab2
----
22
33
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9070
SELECT DISTINCT + COUNT( * ) DIV 14 + 65 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT + COUNT ( * ) / 14 + 65 FROM tab1 AS cor0
----
65

query I rowsort
SELECT DISTINCT - 69 * - col2 FROM tab2 AS cor0
----
1587
2760
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + + 59 * COUNT( * ) FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9072
SELECT + + 59 * COUNT ( * ) FROM tab0 AS cor0
----
177

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 + - col2 ) NOT BETWEEN col2 AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT + COUNT( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9075
SELECT + COUNT ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT + 33 DIV + 49 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9076
SELECT + 33 / + 49 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * - + col2 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT ALL + 1, col1 + 47 AS col1 FROM tab1
----
1
52
1
61
1
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9079
SELECT DISTINCT + 76 AS col2, - COUNT( * ) + - - COUNT( * ) FROM tab0
----
76
0

skipif mysql # not compatible
query II rowsort label-9079
SELECT DISTINCT + 76 AS col2, - COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
76
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT - ( COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9080
SELECT - ( COUNT ( * ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 + + 72 AS col0 FROM tab1
----
119
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT - ( + - ( - - MIN( - col2 ) ) ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9082
SELECT - ( + - ( - - MIN ( - col2 ) ) ) AS col1 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT - col0 * + CAST( 82 AS SIGNED ) FROM tab0 AS cor0
----
-1230
-7134
-7954

skipif mysql # not compatible
query I rowsort label-9083
SELECT - col0 * + CAST ( 82 AS INTEGER ) FROM tab0 AS cor0
----
-1230
-7134
-7954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9084
SELECT - 78 DIV COUNT( - - 54 ) AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9084
SELECT - 78 / COUNT ( - - 54 ) AS col1 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT DISTINCT - 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( - 47 ) FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT + col1 * - 31 + + col0 AS col1 FROM tab2 cor0
----
-1535
-2002
-2323

onlyif mysql # aggregate syntax: 
query II rowsort label-9089
SELECT ALL - MAX( ALL 94 ) AS col0, + 24 AS col0 FROM tab0 AS cor0
----
-94
24

skipif mysql # not compatible
query II rowsort label-9089
SELECT ALL - MAX ( ALL 94 ) AS col0, + 24 AS col0 FROM tab0 AS cor0
----
-94
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT COUNT( - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9090
SELECT COUNT ( - col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 91 - - col0 FROM tab0 AS cor0
----
106
178
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 * - col1 col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9093
SELECT * FROM tab1 AS cor0 WHERE - col0 * - 19 BETWEEN - - 61 + - col2 + + col2 / - ( col2 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9093
SELECT * FROM tab1 AS cor0 WHERE - col0 * - 19 BETWEEN - - 61 + - col2 + + col2 / - ( col2 ) AND CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL - col2, + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT DISTINCT - - 35 * COUNT( * ) FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT - - 35 * COUNT ( * ) FROM tab1 AS cor0
----
105

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 / - col0 * - - col2 < col0
----

query I rowsort
SELECT 37 - col2 + + col1 AS col0 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( + 20 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 / 31 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 + + col2 col0 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT + col2 + + 86 FROM tab0
----
133
185
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT + 76 - + + col2 + + ( - CAST( + col1 AS SIGNED ) ) FROM tab2 WHERE NOT ( + 18 * - col0 + col1 - col1 ) IS NULL
----
-41
-49
2

skipif mysql # not compatible
query I rowsort label-9101
SELECT + 76 - + + col2 + + ( - CAST ( + col1 AS INTEGER ) ) FROM tab2 WHERE NOT ( + 18 * - col0 + col1 - col1 ) IS NULL
----
-41
-49
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT - COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9102
SELECT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9103
SELECT DISTINCT - + 54, CAST( col2 AS SIGNED ) * + + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-54
13
-54
2194
-54
9704

skipif mysql # not compatible
query II rowsort label-9103
SELECT DISTINCT - + 54, CAST ( col2 AS INTEGER ) * + + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-54
13
-54
2194
-54
9704

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9104
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9104
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 * - col1 + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT + SUM( DISTINCT - 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT + SUM ( DISTINCT - 2 ) FROM tab2
----
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 72 + + col0 / - ( + + col1 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT ALL + + CAST( + 68 AS SIGNED ) * - - col2 * col1 AS col0 FROM tab1 AS cor0
----
20060
217328
91392

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL + + CAST ( + 68 AS INTEGER ) * - - col2 * col1 AS col0 FROM tab1 AS cor0
----
20060
217328
91392

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT + 66 * - COUNT( * ) + + SUM( ALL - - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT 96 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-9110
SELECT + 66 * - COUNT ( * ) + + SUM ( ALL - - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT 96 IS NULL
----
1

query I rowsort
SELECT ( - 34 ) AS col0 FROM tab2
----
-34
-34
-34

query I rowsort
SELECT + col0 * + + 88 + - 13 FROM tab0
----
1307
7643
8523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9113
SELECT ALL col2 + + - CAST( + - 92 AS SIGNED ) + + col2 AS col1 FROM tab1
----
210
228
284

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL col2 + + - CAST ( + - 92 AS INTEGER ) + + col2 AS col1 FROM tab1
----
210
228
284

query I rowsort
SELECT DISTINCT - + 89 + + col0 FROM tab0 WHERE NULL IS NULL
----
-2
-74
8

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT col2 DIV col0 + + ( - ( col1 ) ) + - col2 * 45 FROM tab2
----
-1086
-1877
-2677

skipif mysql # not compatible
query I rowsort label-9116
SELECT col2 / col0 + + ( - ( col1 ) ) + - col2 * 45 FROM tab2
----
-1086
-1877
-2677

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9117
SELECT ALL * FROM tab2 WHERE + - CAST( - - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9117
SELECT ALL * FROM tab2 WHERE + - CAST ( - - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, col1 col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9119
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL NOT IN ( col0 * + CAST( col1 AS SIGNED ) * 97 + + + col0 + - col2 - - col0 ) ) )
----

skipif mysql # not compatible
query III rowsort label-9119
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL NOT IN ( col0 * + CAST ( col1 AS INTEGER ) * 97 + + + col0 + - col2 - - col0 ) ) )
----

query II rowsort
SELECT + col1 AS col0, 26 FROM tab2
----
51
26
67
26
77
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT DISTINCT - col2 DIV + - 83 + - 88 AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT - col2 / + - 83 + - 88 AS col1 FROM tab2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL + - COUNT( * ) * - ( + 14 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
126

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL + - COUNT ( * ) * - ( + 14 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
126

query I rowsort
SELECT ALL 88 - - col1 - col0 AS col0 FROM tab2 AS cor0
----
101
80
93

query I rowsort
SELECT DISTINCT + + col1 - + col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col1 - + 96 AS col0 FROM tab0 cor0
----
-15
-75
-95

query I rowsort
SELECT DISTINCT + - 11 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT - 14 + + col1 FROM tab2 AS cor0
----
37
53
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT 57 + - 97 * + 22 + + col2 DIV 64 * + col1 AS col0 FROM tab1 AS cor0
----
-2030
-2063
-2077

skipif mysql # not compatible
query I rowsort label-9128
SELECT 57 + - 97 * + 22 + + col2 / 64 * + col1 AS col0 FROM tab1 AS cor0
----
-2030
-2063
-2077

onlyif mysql # aggregate syntax: 
query II rowsort label-9129
SELECT COUNT( * ) * + COUNT( * ) * + 91 + COUNT( * ), 11 AS col0 FROM tab0 AS cor0
----
822
11

skipif mysql # not compatible
query II rowsort label-9129
SELECT COUNT ( * ) * + COUNT ( * ) * + 91 + COUNT ( * ), 11 AS col0 FROM tab0 AS cor0
----
822
11

query I rowsort
SELECT - + col2 * + col1 * - col0 * col2 + + col0 FROM tab1 cor0
----
1479510
19776939
6580275

query I rowsort
SELECT DISTINCT col2 - + 40 AS col0 FROM tab2 AS cor0
----
-17
0
18

query II rowsort
SELECT DISTINCT - + col2, + col1 AS col2 FROM tab1 WHERE NOT col0 * - + 98 BETWEEN ( NULL ) AND - col1 + + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT AVG ( ALL - + col0 ) + 13 + 6 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT AVG ( ALL - + col0 ) + 13 + 6 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col2 + 47 * col2 FROM tab1
----
2832
3264
4608

query I rowsort
SELECT - ( - ( - - 59 ) ) AS col0 FROM tab0
----
59
59
59

query I rowsort
SELECT ALL + 83 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT + ( - 92 ) * - COUNT( * ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-9137
SELECT + ( - 92 ) * - COUNT ( * ) FROM tab1
----
276

query I rowsort
SELECT col2 * + + col2 AS col1 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT ( 18 ) AS col0, COUNT( 52 ) AS col1 FROM tab0 WHERE NOT col1 <> + - col0 * - col2
----
18
0

skipif mysql # not compatible
query II rowsort label-9139
SELECT ( 18 ) AS col0, COUNT ( 52 ) AS col1 FROM tab0 WHERE NOT col1 <> + - col0 * - col2
----
18
0

query I rowsort
SELECT ALL + + 86 AS col2 FROM tab2 WHERE NULL IS NULL
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 BETWEEN + + col0 AND + ( 81 ) )
----

query I rowsort
SELECT ( + 59 ) AS col1 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT - + col2 * - col1 + - col1 + - col0 + + col2 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > col1
----

query II rowsort
SELECT ( col1 ), + 36 FROM tab1 AS cor0
----
14
36
47
36
5
36

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 cor0 WHERE col2 NOT IN ( + - col0 )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col1 ) col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT - COUNT( * ) - - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9147
SELECT - COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT + - COUNT( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT + CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT + CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + 71 < NULL
----

query I rowsort
SELECT DISTINCT + 10 * - col1 * - + 87 AS col1 FROM tab1 AS cor0
----
12180
40890
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT DISTINCT + - MAX( + col0 ) col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9152
SELECT DISTINCT + - MAX ( + col0 ) col1 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col0 col0 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT + - col0 + 87 FROM tab2 cor0
----
12
23
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT - COUNT( + col1 ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9155
SELECT - COUNT ( + col1 ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT ( + CAST( NULL AS SIGNED ) ) - 76 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9156
SELECT ( + CAST ( NULL AS INTEGER ) ) - 76 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9157
SELECT - 56, SUM( + col2 ) AS col1 FROM tab1 AS cor0
----
-56
223

skipif mysql # not compatible
query II rowsort label-9157
SELECT - 56, SUM ( + col2 ) AS col1 FROM tab1 AS cor0
----
-56
223

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 + + 72 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT DISTINCT + col1 DIV + - 13 + + col2 AS col1 FROM tab0 AS cor0
----
41
9
99

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT + col1 / + - 13 + + col2 AS col1 FROM tab0 AS cor0
----
41
9
99

query III rowsort
SELECT * FROM tab2 WHERE ( - - 48 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 + + col2 <> ( - ( + 77 ) + - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 FROM tab2 WHERE + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * col2 + + + 3 col1 FROM tab2
----
-102397
-24331
-252297

query I rowsort
SELECT DISTINCT - col0 + - col1 + + col1 AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL COUNT( * ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9165
SELECT ALL COUNT ( * ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - - col1 * - 0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT COUNT( * ) + - + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9167
SELECT COUNT ( * ) + - + COUNT ( * ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - col2 + - - 14 * - col2 - + 9 AS col0 FROM tab1 AS cor0
----
-1029
-1449
-894

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab2 AS cor0
----
16

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + + col2 IS NOT NULL AND NOT ( + col0 + + + 71 ) IS NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT IN ( + ( + col2 ), + 28, - col0 )
----

query I rowsort
SELECT - 89 * + col1 + - 43 FROM tab2
----
-4582
-6006
-6896

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL 93 + + MIN( ALL - col1 ) + + COUNT( * ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL 93 + + MIN ( ALL - col1 ) + + COUNT ( * ) AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT - COUNT( * ) * - + COUNT( ( + - col2 ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9176
SELECT - COUNT ( * ) * - + COUNT ( ( + - col2 ) ) FROM tab1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT - 69 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9179
SELECT DISTINCT CAST( NULL AS SIGNED ), - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-9179
SELECT DISTINCT CAST ( NULL AS INTEGER ), - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT ALL + + ( - col0 ) / - - 22 * - 70 - - CAST( NULL AS SIGNED ) * col2 + + - 17 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + + ( - col0 ) / - - 22 * - 70 - - CAST ( NULL AS INTEGER ) * col2 + + - 17 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 34 + 86 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + col1 - + - 89 FROM tab2 cor0
----
140
156
166

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9184
SELECT col0 * CAST( NULL AS SIGNED ) AS col1, col0 + + col1 DIV + - col1 FROM tab0
----
NULL
14
NULL
86
NULL
96

skipif mysql # not compatible
query II rowsort label-9184
SELECT col0 * CAST ( NULL AS INTEGER ) AS col1, col0 + + col1 / + - col1 FROM tab0
----
NULL
14
NULL
86
NULL
96

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 < 21 * - 68 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2, col2 * 74 * + + 42 - - + 43 AS col2 FROM tab1
----
-59
183415
-68
211387
-96
298411

query II rowsort
SELECT col2, - ( - + col2 ) AS col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9188
SELECT ALL - CAST( - col0 AS SIGNED ) DIV col2 + 27 AS col1 FROM tab2 WHERE NULL IS NULL
----
28
28
29

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - CAST ( - col0 AS INTEGER ) / col2 + 27 AS col1 FROM tab2 WHERE NULL IS NULL
----
28
28
29

query I rowsort
SELECT ALL + ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col1 AND NULL
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL - COUNT( ALL + 49 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL - COUNT ( ALL + 49 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-9193
SELECT + col2 * 58 DIV col1 col2, 67 * col2 AS col1 FROM tab2
----
26
1541
30
2680
50
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9193
SELECT + col2 * 58 / col1 col2, 67 * col2 AS col1 FROM tab2
----
26
1541
30
2680
50
3886

query I rowsort
SELECT ALL 17 + - 71 AS col0 FROM tab1
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9195
SELECT MIN( 7 ) + 37, + 93 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
93

skipif mysql # not compatible
query II rowsort label-9195
SELECT MIN ( 7 ) + 37, + 93 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * 85 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT + + 83 * + MAX( ALL + col0 ) FROM tab1 AS cor0
----
7553

skipif mysql # not compatible
query I rowsort label-9197
SELECT + + 83 * + MAX ( ALL + col0 ) FROM tab1 AS cor0
----
7553

query I rowsort
SELECT DISTINCT - ( + 63 ) AS col1 FROM tab1 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE - 32 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9199
SELECT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE - 32 IS NULL
----
0

query I rowsort
SELECT ALL + ( - 89 ) FROM tab0 cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT DISTINCT - COUNT( + 35 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT - COUNT ( + 35 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 32 + + - 31 AS col2 FROM tab1
----
1

query I rowsort
SELECT - col0 + - + col0 AS col1 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT col0 + + ( + col1 ) AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT 16 + + + 20 FROM tab1
----
36

query I rowsort
SELECT ( col0 ) + - col1 + ( col0 ) + + 91 AS col0 FROM tab1
----
179
226
256

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT NULL <= NULL ) )
----

query I rowsort
SELECT ALL ( + 74 ) AS col2 FROM tab1
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT DISTINCT - col1 * - - col0 / - + col1 * col0 * col0 AS col2 FROM tab2 WHERE + CAST( - - col1 AS SIGNED ) * col0 + - col1 IN ( - 61, + ( ( - CAST( NULL AS SIGNED ) ) ) + col1, 0 )
----

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT - col1 * - - col0 / - + col1 * col0 * col0 AS col2 FROM tab2 WHERE + CAST ( - - col1 AS INTEGER ) * col0 + - col1 IN ( - 61, + ( ( - CAST ( NULL AS INTEGER ) ) ) + col1, 0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 * col1 / + - 13, - col2 )
----

query II rowsort
SELECT col0 + + col2 * + + ( + + col0 ) AS col0, col0 FROM tab2
----
1104
46
2624
64
4425
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL - - COUNT( ALL col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - - COUNT ( ALL col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT - CAST( NULL AS SIGNED ) * - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9213
SELECT - CAST ( NULL AS INTEGER ) * - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 AS col2, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 AS col0, - col1 * - col1 + + 51 col1 FROM tab0 AS cor0
----
-15
6612
-87
492
-97
52

query I rowsort
SELECT ALL 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL - COUNT( * ) * - COUNT( * ) + + ( - 71 ) + + 83 AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + + ( - 71 ) + + 83 AS col0 FROM tab2 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT DISTINCT - 69 - + col1 - + + CAST( NULL AS SIGNED ) * + + 70 * + 86 + + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT - 69 - + col1 - + + CAST ( NULL AS INTEGER ) * + + 70 * + 86 + + col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT - - COUNT( * ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9219
SELECT - - COUNT ( * ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT - + SUM( - + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9220
SELECT - + SUM ( - + col2 ) FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT + COUNT( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9222
SELECT + COUNT ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + col1 * - - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9224
SELECT - CAST( + - col1 AS SIGNED ) * + 2 AS col0, 72 FROM tab2
----
102
72
134
72
154
72

skipif mysql # not compatible
query II rowsort label-9224
SELECT - CAST ( + - col1 AS INTEGER ) * + 2 AS col0, 72 FROM tab2
----
102
72
134
72
154
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT DISTINCT + MIN( - - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT + MIN ( - - col1 ) FROM tab0
----
1

query I rowsort
SELECT 18 * 44 * - 90 * - + col0 AS col0 FROM tab2
----
3278880
4561920
5346000

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL + COUNT( * ) * - - COUNT( DISTINCT + 69 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL + COUNT ( * ) * - - COUNT ( DISTINCT + 69 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col2 * 72 FROM tab1
----
-4248
-4896
-6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * + col2 col0 FROM tab1
----
4425
5100
7200

query I rowsort
SELECT + ( - ( - col1 ) ) AS col2 FROM tab1 WHERE NOT - 63 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT ALL CAST( NULL AS SIGNED ) / - 7 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL CAST ( NULL AS INTEGER ) / - 7 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * 87 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT - MIN( DISTINCT + 98 ) AS col1 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9233
SELECT - MIN ( DISTINCT + 98 ) AS col1 FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + MIN( ALL - col0 ) AS col1 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9234
SELECT + MIN ( ALL - col0 ) AS col1 FROM tab2 cor0
----
-75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9236
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col2 * - col2 + + 35 AS col0 FROM tab0 cor0
----
135
2244
9836

query I rowsort
SELECT ALL - - ( - 73 ) AS col0 FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT - + ( + + COUNT( ALL col2 ) ) col0 FROM tab2 AS cor0 WHERE col0 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9241
SELECT - + ( + + COUNT ( ALL col2 ) ) col0 FROM tab2 AS cor0 WHERE col0 = NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9242
SELECT + col2 * + - col2 AS col0, col2 * - col2 + + col1 DIV col2 AS col1 FROM tab2 AS cor0
----
-1600
-1599
-3364
-3363
-529
-527

skipif mysql # not compatible
query II rowsort label-9242
SELECT + col2 * + - col2 AS col0, col2 * - col2 + + col1 / col2 AS col1 FROM tab2 AS cor0
----
-1600
-1599
-3364
-3363
-529
-527

query I rowsort
SELECT col1 * - + col2 + - + 84 + - col1 FROM tab2 AS cor0
----
-1308
-3241
-4037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9244
SELECT + MAX( CAST( + - 64 AS SIGNED ) ) FROM tab1 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9244
SELECT + MAX ( CAST ( + - 64 AS INTEGER ) ) FROM tab1 cor0
----
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + - ( col0 ) IS NOT NULL OR NOT ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 67 AS col1 FROM tab0 AS cor0 WHERE - col0 > NULL
----

query I rowsort
SELECT DISTINCT - 93 + col0 + + col0 FROM tab2 cor0
----
-1
35
57

query I rowsort
SELECT ALL - 22 + col0 + col1 - col0 + + 0 FROM tab2
----
29
45
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT - COUNT( ALL + + col0 ) * - 11 col0 FROM tab2
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9249
SELECT DISTINCT - COUNT ( ALL + + col0 ) * - 11 col0 FROM tab2
----
33

query III rowsort
SELECT ALL * FROM tab1 WHERE + - ( + + col0 ) - - 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col0 * - col2 > + - 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT MIN( - + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9252
SELECT MIN ( - + col1 ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT col2 + + ( col1 ) AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT - - col1 * - col1 * - + col2 + + 42 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - ( + + col0 ) + 64 * - + col0 FROM tab0
----
-5655
-6305
-975

query I rowsort
SELECT - 60 - + col2 AS col1 FROM tab1
----
-119
-128
-156

query I rowsort
SELECT - + col2 + + 55 - + + col1 * + col2 FROM tab1 AS cor0
----
-1385
-299
-3209

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > NULL
----

query I rowsort
SELECT DISTINCT + + 59 AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT COUNT( * ) * - 94 col2 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9260
SELECT DISTINCT COUNT ( * ) * - 94 col2 FROM tab1 AS cor0
----
-282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab0 AS cor0 WHERE col1 + - col2 * + col1 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 67 * col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 * + 4 + - 33 col2 FROM tab0 AS cor0
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT DISTINCT col0 DIV + 73 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT col0 / + 73 AS col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ALL ( + COUNT( * ) ) * - 65 AS col2 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL ( + COUNT ( * ) ) * - 65 AS col2 FROM tab0 AS cor0
----
-195

query I rowsort
SELECT - - 69 * + 57 AS col1 FROM tab2 AS cor0
----
3933
3933
3933

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9267
SELECT DISTINCT + 61 DIV - 72 * - ( - - COUNT( * ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT + 61 / - 72 * - ( - - COUNT ( * ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT + 0 * 13 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 * - 52 FROM tab1
----
-2652
-4420
-4732

query I rowsort
SELECT + 66 * + 43 AS col2 FROM tab0
----
2838
2838
2838

query I rowsort
SELECT + ( col0 ) + ( - + 9 ) AS col1 FROM tab1 WHERE NOT ( ( col1 ) * - - ( col1 ) IS NULL )
----
42
76
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT + 84 * COUNT( * ) AS col0 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-9272
SELECT + 84 * COUNT ( * ) AS col0 FROM tab2
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT ALL - CAST( + col2 AS SIGNED ) * 88 AS col0 FROM tab1
----
-5192
-5984
-8448

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL - CAST ( + col2 AS INTEGER ) * 88 AS col0 FROM tab1
----
-5192
-5984
-8448

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT ALL + 88 * - + 36 + col1 DIV - + col2 FROM tab0 cor0
----
-3168
-3169
-3170

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + 88 * - + 36 + col1 / - + col2 FROM tab0 cor0
----
-3168
-3169
-3170

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col1 - + + ( col0 ), - ( + ( - + col1 ) ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 62 >= - - col1
----

query II rowsort
SELECT col1 AS col0, - col1 - - col0 - - col2 FROM tab1
----
14
133
47
112
5
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9278
SELECT - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col2 FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT DISTINCT - SUM( + col1 ) AS col1 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT - SUM ( + col1 ) AS col1 FROM tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9281
SELECT + MIN( DISTINCT + col0 ) + 6 AS col2, SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
52
185

skipif mysql # not compatible
query II rowsort label-9281
SELECT + MIN ( DISTINCT + col0 ) + 6 AS col2, SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
52
185

onlyif mysql # DIV for integer division: 
query I rowsort label-9282
SELECT + col1 + - col2 DIV col1 AS col1 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-9282
SELECT + col1 + - col2 / col1 AS col1 FROM tab0 AS cor0
----
-98
21
81

query I rowsort
SELECT + - 65 + - col2 FROM tab2 AS cor0
----
-105
-123
-88

query I rowsort
SELECT - ( - col2 ) + + col1 * col0 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT ALL + + col1 * - + 15 FROM tab1 AS cor0
----
-210
-705
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 + + col2 * + ( + 52 ) col2 FROM tab1 AS cor0
----
3160
3628
5084

query I rowsort
SELECT col1 + - col0 + - col1 FROM tab0
----
-15
-87
-97

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 ALL + 37 + - col2 FROM tab0
----
-10
-62
27

query I rowsort
SELECT - col0 + - 41 FROM tab0
----
-128
-138
-56

query I rowsort
SELECT ALL 9 + - - 46 + col0 AS col2 FROM tab0
----
142
152
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9292
SELECT - col1 + + - col1 * CAST( NULL AS DECIMAL ) FROM tab0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9292
SELECT - col1 + + - col1 * CAST ( NULL AS REAL ) FROM tab0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 + - 49 col0 FROM tab2
----
-2395
-4977
-5074

query I rowsort
SELECT DISTINCT + col0 * + col2 + - ( + - col1 ) + + - 34 AS col2 FROM tab1
----
4876
4986
6201

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT + SUM( DISTINCT + col2 ) AS col2 FROM tab1 WHERE + + col2 IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + SUM ( DISTINCT + col2 ) AS col2 FROM tab1 WHERE + + col2 IS NOT NULL
----
223

query I rowsort
SELECT ALL - 61 - - col2 * - - col2 AS col2 FROM tab0
----
2148
39
9740

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9297
SELECT * FROM tab0 cor0 WHERE + 10 BETWEEN NULL AND + col0 * + CAST( NULL AS SIGNED ) - - col1 * + + col2
----

skipif mysql # not compatible
query III rowsort label-9297
SELECT * FROM tab0 cor0 WHERE + 10 BETWEEN NULL AND + col0 * + CAST ( NULL AS INTEGER ) - - col1 * + + col2
----

query I rowsort
SELECT 47 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT COUNT( * ) * + 54 * - 11 col2 FROM tab2 AS cor0
----
-1782

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9299
SELECT DISTINCT COUNT ( * ) * + 54 * - 11 col2 FROM tab2 AS cor0
----
-1782

query I rowsort
SELECT DISTINCT + 39 * col2 AS col2 FROM tab2
----
1560
2262
897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT ALL + CAST( NULL AS SIGNED ) * + + 91 * + + ( + 30 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 91 * + + ( + 30 ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9303
SELECT DISTINCT - SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT - SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL - 71 * + + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - 71 * + + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-213

query I rowsort
SELECT DISTINCT - 19 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN col2 + + - col2 - - col2 AND + - 55 * col1
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * 75 col0 FROM tab2 AS cor0
----
-3825
-5025
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT MAX( + - 80 ) FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9307
SELECT MAX ( + - 80 ) FROM tab0 AS cor0
----
-80

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT 4 IS NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 > NULL
----

query I rowsort
SELECT ALL + col0 * + 71 FROM tab0
----
1065
6177
6887

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9311
SELECT + 8 * + 22 * - col1 * + + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9311
SELECT + 8 * + 22 * - col1 * + + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * col2 * - + col1 + col2 FROM tab2 WHERE - col2 - - col2 IS NOT NULL
----
237200
260420
59846

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT - SUM( ALL + + 89 ) * - COUNT( * ) + - + COUNT( + - col1 ) FROM tab1
----
798

skipif mysql # not compatible
query I rowsort label-9313
SELECT - SUM ( ALL + + 89 ) * - COUNT ( * ) + - + COUNT ( + - col1 ) FROM tab1
----
798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT + 58 col1 FROM tab0 WHERE NOT - CAST( + 50 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9314
SELECT + 58 col1 FROM tab0 WHERE NOT - CAST ( + 50 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col2, 28 * - + col0 + - - col1 FROM tab2 AS cor0
----
23
-1237
40
-1715
58
-2033

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT + ( + - 72 ) * - COUNT( * ) * 58 FROM tab1 AS cor0
----
12528

skipif mysql # not compatible
query I rowsort label-9316
SELECT + ( + - 72 ) * - COUNT ( * ) * 58 FROM tab1 AS cor0
----
12528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT - CAST( - 41 AS SIGNED ) FROM tab1 cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-9317
SELECT - CAST ( - 41 AS INTEGER ) FROM tab1 cor0
----
41
41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT ALL col0 DIV + 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL col0 / + 90 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9319
SELECT COUNT( * ) * + SUM( - + col0 ) + CAST( + - COUNT( * ) AS SIGNED ) * + + 81 + + 4 AS col2 FROM tab1
----
-920

skipif mysql # not compatible
query I rowsort label-9319
SELECT COUNT ( * ) * + SUM ( - + col0 ) + CAST ( + - COUNT ( * ) AS INTEGER ) * + + 81 + + 4 AS col2 FROM tab1
----
-920

query I rowsort
SELECT col0 + - + 60 AS col0 FROM tab2
----
-14
15
4

query I rowsort
SELECT + - 56 + - col2 AS col2 FROM tab1 AS cor0
----
-115
-124
-152

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + + ( + 56 ) AS col1 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT + - col2 AS col1 FROM tab2 AS cor0 WHERE - col0 * + - 50 + 58 IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 47 * col2 col2 FROM tab0 cor0
----
-33135
-40890
-451341

onlyif mysql # DIV for integer division: 
query I rowsort label-9326
SELECT ALL 85 DIV 78 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL 85 / 78 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9327
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) - + - 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9327
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) - + - 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9328
SELECT DISTINCT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9328
SELECT DISTINCT * FROM tab0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 39 - col2 - + + ( col1 ) FROM tab0
----
-61
-89
8

query I rowsort
SELECT ALL + col2 + + 95 FROM tab2
----
118
135
153

query I rowsort
SELECT col0 + - + col2 AS col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL col1 - 72 AS col1 FROM tab1
----
-25
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT COUNT( * ) + - 38 FROM tab0 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9333
SELECT COUNT ( * ) + - 38 FROM tab0 cor0
----
-35

query I rowsort
SELECT + col2 + - ( 19 ) FROM tab0 AS cor0
----
-9
28
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 88 IS NOT NULL
----

query II rowsort
SELECT col0 * + col1 AS col1, + col0 AS col1 FROM tab2
----
2346
46
4928
64
5025
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ALL - COUNT( * ) * ( - - COUNT( * ) ) * - - MIN( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
522

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL - COUNT ( * ) * ( - - COUNT ( * ) ) * - - MIN ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
522

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 36 + - + col1 + + + col2 AND - - col2
----

query I rowsort
SELECT DISTINCT - + col0 * col0 * - ( + - col1 ) FROM tab1 cor0
----
-36125
-36414
-389207

query II rowsort
SELECT DISTINCT - + col0 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT DISTINCT col2, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT ALL - col2 AS col0, col1 * + col1 * - col2 AS col1, col0 FROM tab1 AS cor0
----
9 values hashing to 55ca7bea901d01ad1683b4998ed97fa8

query I rowsort
SELECT DISTINCT - 67 * + - col1 FROM tab2
----
3417
4489
5159

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL < 62
----

query II rowsort
SELECT DISTINCT 12 * - col1, col0 AS col0 FROM tab1
----
-168
51
-564
91
-60
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 12 * - col0, + 89 AS col1 FROM tab0 AS cor0
----
-1044
89
-1164
89
-180
89

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( ( NOT NULL IS NOT NULL ) )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9350
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - 65 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-585

skipif mysql # not compatible
query I rowsort label-9350
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - 65 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-585

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE col0 * + - col0 * + + col0 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - 58 + - ( + ( - col2 ) ) + + 78 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + col0 * - ( - - 94 ) + - col1
----

query I rowsort
SELECT + + 79 + - 40 AS col1 FROM tab2 AS cor0
----
39
39
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1, 42 )
----

query I rowsort
SELECT ALL 22 + - 92 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-70
-70
-70

query I rowsort
SELECT - + 25 + + + col2 AS col0 FROM tab0 AS cor0
----
-15
22
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT MIN( col2 ) + + - 75 + + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9359
SELECT MIN ( col2 ) + + - 75 + + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT + - col2 * - col2 + + ( - - ( + + col0 ) ) FROM tab2 cor0
----
1664
3439
575

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 = - 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0 AS col1, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query II rowsort
SELECT DISTINCT - + 56 AS col0, - col1 FROM tab1 AS cor0
----
-56
-14
-56
-47
-56
-5

query I rowsort
SELECT ALL 31 * 98 AS col1 FROM tab2
----
3038
3038
3038

query I rowsort
SELECT - col0 * + col0 * + col2 AS col0 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT - MAX( DISTINCT - col1 ) - - 45 AS col1 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT - MAX ( DISTINCT - col1 ) - - 45 AS col1 FROM tab0
----
46

query I rowsort
SELECT ALL col1 + + - col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - 65 * - + col2 FROM tab0
----
3055
6435
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT ALL - CAST( NULL AS SIGNED ) / 7 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - CAST ( NULL AS INTEGER ) / 7 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9370
SELECT DISTINCT * FROM tab2 WHERE ( - + CAST( NULL AS SIGNED ) + + + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9370
SELECT DISTINCT * FROM tab2 WHERE ( - + CAST ( NULL AS INTEGER ) + + + col2 ) IS NOT NULL
----

query I rowsort
SELECT 71 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - ( - + col2 ), 26, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + + col2 ), - col0 col1 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT ALL + + 2 AS col2 FROM tab1 AS cor0
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - - col2 ) * 38 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9375
SELECT + CAST( COUNT( * ) AS SIGNED ) * - COUNT( DISTINCT 67 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9375
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( DISTINCT 67 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL + - ( + - ( - CAST( NULL AS SIGNED ) ) ) * + 27 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + - ( + - ( - CAST ( NULL AS INTEGER ) ) ) * + 27 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - + 16
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9378
SELECT + 12, + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
12
9

skipif mysql # not compatible
query II rowsort label-9378
SELECT + 12, + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
12
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT 18 DIV col0 - + ( + 95 ) + - + col1 FROM tab1 AS cor0
----
-100
-109
-142

skipif mysql # not compatible
query I rowsort label-9379
SELECT 18 / col0 - + ( + 95 ) + - + col1 FROM tab1 AS cor0
----
-100
-109
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-9380
SELECT - COUNT( * ) * - - ( + + 38 ) AS col0, 50 FROM tab2 cor0
----
-114
50

skipif mysql # not compatible
query II rowsort label-9380
SELECT - COUNT ( * ) * - - ( + + 38 ) AS col0, 50 FROM tab2 cor0
----
-114
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT - AVG ( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT - + MAX( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9382
SELECT - + MAX ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL - - COUNT( * ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9383
SELECT ALL - - COUNT ( * ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + + 26 * - 59 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col0 FROM tab0
----
-40
-40
-40

query I rowsort
SELECT + ( - + col2 ) AS col0 FROM tab2 WHERE NOT - - col2 * + 88 < - col2 + - + col2
----
-23
-40
-58

query I rowsort
SELECT ALL 49 * col2 AS col0 FROM tab0
----
2303
4851
490

query I rowsort
SELECT ALL col0 * + ( col1 ) + + - 3 FROM tab1
----
422
4274
711

onlyif mysql # DIV for integer division: 
query II rowsort label-9389
SELECT ALL col2 AS col0, col2 DIV + - col2 FROM tab2
----
23
-1
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-9389
SELECT ALL col2 AS col0, col2 / + - col2 FROM tab2
----
23
-1
40
-1
58
-1

query II rowsort
SELECT ALL - col0 AS col2, col0 FROM tab1
----
-51
51
-85
85
-91
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT + - 97 DIV 3 FROM tab1 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-9392
SELECT + - 97 / 3 FROM tab1 AS cor0
----
-32
-32
-32

query II rowsort
SELECT DISTINCT + col1 AS col2, + 62 FROM tab2 AS cor0
----
51
62
67
62
77
62

query II rowsort
SELECT ALL + 40, col0 FROM tab0 AS cor0
----
40
15
40
87
40
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + COUNT( * ) + - - 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-9395
SELECT + COUNT ( * ) + - - 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
74

query I rowsort
SELECT col2 * + - col0 - + + col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: 
query II rowsort label-9397
SELECT + SUM( ALL col0 ) AS col1, + 87 AS col0 FROM tab1 AS cor0
----
227
87

skipif mysql # not compatible
query II rowsort label-9397
SELECT + SUM ( ALL col0 ) AS col1, + 87 AS col0 FROM tab1 AS cor0
----
227
87

query I rowsort
SELECT ( - col2 ) - - col0 * col2 FROM tab2 AS cor0
----
1035
2520
4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col0 FROM tab0 AS cor0
----
-27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * + - col0 NOT BETWEEN NULL AND ( - 28 )
----

query I rowsort
SELECT col2 - + - 32 FROM tab0 AS cor0
----
131
42
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - 17 / + - 50 )
----

query I rowsort
SELECT DISTINCT + 73 * + ( col0 ) FROM tab0
----
1095
6351
7081

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 * + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT COUNT( * ) * + 86 AS col2 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT COUNT ( * ) * + 86 AS col2 FROM tab2
----
258

query I rowsort
SELECT DISTINCT + 39 + - + col0 AS col0 FROM tab0 WHERE NOT - + col2 * + 84 * - 58 IS NULL
----
-48
-58
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9407
SELECT DISTINCT - 5 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT - 5 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ALL + MIN( DISTINCT + + 43 ) AS col1 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL + MIN ( DISTINCT + + 43 ) AS col1 FROM tab1
----
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9409
SELECT DISTINCT + CAST( 39 AS SIGNED ) DIV + + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT + CAST ( 39 AS INTEGER ) / + + col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9410
SELECT - 74 * - + ( + CAST( - + col2 AS SIGNED ) ) * - - ( 35 ) - + 20 DIV + + 97 FROM tab0
----
-121730
-256410
-25900

skipif mysql # not compatible
query I rowsort label-9410
SELECT - 74 * - + ( + CAST ( - + col2 AS INTEGER ) ) * - - ( 35 ) - + 20 / + + 97 FROM tab0
----
-121730
-256410
-25900

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT + MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9411
SELECT + MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 89 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + 78 ) * + - 91 * 69 FROM tab0 AS cor0
----
-489762
-489762
-489762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9415
SELECT ALL + COUNT( * ) DIV + COUNT( * ) col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9415
SELECT ALL + COUNT ( * ) / + COUNT ( * ) col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 7 FROM tab2 cor0
----
-7

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab2 cor0
----
87

query I rowsort
SELECT + col0 + ( + col0 ) + - - 95 * - - 30 + + col1 * + col0 AS col1 FROM tab1
----
3445
3666
7309

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 4 IS NULL
----

query I rowsort
SELECT + col2 + - 41 FROM tab2
----
-1
-18
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL MIN( + + col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL MIN ( + + col1 ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT ALL COUNT( * ) * + COUNT( * ) + + SUM( + - col1 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + SUM ( + - col1 ) FROM tab1
----
-57

query I rowsort
SELECT ALL + - 3 * col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + + 64 * - - ( - + 24 ) * - ( - 4 ) AS col0 FROM tab2
----
-6195
-6211
-6221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 * + - 80 + + 22 - 64 col1 FROM tab0
----
-5002

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - COUNT( * ) * - COUNT( * ) * + 46 + - - COUNT( * ) * COUNT( * ) * - - SUM( DISTINCT + - col1 ) AS col1 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-9427
SELECT - COUNT ( * ) * - COUNT ( * ) * + 46 + - - COUNT ( * ) * COUNT ( * ) * - - SUM ( DISTINCT + - col1 ) AS col1 FROM tab1
----
-180

query I rowsort
SELECT - 87 * - + col1 AS col1 FROM tab0 AS cor0
----
1827
7047
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col1 FROM tab0 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9430
SELECT DISTINCT + SUM( 90 ) DIV - 45 AS col0 FROM tab0 AS cor0 WHERE NOT + 17 BETWEEN + CAST( NULL AS DECIMAL ) * - ( + 70 ) + + col0 AND - col1
----
-6

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT + SUM ( 90 ) / - 45 AS col0 FROM tab0 AS cor0 WHERE NOT + 17 BETWEEN + CAST ( NULL AS REAL ) * - ( + 70 ) + + col0 AND - col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT ALL MIN( DISTINCT - - ( + 39 ) ) AS col1 FROM tab2 cor0
----
39

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL MIN ( DISTINCT - - ( + 39 ) ) AS col1 FROM tab2 cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT 25 / + col1 * - col2 + ( + - col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT 25 / + col1 * - col2 + ( + - col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT DISTINCT col1 * CAST( + - col1 AS SIGNED ) FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT col1 * CAST ( + - col1 AS INTEGER ) FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT 40 - + + col0 FROM tab1
----
-11
-45
-51

query I rowsort
SELECT + col1 * - + col2 FROM tab1 AS cor0 WHERE - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT ALL - CAST( NULL AS SIGNED ) - - 2 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-9436
SELECT ALL - CAST ( NULL AS INTEGER ) - - 2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 65 NOT BETWEEN - col2 - - ( + ( + + col2 ) ) AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT 31 + + COUNT( * ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9438
SELECT 31 + + COUNT ( * ) FROM tab0 AS cor0
----
34

query II rowsort
SELECT DISTINCT 99 - + 14, 57 AS col1 FROM tab1 AS cor0
----
85
57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL - 71 - 31 AS col0 FROM tab2 AS cor0
----
-102
-102
-102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9442
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 / - col1 NOT IN ( - 4 - + + CAST( NULL AS SIGNED ) * 72 + + 75 )
----

skipif mysql # not compatible
query III rowsort label-9442
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 / - col1 NOT IN ( - 4 - + + CAST ( NULL AS INTEGER ) * 72 + + 75 )
----

query II rowsort
SELECT - - col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT ALL - 32 * + col1 FROM tab1 AS cor0
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT + COUNT( + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9445
SELECT + COUNT ( + col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 65 * + 37 * col0 AS col0 FROM tab2
----
110630
153920
180375

query I rowsort
SELECT col2 * - - col1 * + col2 * 39 FROM tab1
----
5031936
678795
8475792

query I rowsort
SELECT ALL 24 * 43 AS col1 FROM tab2
----
1032
1032
1032

onlyif mysql # aggregate syntax: 
query II rowsort label-9449
SELECT MAX( - + 76 ), 51 AS col0 FROM tab2
----
-76
51

skipif mysql # not compatible
query II rowsort label-9449
SELECT MAX ( - + 76 ), 51 AS col0 FROM tab2
----
-76
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT ALL col1 + col0 FROM tab2 WHERE NOT ( - 51 * + 6 / + + ( - 64 ) ) NOT IN ( ( - + col1 ) * col1 + + ( - 61 ), + col1, - col1, - + col1, - col1 * col2, CAST( NULL AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL col1 + col0 FROM tab2 WHERE NOT ( - 51 * + 6 / + + ( - 64 ) ) NOT IN ( ( - + col1 ) * col1 + + ( - 61 ), + col1, - col1, - + col1, - col1 * col2, CAST ( NULL AS INTEGER ) + - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 70 * 5 * - col0 - + + col1 + 58 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9452
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 * - + col0 AS col0 FROM tab1 cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col2 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
1241034
16904100
7884800

onlyif mysql # aggregate syntax: 
query II rowsort label-9455
SELECT DISTINCT - COUNT( * ) AS col2, 36 AS col2 FROM tab2
----
-3
36

skipif mysql # not compatible
query II rowsort label-9455
SELECT DISTINCT - COUNT ( * ) AS col2, 36 AS col2 FROM tab2
----
-3
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / + 34 + + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - col0 + 12 FROM tab2 AS cor0
----
-2104
-4084
-5613

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT + 27 + - ( - + 77 ) AS col2, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
104
-3

skipif mysql # not compatible
query II rowsort label-9458
SELECT + 27 + - ( - + 77 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
104
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9459
SELECT ALL MIN( - col2 ) * + COUNT( * ) AS col1, - 6 AS col1 FROM tab2 AS cor0
----
-174
-6

skipif mysql # not compatible
query II rowsort label-9459
SELECT ALL MIN ( - col2 ) * + COUNT ( * ) AS col1, - 6 AS col1 FROM tab2 AS cor0
----
-174
-6

query II rowsort
SELECT ALL + col2, + ( + 67 ) AS col1 FROM tab0 AS cor0
----
10
67
47
67
99
67

query I rowsort
SELECT ALL col0 + + + 38 FROM tab2 AS cor0
----
102
113
84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 68 - + col1 + + 75 AND - col2
----

query I rowsort
SELECT DISTINCT - 4 * - col0 - - col0 FROM tab2 cor0
----
230
320
375

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 24 + - - col2 + - - 40 - - - 19 FROM tab1 AS cor0
----
104
113
141

query I rowsort
SELECT ALL 42 + - 97 FROM tab0
----
-55
-55
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9467
SELECT MAX( - - 66 ), + CAST( NULL AS DECIMAL ) * + - 25 FROM tab0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9467
SELECT MAX ( - - 66 ), + CAST ( NULL AS REAL ) * + - 25 FROM tab0 WHERE NULL IS NOT NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT MAX( ALL - 91 ) AS col2 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT MAX ( ALL - 91 ) AS col2 FROM tab0
----
-91

query I rowsort
SELECT ALL + col1 + - col1 * - col2 AS col0 FROM tab2
----
1224
3157
3953

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9470
SELECT + ( + 3 ) AS col0, - col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL
3
NULL
3
NULL

skipif mysql # not compatible
query II rowsort label-9470
SELECT + ( + 3 ) AS col0, - col1 + + CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL
3
NULL
3
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL >= + 87 * - 66 + 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT - SUM( ALL col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9472
SELECT - SUM ( ALL col2 ) FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - - 5 IS NOT NULL AND NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - - 5 IS NOT NULL AND NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - - + col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col1 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL BETWEEN col0 AND NULL
----

query II rowsort
SELECT + col2, col0 + + 55 FROM tab2 AS cor0
----
23
101
40
119
58
130

query I rowsort
SELECT + 94 * - + ( + - col1 ) AS col1 FROM tab1 cor0
----
1316
4418
470

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9479
SELECT + CAST( NULL AS DECIMAL ) + ( + col2 ) * + + CAST( NULL AS SIGNED ) + col2 - - col2 * - col1 * - + ( - 0 ) / - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 + - 59 / col0 + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9479
SELECT + CAST ( NULL AS REAL ) + ( + col2 ) * + + CAST ( NULL AS INTEGER ) + col2 - - col2 * - col1 * - + ( - 0 ) / - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 + - 59 / col0 + + col2 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL - COUNT( * ) * - + 67 * + 75 AS col2 FROM tab0
----
15075

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - COUNT ( * ) * - + 67 * + 75 AS col2 FROM tab0
----
15075

query I rowsort
SELECT DISTINCT col1 * + col0 * - col0 AS col2 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query II rowsort label-9484
SELECT DISTINCT MIN( + col1 ), - ( - SUM( col0 ) ) AS col2 FROM tab2
----
51
185

skipif mysql # not compatible
query II rowsort label-9484
SELECT DISTINCT MIN ( + col1 ), - ( - SUM ( col0 ) ) AS col2 FROM tab2
----
51
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9485
SELECT ALL col1, col0 * + col2 * CAST( NULL AS SIGNED ), ( - col1 ) AS col0 FROM tab1
----
9 values hashing to 0e93d1fc012df55093b7c9d500805391

skipif mysql # not compatible
query III rowsort label-9485
SELECT ALL col1, col0 * + col2 * CAST ( NULL AS INTEGER ), ( - col1 ) AS col0 FROM tab1
----
9 values hashing to 0e93d1fc012df55093b7c9d500805391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + col2 col1 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT SUM( DISTINCT - - 51 ) AS col0 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-9487
SELECT SUM ( DISTINCT - - 51 ) AS col0 FROM tab0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9489
SELECT - COUNT( * ) DIV + 11 * SUM( ALL - col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9489
SELECT - COUNT ( * ) / + 11 * SUM ( ALL - col1 ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT DISTINCT MAX( + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT MAX ( + col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT ALL - 39 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-1880
-3960
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT + 11 * - - MAX( DISTINCT 70 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
770

skipif mysql # not compatible
query I rowsort label-9492
SELECT + 11 * - - MAX ( DISTINCT 70 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
770

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 0 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT - COUNT( * ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9494
SELECT - COUNT ( * ) col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9497
SELECT ALL - + SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - + SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + ( - + 27 ) * - col1 + + - col2 AS col0 FROM tab1 AS cor0
----
1201
282
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT DISTINCT + - 22 * - MAX( col0 ) AS col2 FROM tab1 AS cor0
----
2002

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT + - 22 * - MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
2002

query I rowsort
SELECT ALL - - 85 FROM tab0 cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL - MAX( ALL col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - MAX ( ALL col0 ) FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9502
SELECT + col0 * ( + - col0 ) DIV - - CAST( - 47 AS SIGNED ) + - col0 AS col0 FROM tab0
----
-11
103
74

skipif mysql # not compatible
query I rowsort label-9502
SELECT + col0 * ( + - col0 ) / - - CAST ( - 47 AS INTEGER ) + - col0 AS col0 FROM tab0
----
-11
103
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9503
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - ( ( - col0 ) ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 - + col0 + col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT + 31 - + - SUM( 23 ) FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-9507
SELECT + 31 - + - SUM ( 23 ) FROM tab2 AS cor0
----
100

query I rowsort
SELECT + col0 * col0 + - col0 * col2 AS col1 FROM tab1
----
-2295
2093
2210

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT + 83 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9509
SELECT + 83 / col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT - COUNT( * ) + 21 AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT - COUNT ( * ) + 21 AS col1 FROM tab2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9511
SELECT - SUM( + col0 ) DIV + MIN( + 18 * col1 + col1 * + 72 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9511
SELECT - SUM ( + col0 ) / + MIN ( + 18 * col1 + col1 * + 72 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 36 + 96 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9513
SELECT - ( MIN( ALL - col0 ) ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT - ( MIN ( ALL - col0 ) ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 19 * - 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL AVG ( ALL col1 ) FROM tab1 WHERE ( NULL ) > 24
----
NULL

query I rowsort
SELECT + 93 * + col2 FROM tab1 WHERE - col1 > + col0
----

query I rowsort
SELECT col0 + 90 AS col0 FROM tab2 WHERE + col1 > + col0 * + 79
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE 15 / - 17 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + col2 * - col2 col1 FROM tab0
----
-1984
-392
7469

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col0 * col1 )
----

query I rowsort
SELECT DISTINCT - 43 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT DISTINCT col1 FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) + col0 * + col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT col1 FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) + col0 * + col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * col2 BETWEEN + col2 * + 39 AND - 86
----

query I rowsort
SELECT 17 AS col0 FROM tab1 WHERE NOT 92 + - 55 NOT BETWEEN + col2 AND ( col2 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT - CAST( + col1 AS SIGNED ) + ( col0 ) * 49 FROM tab1
----
2485
4160
4412

skipif mysql # not compatible
query I rowsort label-9525
SELECT - CAST ( + col1 AS INTEGER ) + ( col0 ) * 49 FROM tab1
----
2485
4160
4412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab0
----
89
89
89

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT ALL 64 AS col2 FROM tab2 WHERE ( - 14 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * - 53 AS col2 FROM tab1 WHERE 61 NOT BETWEEN ( 2 ) AND col2
----
3127

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * - 53 AS col2 FROM tab1 WHERE 61 NOT BETWEEN ( 2 ) AND col2
----
3127

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT BETWEEN 97 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 80 * col1 > NULL
----

query I rowsort
SELECT DISTINCT - ( - 5 ) AS col1 FROM tab0 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 77 * + 51 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT CAST( 17 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-9534
SELECT CAST ( 17 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
17
17
17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > 53 * col2 + + ( col0 ) * + col0
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT 49 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9537
SELECT DISTINCT * FROM tab1 WHERE ( col0 * 60 ) IN ( ( CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-9537
SELECT DISTINCT * FROM tab1 WHERE ( col0 * 60 ) IN ( ( CAST ( NULL AS REAL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT - - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9538
SELECT - - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT 71 AS col0 FROM tab2 cor0 WHERE + ( + col0 ) * + 19 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9540
SELECT + + 62 DIV + COUNT( * ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9540
SELECT + + 62 / + COUNT ( * ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT DISTINCT col2 * - col1 + 8 FROM tab1 AS cor0 WHERE col0 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT DISTINCT - 99 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT - 99 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-99

query I rowsort
SELECT ALL + ( + col2 ) AS col1 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9545
SELECT CAST( NULL AS DECIMAL ) - + col0 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT CAST ( NULL AS REAL ) - + col0 * + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + col1 * - col2 AS col0 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # DIV for integer division: 
query I rowsort label-9547
SELECT - 22 - - 69 DIV + col2 AS col0 FROM tab1
----
-21
-21
-22

skipif mysql # not compatible
query I rowsort label-9547
SELECT - 22 - - 69 / + col2 AS col0 FROM tab1
----
-21
-21
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL COUNT( * ) + - - 93 col1 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9548
SELECT ALL COUNT ( * ) + - - 93 col1 FROM tab1
----
96

query I rowsort
SELECT ALL 2 * + col0 - - 76 FROM tab0
----
106
250
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT ( - CAST( - 60 AS SIGNED ) ) * col0 + 11 AS col0 FROM tab1
----
3071
5111
5471

skipif mysql # not compatible
query I rowsort label-9550
SELECT ( - CAST ( - 60 AS INTEGER ) ) * col0 + 11 AS col0 FROM tab1
----
3071
5111
5471

query I rowsort
SELECT DISTINCT 37 + - 28 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT CAST( col0 AS SIGNED ) + 81 FROM tab1
----
132
166
172

skipif mysql # not compatible
query I rowsort label-9552
SELECT CAST ( col0 AS INTEGER ) + 81 FROM tab1
----
132
166
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = ( - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = ( - 15 )
----
0

query I rowsort
SELECT ALL + col2 * - + col2 FROM tab1
----
-3481
-4624
-9216

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT - 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9556
SELECT MIN( + 96 ) DIV - 44 AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-9556
SELECT MIN ( + 96 ) / - 44 AS col1 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT ALL + col1 FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) + + col2 * 57 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL + col1 FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) + + col2 * 57 IS NOT NULL
----
1
21
81

query II rowsort
SELECT col1, col2 AS col1 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT COUNT( * ) * COUNT( * ) + - SUM( col1 ) / - 90 FROM tab2 WHERE NOT NULL <= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT COUNT ( * ) * COUNT ( * ) + - SUM ( col1 ) / - 90 FROM tab2 WHERE NOT NULL <= - col1
----
NULL

query I rowsort
SELECT - col0 AS col0 FROM tab0 cor0 WHERE NOT 41 IN ( - + col0 )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab2 AS cor0 WHERE - col2 BETWEEN ( NULL ) AND + 48
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT DISTINCT - + CAST( + - SUM( - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT - + CAST ( + - SUM ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 22 AS col0 FROM tab2 AS cor0
----
22

query II rowsort
SELECT ALL - 29 AS col1, + ( - + 89 ) * col1 - + col0 FROM tab0 AS cor0
----
-29
-186
-29
-1956
-29
-7224

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT MAX( ALL - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT MAX ( ALL - col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT MAX( - col2 ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 19 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT MAX ( - col2 ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 19 * - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT col0 / + + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT col0 / + + ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT - CAST( + 31 AS SIGNED ) * + col1 AS col0 FROM tab1
----
-1457
-155
-434

skipif mysql # not compatible
query I rowsort label-9569
SELECT - CAST ( + 31 AS INTEGER ) * + col1 AS col0 FROM tab1
----
-1457
-155
-434

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT ( - + 9 ) NOT BETWEEN 28 AND ( - col2 )
----

query I rowsort
SELECT ALL - 33 + - col2 AS col1 FROM tab1
----
-101
-129
-92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT - col1 + col2 FROM tab0 AS cor0 WHERE NOT NULL > - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9573
SELECT - col1 + col2 FROM tab0 AS cor0 WHERE NOT NULL > - CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - + col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( + 61 )
----

query II rowsort
SELECT DISTINCT 96 AS col2, + ( + - 22 ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
96
-22

query III rowsort
SELECT * FROM tab2 WHERE - - col0 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT - MAX( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT - MAX ( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
5

query I rowsort
SELECT DISTINCT ( + col1 ) AS col0 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL - SUM( - 21 ) AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - SUM ( - 21 ) AS col1 FROM tab0 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 28 col2, + col1 AS col1 FROM tab0 AS cor0
----
28
1
28
21
28
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT + MAX( DISTINCT + 23 ) + - + 33 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-9584
SELECT + MAX ( DISTINCT + 23 ) + - + 33 FROM tab1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT ALL col1 * CAST( - col1 AS SIGNED ) FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL col1 * CAST ( - col1 AS INTEGER ) FROM tab2
----
-2601
-4489
-5929

query II rowsort
SELECT ALL col2, - ( - + col2 ) FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9587
SELECT 77, MAX( col0 ) AS col0 FROM tab1
----
77
91

skipif mysql # not compatible
query II rowsort label-9587
SELECT 77, MAX ( col0 ) AS col0 FROM tab1
----
77
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT + SUM( col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT + SUM ( col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE col2 IN ( - - col1, col0 + + + col2 )
----

query I rowsort
SELECT col0 * + - col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) col1 FROM tab0 WHERE ( ( + - 42 ) ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9591
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1 FROM tab0 WHERE ( ( + - 42 ) ) IS NULL
----
NULL

query I rowsort
SELECT + col2 * + col0 * 2 + col0 AS col2 FROM tab2 WHERE ( col2 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT + 17 - + COUNT( * ) * - 84 FROM tab1
----
269

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT + 17 - + COUNT ( * ) * - 84 FROM tab1
----
269

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + + 55 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9596
SELECT ALL + COUNT( - - CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + COUNT ( - - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9597
SELECT ALL + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 26 * + col2 - + + 43 col0 FROM tab0 AS cor0
----
1179
217
2531

query I rowsort
SELECT 41 FROM tab1 AS cor0 WHERE NOT - 5 / - col0 > NULL
----

query I rowsort
SELECT + col1 * ( col0 ) + - + col0 AS col0 FROM tab1 AS cor0
----
340
4186
663

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL 38 * + MAX( - - col0 ) AS col1 FROM tab0
----
3686

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL 38 * + MAX ( - - col0 ) AS col1 FROM tab0
----
3686

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 * - + col1 < + - col1 * - - 76
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + col2 * - - col1 + + + 48 AS col1 FROM tab0
----
147
258
3855

query II rowsort
SELECT DISTINCT col0 AS col1, + col1 AS col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT - col0 + + ( 52 ) FROM tab2
----
-12
-23
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9607
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT + MAX( ALL col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9608
SELECT + MAX ( ALL col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT + 74 * + ( + - ( + 71 ) ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-5257

skipif mysql # not compatible
query I rowsort label-9609
SELECT + 74 * + ( + - ( + 71 ) ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-5257

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL COUNT( * ) + + 57 AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL COUNT ( * ) + + 57 AS col0 FROM tab1
----
60

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT + ( - col1 ) + + 51 AS col2 FROM tab2
----
-16
-26
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 15 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT DISTINCT + COUNT( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 8 col2 FROM tab2 AS cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9616
SELECT ALL - + col2 + - 14 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL - + col2 + - 14 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( - 62 ) FROM tab2 AS cor0
----
-62
-62
-62

query I rowsort
SELECT ALL + + 94 * col0 FROM tab1 AS cor0
----
4794
7990
8554

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col2 * - 69 FROM tab1 AS cor0
----
-337824
-346035
-426972

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 12 AND ( - col2 + col0 )
----

query I rowsort
SELECT 97 FROM tab1 WHERE + col1 BETWEEN 6 / + + 54 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL AND - col1 * 1 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) * + + 41 AS col1 FROM tab2
----
1886
2624
3075

query II rowsort
SELECT ALL - + col2, - col2 AS col0 FROM tab1 cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT - ( + + CAST( + 58 AS SIGNED ) ) FROM tab1 cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-9626
SELECT - ( + + CAST ( + 58 AS INTEGER ) ) FROM tab1 cor0
----
-58
-58
-58

query I rowsort
SELECT ALL + 0 * + 7 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 2 + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT CAST( - - col1 AS SIGNED ) * + 2 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-9629
SELECT CAST ( - - col1 AS INTEGER ) * + 2 FROM tab2
----
102
134
154

query I rowsort
SELECT - col1 * - - ( col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 75 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT 3 * - MIN( + + col2 ) AS col0 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-9632
SELECT 3 * - MIN ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + col0 col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 + + - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 + + - col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ALL - COUNT( * ) * + ( - 41 ) AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL - COUNT ( * ) * + ( - 41 ) AS col0 FROM tab2
----
123

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT col1 IS NULL
----
59
68
96

query I rowsort
SELECT col1 + - + col1 + + 54 AS col2 FROM tab1
----
54
54
54

query I rowsort
SELECT - col2 * - col0 + - col2 FROM tab1
----
4800
4956
6120

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - 14 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL - COUNT( * ) + ( 71 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
68

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - COUNT ( * ) + ( 71 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9642
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT + COUNT( * ) * + 43 + - MAX( ALL + + col1 ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-9643
SELECT + COUNT ( * ) * + 43 + - MAX ( ALL + + col1 ) FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ( MAX( col1 ) ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9644
SELECT ( MAX ( col1 ) ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT col0 + + 47 FROM tab0
----
134
144
62

query I rowsort
SELECT + - 3 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL + ( + 66 ) + - col1 FROM tab2 cor0
----
-1
-11
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 < + 81 - + + col0 + - - 64 * - col1
----

query I rowsort
SELECT + 79 + col0 + + col1 FROM tab0 AS cor0
----
175
177
187

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col1 * - - 22 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 IN ( + col0 + + 45 - + col2, ( - - col0 ) * + - 22, + - col0 + + - 75 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 IN ( + col0 + + 45 - + col2, ( - - col0 ) * + - 22, + - col0 + + - 75 ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9652
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN - ( - - col1 ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-9652
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - ( - - col1 ) AND + col1
----

query II rowsort
SELECT + col2, 41 FROM tab1 AS cor0
----
59
41
68
41
96
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL - MIN( DISTINCT - + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - MIN ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT DISTINCT + col0 + + + 42 DIV + col1 FROM tab0 AS cor0
----
139
15
89

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT + col0 + + + 42 / + col1 FROM tab0 AS cor0
----
139
15
89

query I rowsort
SELECT + 34 * 57 FROM tab1
----
1938
1938
1938

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT col1 DIV 45 * + 46 * + - 90 FROM tab2
----
-4140
-4140
-4140

skipif mysql # not compatible
query I rowsort label-9657
SELECT col1 / 45 * + 46 * + - 90 FROM tab2
----
-4140
-4140
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL MAX( DISTINCT + 55 ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL MAX ( DISTINCT + 55 ) AS col0 FROM tab2
----
55

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL + SUM( - col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + SUM ( - col2 ) AS col1 FROM tab0 cor0
----
-156

query I rowsort
SELECT - - 32 * + - 73 AS col0 FROM tab1 AS cor0
----
-2336
-2336
-2336

query I rowsort
SELECT + + col1 * - 32 FROM tab1 AS cor0
----
-1504
-160
-448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 26 ) col2 FROM tab1 cor0
----
-26
-26
-26

query II rowsort
SELECT DISTINCT 29 AS col0, col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
29
1
29
21
29
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9665
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 + + col0 * + + ( + col2 ) <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9665
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 + + col0 * + + ( + col2 ) <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9666
SELECT DISTINCT - col1 DIV + - col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT - col1 / + - col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT 76 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9667
SELECT 76 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT DISTINCT + 73 DIV - + col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT + 73 / - + col2 FROM tab0 AS cor0
----
-1
-7
0

query I rowsort
SELECT + col0 * 77 * + 99 - - col2 * 35 + - col0 AS col2 FROM tab0 cor0
----
115975
663464
742799

query I rowsort
SELECT ALL + 60 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - + MIN( 84 ) AS col2 FROM tab2 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9671
SELECT - + MIN ( 84 ) AS col2 FROM tab2 cor0
----
-84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 36 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + 79 AS col2 FROM tab0 AS cor0
----
166
176
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT MAX( ALL - 95 ) AS col0 FROM tab0 cor0 WHERE + 38 IS NOT NULL
----
-95

skipif mysql # not compatible
query I rowsort label-9674
SELECT MAX ( ALL - 95 ) AS col0 FROM tab0 cor0 WHERE + 38 IS NOT NULL
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9675
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + AVG ( + + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT - CAST ( NULL AS REAL ) + AVG ( + + col1 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT DISTINCT 44 + - - COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab2
----
47
3

skipif mysql # not compatible
query II rowsort label-9676
SELECT DISTINCT 44 + - - COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab2
----
47
3

query I rowsort
SELECT ALL + 30 + + 56 FROM tab1
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) - + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT COUNT( DISTINCT - - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9679
SELECT COUNT ( DISTINCT - - col1 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( 3 + - col2 * - 60, + ( - col0 ) + - + col2 * + 31, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL - 23 * - COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - 23 * - COUNT ( * ) FROM tab1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT 99 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT 99 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT - ( + col0 ) IS NOT NULL )
----
74

query I rowsort
SELECT 69 + + col0 - - 26 FROM tab0 AS cor0
----
110
182
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT - col1 + - ( - + CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0 WHERE col2 * + col0 * col1 IS NOT NULL
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-9685
SELECT - col1 + - ( - + CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0 WHERE col2 * + col0 * col1 IS NOT NULL
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT ALL MAX( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL MAX ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT ALL + col1 DIV - 99 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL + col1 / - 99 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
4

query II rowsort
SELECT ALL + 39 * + col0 * + col2 AS col0, col2 AS col1 FROM tab0 AS cor0 WHERE 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL + COUNT( + 35 ) + + - 99 AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL + COUNT ( + 35 ) + + - 99 AS col2 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT + col1 * - col2 - - 28 - - col1 FROM tab2 AS cor0
----
-1094
-2975
-3791

query I rowsort
SELECT + 27 AS col0 FROM tab0 AS cor0 WHERE 79 * col1 IS NOT NULL
----
27
27
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9693
SELECT DISTINCT - - SUM( DISTINCT + 18 ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT - - SUM ( DISTINCT + 18 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL - SUM( 22 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - SUM ( 22 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9695
SELECT ALL - ( - + col0 ), - CAST( - ( - ( - col1 ) ) AS SIGNED ) * col0 - + ( - col0 ) AS col2 FROM tab0 AS cor0
----
15
1230
87
1914
97
194

skipif mysql # not compatible
query II rowsort label-9695
SELECT ALL - ( - + col0 ), - CAST ( - ( - ( - col1 ) ) AS INTEGER ) * col0 - + ( - col0 ) AS col2 FROM tab0 AS cor0
----
15
1230
87
1914
97
194

query I rowsort
SELECT - 36 * + col1 AS col2 FROM tab0
----
-2916
-36
-756

query I rowsort
SELECT 89 * - - 28 AS col1 FROM tab2
----
2492
2492
2492

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT col0 DIV + + col1 AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-9698
SELECT col0 / + + col1 AS col0 FROM tab0
----
0
4
97

query II rowsort
SELECT ALL col1 AS col2, - 52 AS col0 FROM tab0
----
1
-52
21
-52
81
-52

query II rowsort
SELECT col2, col0 - ( - 74 ) FROM tab0
----
10
161
47
89
99
171

query II rowsort
SELECT col2 AS col0, 63 * + col1 FROM tab0
----
10
1323
47
5103
99
63

query I rowsort
SELECT DISTINCT + + 93 * - col0 + - col1 * - 87 AS col0 FROM tab0 AS cor0
----
-6264
-8934
5652

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + col1 NOT BETWEEN + 42 AND - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col1 FROM tab1 cor0
----
14
47
5

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL - 91 * - - CAST( - + MAX( + 92 ) AS SIGNED ) AS col0 FROM tab2
----
8372

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL - 91 * - - CAST ( - + MAX ( + 92 ) AS INTEGER ) AS col0 FROM tab2
----
8372

query I rowsort
SELECT - 56 * - col0 - col2 * - 20 * - + col2 FROM tab2 AS cor0
----
-28416
-63080
-8004

query I rowsort
SELECT DISTINCT - + 42 AS col2 FROM tab0 cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9709
SELECT 77 DIV + CAST( - col2 AS SIGNED ) + + + col0 + - 23 FROM tab0 AS cor0
----
-9
57
74

skipif mysql # not compatible
query I rowsort label-9709
SELECT 77 / + CAST ( - col2 AS INTEGER ) + + + col0 + - 23 FROM tab0 AS cor0
----
-9
57
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL + - COUNT( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + - COUNT ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 8 + col2 AS col2 FROM tab1
----
104
67
76

query I rowsort
SELECT 95 + col1 AS col2 FROM tab0
----
116
176
96

query I rowsort
SELECT col1 + col0 + - + col0 FROM tab0
----
1
21
81

query I rowsort
SELECT + col2 + 70 FROM tab2
----
110
128
93

query II rowsort
SELECT ALL - 54, col2 FROM tab2 AS cor0
----
-54
23
-54
40
-54
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT col0 DIV + - 41 FROM tab1 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-9716
SELECT col0 / + - 41 FROM tab1 cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT COUNT( * ) * + COUNT( * ) col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9717
SELECT COUNT ( * ) * + COUNT ( * ) col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - - 51 * 63 - - SUM( - col1 ) AS col1 FROM tab0 cor0
----
3110

skipif mysql # not compatible
query I rowsort label-9718
SELECT - - 51 * 63 - - SUM ( - col1 ) AS col1 FROM tab0 cor0
----
3110

query I rowsort
SELECT 64 - - + col0 * ( - ( - col0 ) ) FROM tab2
----
2180
4160
5689

query I rowsort
SELECT 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL 27 + - + COUNT( ALL 79 ) AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL 27 + - + COUNT ( ALL 79 ) AS col1 FROM tab0
----
24

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT 49 + col2 * - - ( + - col2 ) + + - col0 AS col2, 61 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 15 col0 FROM tab2 AS cor0
----
-46
15
-64
15
-75
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT ALL MAX( col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT - ( - COUNT( ALL + col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9726
SELECT - ( - COUNT ( ALL + col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL COUNT( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9728
SELECT - CAST( - - col1 AS SIGNED ) AS col1, - 90 * + + col0 col0 FROM tab2
----
-51
-4140
-67
-6750
-77
-5760

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9728
SELECT - CAST ( - - col1 AS INTEGER ) AS col1, - 90 * + + col0 col0 FROM tab2
----
-51
-4140
-67
-6750
-77
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT COUNT( - col2 ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9729
SELECT COUNT ( - col2 ) * + COUNT ( * ) FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * col2 col0, 42 FROM tab0
----
210
42
3807
42
99
42

query I rowsort
SELECT DISTINCT - ( col2 ) * + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT DISTINCT col0 DIV - + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT col0 / - + col2 FROM tab1
----
-1
0

query I rowsort
SELECT ALL - 68 * - col0 * 17 FROM tab1
----
105196
58956
98260

onlyif mysql # DIV for integer division: 
query I rowsort label-9734
SELECT ALL col1 DIV + - 50 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL col1 / + - 50 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 cor0 WHERE col2 + - col2 IS NULL
----

query II rowsort
SELECT DISTINCT + - col2 * 20 AS col0, col0 * col0 FROM tab0 AS cor0
----
-1980
9409
-200
7569
-940
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + 39 ) col1 FROM tab0 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9738
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + col1 * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9740
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col1 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 97 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT ALL + + col0 AS col1, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT - - 85 * - + col1 + 41 FROM tab2 AS cor0 WHERE ( + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT + + SUM( DISTINCT ( col1 ) ) col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9745
SELECT + + SUM ( DISTINCT ( col1 ) ) col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT - col2 + - col2 AS col1 FROM tab1 cor0 WHERE - col0 - - 2 >= - 42
----

query II rowsort
SELECT ALL - - 13 AS col0, - col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
13
-10
13
-47
13
-99

query I rowsort
SELECT - - 45 * - col0 AS col0 FROM tab1 cor0
----
-2295
-3825
-4095

query I rowsort
SELECT DISTINCT - 95 + + + col0 + 96 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT + col1 + + + ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE + col1 <= NULL
----

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 89 + + + 77 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9753
SELECT DISTINCT 58 AS col2, - MIN( + 74 ) FROM tab0 cor0
----
58
-74

skipif mysql # not compatible
query II rowsort label-9753
SELECT DISTINCT 58 AS col2, - MIN ( + 74 ) FROM tab0 cor0
----
58
-74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + - col0 + - + col2 * 27 / + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT - 34 + - COUNT( - 15 ) AS col1 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT - 34 + - COUNT ( - 15 ) AS col1 FROM tab1
----
-37

query I rowsort
SELECT DISTINCT + 44 AS col1 FROM tab2 WHERE - col2 IN ( - + 37 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 + + col2 col0 FROM tab2
----
28
50
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT CAST( NULL AS SIGNED ) + + col0 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT CAST ( NULL AS INTEGER ) + + col0 + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT - CAST( NULL AS SIGNED ) + - col1 * - col0 + - + CAST( + col0 AS SIGNED ) + - col0 + ( + ( - 52 ) ) * + ( + 44 ) * - col1 + - + col2 * - - 99 * - ( col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT - CAST ( NULL AS INTEGER ) + - col1 * - col0 + - + CAST ( + col0 AS INTEGER ) + - col0 + ( + ( - 52 ) ) * + ( + 44 ) * - col1 + - + col2 * - - 99 * - ( col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT - col0 + CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-196
-297
-3822

skipif mysql # not compatible
query I rowsort label-9760
SELECT - col0 + CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT DISTINCT + ( + col1 ) + + col2 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 34 + + + col0 >= 63 + + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 30 < NULL
----

query I rowsort
SELECT - col0 * + + 98 FROM tab1
----
-4998
-8330
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL COUNT( * ) * + + COUNT( DISTINCT - + col2 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL COUNT ( * ) * + + COUNT ( DISTINCT - + col2 ) FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 71 * col1 <> NULL
----

query I rowsort
SELECT ALL - 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - 49 + - + col0
----

query II rowsort
SELECT ALL + col2 + + col1 + + - ( + 25 ) * - + 5 * 42 AS col0, col0 / + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + ( - col0 ) * + col1 + - col0 AS col0 FROM tab2
----
-2392
-4992
-5100

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 10 * + col2 AS col1 FROM tab1
----
590
680
960

query I rowsort
SELECT col1 * - - 89 FROM tab1
----
1246
4183
445

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9774
SELECT col1 AS col0, + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-9774
SELECT col1 AS col0, + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ( - + COUNT( * ) ) * + 99 AS col1 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-9775
SELECT ( - + COUNT ( * ) ) * + 99 AS col1 FROM tab0
----
-297

query I rowsort
SELECT 27 * 99 FROM tab1
----
2673
2673
2673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9777
SELECT + col1, + CAST( NULL AS SIGNED ) * + + 97 col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9777
SELECT + col1, + CAST ( NULL AS INTEGER ) * + + 97 col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT - CAST( + 15 AS SIGNED ) FROM tab0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-9778
SELECT - CAST ( + 15 AS INTEGER ) FROM tab0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9779
SELECT DISTINCT + - col1, CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-9779
SELECT DISTINCT + - col1, CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT DISTINCT + - CAST( 2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9780
SELECT DISTINCT + - CAST ( 2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL - 26 * - 55 - col2 AS col1 FROM tab2 AS cor0
----
1372
1390
1407

query I rowsort
SELECT DISTINCT + + col2 * - + col0 AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

query II rowsort
SELECT + + ( - col0 ), + 73 * + col0 AS col2 FROM tab1 AS cor0
----
-51
3723
-85
6205
-91
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT COUNT( + col0 ) * MIN( + ( + ( col0 ) ) ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-9784
SELECT COUNT ( + col0 ) * MIN ( + ( + ( col0 ) ) ) FROM tab1
----
153

query I rowsort
SELECT ALL - + 91 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT 65 * + COUNT( * ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-9786
SELECT 65 * + COUNT ( * ) FROM tab1
----
195

query I rowsort
SELECT ALL col0 + 86 FROM tab0
----
101
173
183

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9788
SELECT * FROM tab0 AS cor0 WHERE NULL < - ( + - 6 ) * - col0 * + + col1 / - + CAST( col0 AS DECIMAL ) + - + col2
----

skipif mysql # not compatible
query III rowsort label-9788
SELECT * FROM tab0 AS cor0 WHERE NULL < - ( + - 6 ) * - col0 * + + col1 / - + CAST ( col0 AS REAL ) + - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9789
SELECT DISTINCT - 73 DIV - + 85 - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT - 73 / - + 85 - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT + SUM( ALL - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + SUM ( ALL - + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + col1 <> - - 78 - - col2 + + - 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9792
SELECT - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9792
SELECT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9793
SELECT + COUNT( CAST( col1 AS SIGNED ) ) + + SUM( DISTINCT - 16 ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9793
SELECT + COUNT ( CAST ( col1 AS INTEGER ) ) + + SUM ( DISTINCT - 16 ) FROM tab0 AS cor0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT DISTINCT + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT DISTINCT 28 + + COUNT( * ) col1 FROM tab2
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9796
SELECT DISTINCT 28 + + COUNT ( * ) col1 FROM tab2
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9797
SELECT + col0 DIV - CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9797
SELECT + col0 / - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9798
SELECT + col0 DIV - col0 col0 FROM tab1 WHERE - col0 DIV + col1 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9798
SELECT + col0 / - col0 col0 FROM tab1 WHERE - col0 / + col1 IS NOT NULL
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9799
SELECT - col0 AS col0, col0 - - + ( + + col1 ) * - + ( - + CAST( 89 AS SIGNED ) ) FROM tab0
----
-15
7224
-87
1956
-97
186

skipif mysql # not compatible
query II rowsort label-9799
SELECT - col0 AS col0, col0 - - + ( + + col1 ) * - + ( - + CAST ( 89 AS INTEGER ) ) FROM tab0
----
-15
7224
-87
1956
-97
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT ALL + CAST( col1 AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col1 - + 28 - + - col1 + col2 AS col1 FROM tab2 AS cor0
----
164
166
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT DISTINCT CAST( 33 AS SIGNED ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT CAST ( 33 AS INTEGER ) FROM tab1 AS cor0
----
33

query I rowsort
SELECT ALL + - 56 * + - col1 AS col2 FROM tab2 cor0
----
2856
3752
4312

onlyif mysql # DIV for integer division: 
query I rowsort label-9804
SELECT 48 DIV - - 65 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT 48 / - - 65 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - - 82 * - col2 + - - col0 + col0
----

query I rowsort
SELECT - col2 * + + col0 * - - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9807
SELECT * FROM tab2 cor0 WHERE NOT + 88 BETWEEN + - 26 * - col2 * CAST( 95 AS SIGNED ) AND - - 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9807
SELECT * FROM tab2 cor0 WHERE NOT + 88 BETWEEN + - 26 * - col2 * CAST ( 95 AS INTEGER ) AND - - 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - col0 AS col1, + col0 * - + col1 * + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-107916
-64
-315392
-75
-376875

query III rowsort
SELECT * FROM tab1 WHERE NOT 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL - ( - + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL - ( - + COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT COUNT( * ) * + COUNT( * ) FROM tab0, tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9811
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab0, tab2 cor0
----
81

query I rowsort
SELECT - col0 * - 92 AS col2 FROM tab0
----
1380
8004
8924

query I rowsort
SELECT DISTINCT + + col0 * + 19 FROM tab0 AS cor0
----
1653
1843
285

query I rowsort
SELECT 5 * + - col2 FROM tab0 AS cor0
----
-235
-495
-50

query II rowsort
SELECT - 44, - 58 * + + 81 AS col2 FROM tab2 AS cor0
----
-44
-4698
-44
-4698
-44
-4698

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT ALL + 19 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + 19 / col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 + col0 - + col1 * - col0 * col1 FROM tab0 AS cor0
----
195
38475
98511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT DISTINCT - col2 * - col2 + - + CAST( + 83 AS SIGNED ) FROM tab1
----
3398
4541
9133

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT - col2 * - col2 + - + CAST ( + 83 AS INTEGER ) FROM tab1
----
3398
4541
9133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT - col0 * + CAST( + - col0 AS SIGNED ) - + + col0 col2 FROM tab0 AS cor0
----
210
7482
9312

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9819
SELECT - col0 * + CAST ( + - col0 AS INTEGER ) - + + col0 col2 FROM tab0 AS cor0
----
210
7482
9312

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 IS NOT NULL )
----
0

query I rowsort
SELECT 63 * - + 88 + + ( - + col1 ) - + 77 AS col1 FROM tab1 AS cor0
----
-5626
-5635
-5668

query II rowsort
SELECT DISTINCT + col1, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT col2 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
3540
4692
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT 15 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9825
SELECT 15 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT COUNT( * ) - + 13 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-9826
SELECT COUNT ( * ) - + 13 FROM tab1
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - + col1
----

query I rowsort
SELECT + - 12 AS col0 FROM tab1 WHERE + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col0 col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9830
SELECT col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 * + col1 + - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 BETWEEN - + 46 AND + col0
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query II rowsort label-9833
SELECT DISTINCT 11 - + 16 AS col0, 14 DIV + - ( + + ( + 95 ) ) AS col1 FROM tab0
----
-5
0

skipif mysql # not compatible
query II rowsort label-9833
SELECT DISTINCT 11 - + 16 AS col0, 14 / + - ( + + ( + 95 ) ) AS col1 FROM tab0
----
-5
0

query I rowsort
SELECT - + col2 + - - col1 * + - col1 + + col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL - 15 - + COUNT( + col0 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - 15 - + COUNT ( + col0 ) FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9836
SELECT 15 * - + col2 * 55 * + - col0 + - - col2 * - CAST( + col1 AS DECIMAL ) AS col0 FROM tab2 cor0 WHERE NOT - col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9836
SELECT 15 * - + col2 * 55 * + - col0 + - - col2 * - CAST ( + col1 AS REAL ) AS col0 FROM tab2 cor0 WHERE NOT - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col0 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT col2 * - col1 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL + ( - MIN( - 53 ) ) + 54 + ( COUNT( * ) ) - - 83 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
199

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + ( - MIN ( - 53 ) ) + 54 + ( COUNT ( * ) ) - - 83 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT DISTINCT - + CAST( 63 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT - + CAST ( 63 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-63

query II rowsort
SELECT ALL + col2 AS col1, - ( + col1 ) * col2 * - 76 + - - col0 AS col0 FROM tab1 cor0
----
59
22505
68
242987
96
102195

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + + - col1 + 39 IS NOT NULL
----

query I rowsort
SELECT col2 - + + 37 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-27
10
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9844
SELECT ALL - COUNT( * ) * ( COUNT( * ) ) AS col1, - SUM( - 93 ) FROM tab2 AS cor0
----
-9
279

skipif mysql # not compatible
query II rowsort label-9844
SELECT ALL - COUNT ( * ) * ( COUNT ( * ) ) AS col1, - SUM ( - 93 ) FROM tab2 AS cor0
----
-9
279

query I rowsort
SELECT ALL + ( - - 40 ) FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT + 54 * col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - + col0 ) AS col1 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 + - col1 col1 FROM tab0
----
-143
-63
-83

query I rowsort
SELECT col2 * + 45 * + 48 + + 27 - - - col2 * + + col2 AS col0 FROM tab1
----
123986
142283
198171

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT + COUNT( * ) + 70 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT + COUNT ( * ) + 70 FROM tab0 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + 54 + - - COUNT( * ) col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9851
SELECT + 54 + - - COUNT ( * ) col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-9852
SELECT col1, col1 DIV + - ( 57 ) FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-9852
SELECT col1, col1 / + - ( 57 ) FROM tab1
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT SUM( - + col1 ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9853
SELECT DISTINCT SUM ( - + col1 ) col0 FROM tab1
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9854
SELECT + col1 AS col1, CAST( NULL AS DECIMAL ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9854
SELECT + col1 AS col1, CAST ( NULL AS REAL ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - col2 col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 5 * + - col1 + - col2 * col1 + 80 * col0 FROM tab1 AS cor0
----
2666
3849
6480

query I rowsort
SELECT col2 + - - col2 + + col0 FROM tab2 AS cor0
----
144
191
92

query II rowsort
SELECT col0 AS col0, col0 + + col1 FROM tab2 AS cor0 WHERE col2 / + - col0 * - - col0 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT DISTINCT MAX( DISTINCT - 21 ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT MAX ( DISTINCT - 21 ) AS col0 FROM tab0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT - 35 DIV 35 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9861
SELECT - 35 / 35 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 * + + col1 FROM tab0
----
210
3807
99

query II rowsort
SELECT ALL col1 AS col1, - ( - col1 ) AS col2 FROM tab2 WHERE ( ( NULL IS NULL ) )
----
51
51
67
67
77
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 16 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 + + - 84 AND ( + 44 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9866
SELECT * FROM tab1 AS cor0 WHERE ( - 88 + - - 34 + + CAST( NULL AS DECIMAL ) / + + col1 ) <> + 47 OR NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9866
SELECT * FROM tab1 AS cor0 WHERE ( - 88 + - - 34 + + CAST ( NULL AS REAL ) / + + col1 ) <> + 47 OR NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 47 IS NOT NULL
----

query I rowsort
SELECT ALL + + 88 AS col2 FROM tab0 AS cor0
----
88
88
88

query II rowsort
SELECT ALL + - 94 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-94
-51
-94
-67
-94
-77

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE - col0 BETWEEN - col2 AND col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col2 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 * - + ( + col0 ) - + + col2 + + - col0 + col1 AS col0 FROM tab1 cor0
----
-5029
-5154
-6300

query I rowsort
SELECT + col1 * - col2 * + col0 AS col2 FROM tab0 cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT - MAX( ALL - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT - MAX ( ALL - col1 ) FROM tab2
----
51

query II rowsort
SELECT + - ( - + col2 ) AS col1, + ( - - col0 ) FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT - ( 15 ) AS col1 FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT - + COUNT( + 45 ) AS col0, + SUM( - + col2 ) col1 FROM tab1 AS cor0
----
-3
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9877
SELECT - + COUNT ( + 45 ) AS col0, + SUM ( - + col2 ) col1 FROM tab1 AS cor0
----
-3
-223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( - ( + + 83 ) ) ) col1 FROM tab1 AS cor0
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9880
SELECT ALL * FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) * col0 BETWEEN + 68 AND 38 * 63
----

skipif mysql # not compatible
query III rowsort label-9880
SELECT ALL * FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) * col0 BETWEEN + 68 AND 38 * 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT DISTINCT - - MAX( ALL + 30 ) + + SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col1 - + 31 NOT BETWEEN - - col0 + - + col0 AND - col0
----
215

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT - - MAX ( ALL + 30 ) + + SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col1 - + 31 NOT BETWEEN - - col0 + - + col0 AND - col0
----
215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + col0 col2 FROM tab2
----
51
46
67
75
77
64

query II rowsort
SELECT col1 AS col2, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL col0 + - 10 AS col2 FROM tab0
----
5
77
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9885
SELECT col2 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9885
SELECT col2 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 * + 39 col2 FROM tab1
----
16575
166803
27846

query I rowsort
SELECT + 81 * - - col1 AS col0 FROM tab2
----
4131
5427
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT - + 63 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT - + 63 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-189

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL NOT BETWEEN ( 78 ) AND NULL
----

query I rowsort
SELECT + - 1 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL - col2 - - 59 + + col0 * - 33 * 8 FROM tab0
----
-22919
-25648
-3948

query I rowsort
SELECT ( + - col1 ) AS col2 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL - + COUNT( 29 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL - + COUNT ( 29 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 20 - + - 27 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT - 11 - col2 + - col0 FROM tab0 AS cor0
----
-108
-207
-73

query I rowsort
SELECT DISTINCT + 61 * + col1 AS col0 FROM tab2 cor0
----
3111
4087
4697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT ALL + col1 * CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9899
SELECT ALL - col0 - + col1 AS col2, col1 DIV + col0 FROM tab2 AS cor0
----
-141
1
-142
0
-97
1

skipif mysql # not compatible
query II rowsort label-9899
SELECT ALL - col0 - + col1 AS col2, col1 / + col0 FROM tab2 AS cor0
----
-141
1
-142
0
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * 32 AND - + col1
----
0

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * 32 AND - + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-9902
SELECT * FROM tab2 cor0 WHERE col0 DIV col1 * + + col0 <> col0
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-9902
SELECT * FROM tab2 cor0 WHERE col0 / col1 * + + col0 <> col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT COUNT( * ) * 41 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT COUNT ( * ) * 41 FROM tab0
----
123

query III rowsort
SELECT * FROM tab1 WHERE NOT + 0 <> - - col2 + + + col2 + + col0 * + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL 51 * + - 57 * COUNT( * ) AS col2 FROM tab0
----
-8721

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL 51 * + - 57 * COUNT ( * ) AS col2 FROM tab0
----
-8721

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT 61 DIV - col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT 61 / - col0 FROM tab0
----
-4
0
0

query I rowsort
SELECT ALL + col0 * - + col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT - ( - 88 ) AS col1 FROM tab2
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE - col0 * col0 + - col2 + - 70 >= col1
----
0

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE - col0 * col0 + - col2 + - 70 >= col1
----
0

query II rowsort
SELECT ALL - 20 AS col0, col2 AS col0 FROM tab2
----
-20
23
-20
40
-20
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9911
SELECT - 80 DIV - 57 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9911
SELECT - 80 / - 57 AS col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * + 33 * 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT COUNT( - - col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9913
SELECT COUNT ( - - col0 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT ALL - 66 AS col2, 64 + - - col1 AS col0 FROM tab0
----
-66
145
-66
65
-66
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 69 / col2 + - ( - - col1 ) IS NOT NULL
----

query I rowsort
SELECT - - ( + + col1 ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL ( - ( + + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL ( - ( + + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - - col1 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * 16 col2 FROM tab1
----
238
799
85

query I rowsort
SELECT 14 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT DISTINCT + COUNT( * ) DIV + 68 + + ( + 85 ) AS col2 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + COUNT ( * ) / + 68 + + ( + 85 ) AS col2 FROM tab2
----
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 >= + + ( + col0 ) - 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT DISTINCT + MAX( DISTINCT 70 ) * + 65 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + MAX ( DISTINCT 70 ) * + 65 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT + col0 - - col1 + col0 AS col0 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9927
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL AND NOT NULL BETWEEN + + CAST( NULL AS SIGNED ) AND - col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9927
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL AND NOT NULL BETWEEN + + CAST ( NULL AS INTEGER ) AND - col0 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT ALL + 9 / CAST( NULL AS SIGNED ) - - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL + 9 / CAST ( NULL AS INTEGER ) - - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9929
SELECT ALL + + col0 * - col1 + + ( - col2 ) - col1 DIV + col2, - col2 AS col2 FROM tab2 AS cor0
----
-2371
-23
-4969
-40
-5084
-58

skipif mysql # not compatible
query II rowsort label-9929
SELECT ALL + + col0 * - col1 + + ( - col2 ) - col1 / + col2, - col2 AS col2 FROM tab2 AS cor0
----
-2371
-23
-4969
-40
-5084
-58

query I rowsort
SELECT + - 94 * + + col0 FROM tab0 cor0
----
-1410
-8178
-9118

query I rowsort
SELECT ALL - col2 * 18 AS col0 FROM tab2 AS cor0
----
-1044
-414
-720

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT + 60 * + MIN( ALL col2 ) col0 FROM tab1 AS cor0
----
3540

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9933
SELECT DISTINCT + 60 * + MIN ( ALL col2 ) col0 FROM tab1 AS cor0
----
3540

onlyif mysql # DIV for integer division: 
query I rowsort label-9934
SELECT + col1 * col1 DIV + - ( - col0 ) FROM tab2
----
56
59
92

skipif mysql # not compatible
query I rowsort label-9934
SELECT + col1 * col1 / + - ( - col0 ) FROM tab2
----
56
59
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT COUNT( * ) * - 23 col1 FROM tab1
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9935
SELECT DISTINCT COUNT ( * ) * - 23 col1 FROM tab1
----
-69

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9937
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NULL = + - CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NULL = + - CAST ( NULL AS REAL )
----
0

query I rowsort
SELECT 49 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 19 * 51 AS col2 FROM tab2 AS cor0
----
-969
-969
-969

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab2 cor0 WHERE NOT NULL > + col0 * + - 53 + 6
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 51
----

query II rowsort
SELECT col0, 20 FROM tab0 AS cor0
----
15
20
87
20
97
20

query I rowsort
SELECT DISTINCT - - 2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - 13, - col1, + col1, + 60 / + col0, - - 81 / + + ( + col0 ), - col1 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9945
SELECT 71 DIV 94 * COUNT( * ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9945
SELECT 71 / 94 * COUNT ( * ) col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL + - MIN( + 9 ) + - 78 * - + ( + 53 ) FROM tab2 AS cor0
----
4125

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL + - MIN ( + 9 ) + - 78 * - + ( + 53 ) FROM tab2 AS cor0
----
4125

query I rowsort
SELECT ALL - + col2 * + - col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL + 25 FROM tab1 cor0 WHERE - col0 * - + 54 + col1 IS NOT NULL
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9949
SELECT DISTINCT + col2 DIV - 92 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + col2 / - 92 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT DISTINCT + col2 + 24 DIV + - ( + + col0 ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + col2 + 24 / + - ( + + col0 ) AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT COUNT( * ) AS col2 FROM tab2 WHERE + + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9952
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE + + col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col1 col0 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9954
SELECT col2 * - ( + - CAST( - col2 AS SIGNED ) ) * + col2 + - + col2 AS col0 FROM tab0
----
-1010
-103870
-970398

skipif mysql # not compatible
query I rowsort label-9954
SELECT col2 * - ( + - CAST ( - col2 AS INTEGER ) ) * + col2 + - + col2 AS col0 FROM tab0
----
-1010
-103870
-970398

query I rowsort
SELECT ALL 40 - - col2 FROM tab2 AS cor0
----
63
80
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + col2, - 28 col1 FROM tab2 AS cor0
----
0
-28
0
-28
0
-28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9957
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - col2, + CAST( NULL AS SIGNED ) - + col0 / ( col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9957
SELECT DISTINCT + CAST ( NULL AS REAL ) - col2, + CAST ( NULL AS INTEGER ) - + col0 / ( col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT + 25 + col2 + + - col2 * - col0 AS col2 FROM tab2 cor0
----
1106
2625
4433

query I rowsort
SELECT - col2 + + + col0 AS col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT - 40 DIV - + ( 25 ) + ( + 14 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif mysql # not compatible
query I rowsort label-9960
SELECT - 40 / - + ( 25 ) + ( + 14 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query II rowsort
SELECT + + col0, + 63 FROM tab1 WHERE NOT - - 18 + + + 83 IS NULL
----
51
63
85
63
91
63

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE - col1 + + 32 > + - col2 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col0 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL MIN( DISTINCT - col2 ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9965
SELECT ALL MIN ( DISTINCT - col2 ) col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9966
SELECT 69 DIV COUNT( * ) col1 FROM tab0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9966
SELECT 69 / COUNT ( * ) col1 FROM tab0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9967
SELECT + 90 DIV 6 AS col0 FROM tab1
----
15
15
15

skipif mysql # not compatible
query I rowsort label-9967
SELECT + 90 / 6 AS col0 FROM tab1
----
15
15
15

query I rowsort
SELECT ALL 7 * + - col1 FROM tab2 AS cor0
----
-357
-469
-539

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + col2 * - 17
----

query I rowsort
SELECT + col0 * 90 FROM tab1 WHERE NOT ( col1 ) NOT IN ( + 27 )
----

query I rowsort
SELECT ALL + 33 + col0 * - 18 FROM tab0
----
-1533
-1713
-237

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - ( + col2 ) ) BETWEEN ( + 24 ) AND ( 56 + 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * col1 + col2 BETWEEN 16 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 30
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT COUNT( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ( + COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9977
SELECT ( + COUNT ( * ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT DISTINCT + 73 * + ( - MAX( ALL - col0 ) ) FROM tab2
----
3358

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT + 73 * + ( - MAX ( ALL - col0 ) ) FROM tab2
----
3358

query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 AS col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9980
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9980
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL + SUM( ALL col0 ) * 79 FROM tab1
----
17933

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + SUM ( ALL col0 ) * 79 FROM tab1
----
17933

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT COUNT( * ) * 89 FROM tab0 WHERE 54 IS NOT NULL
----
267

skipif mysql # not compatible
query I rowsort label-9982
SELECT COUNT ( * ) * 89 FROM tab0 WHERE 54 IS NOT NULL
----
267

query I rowsort
SELECT ALL - AVG ( ALL - col2 ) FROM tab2 WHERE NOT - 79 + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL COUNT( * ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9984
SELECT ALL COUNT ( * ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9985
SELECT * FROM tab0 WHERE col0 + + CAST( col0 - col0 AS SIGNED ) IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-9985
SELECT * FROM tab0 WHERE col0 + + CAST ( col0 - col0 AS INTEGER ) IN ( - col1 )
----

query I rowsort
SELECT 78 * - 28 FROM tab2
----
-2184
-2184
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL SUM( - col2 ) - COUNT( * ) col0 FROM tab2
----
-124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9987
SELECT ALL SUM ( - col2 ) - COUNT ( * ) col0 FROM tab2
----
-124

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 34 ) NOT BETWEEN - col0 AND ( + ( col2 ) * + 23 )
----

query I rowsort
SELECT - col2 / - ( + 19 ) AS col2 FROM tab0 WHERE NOT ( + 98 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab0 WHERE col0 * ( col1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 20 / - 95 IN ( col2 * - col0 )
----

query I rowsort
SELECT col0 * - 56 AS col1 FROM tab0
----
-4872
-5432
-840

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 = + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 33 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + 82 * COUNT( * ) col0 FROM tab0
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9995
SELECT + 82 * COUNT ( * ) col0 FROM tab0
----
246

query I rowsort
SELECT + 99 * 81 FROM tab1
----
8019
8019
8019

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9997
SELECT ALL COUNT( * ) DIV 89 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL COUNT ( * ) / 89 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL <= 15
----

query I rowsort
SELECT ( col2 ) * col1 + col2 * col0 AS col2 FROM tab0 WHERE NULL = col2
----

