sqllogictest
Artifact Content
Not logged in

Artifact baa084678889008f156d68ca8d0a33bfd81279ed:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-0
SELECT 42 DIV col0 - col2 FROM tab0
----
-10
-45
-99

skipif mysql # not compatible
query I rowsort label-0
SELECT 42 / col0 - col2 FROM tab0
----
-10
-45
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 25 = 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * col0 >= ( col1 * col2 + col1 )
----

query I rowsort
SELECT DISTINCT 34 - + col1 FROM tab1
----
-13
20
29

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 - 88 FROM tab2
----
-134
-152
-163

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT DISTINCT - CAST( col0 AS SIGNED ) col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-12
SELECT DISTINCT - CAST ( col0 AS INTEGER ) col2 FROM tab1
----
-51
-85
-91

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-13
SELECT DISTINCT + COUNT ( + 90 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL MAX( ALL - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL MAX ( ALL - col2 ) FROM tab1
----
-59

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-15
SELECT MAX ( ALL - col2 ) col1 FROM tab2
----
-23

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-17
SELECT DISTINCT - ( COUNT( + 46 ) ) FROM tab2 cor0 WHERE NOT col0 * col0 + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT - ( COUNT ( + 46 ) ) FROM tab2 cor0 WHERE NOT col0 * col0 + - CAST ( NULL AS REAL ) IS NOT NULL
----
-3

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

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

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

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

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

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

query I rowsort
SELECT - 35 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ALL COUNT( * ) + ( - 51 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
-42

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL COUNT ( * ) + ( - 51 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
-42

query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) + col1 * 96 FROM tab1 AS cor0
----
1248
421
4444

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE - ( - 9 ) + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE - ( - 9 ) + col2 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col2 * + col2 + - 25 AS col1 FROM tab0 AS cor0
----
2184
75
9776

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT SUM( DISTINCT col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-29
SELECT SUM ( DISTINCT col0 ) FROM tab0 cor0
----
199

query I rowsort
SELECT - - 62 * + 64 FROM tab1 AS cor0
----
3968
3968
3968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 76 + col1 col2 FROM tab0 AS cor0
----
157
77
97

query I rowsort
SELECT DISTINCT - + 4 AS col0 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 55 IS NULL
----

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-36
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE ( col2 ) * - CAST( - col0 + col0 * col0 AS DECIMAL ) - + col1 * + col2 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE ( col2 ) * - CAST ( - col0 + col0 * col0 AS REAL ) - + col1 * + col2 IS NOT NULL
----
51
67
77

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 9 * + col0
----

query I rowsort
SELECT DISTINCT col2 + - + col1 * col0 AS col2 FROM tab1
----
-366
-4209
-618

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

query I rowsort
SELECT - col0 * + + col0 * col2 + 82 FROM tab2
----
-163758
-326168
-48586

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 1 * col2 >= ( - col1 )
----

query I rowsort
SELECT ALL + col2 - col1 AS col2 FROM tab2 WHERE NOT ( 17 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT SUM( - - 53 ) * ( COUNT( * ) ) col1 FROM tab1
----
477

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-44
SELECT DISTINCT SUM ( - - 53 ) * ( COUNT ( * ) ) col1 FROM tab1
----
477

query I rowsort
SELECT col2 + - 98 FROM tab2
----
-40
-58
-75

query I rowsort
SELECT col0 + col2 + col1 * 20 FROM tab1
----
1099
244
427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-47
SELECT DISTINCT MIN( DISTINCT ( + CAST( + CAST( col0 AS DECIMAL ) AS SIGNED ) ) ) * + 31 AS col1 FROM tab1 WHERE NOT col1 NOT BETWEEN ( - col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT MIN ( DISTINCT ( + CAST ( + CAST ( col0 AS REAL ) AS INTEGER ) ) ) * + 31 AS col1 FROM tab1 WHERE NOT col1 NOT BETWEEN ( - col1 ) AND NULL
----
NULL

query I rowsort
SELECT ALL + col1 * + 43 AS col2 FROM tab0
----
3483
43
903

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-49
SELECT ALL CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + col0 = NULL
----

query I rowsort
SELECT - + 57 + col2 + 24 FROM tab1 cor0
----
26
35
63

query I rowsort
SELECT DISTINCT col2 - + 35 AS col0 FROM tab2 cor0
----
-12
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT + SUM( + 49 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT + SUM ( + 49 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT + col1 - - + 18 AS col2 FROM tab0
----
19
39
99

query I rowsort
SELECT - col0 - - ( 48 ) FROM tab1
----
-3
-37
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

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

query I rowsort
SELECT 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

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

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

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

query I rowsort
SELECT ALL + + 2 AS col0 FROM tab2 AS cor0
----
2
2
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 5 / + 70 ) IS NOT NULL
----

query I rowsort
SELECT ALL 78 FROM tab0 AS cor0 WHERE col2 - - 93 + - col2 * - 54 BETWEEN - col1 + col2 AND col2 - - col1
----

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

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

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

query I rowsort
SELECT + col2 * - + col0 FROM tab0 cor0
----
-705
-870
-9603

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

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

query I rowsort
SELECT + col1 * - - col0 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 78 ) <> col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT + COUNT( * ) FROM tab0 WHERE NOT ( - col2 ) / 43 BETWEEN col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-75
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( - col2 ) / 43 BETWEEN col2 AND NULL
----
3

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

query I rowsort
SELECT 30 AS col2 FROM tab2 cor0 WHERE NOT ( 67 + + col1 + + ( 47 ) / col2 ) IS NOT NULL
----

query I rowsort
SELECT + - 31 * - col2 FROM tab2 AS cor0
----
1240
1798
713

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

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

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

query I rowsort
SELECT + col1 FROM tab2 WHERE col2 BETWEEN ( 25 ) AND ( col2 + col2 * col2 )
----
67
77

query III rowsort
SELECT * FROM tab1 WHERE ( 84 / + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT COUNT( DISTINCT col2 ) * 34 + + 5 FROM tab0 cor0
----
107

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT COUNT ( DISTINCT col2 ) * 34 + + 5 FROM tab0 cor0
----
107

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

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT ALL - + ( + + ( + - ( - col0 ) ) ) DIV - 25 + + col2 FROM tab2 AS cor0
----
24
42
61

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL - + ( + + ( + - ( - col0 ) ) ) / - 25 + + col2 FROM tab2 AS cor0
----
24
42
61

query I rowsort
SELECT + 93 + + col0 AS col2 FROM tab0 AS cor0
----
108
180
190

query I rowsort
SELECT - ( 79 ) + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-11
-20
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT ALL - COUNT( * ) - - + 10 AS col2 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL - COUNT ( * ) - - + 10 AS col2 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL + ( col0 ) * - 63 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 20 AND - col2 + - + col0
----

query I rowsort
SELECT ALL col0 + 27 AS col0 FROM tab0 AS cor0
----
114
124
42

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + + col1 NOT BETWEEN 44 AND - + ( 88 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-97
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) * 80 AS col0 FROM tab0
----
-3760
-7920
-800

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) * 80 AS col0 FROM tab0
----
-3760
-7920
-800

query I rowsort
SELECT + col1 * + col1 FROM tab1 WHERE 39 IN ( 1, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT COUNT( + col0 ) - + 60 + - + 1 AS col1 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-99
SELECT COUNT ( + col0 ) - + 60 + - + 1 AS col1 FROM tab0
----
-58

query I rowsort
SELECT DISTINCT - 44 + + - 50 FROM tab0
----
-94

query I rowsort
SELECT 14 - - ( - - col2 ) FROM tab0 AS cor0 WHERE 95 IS NOT NULL
----
113
24
61

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT + COUNT( DISTINCT + 28 ) + COUNT( 82 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-102
SELECT + COUNT ( DISTINCT + 28 ) + COUNT ( 82 ) FROM tab0 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-103
SELECT + - col1 DIV col1 * + - col0 + + - 53 * - + 94 + + col0 AS col2 FROM tab1 AS cor0
----
5084
5152
5164

skipif mysql # not compatible
query I rowsort label-103
SELECT + - col1 / col1 * + - col0 + + - 53 * - + 94 + + col0 AS col2 FROM tab1 AS cor0
----
5084
5152
5164

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT ALL + SUM( DISTINCT + - col1 ) - - 4 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL + SUM ( DISTINCT + - col1 ) - - 4 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-105
SELECT - - 70 / 74 + col2 + + - col0 AS col0 FROM tab0 WHERE NOT + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-105
SELECT - - 70 / 74 + col2 + + - col0 AS col0 FROM tab0 WHERE NOT + - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 - col0 NOT IN ( - + CAST( + - 93 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-106
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 - col0 NOT IN ( - + CAST ( + - 93 AS INTEGER ) )
----

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

query I rowsort
SELECT 95 * - + 45 AS col2 FROM tab1 AS cor0
----
-4275
-4275
-4275

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-109
SELECT + COUNT( * ) DIV - - COUNT( * ), SUM( + - 78 ) col0 FROM tab0 AS cor0
----
1
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-109
SELECT + COUNT ( * ) / - - COUNT ( * ), SUM ( + - 78 ) col0 FROM tab0 AS cor0
----
1
-234

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-110
SELECT + SUM ( + col0 ) col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - col1
----

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

query I rowsort
SELECT 46 * + 18 * ( + - 87 ) AS col0 FROM tab0 AS cor0
----
-72036
-72036
-72036

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

skipif mysql # not compatible
query I rowsort label-114
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

query I rowsort
SELECT + col0 + - 44 AS col0 FROM tab1 WHERE NOT + 26 + 32 BETWEEN + + col0 + + + col2 AND ( - col0 / + col0 * + col2 )
----
41
47
7

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - - col0 < col2
----
85
91

query I rowsort
SELECT DISTINCT ( 64 ) AS col1 FROM tab2
----
64

query I rowsort
SELECT ALL 98 * + 97 FROM tab2 WHERE + col1 BETWEEN + - ( col1 ) AND + - col2 + - 68 + + + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT + MIN( ALL 32 ) FROM tab2 WHERE NOT col1 * + - 58 IS NULL
----
32

skipif mysql # not compatible
query I rowsort label-119
SELECT + MIN ( ALL 32 ) FROM tab2 WHERE NOT col1 * + - 58 IS NULL
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - SUM( ( - 52 ) ) AS col2 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-120
SELECT - SUM ( ( - 52 ) ) AS col2 FROM tab2
----
156

query I rowsort
SELECT DISTINCT + col0 * 50 * 14 AS col0 FROM tab0
----
10500
60900
67900

query I rowsort
SELECT DISTINCT - + 95 + - 98 + + col1 + col1 FROM tab0 WHERE - ( + col2 ) <> - col1
----
-151
-191
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col2 FROM tab0
----
-70
-70
-70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT IN ( - col1, col0 / 93 + 49 ) AND NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 33 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT DISTINCT MAX( 69 ) AS col0 FROM tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT MAX ( 69 ) AS col0 FROM tab2 cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col1 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT + 65 + 28 * col2 + + col1 * col1 AS col1 FROM tab0 WHERE 69 NOT BETWEEN + col0 AND ( col2 )
----
2838
786
7942

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 + + 78 FROM tab0 AS cor0
----
165
175
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-133
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) * + + 57 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1197
-4617
-57

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) * + + 57 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1197
-4617
-57

query I rowsort
SELECT DISTINCT + 44 * - + col2 FROM tab2
----
-1012
-1760
-2552

query I rowsort
SELECT + 60 + - - col1 AS col0 FROM tab2
----
111
127
137

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND + + 36 / - 74 / + col1
----

query I rowsort
SELECT - 26 * - col0 FROM tab2
----
1196
1664
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT - COUNT( * ) * + ( 55 ) AS col2 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-139
SELECT - COUNT ( * ) * + ( 55 ) AS col2 FROM tab2
----
-165

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-140
SELECT DISTINCT CAST ( NULL AS REAL ) * + - col2 col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL MIN( ALL - - col0 ) + + + SUM( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-172

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL MIN ( ALL - - col0 ) + + + SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-172

query II rowsort
SELECT ALL col0 + - col2 * 44 AS col2, - 21 AS col2 FROM tab0 AS cor0
----
-2053
-21
-353
-21
-4259
-21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - 98 + col0 AND - 79 )
----

query I rowsort
SELECT DISTINCT ( col2 ) * 84 FROM tab2 AS cor0
----
1932
3360
4872

query I rowsort
SELECT ALL - col1 * - - col1 + col1 * + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT DISTINCT col0 DIV - - 32 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT col0 / - - 32 FROM tab0
----
0
2
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT DISTINCT 18 * COUNT( * ) AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT 18 * COUNT ( * ) AS col2 FROM tab2
----
54

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-151
SELECT ALL - COUNT( DISTINCT - col0 ) * + COUNT( * ) DIV + 37 DIV COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 20 * + col2 IN ( + - col0 * + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - COUNT ( DISTINCT - col0 ) * + COUNT ( * ) / + 37 / COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 20 * + col2 IN ( + - col0 * + - col0 )
----
0

query I rowsort
SELECT - col2 * - ( + 0 ) AS col0 FROM tab2 cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT + + 42 * - + col0 - - - col2 FROM tab1 cor0
----
-2238
-3629
-3890

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT 18 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-155
SELECT 18 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
54

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

query I rowsort
SELECT DISTINCT + 16 * + - ( - 39 ) AS col1 FROM tab2
----
624

onlyif mysql # DIV for integer division: 
query II rowsort label-158
SELECT DISTINCT - col0 DIV col2 + - + 39 + col0 AS col2, col2 * + 42 FROM tab1 WHERE NOT 5 IS NULL
----
12
4032
45
2478
51
2856

skipif mysql # not compatible
query II rowsort label-158
SELECT DISTINCT - col0 / col2 + - + 39 + col0 AS col2, col2 * + 42 FROM tab1 WHERE NOT 5 IS NULL
----
12
4032
45
2478
51
2856

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

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

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

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

query I rowsort
SELECT ALL - col1 + 30 + - 23 FROM tab2 AS cor0
----
-44
-60
-70

query I rowsort
SELECT ALL - + col1 + - 26 FROM tab1 cor0
----
-31
-40
-73

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

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

query I rowsort
SELECT + col0 + - - 11 AS col1 FROM tab2 AS cor0
----
57
75
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-166
SELECT + COUNT( * ) + - 32 DIV + 85 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-166
SELECT + COUNT ( * ) + - 32 / + 85 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 40 + - col0 + col1 * - + 89 + col0 * col2 + + ( - col1 ) FROM tab2 AS cor0
----
-1715
-3538
-4394

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + MIN( DISTINCT + + col1 ) FROM tab0 AS cor0 WHERE - col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT + MIN ( DISTINCT + + col1 ) FROM tab0 AS cor0 WHERE - col1 <> NULL
----
NULL

query II rowsort
SELECT col2, + col1 * col2 * - 32 AS col2 FROM tab1 AS cor0
----
59
-9440
68
-102272
96
-43008

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ( + - COUNT( + 15 ) ) * + MAX( - col2 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-172
SELECT ( + - COUNT ( + 15 ) ) * + MAX ( - col2 ) FROM tab2 AS cor0
----
69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = 89 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT 48 DIV - ( col1 ) - - + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-174
SELECT 48 / - ( col1 ) - - + col1 FROM tab2
----
51
67
77

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

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

query I rowsort
SELECT - + col0 - ( col0 ) * col2 + 0 FROM tab0 WHERE NULL IS NULL
----
-720
-957
-9700

onlyif mysql # DIV for integer division: 
query I rowsort label-178
SELECT + 57 DIV col2 - - 67 AS col2 FROM tab2
----
67
68
69

skipif mysql # not compatible
query I rowsort label-178
SELECT + 57 / col2 - - 67 AS col2 FROM tab2
----
67
68
69

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL + - SUM( DISTINCT - 64 ) AS col2 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL + - SUM ( DISTINCT - 64 ) AS col2 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT + COUNT( * ) * - - SUM( - col2 ) FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-180
SELECT + COUNT ( * ) * - - SUM ( - col2 ) FROM tab2 AS cor0
----
-363

query I rowsort
SELECT DISTINCT 83 * col2 FROM tab1 AS cor0
----
4897
5644
7968

onlyif mysql # aggregate syntax: 
query II rowsort label-182
SELECT - 50 * + COUNT( * ), - 76 AS col2 FROM tab1 AS cor0
----
-150
-76

skipif mysql # not compatible
query II rowsort label-182
SELECT - 50 * + COUNT ( * ), - 76 AS col2 FROM tab1 AS cor0
----
-150
-76

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

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

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

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

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

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT ALL + SUM( DISTINCT 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL + SUM ( DISTINCT 41 ) FROM tab2
----
41

query I rowsort
SELECT - col2 * + 12 FROM tab1 AS cor0
----
-1152
-708
-816

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 46 AS col0, + col0 col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 + - ( - col1 ) NOT BETWEEN 41 AND + col0
----
15
81
47
97
1
99

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

query I rowsort
SELECT DISTINCT 15 * + + col2 + - col2 FROM tab1 AS cor0
----
1344
826
952

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

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

query I rowsort
SELECT ALL 1 + + col2 FROM tab0
----
100
11
48

query II rowsort
SELECT DISTINCT - col1 + + 92 + 38 + + 49, + 5 AS col2 FROM tab2
----
102
5
112
5
128
5

onlyif mysql # DIV for integer division: 
query II rowsort label-199
SELECT + 36 DIV + col1 + - 52 DIV - + col1 AS col2, - col2 AS col2 FROM tab1
----
1
-68
17
-59
5
-96

skipif mysql # not compatible
query II rowsort label-199
SELECT + 36 / + col1 + - 52 / - + col1 AS col2, - col2 AS col2 FROM tab1
----
1
-68
17
-59
5
-96

query II rowsort
SELECT + 75 + - - col2, 28 AS col1 FROM tab1 AS cor0
----
134
28
143
28
171
28

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT DISTINCT MIN( col1 ) + - - MIN( ALL - - 68 ) FROM tab2 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT MIN ( col1 ) + - - MIN ( ALL - - 68 ) FROM tab2 AS cor0
----
119

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT - COUNT( * ) * + - 10 AS col0, 35 AS col2 FROM tab2
----
30
35

skipif mysql # not compatible
query II rowsort label-203
SELECT - COUNT ( * ) * + - 10 AS col0, 35 AS col2 FROM tab2
----
30
35

query I rowsort
SELECT + - 58 - 28 AS col0 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL col0 + col1 + + col2 FROM tab2 AS cor0
----
120
181
200

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT DISTINCT - MAX( col1 ) + 33 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT - MAX ( col1 ) + 33 FROM tab1 AS cor0
----
-14

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE + col0 - + 93 * + col2 IS NULL
----

query I rowsort
SELECT + ( + col2 ) + - col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 97 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 97 FROM tab2
----
NULL

query I rowsort
SELECT + col1 + - ( + - col2 ) AS col1 FROM tab2
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) NOT IN ( - col1, 22 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT MAX( DISTINCT - - 85 ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-216
SELECT MAX ( DISTINCT - - 85 ) FROM tab0
----
85

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-217
SELECT ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT DISTINCT col0 * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT col0 * col2 / col2 AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL + col0 * 69 AS col2 FROM tab2 cor0
----
3174
4416
5175

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < col1 + + 45
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col1 * + 97 - - + 84 + - col1 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-224
SELECT + CAST( - CAST( ( + + MIN( - 94 ) ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----
NULL

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

query I rowsort
SELECT - col0 + - ( + 37 ) FROM tab2 AS cor0
----
-101
-112
-83

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

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

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

skipif mysql # not compatible
query I rowsort label-227
SELECT - COUNT ( * ) FROM tab1 WHERE + col2 IS NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-229
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 < + col0 * - CAST( + - col0 AS SIGNED ) * - col1 + - 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-229
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 < + col0 * - CAST ( + - col0 AS INTEGER ) * - col1 + - 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab1 WHERE NULL <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - col2 col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + col0 * - - 77 * + 96 AS col1 FROM tab1
----
376992
628320
672672

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL - SUM( DISTINCT + 56 ) * MAX( ALL + 43 ) - + 52 * 97 col2 FROM tab0 AS cor0
----
-7452

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-234
SELECT ALL - SUM ( DISTINCT + 56 ) * MAX ( ALL + 43 ) - + 52 * 97 col2 FROM tab0 AS cor0
----
-7452

query I rowsort
SELECT col1 + - - col0 AS col0 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT DISTINCT + col0 * - + col0 AS col1 FROM tab1
----
-2601
-7225
-8281

query II rowsort
SELECT DISTINCT + col2 AS col1, col2 * + col0 AS col0 FROM tab0
----
10
870
47
705
99
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-238
SELECT ALL COUNT( ALL - 33 ) DIV - 9 + CAST( - MAX( ALL + + col1 ) AS SIGNED ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL COUNT ( ALL - 33 ) / - 9 + CAST ( - MAX ( ALL + + col1 ) AS INTEGER ) FROM tab1
----
-47

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

skipif mysql # not compatible
query I rowsort label-239
SELECT MAX ( col2 ) AS col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT MAX( ALL + - col0 ) FROM tab1 cor0 WHERE + col2 IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-240
SELECT MAX ( ALL + - col0 ) FROM tab1 cor0 WHERE + col2 IN ( - col0 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 12 + - col1 * + col1 FROM tab2 AS cor0
----
-2589
-4477
-5917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-243
SELECT + col0 * CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-243
SELECT + col0 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT + + 37 AS col1 FROM tab0 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 85 / - col2 IS NOT NULL
----

query I rowsort
SELECT ALL 11 * - 32 AS col0 FROM tab2
----
-352
-352
-352

onlyif mysql # aggregate syntax: 
query II rowsort label-247
SELECT ALL MIN( DISTINCT + col1 ) AS col0, + 73 + 28 FROM tab0
----
1
101

skipif mysql # not compatible
query II rowsort label-247
SELECT ALL MIN ( DISTINCT + col1 ) AS col0, + 73 + 28 FROM tab0
----
1
101

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-249
SELECT DISTINCT col0 * + col1 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
query II rowsort label-249
SELECT DISTINCT col0 * + col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
2346
NULL
4928
NULL
5025
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT DISTINCT COUNT( DISTINCT 98 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-250
SELECT DISTINCT COUNT ( DISTINCT 98 ) FROM tab0
----
1

query I rowsort
SELECT 14 AS col0 FROM tab1 WHERE NOT - col2 IN ( - + col1, + 86 - + ( - 6 ) )
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 83 col1 FROM tab1 AS cor0 WHERE NOT - col2 * + + col0 + - + 62 > + col0
----
-83
-83
-83

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT DISTINCT + 77 + MAX( DISTINCT + 43 ) AS col1 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT + 77 + MAX ( DISTINCT + 43 ) AS col1 FROM tab1
----
120

query I rowsort
SELECT DISTINCT - - col0 + + 33 FROM tab2 AS cor0
----
108
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT - COUNT( * ) col2 FROM tab1 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-260
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + - 95 AS col2 FROM tab1 AS cor0
----
-27
-36
1

query III rowsort
SELECT * FROM tab0 WHERE ( col0 IS NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + - 82 AS col2 FROM tab1
----
4838
5576
7872

query I rowsort
SELECT 54 + - + 25 * - + 28 AS col1 FROM tab2
----
754
754
754

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

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL ( + 66 ) * COUNT ( * ) FROM tab0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT COUNT( * ) + + ( - + 80 ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-266
SELECT COUNT ( * ) + + ( - + 80 ) FROM tab1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-267
SELECT - COUNT( * ) + 80 AS col0, + COUNT( * ) col0 FROM tab1
----
77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-267
SELECT - COUNT ( * ) + 80 AS col0, + COUNT ( * ) col0 FROM tab1
----
77
3

onlyif mysql # aggregate syntax: 
query II rowsort label-268
SELECT - - COUNT( * ) AS col1, 6 FROM tab2 WHERE col0 IS NULL
----
0
6

skipif mysql # not compatible
query II rowsort label-268
SELECT - - COUNT ( * ) AS col1, 6 FROM tab2 WHERE col0 IS NULL
----
0
6

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

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

query I rowsort
SELECT DISTINCT - 23 + + 71 AS col2 FROM tab0 AS cor0
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL + 49 * COUNT( * ) FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL + 49 * COUNT ( * ) FROM tab1
----
147

query I rowsort
SELECT + col1 - 77 + - + col2 AS col0 FROM tab0
----
-175
-43
-66

query II rowsort
SELECT - col1 AS col2, col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT DISTINCT + COUNT( - 33 ) - + 83 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT + COUNT ( - 33 ) - + 83 FROM tab0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-277
SELECT ALL - 8 * + 11 + - - col1 AS col0, - CAST( + - 32 AS SIGNED ) FROM tab2
----
-11
32
-21
32
-37
32

skipif mysql # not compatible
query II rowsort label-277
SELECT ALL - 8 * + 11 + - - col1 AS col0, - CAST ( + - 32 AS INTEGER ) FROM tab2
----
-11
32
-21
32
-37
32

query II rowsort
SELECT col2, col2 FROM tab1 AS cor0 WHERE NOT NULL <> 74
----

query II rowsort
SELECT DISTINCT + col0, 53 FROM tab1 AS cor0
----
51
53
85
53
91
53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL + MAX( + + col0 ) * + COUNT( * ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + MAX ( + + col0 ) * + COUNT ( * ) FROM tab1 AS cor0
----
273

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 77 * col1 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-284
SELECT 45 DIV - MIN( DISTINCT + - 45 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-284
SELECT 45 / - MIN ( DISTINCT + - 45 ) AS col1 FROM tab1
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-286
SELECT ALL - 39 DIV + 92 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL - 39 / + 92 AS col0 FROM tab0
----
0
0
0

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

query II rowsort
SELECT ALL 39, col1 + + - col1 AS col1 FROM tab0
----
39
0
39
0
39
0

query II rowsort
SELECT + 95, 57 AS col2 FROM tab0
----
95
57
95
57
95
57

query I rowsort
SELECT ( - 2 ) AS col1 FROM tab1
----
-2
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT CAST( NULL AS SIGNED ) * - MAX( ALL - 10 ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-291
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - MAX ( ALL - 10 ) col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 20 + + col2 BETWEEN - 22 + + + 38 AND col0
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - 22 - + + 85 + + - col1 / 37 IS NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 84 AS col0 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT - ( + col1 ) * col2 * + - 39 FROM tab2 cor0
----
120120
151554
45747

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 52 * 40 <= + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - 49 AS col1, 34 AS col1 FROM tab1 AS cor0
----
49
34
49
34
49
34

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 6 < NULL
----

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

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

query II rowsort
SELECT ALL - col2 + - col2, col0 AS col1 FROM tab2 AS cor0
----
-116
75
-46
46
-80
64

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-304
SELECT ALL * FROM tab2 WHERE NOT - col1 * - 9 NOT BETWEEN + + 16 * + col1 AND + - col1 + CAST( - 48 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-304
SELECT ALL * FROM tab2 WHERE NOT - col1 * - 9 NOT BETWEEN + + 16 * + col1 AND + - col1 + CAST ( - 48 AS REAL )
----

query I rowsort
SELECT 75 * + col1 FROM tab0
----
1575
6075
75

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT - MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-306
SELECT - MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT ALL ( + + col1 ) * + col1 - + 69 FROM tab2
----
2532
4420
5860

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

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

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

query I rowsort
SELECT DISTINCT + col0 - - 93 FROM tab0
----
108
180
190

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 < - col2
----
3

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 < - col2
----
3

query I rowsort
SELECT - ( + col1 ) * - - 62 FROM tab0 AS cor0
----
-1302
-5022
-62

query I rowsort
SELECT ALL + - 29 AS col2 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT - + col1 * 5 AS col2 FROM tab0 AS cor0
----
-105
-405
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-316
SELECT COUNT( * ) * 61 AS col0, + 65 AS col1 FROM tab1 AS cor0
----
183
65

skipif mysql # not compatible
query II rowsort label-316
SELECT COUNT ( * ) * 61 AS col0, + 65 AS col1 FROM tab1 AS cor0
----
183
65

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT DISTINCT ( 39 ) * - COUNT( * ) AS col0 FROM tab2 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT ( 39 ) * - COUNT ( * ) AS col0 FROM tab2 cor0
----
-117

query I rowsort
SELECT DISTINCT + 18 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - + col2 >= col2 * + + 48
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT DISTINCT - COUNT( * ) * - 83 col1 FROM tab2
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-319
SELECT DISTINCT - COUNT ( * ) * - 83 col1 FROM tab2
----
249

query I rowsort
SELECT - ( - 2 ) AS col0 FROM tab2
----
2
2
2

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-323
SELECT ALL CAST( NULL AS DECIMAL ) + 64 AS col1, CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL CAST ( NULL AS REAL ) + 64 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
NULL
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT ALL - 77 * - COUNT( * ) AS col2 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL - 77 * - COUNT ( * ) AS col2 FROM tab1
----
231

query II rowsort
SELECT ALL - + col0, 92 AS col0 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-51
92
-85
92
-91
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-326
SELECT * FROM tab1 AS cor0 WHERE NOT 17 >= 7 * + CAST( NULL AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-326
SELECT * FROM tab1 AS cor0 WHERE NOT 17 >= 7 * + CAST ( NULL AS INTEGER ) + - col2
----

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE 70 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 86 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - ( + 47 ) AS col1 FROM tab0 AS cor0
----
-3807
-47
-987

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-331
SELECT CAST( - + col0 AS SIGNED ) * col0 + 1, + 28 * + 26 AS col1 FROM tab0 AS cor0
----
-224
728
-7568
728
-9408
728

skipif mysql # not compatible
query II rowsort label-331
SELECT CAST ( - + col0 AS INTEGER ) * col0 + 1, + 28 * + 26 AS col1 FROM tab0 AS cor0
----
-224
728
-7568
728
-9408
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-332
SELECT ALL + CAST( NULL AS SIGNED ) + - - col1 - col0 * + 61 * - 46 + + - 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + CAST ( NULL AS INTEGER ) + - - col1 - col0 * + 61 * - 46 + + - 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT DISTINCT - col0 DIV - ( + col1 ) + col1 AS col2 FROM tab0 cor0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT - col0 / - ( + col1 ) + col1 AS col2 FROM tab0 cor0
----
25
81
98

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

query I rowsort
SELECT ALL - col0 - ( - 45 ) AS col2 FROM tab2 AS cor0
----
-1
-19
-30

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

query I rowsort
SELECT ALL col2 * - col1 + + ( + + col1 ) FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT - 96 + ( - + col0 ) * + - 16 AS col2 FROM tab1
----
1264
1360
720

query I rowsort
SELECT - col1 + - - col2 FROM tab2
----
-28
-37
-9

query II rowsort
SELECT col1 + + 26, - 27 AS col0 FROM tab0
----
107
-27
27
-27
47
-27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + col2 + - - 12 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT + col2 + + - 46 * + col1 DIV col1 FROM tab0
----
-36
1
53

skipif mysql # not compatible
query I rowsort label-343
SELECT + col2 + + - 46 * + col1 / col1 FROM tab0
----
-36
1
53

query I rowsort
SELECT ALL 42 + ( - - col1 ) FROM tab1
----
47
56
89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= col0 + - col1 + - col0
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 65 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-347
SELECT 38 * + - col1 * - CAST( NULL AS SIGNED ) / - 40 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-347
SELECT 38 * + - col1 * - CAST ( NULL AS INTEGER ) / - 40 AS col1 FROM tab2
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL + + MIN( - + col2 ) * + - MIN( + ( - - 73 ) ) FROM tab0 cor0
----
7227

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL + + MIN ( - + col2 ) * + - MIN ( + ( - - 73 ) ) FROM tab0 cor0
----
7227

onlyif mysql # aggregate syntax: 
query II rowsort label-351
SELECT DISTINCT 66, - COUNT( * ) + + 27 AS col0 FROM tab0 cor0
----
66
24

skipif mysql # not compatible
query II rowsort label-351
SELECT DISTINCT 66, - COUNT ( * ) + + 27 AS col0 FROM tab0 cor0
----
66
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 * - col2 + + 24 + col2 col1 FROM tab2 AS cor0
----
1542
2664
3852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT - + 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-353
SELECT - + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + - col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT DISTINCT - col0 DIV - 72 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT - col0 / - 72 FROM tab1 AS cor0
----
0
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-358
SELECT DISTINCT SUM( - ( + - ( + - col1 ) ) ), MAX( DISTINCT 49 ) AS col1 FROM tab0
----
-103
49

skipif mysql # not compatible
query II rowsort label-358
SELECT DISTINCT SUM ( - ( + - ( + - col1 ) ) ), MAX ( DISTINCT 49 ) AS col1 FROM tab0
----
-103
49

query III rowsort
SELECT * FROM tab1 WHERE NOT + 77 < - - col2 + + col2 * - col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 90 FROM tab1 WHERE NOT + 19 NOT BETWEEN + 50 * + 93 + + 88 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) BETWEEN - 63 AND + col0 - col2
----

query II rowsort
SELECT DISTINCT - 95 + - 27 - - col1 * + col2 * col0 AS col0, col0 * - 73 + col0 FROM tab2 cor0
----
196998
-4608
291328
-5400
53836
-3312

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT ( SUM( DISTINCT col1 ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT ( SUM ( DISTINCT col1 ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL + + 24 * - ( - + 21 ) * SUM( - col2 ) * - - MAX( - col0 ) + + + 65 AS col2 FROM tab1 AS cor0
----
5732057

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + + 24 * - ( - + 21 ) * SUM ( - col2 ) * - - MAX ( - col0 ) + + + 65 AS col2 FROM tab1 AS cor0
----
5732057

onlyif mysql # DIV for integer division: 
query I rowsort label-366
SELECT + col0 DIV col0 + + col0 + - - col1 FROM tab2 cor0
----
142
143
98

skipif mysql # not compatible
query I rowsort label-366
SELECT + col0 / col0 + + col0 + - - col1 FROM tab2 cor0
----
142
143
98

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

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

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

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + 90
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-371
SELECT + COUNT( * ) AS col2, COUNT( * ) * + MIN( DISTINCT - col2 ) FROM tab0
----
3
-297

skipif mysql # not compatible
query II rowsort label-371
SELECT + COUNT ( * ) AS col2, COUNT ( * ) * + MIN ( DISTINCT - col2 ) FROM tab0
----
3
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT DISTINCT - 61 * MIN( + + col1 ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT - 61 * MIN ( + + col1 ) FROM tab0
----
-61

query I rowsort
SELECT DISTINCT - 2 FROM tab1, tab0 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 49, + ( - col0 ) col2 FROM tab1
----
49
-51
49
-85
49
-91

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

query II rowsort
SELECT + + col0 + - + col0, - 5 AS col0 FROM tab1 AS cor0
----
0
-5
0
-5
0
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-377
SELECT + COUNT( * ) * - 14 DIV - 74 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-377
SELECT + COUNT ( * ) * - 14 / - 74 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE 44 = + col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= ( NULL )
----

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

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

skipif mysql # not compatible
query I rowsort label-382
SELECT 39 / - col2 AS col2 FROM tab0 AS cor0
----
-3
0
0

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

query I rowsort
SELECT DISTINCT col2 * + + col1 - - 93 AS col0 FROM tab1 AS cor0
----
1437
3289
388

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

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

query I rowsort
SELECT - + 69 AS col1 FROM tab2 AS cor0
----
-69
-69
-69

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-388
SELECT DISTINCT COUNT( * ), CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-388
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS REAL ) AS col0 FROM tab1
----
3
NULL

query I rowsort
SELECT DISTINCT col1 * + - ( + col1 ) AS col2 FROM tab2
----
-2601
-4489
-5929

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-391
SELECT ALL - COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) AS col2, 61 FROM tab1
----
-6
61

skipif mysql # not compatible
query II rowsort label-391
SELECT ALL - COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) AS col2, 61 FROM tab1
----
-6
61

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT MAX( 54 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-392
SELECT MAX ( 54 ) FROM tab0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-393
SELECT 37 + - + CAST( + MAX( ALL col0 ) AS SIGNED ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-393
SELECT 37 + - + CAST ( + MAX ( ALL col0 ) AS INTEGER ) FROM tab1
----
-54

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

query I rowsort
SELECT ALL + 24 + - 16 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 43 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL col2 * - 50 FROM tab2
----
-1150
-2000
-2900

query I rowsort
SELECT ALL col1 * col2 + ( - + col0 ) FROM tab1 AS cor0
----
1293
210
3105

query I rowsort
SELECT + 47 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
47
47
47

query I rowsort
SELECT - col0 * - col0 + - - ( - 61 ) + - col2 * - col2 FROM tab2 AS cor0
----
2584
5635
8928

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-401
SELECT + + CAST( - 23 AS SIGNED ) + + col2 * col2 col0, + 52 AS col1 FROM tab0 AS cor0
----
2186
52
77
52
9778
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-401
SELECT + + CAST ( - 23 AS INTEGER ) + + col2 * col2 col0, + 52 AS col1 FROM tab0 AS cor0
----
2186
52
77
52
9778
52

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

query I rowsort
SELECT ALL + + 19 + - col2 AS col1 FROM tab2 AS cor0
----
-21
-39
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - MIN( DISTINCT + ( col1 ) ) * + 47 + + COUNT( * ) FROM tab1 AS cor0 WHERE 74 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT - MIN ( DISTINCT + ( col1 ) ) * + 47 + + COUNT ( * ) FROM tab1 AS cor0 WHERE 74 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-405
SELECT - CAST( NULL AS SIGNED ) + 38 * - CAST( + 34 AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-405
SELECT - CAST ( NULL AS INTEGER ) + 38 * - CAST ( + 34 AS REAL ) FROM tab0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-406
SELECT - 22 + COUNT ( * ) FROM tab0
----
-19

query I rowsort
SELECT ALL col0 * - col2 * + col1 * 49 FROM tab0
----
-2798145
-470547
-895230

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT 85 + - - 35 < + - col1
----
46
64
75

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-412
SELECT * FROM tab2 WHERE ( - - CAST( NULL AS SIGNED ) + 98 ) = CAST( NULL AS SIGNED ) / - col2
----

skipif mysql # not compatible
query III rowsort label-412
SELECT * FROM tab2 WHERE ( - - CAST ( NULL AS INTEGER ) + 98 ) = CAST ( NULL AS INTEGER ) / - col2
----

query III rowsort
SELECT * FROM tab0 WHERE + 51 / - + 29 >= NULL
----

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

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

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

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

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

query I rowsort
SELECT 77 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - 72 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 62 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - 31 * 48 FROM tab2 cor0
----
-1488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-423
SELECT DISTINCT - CAST( 86 AS SIGNED ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT - CAST ( 86 AS INTEGER ) FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT + - MAX( ALL col0 ) + + 67 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-424
SELECT + - MAX ( ALL col0 ) + + 67 FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT + MIN( - + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + MIN ( - + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT ALL - ( + CAST( + - col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - ( + CAST ( + - col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, col0 * - col0 col1 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-429
SELECT COUNT( * ) DIV + MIN( ALL + + ( + 43 ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-429
SELECT COUNT ( * ) / + MIN ( ALL + + ( + 43 ) ) AS col2 FROM tab1
----
0

query II rowsort
SELECT col1 * + col0, 27 AS col1 FROM tab0
----
1215
27
1827
27
97
27

query I rowsort
SELECT DISTINCT 12 + col0 FROM tab2
----
58
76
87

query I rowsort
SELECT ALL + col2 * + 57 AS col2 FROM tab0
----
2679
5643
570

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( - 51 ) ) >= col1
----

query I rowsort
SELECT - 80 + + 24 FROM tab1 cor0 WHERE NULL IS NULL
----
-56
-56
-56

query I rowsort
SELECT ALL col0 + + 29 * + + col2 * + 76 FROM tab2 AS cor0
----
127907
50738
88224

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-436
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-81

query I rowsort
SELECT ( - col0 ) FROM tab0 WHERE NULL IN ( + + col0 * col0 * 47, + 20, - - col2, - ( - + 72 ) + + 83 )
----

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

skipif mysql # not compatible
query I rowsort label-438
SELECT - - col2 / - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-439
SELECT - ( COUNT ( * ) ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-440
SELECT + - 98 DIV + ( SUM( ALL + col1 ) ) * + 91 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-440
SELECT + - 98 / + ( SUM ( ALL + col1 ) ) * + 91 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 87 + - 89 + + col1 + - + 94 AS col2 FROM tab0 AS cor0 WHERE 68 BETWEEN 99 AND 5 + - + 95
----

query I rowsort
SELECT - - 57 AS col0 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT - 64 + - col0 FROM tab0 AS cor0
----
-151
-161
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( 64 ) col2 FROM tab0
----
5568
6208
960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT MAX( ALL col2 ) / - - COUNT( * ) * 7 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT MAX ( ALL col2 ) / - - COUNT ( * ) * 7 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT - + MIN( ALL - + col2 ) col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-448
SELECT - + MIN ( ALL - + col2 ) col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col0, + col1 - + col1 - + - 60 * + col0, - + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - - COUNT( * ) col2 FROM tab1 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-450
SELECT - - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT - 28 AS col1, + 20 FROM tab2 AS cor0
----
-28
20
-28
20
-28
20

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

query I rowsort
SELECT ALL 6 + - - col2 AS col0 FROM tab0 AS cor0
----
105
16
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-454
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + CAST( NULL AS SIGNED ) > - col2 - + col2 + - col2 * + + ( + 0 ) / + - 59 * - col1
----

skipif mysql # not compatible
query III rowsort label-454
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) > - col2 - + col2 + - col2 * + + ( + 0 ) / + - 59 * - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-455
SELECT * FROM tab2 cor0 WHERE - col0 * 22 NOT BETWEEN - col0 AND - + CAST( NULL AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-455
SELECT * FROM tab2 cor0 WHERE - col0 * 22 NOT BETWEEN - col0 AND - + CAST ( NULL AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2, col0 FROM tab0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT DISTINCT + col2 AS col1, 11 AS col2 FROM tab1
----
59
11
68
11
96
11

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

query I rowsort
SELECT + col2 + 9 AS col2 FROM tab2
----
32
49
67

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT + 15 * COUNT( * ) + - 81 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-460
SELECT + 15 * COUNT ( * ) + - 81 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT COUNT( * ) + + - 45 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-461
SELECT COUNT ( * ) + + - 45 FROM tab0
----
-42

query I rowsort
SELECT ALL - col1 + + 57 AS col0 FROM tab0 AS cor0
----
-24
36
56

query I rowsort
SELECT col1 * - ( - + col2 ) + + - 43 AS col1 FROM tab2 AS cor0
----
1130
3037
3843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-464
SELECT - 15 - + - col0 * - 15 FROM tab1 AS cor0 WHERE + ( - - CAST( - + col2 AS SIGNED ) ) * - ( - 61 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-464
SELECT - 15 - + - col0 * - 15 FROM tab1 AS cor0 WHERE + ( - - CAST ( - + col2 AS INTEGER ) ) * - ( - 61 ) >= NULL
----

query I rowsort
SELECT DISTINCT + - col0 * col2 + + 87 FROM tab1 AS cor0
----
-4809
-4928
-6101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 23 * + col2 NOT IN ( - col1, - 87, col1, - + 11, + - ( - 39 ) + col2 / + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 23 * + col2 NOT IN ( - col1, - 87, col1, - + 11, + - ( - 39 ) + col2 / + CAST ( NULL AS INTEGER ) )
----
0

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

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

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

query I rowsort
SELECT ALL - ( - col0 ) * + + 53 FROM tab1 cor0
----
2703
4505
4823

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-471
SELECT * FROM tab2 cor0 WHERE NOT + 99 + CAST( - + col2 AS SIGNED ) = + 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-471
SELECT * FROM tab2 cor0 WHERE NOT + 99 + CAST ( - + col2 AS INTEGER ) = + 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-472
SELECT ALL 89 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL 89 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT COUNT( DISTINCT + - 52 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-473
SELECT COUNT ( DISTINCT + - 52 ) AS col0 FROM tab1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT SUM( col2 ) col2 FROM tab1
----
223

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

query II rowsort
SELECT - col1 AS col2, col2 AS col2 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT + COUNT( * ) col2 FROM tab1, tab1 cor0
----
9

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT MIN( col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-481
SELECT MIN ( col1 ) FROM tab0
----
1

query I rowsort
SELECT - col1 - - 93 * col0 FROM tab1
----
4729
7900
8416

query I rowsort
SELECT ALL 7 * - col2 FROM tab1
----
-413
-476
-672

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

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT ALL col1 DIV 38 - col1 * 27 AS col2 FROM tab1 WHERE NOT - col1 + - 22 DIV - col0 = 70
----
-1268
-135
-378

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL col1 / 38 - col1 * 27 AS col2 FROM tab1 WHERE NOT - col1 + - 22 / - col0 = 70
----
-1268
-135
-378

query I rowsort
SELECT DISTINCT 97 * col0 AS col2 FROM tab0
----
1455
8439
9409

query I rowsort
SELECT DISTINCT + 86 * col2 FROM tab2
----
1978
3440
4988

query I rowsort
SELECT ALL 3 + col2 FROM tab0
----
102
13
50

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

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

query I rowsort
SELECT ALL - col1 * - 82 - + col2 AS col2 FROM tab2
----
4159
5436
6274

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT - 48 * + MIN( ALL + 2 * 4 ) FROM tab0
----
-384

skipif mysql # not compatible
query I rowsort label-491
SELECT - 48 * + MIN ( ALL + 2 * 4 ) FROM tab0
----
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-492
SELECT ALL - col0 DIV col1 + col2 FROM tab1
----
42
67
93

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - col0 / col1 + col2 FROM tab1
----
42
67
93

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( col1 ) * 81 + col2 NOT IN ( 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT ALL + 83 * SUM( - 28 ) col1 FROM tab2
----
-6972

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-494
SELECT ALL + 83 * SUM ( - 28 ) col1 FROM tab2
----
-6972

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT MAX( DISTINCT ( 64 ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
64

skipif mysql # not compatible
query I rowsort label-495
SELECT MAX ( DISTINCT ( 64 ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
64

query I rowsort
SELECT ALL - 1 AS col2 FROM tab2
----
-1
-1
-1

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 / - 44 ) <= 80
----

query I rowsort
SELECT 14 * - col2 - - col1 FROM tab0
----
-119
-1385
-577

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

query I rowsort
SELECT DISTINCT ( - 25 ) FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT - ( col1 ) DIV - col1 - + 35 AS col0 FROM tab1 AS cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-502
SELECT - ( col1 ) / - col1 - + 35 AS col0 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + col0 / col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + 89 * + col0 ) AND ( ( col0 ) - col2 * - 52 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-505
SELECT DISTINCT - ( col1 ) - CAST( - CAST( col2 AS SIGNED ) + col1 * 11 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1
-496
-72

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT - ( col1 ) - CAST ( - CAST ( col2 AS INTEGER ) + col1 * 11 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1
-496
-72

query I rowsort
SELECT 3 + - 74 FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT + COUNT( col0 ) * 33 + 0 AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-507
SELECT + COUNT ( col0 ) * 33 + 0 AS col2 FROM tab1 AS cor0
----
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-509
SELECT ( - MIN( ( + col2 ) ) ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-509
SELECT ( - MIN ( ( + col2 ) ) ) / + COUNT ( * ) FROM tab1 AS cor0
----
-19

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

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

skipif mysql # not compatible
query I rowsort label-511
SELECT + 71 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
213

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL COUNT( * ) * ( 2 * + ( 25 ) ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL COUNT ( * ) * ( 2 * + ( 25 ) ) FROM tab2 AS cor0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT MAX( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT CAST( - 23 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT MAX ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT CAST ( - 23 AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-515
SELECT - col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT - col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT - MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT 92 * col1 * - col1 AS col0 FROM tab2
----
-239292
-412988
-545468

query I rowsort
SELECT DISTINCT - 52 * + 18 FROM tab0 WHERE + col2 NOT IN ( - ( - col1 ) * col2 + col1 )
----
-936

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

query I rowsort
SELECT DISTINCT 5 * - + col2 AS col0 FROM tab0
----
-235
-495
-50

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

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

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

query I rowsort
SELECT DISTINCT col2 * col0 - - col1 FROM tab2 AS cor0
----
1109
2637
4417

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 63 <= + 88
----

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

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT COUNT( ALL - 88 ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT COUNT ( ALL - 88 ) FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT ALL + 31 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT + col0 / + col1 FROM tab0 AS cor0 WHERE - 44 > + + ( ( col1 ) ) * + 44 + 59
----

query I rowsort
SELECT ALL 87 * - - col1 + - 86 + 26 FROM tab1 AS cor0
----
1158
375
4029

query I rowsort
SELECT DISTINCT col1 * col2 - col0 + - col2 + 53 AS col1 FROM tab0 AS cor0
----
-44
166
3798

query I rowsort
SELECT + col1 AS col1 FROM tab2 cor0 WHERE ( col1 ) = ( NULL )
----

query I rowsort
SELECT ALL + 10 + 50 FROM tab0 AS cor0 WHERE NULL > ( ( - - col0 ) )
----

query II rowsort
SELECT ALL 0, - 57 + + col2 * 96 AS col0 FROM tab2 AS cor0
----
0
2151
0
3783
0
5511

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT DISTINCT - + COUNT( * ) + + + SUM( DISTINCT - 71 ) AS col0 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT - + COUNT ( * ) + + + SUM ( DISTINCT - 71 ) AS col0 FROM tab0 AS cor0
----
-74

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 22 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 69 - + col1 + + col2 AS col1 FROM tab2
----
-3547
-4632
-5350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * col2 col1 FROM tab1
----
-5605
-6460
-9120

query I rowsort
SELECT - 30 + - col1 AS col1 FROM tab0
----
-111
-31
-51

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

query I rowsort
SELECT + col1 + ( - col2 ) * - + 30 FROM tab2
----
1277
1807
741

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

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

query I rowsort
SELECT col0 + - + col2 + - + col2 * col0 FROM tab0
----
-737
-793
-9605

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 + + col1 * - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT COUNT( ALL + col1 ) + + + SUM( ALL - + 38 ) FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-546
SELECT COUNT ( ALL + col1 ) + + + SUM ( ALL - + 38 ) FROM tab2
----
-111

query I rowsort
SELECT ALL + 69 + - 7 FROM tab2
----
62
62
62

query I rowsort
SELECT + col1 * - + col2 AS col2 FROM tab1
----
-1344
-295
-3196

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

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

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

query I rowsort
SELECT DISTINCT col2 - - 29 AS col1 FROM tab1
----
125
88
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - - 7 col2 FROM tab0
----
3
40
92

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-555
SELECT ( - SUM( - - col0 ) ) DIV + - COUNT( + + 51 ) col2 FROM tab0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-555
SELECT ( - SUM ( - - col0 ) ) / + - COUNT ( + + 51 ) col2 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT DISTINCT + - MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
-81

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

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 <= NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * col0 + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT MIN( + - 52 ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-567
SELECT MIN ( + - 52 ) FROM tab2
----
-52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = 77
----

query II rowsort
SELECT ALL + 44 AS col0, col0 * + col0 AS col2 FROM tab0
----
44
225
44
7569
44
9409

query II rowsort
SELECT - ( - + col2 ) AS col2, - col0 AS col1 FROM tab1
----
59
-85
68
-91
96
-51

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-572
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-572
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL + SUM( ALL + 75 ) + - 95 FROM tab2 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + SUM ( ALL + 75 ) + - 95 FROM tab2 AS cor0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT 27 * 37 * ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
-2997

skipif mysql # not compatible
query I rowsort label-575
SELECT 27 * 37 * ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT COUNT( * ) * + 61 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-576
SELECT COUNT ( * ) * + 61 FROM tab2
----
183

query I rowsort
SELECT DISTINCT col0 * + 14 AS col2 FROM tab2
----
1050
644
896

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

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 WHERE + 59 - 47 <= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT - + 17 + + 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-581
SELECT - + 17 + + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col1 ) + - 76 * + 21 AS col1 FROM tab1 AS cor0
----
-1601
-1610
-1643

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL > ( - col1 ) )
----

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

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

query I rowsort
SELECT DISTINCT + col1 + - + col2 FROM tab2 AS cor0
----
28
37
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ALL + COUNT( * ) - - 18 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL + COUNT ( * ) - - 18 FROM tab2 AS cor0
----
21

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

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NOT ( - 28 / + - col1 + col2 ) NOT BETWEEN + col1 * + col1 AND + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT DISTINCT COUNT( * ) * + + 47 * - 28 FROM tab0
----
-3948

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT COUNT ( * ) * + + 47 * - 28 FROM tab0
----
-3948

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT - 21 DIV - col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-593
SELECT - 21 / - col1 FROM tab1
----
0
1
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-594
SELECT ALL 9 DIV + CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL 9 / + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
0
0
0

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

query I rowsort
SELECT + col2 - - + 43 FROM tab2
----
101
66
83

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT ALL - 36 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL - 36 / + col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT DISTINCT - - col0 + - 74 AS col1 FROM tab2 AS cor0
----
-10
-28
1

query II rowsort
SELECT - + ( col1 ), + 71 AS col1 FROM tab1 AS cor0 WHERE 72 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + 12 * 43 FROM tab1
----
516

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT - 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

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

skipif mysql # not compatible
query I rowsort label-605
SELECT - COUNT ( 38 ) AS col2 FROM tab0
----
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + ( col2 ) col2, - col1 AS col0 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 74 * + col2 col2, col2 * + + col0 - - col0 FROM tab0 AS cor0
----
-3478
720
-7326
9700
-740
957

query I rowsort
SELECT ( - col1 ) * col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-425
-4277
-714

query I rowsort
SELECT ALL 40 * + 88 AS col2 FROM tab2 AS cor0
----
3520
3520
3520

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT - - col0 DIV - + col1 + col1 col1 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-612
SELECT - - col0 / - + col1 + col1 col1 FROM tab2 AS cor0
----
51
66
77

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

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

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

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - SUM ( - + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - 70 * - col0 + col2 FROM tab1 AS cor0
----
3666
6009
6438

query I rowsort
SELECT - + col2 * col2 + - col0 FROM tab0 AS cor0
----
-187
-2224
-9898

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

skipif mysql # not compatible
query III rowsort label-617
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) <= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - col2 + - 68 * 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-619
SELECT ALL - CAST( - 74 AS SIGNED ) AS col0 FROM tab1
----
74
74
74

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL - CAST ( - 74 AS INTEGER ) AS col0 FROM tab1
----
74
74
74

query I rowsort
SELECT DISTINCT + 75 * - col2 AS col2 FROM tab1
----
-4425
-5100
-7200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-621
SELECT DISTINCT * FROM tab0 WHERE + - col0 + + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-621
SELECT DISTINCT * FROM tab0 WHERE + - col0 + + CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT + CAST( - ( - col2 ) AS SIGNED ) + - + 76 col2 FROM tab1
----
-17
-8
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-622
SELECT + CAST ( - ( - col2 ) AS INTEGER ) + - + 76 col2 FROM tab1
----
-17
-8
20

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-624
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1, + 98 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-624
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1, + 98 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT + col1 * + 32 FROM tab2
----
1632
2144
2464

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 - - + 68 / + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - COUNT( * ) * - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-627
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-628
SELECT * FROM tab2 WHERE ( + CAST( + col1 AS SIGNED ) ) BETWEEN - ( - - ( + col1 ) ) AND + - 95
----

skipif mysql # not compatible
query III rowsort label-628
SELECT * FROM tab2 WHERE ( + CAST ( + col1 AS INTEGER ) ) BETWEEN - ( - - ( + col1 ) ) AND + - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT + 52 * + - SUM( 17 ) FROM tab1
----
-2652

skipif mysql # not compatible
query I rowsort label-629
SELECT + 52 * + - SUM ( 17 ) FROM tab1
----
-2652

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + - ( 22 ) * - - 36 - - col0 AS col0 FROM tab0 AS cor0
----
-695
-705
-777

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT DISTINCT COUNT( - - col0 ) * 15 - - - COUNT( * ) FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT COUNT ( - - col0 ) * 15 - - - COUNT ( * ) FROM tab0 cor0
----
42

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

skipif mysql # not compatible
query I rowsort label-635
SELECT COUNT ( * ) + + - COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT + 69 * - ( + + COUNT( * ) ) AS col0 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT + 69 * - ( + + COUNT ( * ) ) AS col0 FROM tab1
----
-207

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-638
SELECT MIN( DISTINCT ( ( col2 ) ) ) / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-638
SELECT MIN ( DISTINCT ( ( col2 ) ) ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

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

query II rowsort
SELECT DISTINCT 37 * 84 AS col2, + 16 AS col0 FROM tab2
----
3108
16

query I rowsort
SELECT DISTINCT col2 * col1 + - 0 + col0 AS col1 FROM tab1
----
1395
3287
380

query I rowsort
SELECT DISTINCT + - 68 AS col2 FROM tab2 AS cor0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT ALL - col2 DIV ( + col2 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - col2 / ( + col2 ) AS col1 FROM tab1
----
-1
-1
-1

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

query II rowsort
SELECT col2, + ( + 81 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT 9 * + col0 FROM tab0 AS cor0
----
135
783
873

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( - 51 )
----

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

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

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

query I rowsort
SELECT - 90 * + col0 * - ( + - col2 ) + + col2 FROM tab1 AS cor0
----
-440544
-451291
-556852

query III rowsort
SELECT * FROM tab0 WHERE NULL <= 77 - - - ( - col2 ) / - col0 OR NULL <> + 78
----

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

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

query I rowsort
SELECT DISTINCT + - ( - col0 ) FROM tab2 AS cor0 WHERE + col1 = NULL
----

query I rowsort
SELECT - col2 + - col1 * 41 + - ( col2 ) FROM tab2 AS cor0
----
-2137
-2863
-3237

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT ALL + COUNT( DISTINCT - 72 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + COUNT ( DISTINCT - 72 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT ALL - 89 + + AVG ( - 85 ) FROM tab1 AS cor0 WHERE NULL <= + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT DISTINCT 5 + CAST( col1 AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
104
215
3812

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT 5 + CAST ( col1 AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
104
215
3812

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT DISTINCT + - MIN( ALL col1 ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + - MIN ( ALL col1 ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-8

query II rowsort
SELECT col0, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT - 73 + - + col1 + + col2 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + col2 - + + 11 FROM tab0 AS cor0
----
-1
36
88

query I rowsort
SELECT ALL + 58 - - ( + - 69 ) + - col1 + + - 93 FROM tab0
----
-105
-125
-185

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

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

query I rowsort
SELECT ALL + 73 - - 92 AS col2 FROM tab0
----
165
165
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-667
SELECT col2 - - CAST( col1 AS SIGNED ) * - col0 FROM tab1
----
-366
-4209
-618

skipif mysql # not compatible
query I rowsort label-667
SELECT col2 - - CAST ( col1 AS INTEGER ) * - col0 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT DISTINCT - col1 - + - col2 + col0 FROM tab2
----
18
27
66

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

skipif mysql # not compatible
query I rowsort label-669
SELECT 88 - COUNT ( * ) FROM tab2
----
85

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT col1 * + 18 * 7 + - CAST( + col1 AS SIGNED ) * 10 + + 69 - - + 75 AS col1 FROM tab1 AS cor0
----
1768
5596
724

skipif mysql # not compatible
query I rowsort label-672
SELECT col1 * + 18 * 7 + - CAST ( + col1 AS INTEGER ) * 10 + + 69 - - + 75 AS col1 FROM tab1 AS cor0
----
1768
5596
724

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

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL + - COUNT ( DISTINCT 99 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 28 * + col1 FROM tab0
----
2268
28
588

query I rowsort
SELECT DISTINCT + + 25 * col2 * 67 FROM tab2 AS cor0
----
38525
67000
97150

query I rowsort
SELECT DISTINCT - - col2 * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT - col1 * 2 DIV col0 FROM tab0 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-677
SELECT - col1 * 2 / col0 FROM tab0 AS cor0
----
-10
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT ALL col2 DIV - 33 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL col2 / - 33 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT MIN( ALL - - col2 ) FROM tab1 AS cor0 WHERE NOT 91 - - + 70 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT MIN ( ALL - - col2 ) FROM tab1 AS cor0 WHERE NOT 91 - - + 70 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 16 FROM tab0 cor0
----
16

query I rowsort
SELECT DISTINCT col0 * + - col0 - + 95 FROM tab2 WHERE - ( + col0 ) <> + ( + - col2 ) + - col2
----
-4191
-5720

query I rowsort
SELECT ALL - 39 * 35 AS col1 FROM tab2
----
-1365
-1365
-1365

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-683
SELECT DISTINCT - SUM ( ALL - + col1 ) col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT + 71 + COUNT( * ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-684
SELECT + 71 + COUNT ( * ) FROM tab2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-685
SELECT + CAST( - + col0 AS SIGNED ) * col2 + + col1 AS col1 FROM tab2
----
-1007
-2483
-4283

skipif mysql # not compatible
query I rowsort label-685
SELECT + CAST ( - + col0 AS INTEGER ) * col2 + + col1 AS col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT + 30 + - col0 AS col2 FROM tab2
----
-16
-34
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT ALL + col1 * + col2 + col0 * - 91 - CAST( col0 AS SIGNED ) FROM tab2 WHERE NOT NULL > + col0 * col2 / - 11 + ( + col1 ) * + col2
----

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + col1 * + col2 + col0 * - 91 - CAST ( col0 AS INTEGER ) FROM tab2 WHERE NOT NULL > + col0 * col2 / - 11 + ( + col1 ) * + col2
----

query I rowsort
SELECT + col1 * - + 12 FROM tab2
----
-612
-804
-924

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT DISTINCT - COUNT( ALL 41 ) + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT - COUNT ( ALL 41 ) + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / + - col1 > NULL
----

query I rowsort
SELECT col0 + - col2 + + ( - col1 ) * col0 - + col2 + - col0 FROM tab2 AS cor0
----
-2392
-5008
-5141

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

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT - SUM( DISTINCT + 1 ) + COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-694
SELECT - SUM ( DISTINCT + 1 ) + COUNT ( * ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT + col2 + + - 37 + + + ( - 50 ) FROM tab0 AS cor0
----
-40
-77
12

query I rowsort
SELECT ALL + 71 + col0 AS col2 FROM tab1 AS cor0
----
122
156
162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-697
SELECT ALL + col0 FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * 52 * 98 / - + 68 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL + col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) * 52 * 98 / - + 68 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-701
SELECT DISTINCT col1 AS col1, - col1 + + col2 + + CAST( - + 61 AS SIGNED ) + 58 FROM tab0
----
1
95
21
-14
81
-37

skipif mysql # not compatible
query II rowsort label-701
SELECT DISTINCT col1 AS col1, - col1 + + col2 + + CAST ( - + 61 AS INTEGER ) + 58 FROM tab0
----
1
95
21
-14
81
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT - COUNT( * ) * + 21 col2 FROM tab0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-703
SELECT - COUNT ( * ) * + 21 col2 FROM tab0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-704
SELECT 9 / CAST( NULL AS SIGNED ) * - 29 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-704
SELECT 9 / CAST ( NULL AS INTEGER ) * - 29 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 19 ) * - col0 AS col2 FROM tab2
----
-1216
-1425
-874

query II rowsort
SELECT - col2 AS col1, - col0 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT SUM( + - 57 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT SUM ( + - 57 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 75 * - + 43 * ( - col1 ) FROM tab0
----
-261225
-3225
-67725

query I rowsort
SELECT DISTINCT + - 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ALL + + 81 + MIN( + 95 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
176

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL + + 81 + MIN ( + 95 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
176

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 - col1 + + + 23 + - - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-712
SELECT DISTINCT - + COUNT( * ) + - CAST( + 80 AS SIGNED ) AS col2 FROM tab1 WHERE NOT + col0 < + col1
----
-83

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT - + COUNT ( * ) + - CAST ( + 80 AS INTEGER ) AS col2 FROM tab1 WHERE NOT + col0 < + col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT DISTINCT - - 54 + + col0 DIV - col2 FROM tab1 AS cor0
----
53
54

skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT - - 54 + + col0 / - col2 FROM tab1 AS cor0
----
53
54

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-715
SELECT - col2 col0 FROM tab2 AS cor0 WHERE NOT + 47 * 48 + - col0 + + CAST( NULL AS SIGNED ) NOT IN ( - col0, + col1 - - col0 * + + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-715
SELECT - col2 col0 FROM tab2 AS cor0 WHERE NOT + 47 * 48 + - col0 + + CAST ( NULL AS INTEGER ) NOT IN ( - col0, + col1 - - col0 * + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT DISTINCT - - 59 + + + MIN( + 81 ) FROM tab0 cor0
----
140

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT - - 59 + + + MIN ( + 81 ) FROM tab0 cor0
----
140

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

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

skipif mysql # not compatible
query I rowsort label-718
SELECT + col2 / + col2 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - ( col1 ) * + col2 + - col1 FROM tab2
----
-1224
-3157
-3953

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - - col2 + - col0
----

query I rowsort
SELECT ALL + col2 * col1 * ( + 48 ) FROM tab1
----
14160
153408
64512

query II rowsort
SELECT DISTINCT col2 + - 31, - 42 AS col1 FROM tab0
----
-21
-42
16
-42
68
-42

query II rowsort
SELECT ALL col2 + + + ( - col0 ), + ( - + 92 ) AS col0 FROM tab2 AS cor0
----
-17
-92
-23
-92
-24
-92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL + 3 + - - MAX( col1 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL + 3 + - - MAX ( col1 ) FROM tab1 AS cor0
----
50

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query II rowsort label-729
SELECT DISTINCT + 83 * COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
747
9

skipif mysql # not compatible
query II rowsort label-729
SELECT DISTINCT + 83 * COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
747
9

query I rowsort
SELECT col0 * - ( + - 46 ) * - - 90 * - 70 AS col0 FROM tab2
----
-13330800
-18547200
-21735000

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

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

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

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

query I rowsort
SELECT ALL - + col1 * + + col2 - - col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query II rowsort
SELECT - + col2 AS col0, col2 * col1 FROM tab1 cor0
----
-59
295
-68
3196
-96
1344

onlyif mysql # aggregate syntax: 
query II rowsort label-735
SELECT + + 16 col2, - COUNT( ALL 30 ) FROM tab1 AS cor0
----
16
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-735
SELECT + + 16 col2, - COUNT ( ALL 30 ) FROM tab1 AS cor0
----
16
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 42 - - 45 NOT BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-739
SELECT + 60 DIV + 39 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-739
SELECT + 60 / + 39 FROM tab0
----
1
1
1

query I rowsort
SELECT col2 * 6 AS col2 FROM tab0 cor0
----
282
594
60

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

query II rowsort
SELECT DISTINCT col1, - col2 FROM tab0 cor0 WHERE col1 >= col1
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT DISTINCT - 73 DIV + - COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT - 73 / + - COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT + ( 99 ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + 28 ) IS NULL
----
102

skipif mysql # not compatible
query I rowsort label-745
SELECT + ( 99 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + 28 ) IS NULL
----
102

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT - - 61 * - col0 * - - col2 AS col2 FROM tab0 AS cor0
----
-43005
-53070
-585783

query I rowsort
SELECT + col0 * - col2 + - col2 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT - col2 * col1 * + + 54 * + - col1 + - - col1 AS col2 FROM tab0
----
16651899
238161
5347

query I rowsort
SELECT col2 + + 34 AS col1 FROM tab2
----
57
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT DISTINCT 80 * COUNT( * ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT 80 * COUNT ( * ) FROM tab0
----
240

query I rowsort
SELECT - ( - col2 ) + - 49 FROM tab0
----
-2
-39
50

query I rowsort
SELECT ALL + 65 FROM tab2 WHERE NOT ( + ( - col0 ) ) - + - col1 + - 44 = col2 + + - col0
----
65
65
65

query II rowsort
SELECT DISTINCT 16 AS col1, - col0 * + 55 AS col2 FROM tab2
----
16
-2530
16
-3520
16
-4125

query I rowsort
SELECT DISTINCT col0 + + + col2 * 16 AS col2 FROM tab1
----
1029
1179
1587

query I rowsort
SELECT ALL + 35 * col0 FROM tab1
----
1785
2975
3185

query II rowsort
SELECT DISTINCT + col1 + - 30, - 68 AS col0 FROM tab2 AS cor0
----
21
-68
37
-68
47
-68

query I rowsort
SELECT ALL + + col1 + + 50 AS col0 FROM tab1 AS cor0
----
55
64
97

query I rowsort
SELECT ALL 93 + - col1 FROM tab1 AS cor0
----
46
79
88

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

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

query I rowsort
SELECT ALL 4 FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
26

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( NOT NULL IS NOT NULL ) )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + col2 + + - col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( ( + - col0 ) ) * + 54 - + - col0 AS col0 FROM tab1 AS cor0
----
-2703
-4505
-4823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT - CAST( NULL AS SIGNED ) / + col2 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-768
SELECT - CAST ( NULL AS INTEGER ) / + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL + col1, + 50 FROM tab1
----
14
50
47
50
5
50

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE - 10 NOT BETWEEN + col2 AND NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-772
SELECT + col1 FROM tab1 WHERE NOT - col2 BETWEEN ( + - ( - col2 ) / - - 77 ) AND CAST( - - 98 AS SIGNED )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-772
SELECT + col1 FROM tab1 WHERE NOT - col2 BETWEEN ( + - ( - col2 ) / - - 77 ) AND CAST ( - - 98 AS INTEGER )
----
14
47
5

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + col0 IS NULL
----

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

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

query I rowsort
SELECT col0 * - + 74 AS col1 FROM tab0
----
-1110
-6438
-7178

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-777
SELECT ALL + 2 DIV - CAST( + - col0 AS SIGNED ) * + + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + 2 / - CAST ( + - col0 AS INTEGER ) * + + col1 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT + col0 * 48 AS col2 FROM tab0 AS cor0
----
4176
4656
720

query I rowsort
SELECT DISTINCT + - 59 FROM tab0 cor0
----
-59

query I rowsort
SELECT ALL + 98 * - + AVG ( - 41 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT 5, col0 FROM tab0 AS cor0
----
5
15
5
87
5
97

query I rowsort
SELECT + - col2 * - col1 FROM tab1 WHERE NULL IS NULL
----
1344
295
3196

query II rowsort
SELECT - col1 + - - col0 AS col0, 77 FROM tab2 AS cor0
----
-13
77
-5
77
8
77

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL - 9 + 7 * - COUNT( * ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL - 9 + 7 * - COUNT ( * ) FROM tab2 AS cor0
----
-30

query I rowsort
SELECT ALL - 39 + - 3 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT DISTINCT + - ( col0 ) DIV + + col2 + + col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT + - ( col0 ) / + + col2 + + col1 FROM tab1 AS cor0
----
14
4
46

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

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

query I rowsort
SELECT + - 51 AS col0 FROM tab0 cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL SUM( - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL SUM ( - + col2 ) FROM tab1
----
-223

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

query I rowsort
SELECT ALL col2 + col1 + - 18 AS col0 FROM tab2
----
107
56
99

query I rowsort
SELECT col1 + + - ( + - 75 ) - + col0 AS col0 FROM tab2 AS cor0
----
67
80
88

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + col1 * col2 / + - 22
----

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

query I rowsort
SELECT + + col2 * + col1 + + col1 AS col0 FROM tab1 AS cor0
----
1358
300
3243

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

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

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

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

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

query I rowsort
SELECT ALL - ( + - 10 ) AS col1 FROM tab2
----
10
10
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT DISTINCT - 68 * + SUM( ALL col2 ) FROM tab1
----
-15164

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT - 68 * + SUM ( ALL col2 ) FROM tab1
----
-15164

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT ALL MAX( ALL - 99 ) * 75 - 87 FROM tab1
----
-7512

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL MAX ( ALL - 99 ) * 75 - 87 FROM tab1
----
-7512

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-811
SELECT SUM( - col2 ) DIV - COUNT( * ) + + + 24 * + 40 FROM tab2 AS cor0
----
1000

skipif mysql # not compatible
query I rowsort label-811
SELECT SUM ( - col2 ) / - COUNT ( * ) + + + 24 * + 40 FROM tab2 AS cor0
----
1000

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT - col2 DIV ( + col0 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-814
SELECT - col2 / ( + col0 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 13 + + + ( + - 10 ) IS NULL
----

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

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

query II rowsort
SELECT ALL col2 + 19 * + col2 AS col0, 90 * col1 + - 44 + col1 * col2 * - 38 FROM tab1 AS cor0
----
1180
-10804
1360
-117262
1920
-49856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 22 + - + col0 * + col1 + col0 col0 FROM tab1 AS cor0
----
-318
-4164
-641

query II rowsort
SELECT DISTINCT + + col2 * col0 * - col1 AS col0, - col2 FROM tab1 AS cor0
----
-25075
-59
-290836
-68
-68544
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL SUM( ALL col1 ) + - COUNT( * ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL SUM ( ALL col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
192

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

onlyif mysql # DIV for integer division: 
query I rowsort label-822
SELECT DISTINCT + col1 + + col2 + + 72 DIV + col2 col0 FROM tab1 AS cor0
----
110
116
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-822
SELECT DISTINCT + col1 + + col2 + + 72 / + col2 col0 FROM tab1 AS cor0
----
110
116
65

query I rowsort
SELECT DISTINCT - 59 FROM tab0 WHERE NOT + ( + 28 ) + + - col0 IS NULL
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT 84 + + COUNT( * ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-824
SELECT 84 + + COUNT ( * ) AS col0 FROM tab2
----
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT ALL MAX( ALL - col0 ) col0 FROM tab2
----
-46

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

query I rowsort
SELECT 33 * - + 74 AS col0 FROM tab1
----
-2442
-2442
-2442

query I rowsort
SELECT DISTINCT col2 * + 54 AS col1 FROM tab0 WHERE NOT 57 BETWEEN NULL AND col1
----
5346
540

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-830
SELECT DISTINCT 15 * + - col1 col0 FROM tab2 WHERE - col2 - CAST( - col0 AS SIGNED ) IS NULL OR NULL = + + 42
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-830
SELECT DISTINCT 15 * + - col1 col0 FROM tab2 WHERE - col2 - CAST ( - col0 AS INTEGER ) IS NULL OR NULL = + + 42
----

onlyif mysql # DIV for integer division: 
query II rowsort label-831
SELECT - ( - ( + col1 ) ), - col1 DIV ( - 51 ) AS col1 FROM tab0
----
1
0
21
0
81
1

skipif mysql # not compatible
query II rowsort label-831
SELECT - ( - ( + col1 ) ), - col1 / ( - 51 ) AS col1 FROM tab0
----
1
0
21
0
81
1

query I rowsort
SELECT ALL - 62 AS col2 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT ALL - col2 * - col2 * - 93 * - + col1 + + - 96 * - 29 FROM tab0 AS cor0
----
16643181
198084
914277

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

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

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL MAX( - - col0 ) * + + 1 * - 19 AS col2 FROM tab0 cor0
----
-1843

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL MAX ( - - col0 ) * + + 1 * - 19 AS col2 FROM tab0 cor0
----
-1843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 AS col2, col2 col0 FROM tab1 cor0 WHERE NOT NULL > ( NULL )
----

query II rowsort
SELECT - + 62 AS col2, + 20 AS col2 FROM tab1 AS cor0
----
-62
20
-62
20
-62
20

query I rowsort
SELECT - ( 62 ) FROM tab2
----
-62
-62
-62

query II rowsort
SELECT ALL col0, + 80 FROM tab1
----
51
80
85
80
91
80

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT col1 DIV 11 AS col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-841
SELECT col1 / 11 AS col1 FROM tab1
----
0
1
4

query I rowsort
SELECT DISTINCT - col2 + col1 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL MAX( DISTINCT col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL MAX ( DISTINCT col1 ) FROM tab0
----
81

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

query I rowsort
SELECT + - 63 * + col1 AS col0 FROM tab0 AS cor0
----
-1323
-5103
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT - + 60 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) / + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-846
SELECT - + 60 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) / + col2 AND NULL
----

query I rowsort
SELECT - + col2 * col0 + + - col2 FROM tab0 cor0
----
-752
-880
-9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col1 FROM tab0
----
16

query I rowsort
SELECT - 9 + - ( + col0 ) FROM tab0
----
-106
-24
-96

query I rowsort
SELECT 62 * - + 48 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a8f23c7212422cd1a97f2b60890c4a2c

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 * - 9 + - - 60 AND - 54 - col1
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) + - 84 + - - col2 FROM tab2 AS cor0
----
-15
20
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-853
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-853
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT 8 * MAX( + - 51 ) FROM tab0 AS cor0
----
-408

skipif mysql # not compatible
query I rowsort label-855
SELECT 8 * MAX ( + - 51 ) FROM tab0 AS cor0
----
-408

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ALL COUNT( * ) - 86 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL COUNT ( * ) - 86 FROM tab2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT - col1 NOT IN ( + - col0, - col1, - col1, - col1, - ( - col1 ) )
----
3

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col1 NOT IN ( + - col0, - col1, - col1, - col1, - ( - col1 ) )
----
3

query II rowsort
SELECT ALL - col0, col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL col0 - 41 FROM tab0
----
-26
46
56

query II rowsort
SELECT ALL + 97 AS col2, 57 * + + 45 FROM tab1
----
97
2565
97
2565
97
2565

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT MIN( DISTINCT - 94 ) AS col2 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-862
SELECT MIN ( DISTINCT - 94 ) AS col2 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT - 20 * col0 * - ( + 43 ) FROM tab2 AS cor0
----
39560
55040
64500

query II rowsort
SELECT + col1 AS col0, 38 FROM tab0 AS cor0
----
1
38
21
38
81
38

query I rowsort
SELECT ALL + - 42 FROM tab1 AS cor0 WHERE NOT + 83 IS NULL
----
-42
-42
-42

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT - 57 * + + col2 FROM tab2 AS cor0
----
-1311
-2280
-3306

query I rowsort
SELECT ALL - col1 * - col2 - col2 * + - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
2688
590
6392

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-872
SELECT 69 DIV - col0 col0, - 39 FROM tab2 AS cor0
----
-1
-39
-1
-39
0
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-872
SELECT 69 / - col0 col0, - 39 FROM tab2 AS cor0
----
-1
-39
-1
-39
0
-39

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= col1
----

query I rowsort
SELECT - 7 * + col2 * + 27 AS col2 FROM tab2
----
-10962
-4347
-7560

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-876
SELECT COUNT( * ) + + - CAST( NULL AS DECIMAL ) * + 71 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-876
SELECT COUNT ( * ) + + - CAST ( NULL AS REAL ) * + 71 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - col0 + - 20 AS col1 FROM tab0
----
-107
-117
-35

query I rowsort
SELECT - ( col2 ) + + col0 FROM tab2
----
17
23
24

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 / - col2 NOT BETWEEN + + col2 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 20 * 53 AS col1 FROM tab0 cor0 WHERE NOT - 28 + + ( col0 ) - - + col0 + + col1 + + - col1 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT ALL - 20 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 * - + col2 col2 FROM tab2
----
-123200
-225388
-26979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 10 + + col0 + + col1 + - col0 col2 FROM tab2 AS cor0
----
-179
-323
-513

query I rowsort
SELECT ALL - 2 + - col0 AS col1 FROM tab2 AS cor0
----
-48
-66
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT 82 * - 1 * COUNT( * ) + 31 + 22 * + COUNT( * ) FROM tab2 cor0
----
-149

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT 82 * - 1 * COUNT ( * ) + 31 + 22 * + COUNT ( * ) FROM tab2 cor0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT 47 + - COUNT( * ) col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-889
SELECT DISTINCT 47 + - COUNT ( * ) col0 FROM tab1 AS cor0
----
44

query I rowsort
SELECT ALL + 15 + + col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
100
106
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL COUNT( * ) * + 13 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL COUNT ( * ) * + 13 FROM tab2
----
39

query I rowsort
SELECT ALL + ( - 41 ) - + 38 FROM tab2
----
-79
-79
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT COUNT( * ) * 7 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-895
SELECT COUNT ( * ) * 7 FROM tab2
----
21

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

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col0 FROM tab1
----
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-899
SELECT + - col2 DIV + - 84 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-899
SELECT + - col2 / + - 84 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab1 AS cor0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-901
SELECT ALL + 63 AS col2, ( - + ( CAST( + COUNT( * ) AS SIGNED ) ) ) / + CAST( NULL AS SIGNED ) + - 0 FROM tab0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-901
SELECT ALL + 63 AS col2, ( - + ( CAST ( + COUNT ( * ) AS INTEGER ) ) ) / + CAST ( NULL AS INTEGER ) + - 0 FROM tab0
----
63
NULL

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

query II rowsort
SELECT - col2 AS col2, + col2 * + + col0 / - 75 AS col0 FROM tab0 AS cor0 WHERE NOT - 10 NOT IN ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL - COUNT( - + 93 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL - COUNT ( - + 93 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-905
SELECT + 22 FROM tab1 AS cor0 WHERE NOT - CAST( + ( 9 ) AS SIGNED ) IS NULL
----
22
22
22

skipif mysql # not compatible
query I rowsort label-905
SELECT + 22 FROM tab1 AS cor0 WHERE NOT - CAST ( + ( 9 ) AS INTEGER ) IS NULL
----
22
22
22

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

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

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

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab0 cor0
----
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 - 14 IS NULL
----

query I rowsort
SELECT ALL + + col1 + - + col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + + 15 AS col0, col2 * + col2 FROM tab0 AS cor0
----
15
100
15
2209
15
9801

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-912
SELECT + SUM ( DISTINCT - - col0 ) col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT - ( 32 ) AS col2 FROM tab1 AS cor0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-914
SELECT - + col2 * - 93 FROM tab0 WHERE NOT - - 1 * + col1 + - col1 + - CAST( NULL AS SIGNED ) <> col2 - + col1 + - + 42 * + + col1
----

skipif mysql # not compatible
query I rowsort label-914
SELECT - + col2 * - 93 FROM tab0 WHERE NOT - - 1 * + col1 + - col1 + - CAST ( NULL AS INTEGER ) <> col2 - + col1 + - + 42 * + + col1
----

query I rowsort
SELECT ALL col2 * - + col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - 25 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + 65 * + - 7 AS col2 FROM tab1
----
-455
-455
-455

onlyif mysql # DIV for integer division: 
query II rowsort label-918
SELECT DISTINCT 17 + + 23 DIV + col1 + + - col0 AS col0, ( - col0 ) FROM tab2
----
-29
-46
-47
-64
-58
-75

skipif mysql # not compatible
query II rowsort label-918
SELECT DISTINCT 17 + + 23 / + col1 + + - col0 AS col0, ( - col0 ) FROM tab2
----
-29
-46
-47
-64
-58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-919
SELECT ALL + CAST( ( - + col0 ) AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + CAST ( ( - + col0 ) AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

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

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

query I rowsort
SELECT ALL + col0 + + 25 AS col2 FROM tab1 AS cor0
----
110
116
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-922
SELECT ALL - ( - col2 ) + - 98 * - CAST( + - 53 AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
-5203
-5222
-5231

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL - ( - col2 ) + - 98 * - CAST ( + - 53 AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
-5203
-5222
-5231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-923
SELECT DISTINCT - 26 DIV COUNT( * ) - 8 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - 26 / COUNT ( * ) - 8 FROM tab0
----
-16

query I rowsort
SELECT ALL 50 * - col1 AS col2 FROM tab1
----
-2350
-250
-700

onlyif mysql # aggregate syntax: 
query II rowsort label-925
SELECT 65 col2, - COUNT( * ) AS col0 FROM tab0 WHERE + ( - - col1 ) BETWEEN NULL AND + 95 / 54 + + col2
----
65
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-925
SELECT 65 col2, - COUNT ( * ) AS col0 FROM tab0 WHERE + ( - - col1 ) BETWEEN NULL AND + 95 / 54 + + col2
----
65
0

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE + + 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL 17 + 94 - + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL 17 + 94 - + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
108

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

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

query I rowsort
SELECT DISTINCT + col0 - + - 81 FROM tab2 AS cor0
----
127
145
156

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

query I rowsort
SELECT DISTINCT + + 34 / + col1 - - 63 FROM tab2 AS cor0 WHERE ( NULL ) = + - col2 * col1
----

query I rowsort
SELECT + col1 * - col0 * + 9 FROM tab0 AS cor0
----
-10935
-16443
-873

query II rowsort
SELECT ( - + col2 ), col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT DISTINCT + col2 DIV - - col1 FROM tab0
----
0
99

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT + col2 / - - col1 FROM tab0
----
0
99

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

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT + COUNT ( 91 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND 83 / + col2 * + 50 + col2 - + + col0
----

query I rowsort
SELECT ALL + - ( - col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
46
64
75

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

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

query I rowsort
SELECT ALL col0 * + + col1 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col1, - 15 FROM tab0 WHERE NOT - - 81 <= NULL
----

query I rowsort
SELECT col0 + - 97 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-12
-46
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT DISTINCT + 36 DIV - col1 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT + 36 / - col1 FROM tab1
----
-2
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT 53 DIV - + col0 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-943
SELECT 53 / - + col0 AS col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT 59 * + + col1 + - col0 + - col2 * - 11 FROM tab2 AS cor0
----
3216
4516
4919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + - col1 * - ( + 28 ) AS col1, col2 col0 FROM tab0 AS cor0
----
-2716
99
-34020
47
-51156
10

query I rowsort
SELECT + 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query II rowsort
SELECT col0 * - col1 AS col1, col1 FROM tab0 cor0
----
-1215
81
-1827
21
-97
1

query I rowsort
SELECT ALL + ( col0 ) FROM tab1 AS cor0 WHERE col0 + - col1 + + + col1 IS NOT NULL
----
51
85
91

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) > 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT + + MIN( DISTINCT 54 ) AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-952
SELECT + + MIN ( DISTINCT 54 ) AS col0 FROM tab1 AS cor0
----
54

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = ( + col2 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-956
SELECT - 59 + - 30 + - - MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT - 59 + - 30 + - - MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + ( - 61 ) FROM tab1
----
-61
-61
-61

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <= + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * - - 11 + + col2 FROM tab1
----
114
250
585

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

query II rowsort
SELECT - - col2 - col0, col0 AS col2 FROM tab0 AS cor0
----
-77
87
2
97
32
15

query I rowsort
SELECT + ( - col1 ) * - + col0 + + col1 * + col0 - + col2 AS col0 FROM tab0
----
2383
3644
95

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL >= col1 / col0 + + 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-964
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( + 65 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-964
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( + 65 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + 45 + + 11 FROM tab1 cor0
----
56
56
56

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

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT + + MAX ( + + col2 ) FROM tab0 AS cor0
----
99

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

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

skipif mysql # not compatible
query I rowsort label-968
SELECT + + 41 * - COUNT ( - + CAST ( - + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-123

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

query I rowsort
SELECT ALL + 56 + + - col0 + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
101
30
33

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - 43 + + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-973
SELECT + col2 AS col2, + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-973
SELECT + col2 AS col2, + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT ALL - 79, MIN( DISTINCT - + 53 ) AS col1 FROM tab0
----
-79
-53

skipif mysql # not compatible
query II rowsort label-974
SELECT ALL - 79, MIN ( DISTINCT - + 53 ) AS col1 FROM tab0
----
-79
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-975
SELECT ( - 5 ), - 31 + COUNT( * ) AS col1 FROM tab0
----
-5
-28

skipif mysql # not compatible
query II rowsort label-975
SELECT ( - 5 ), - 31 + COUNT ( * ) AS col1 FROM tab0
----
-5
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL + COUNT( * ) * - - 73 FROM tab0 WHERE - + 38 / + 32 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL + COUNT ( * ) * - - 73 FROM tab0 WHERE - + 38 / + 32 + - col1 IS NULL
----
0

query I rowsort
SELECT - 63 * 90 AS col2 FROM tab1
----
-5670
-5670
-5670

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

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT 28 DIV + + col1 - - 55 FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-979
SELECT 28 / + + col1 - - 55 FROM tab2 AS cor0
----
55
55
55

query II rowsort
SELECT ALL 65 + + 16 AS col0, + 94 FROM tab0
----
81
94
81
94
81
94

query I rowsort
SELECT - + ( - + 29 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
29
29
29

query I rowsort
SELECT DISTINCT col1 + - 52 * - + 14 AS col1 FROM tab2
----
779
795
805

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT ALL + col0 + - col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL + col0 + - col2 / - col2 AS col1 FROM tab0 AS cor0
----
16
88
98

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

query I rowsort
SELECT + 68 * - + col2 AS col2 FROM tab1 AS cor0
----
-4012
-4624
-6528

query I rowsort
SELECT DISTINCT + + 7 * col0 AS col0 FROM tab2 AS cor0
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT 85 * - 6 + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-513

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT 85 * - 6 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-513

query I rowsort
SELECT ( + + col1 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * + 8 FROM tab2 AS cor0
----
368
512
600

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT ALL - + ( + - col1 ) DIV - 92 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-990
SELECT ALL - + ( + - col1 ) / - 92 col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 27 * + 4 + 69 * + col2 BETWEEN - - col0 AND - + 54
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-993
SELECT - COUNT( * ) / CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT - COUNT ( * ) / CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL CAST ( 4 AS INTEGER ) AS col1 FROM tab2
----
4
4
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-997
SELECT DISTINCT CAST( NULL AS SIGNED ) col1, + COUNT( * ) FROM tab1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-997
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, + COUNT ( * ) FROM tab1
----
NULL
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-998
SELECT * FROM tab1 WHERE - + col2 + + 89 + - col2 + + ( - 14 ) * CAST( + + 32 AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-998
SELECT * FROM tab1 WHERE - + col2 + + 89 + - col2 + + ( - 14 ) * CAST ( + + 32 AS REAL ) < NULL
----

query I rowsort
SELECT - 71 + + 95 AS col2 FROM tab1
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - - col2 * - 89 * - 87 * - col2 col1 FROM tab0 AS cor0
----
17104368
75889144
774321

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT DISTINCT + 80 DIV - col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT + 80 / - col0 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - 12 col0 FROM tab2 WHERE NOT ( 92 ) NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT - ( col2 ) + + col2 DIV col0 AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1003
SELECT - ( col2 ) + + col2 / col0 AS col1 FROM tab2
----
-23
-40
-58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + col0 col0 FROM tab2 WHERE ( 99 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT - COUNT( * ) + 59 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-1006
SELECT - COUNT ( * ) + 59 FROM tab0
----
56

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 / col2 < NULL
----

query I rowsort
SELECT DISTINCT col0 * + col2 + 36 * + 59 FROM tab1
----
7020
7139
8312

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT ALL SUM( - col0 ) + 92 FROM tab0
----
-107

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL SUM ( - col0 ) + 92 FROM tab0
----
-107

query I rowsort
SELECT col1 * 63 + - col1 FROM tab2
----
3162
4154
4774

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT ALL col1 + col0 DIV col0 AS col0 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL col1 + col0 / col0 AS col0 FROM tab1
----
15
48
6

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0 WHERE - 97 + 40 * - 85 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0 WHERE - 97 + 40 * - 85 IS NOT NULL
----
NULL

query I rowsort
SELECT - 52 + col2 FROM tab1
----
16
44
7

query I rowsort
SELECT + 42 + + col2 FROM tab1
----
101
110
138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT COUNT( DISTINCT + col1 ) * - 90 AS col1 FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1018
SELECT COUNT ( DISTINCT + col1 ) * - 90 AS col1 FROM tab1 WHERE + col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( col2 * col2 ) IN ( 51 )
----
59
68
96

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

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

query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
705
870
9603

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( 25 * col2 ) = col1
----
23
40
58

query I rowsort
SELECT ( + col1 ) * col1 - 31 FROM tab0
----
-30
410
6530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 - - col0 * + col2 col1 FROM tab1
----
4864
4983
6156

query I rowsort
SELECT - 66 - + col0 * 72 FROM tab0
----
-1146
-6330
-7050

query I rowsort
SELECT ALL 27 * col1 - col1 * col1 FROM tab1
----
-940
110
182

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 72 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT DISTINCT - col0 DIV 18 AS col1 FROM tab0 AS cor0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT - col0 / 18 AS col1 FROM tab0 AS cor0
----
-4
-5
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1031
SELECT + CAST ( + 1 AS INTEGER ) col2 FROM tab0 cor0 WHERE NOT ( col1 * - 40 ) IS NOT NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT 91 IS NOT NULL
----

query I rowsort
SELECT col2 * col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT COUNT( * ) + - COUNT( * ) * 89 col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
-792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1034
SELECT COUNT ( * ) + - COUNT ( * ) * 89 col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
-792

query III rowsort
SELECT * FROM tab1 WHERE + col2 - ( + col0 ) > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( + 86 + col2 * - 95 )
----

query I rowsort
SELECT ALL col2 + + 73 * - 49 AS col1 FROM tab2
----
-3519
-3537
-3554

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 4 + 90 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 4 + 90 IS NULL
----
0

query I rowsort
SELECT DISTINCT 36 * + 97 + 53 FROM tab0 AS cor0
----
3545

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1042
SELECT ALL + COUNT ( * ) - + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1044
SELECT - COUNT( * ) DIV + 42 + + 66 col1 FROM tab2 cor0
----
66

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

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 94 ) = ( + 69 * - col2 )
----
425
4277
714

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

query III rowsort
SELECT * FROM tab0 WHERE 16 / col0 = col2
----

query I rowsort
SELECT 63 * + ( col0 ) * + col2 + - col0 FROM tab0
----
44400
54723
604892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1049
SELECT ( + + COUNT( col0 ) ) DIV - MAX( ALL 74 ) + ( - 44 ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-1049
SELECT ( + + COUNT ( col0 ) ) / - MAX ( ALL 74 ) + ( - 44 ) FROM tab2
----
-44

query I rowsort
SELECT - 81 * - col0 FROM tab1
----
4131
6885
7371

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT MAX( DISTINCT 3 ) col2 FROM tab0
----
3

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

query I rowsort
SELECT DISTINCT - 58 * 41 + col1 AS col0 FROM tab0
----
-2297
-2357
-2377

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT 53 * - MAX( 72 ) AS col1 FROM tab1
----
-3816

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT 53 * - MAX ( 72 ) AS col1 FROM tab1
----
-3816

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1056
SELECT DISTINCT * FROM tab0 WHERE 87 / + col0 < + 61 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1056
SELECT DISTINCT * FROM tab0 WHERE 87 / + col0 < + 61 - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT SUM( DISTINCT - 97 ) col1 FROM tab2
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1057
SELECT SUM ( DISTINCT - 97 ) col1 FROM tab2
----
-97

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT - 81 - COUNT( * ) col1 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1061
SELECT - 81 - COUNT ( * ) col1 FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL 66 * - + COUNT( * ) AS col1 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL 66 * - + COUNT ( * ) AS col1 FROM tab0
----
-198

query I rowsort
SELECT ALL + col0 * - - col0 * + + 71 * - 7 FROM tab0
----
-111825
-3761793
-4676273

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1064
SELECT 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif mysql # not compatible
query I rowsort label-1064
SELECT 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to fede6033dee346dbd272085c05724fda

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 45 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT - 33 DIV - col0 + + + col2 - ( 3 ) DIV - col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1067
SELECT - 33 / - col0 + + + col2 - ( 3 ) / - col1 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - col0 ) / - col0 < ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 cor0
----
1

query I rowsort
SELECT - 41 * - col2 FROM tab1 AS cor0
----
2419
2788
3936

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col0 FROM tab1 AS cor0
----
51
85
91

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1075
SELECT DISTINCT - - SUM ( ALL - col2 ) col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL - COUNT( * ) * + 41 + - ( 85 ) + 22 AS col0 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL - COUNT ( * ) * + 41 + - ( 85 ) + 22 AS col0 FROM tab2 AS cor0
----
-186

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

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

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

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

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

query I rowsort
SELECT ALL col2 + + ( - col2 ) * 39 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

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

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

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

query I rowsort
SELECT ALL + 78 + col1 FROM tab0
----
159
79
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1086
SELECT ALL CAST( col0 AS SIGNED ) + col1, col2 AS col2 FROM tab0 AS cor0
----
108
10
96
47
98
99

skipif mysql # not compatible
query II rowsort label-1086
SELECT ALL CAST ( col0 AS INTEGER ) + col1, col2 AS col2 FROM tab0 AS cor0
----
108
10
96
47
98
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT ALL CAST( + ( + COUNT( ALL - 63 ) ) AS SIGNED ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1087
SELECT ALL CAST ( + ( + COUNT ( ALL - 63 ) ) AS INTEGER ) col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT DISTINCT - 78 + - MIN( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT - 78 + - MIN ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-124

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

query I rowsort
SELECT DISTINCT 11 * + col0 + - + ( - col1 ) + - 82 + col0 FROM tab1 AS cor0
----
1057
544
943

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL 22 - - - MAX( ALL - 4 ) AS col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL 22 - - - MAX ( ALL - 4 ) AS col0 FROM tab1 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 81 col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( 43 )
----
-60
-80
0

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

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

query I rowsort
SELECT DISTINCT + 55 - - - 67 AS col1 FROM tab0 cor0
----
-12

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 62 / 19 <> 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - col2 + + 98 AS col0 FROM tab1 AS cor0
----
16
44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT - 16 - + COUNT( * ) col1 FROM tab0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1100
SELECT - 16 - + COUNT ( * ) col1 FROM tab0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1101
SELECT ALL 80 AS col1, - COUNT( * ) FROM tab1
----
80
-3

skipif mysql # not compatible
query II rowsort label-1101
SELECT ALL 80 AS col1, - COUNT ( * ) FROM tab1
----
80
-3

query I rowsort
SELECT - col1 + - - col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 WHERE NOT ( 2 / + 10 - 21 ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT 96 FROM tab1 WHERE NOT ( ( NULL ) > ( + + col2 ) )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, ( + col0 ) col0 FROM tab2 AS cor0 WHERE NOT ( 30 ) < ( + col2 )
----
23
46

query I rowsort
SELECT DISTINCT 48 * + 69 FROM tab1
----
3312

query I rowsort
SELECT ALL col0 * + col1 * + - col2 AS col2 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT + 30 * - 63 AS col2 FROM tab2
----
-1890
-1890
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT + SUM( col0 ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-1111
SELECT + SUM ( col0 ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
555

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 41 * + - ( col1 ) * + col0 / - col0 * - + 52 + + col1 )
----

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

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

query I rowsort
SELECT DISTINCT - 65 FROM tab2 AS cor0 WHERE NULL <= ( + - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 33 IN ( col0, - 11 + col1 - + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-1117
SELECT ALL - - col2 DIV + col0 + + col2, col2 FROM tab0 AS cor0
----
10
10
100
99
50
47

skipif mysql # not compatible
query II rowsort label-1117
SELECT ALL - - col2 / + col0 + + col2, col2 FROM tab0 AS cor0
----
10
10
100
99
50
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 64 / 48 + - - col1 + col1 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1119
SELECT - col1 DIV ( - 39 ) AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1119
SELECT - col1 / ( - 39 ) AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT + 69 + col1 AS col0 FROM tab2
----
120
136
146

query I rowsort
SELECT ALL 29 - - + 31 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1122
SELECT - COUNT( + + ( CAST( NULL AS SIGNED ) ) ) + 16 col0 FROM tab2
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1122
SELECT - COUNT ( + + ( CAST ( NULL AS INTEGER ) ) ) + 16 col0 FROM tab2
----
16

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col2 FROM tab0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT MAX( + + 3 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1125
SELECT MAX ( + + 3 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 41 <> ( 72 + + ( + col2 ) )
----

query I rowsort
SELECT - - col2 FROM tab2 cor0 WHERE + ( + col2 ) < - col1
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1130
SELECT ALL + 44 DIV - 6 FROM tab1
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL + 44 / - 6 FROM tab1
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT + - COUNT( * ) col1 FROM tab1 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-1131
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

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

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

query I rowsort
SELECT + + col1 AS col0 FROM tab0 WHERE - 21 IS NULL
----

query I rowsort
SELECT ALL col1 + 15 FROM tab1
----
20
29
62

query I rowsort
SELECT DISTINCT - 17 + + 71 + + 49 FROM tab2
----
103

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 64 + - + 85 + + + col1 * + col1 = ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 88 NOT BETWEEN - col1 AND - col1 * + + 37 + + col2 + + col2 + - col2
----

query I rowsort
SELECT DISTINCT - + col0 + - col0 AS col1 FROM tab0 cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1139
SELECT DISTINCT 8 DIV ( - COUNT( * ) ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT 8 / ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-2

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

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

query I rowsort
SELECT ALL 70 * - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT 14 * + col0 AS col2 FROM tab0
----
1218
1358
210

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT + 7 / col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 FROM tab2 WHERE - 87 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - + 11 / + + col0 - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 94 * + col1 = 23 + - - 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT + COUNT( * ) * - - 36 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-1148
SELECT + COUNT ( * ) * - - 36 FROM tab1
----
108

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

query I rowsort
SELECT ALL col2 * + 78 AS col0 FROM tab2 AS cor0 WHERE ( 54 ) IS NULL
----

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> + 72
----

query I rowsort
SELECT - - 85 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

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

query I rowsort
SELECT + 82 * + col0 + + col1 FROM tab1 cor0
----
4196
6975
7509

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( 35 + + - 82 )
----

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

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT + 13 * + + 12 + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - - ( - 48 ) * - ( - MAX( - col0 ) ) FROM tab1 AS cor0
----
2448

skipif mysql # not compatible
query I rowsort label-1158
SELECT - - ( - 48 ) * - ( - MAX ( - col0 ) ) FROM tab1 AS cor0
----
2448

query I rowsort
SELECT DISTINCT + + 6 * col0 FROM tab0 AS cor0
----
522
582
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT + + 74 * MAX( - + 76 ) FROM tab1 cor0
----
-5624

skipif mysql # not compatible
query I rowsort label-1160
SELECT + + 74 * MAX ( - + 76 ) FROM tab1 cor0
----
-5624

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT ALL ( 81 ) * + col1 DIV 1 AS col2 FROM tab1
----
1134
3807
405

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL ( 81 ) * + col1 / 1 AS col2 FROM tab1
----
1134
3807
405

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT 50 DIV + 88 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1163
SELECT 50 / + 88 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NULL > - 81
----
0

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NULL > - 81
----
0

query I rowsort
SELECT col2 / - 84 FROM tab1 WHERE + 92 IS NULL
----

query I rowsort
SELECT ALL col1 * + col1 * + - col2 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab1 WHERE + - ( + + 94 ) < - + col1 + col2 + + - 83 / - ( + ( col2 ) ) + 92 * + + col1
----
84

query I rowsort
SELECT + col1 + - - col2 AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - col2 + col1 * - + col1 AS col0 FROM tab1 AS cor0
----
-2277
-292
-84

query I rowsort
SELECT col0 + - - 99 AS col2 FROM tab2 cor0
----
145
163
174

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT DISTINCT + col2 DIV + col2 col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1172
SELECT DISTINCT + col2 / + col2 col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1173
SELECT 18 * - CAST( + col0 AS SIGNED ) - + col2 AS col1 FROM tab1 WHERE - 58 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1173
SELECT 18 * - CAST ( + col0 AS INTEGER ) - + col2 AS col1 FROM tab1 WHERE - 58 IS NULL
----

query I rowsort
SELECT ALL 78 FROM tab0 WHERE 18 >= - - col0 + - ( - + col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1175
SELECT ALL 77 DIV + + 21 - - + 46, col1 FROM tab0 AS cor0
----
49
1
49
21
49
81

skipif mysql # not compatible
query II rowsort label-1175
SELECT ALL 77 / + + 21 - - + 46, col1 FROM tab0 AS cor0
----
49
1
49
21
49
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT + - COUNT( * ) - - 5 + - - ( - 27 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1177
SELECT + - COUNT ( * ) - - 5 + - - ( - 27 ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT 19 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 45 * + col1 - + 29 FROM tab1 cor0
----
-2144
-254
-659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1180
SELECT DISTINCT - SUM( CAST( col2 AS SIGNED ) ) col0 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1180
SELECT DISTINCT - SUM ( CAST ( col2 AS INTEGER ) ) col0 FROM tab1
----
-223

query I rowsort
SELECT ( col0 ) * - - col0 AS col1 FROM tab1
----
2601
7225
8281

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT MAX ( DISTINCT col2 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT 93 * col0 FROM tab2
----
4278
5952
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT DISTINCT - 45 * + MIN( col1 ) - - 56 AS col0 FROM tab2 AS cor0
----
-2239

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT - 45 * + MIN ( col1 ) - - 56 AS col0 FROM tab2 AS cor0
----
-2239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT DISTINCT + - COUNT( * ) DIV - - 97 col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1185
SELECT DISTINCT + - COUNT ( * ) / - - 97 col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
0

query I rowsort
SELECT 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT ( 40 <= NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1188
SELECT ALL 75 + - CAST( - 88 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c7705288b871650ec58302ccb864b0db

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 75 + - CAST ( - 88 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c7705288b871650ec58302ccb864b0db

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

skipif mysql # not compatible
query I rowsort label-1189
SELECT + MAX ( 11 ) AS col2 FROM tab1
----
11

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT - col2 * + CAST( - - col2 AS SIGNED ) col0 FROM tab2 cor0
----
-1600
-3364
-529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1191
SELECT - col2 * + CAST ( - - col2 AS INTEGER ) col0 FROM tab2 cor0
----
-1600
-3364
-529

query II rowsort
SELECT DISTINCT - - 70 / 48 AS col1, col0 + 80 + 93 + + 42 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * ( col2 ) IS NOT NULL
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - col2 + + 77 AND NULL
----
46
51
23

query I rowsort
SELECT DISTINCT + col0 * - 7 AS col2 FROM tab1 cor0
----
-357
-595
-637

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 81 NOT BETWEEN NULL AND col1 * - col1 + - - 89
----

query I rowsort
SELECT - + col1 + + col1 + + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-1199
SELECT 66 * - - COUNT ( * ) / + ( - 2 ) + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 * 19 * - 77 AS col1 FROM tab0
----
-118503
-1463
-30723

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

skipif mysql # not compatible
query I rowsort label-1201
SELECT + col2 + - + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT col2 * - 20 + + col1 AS col1 FROM tab1
----
-1175
-1313
-1906

query I rowsort
SELECT + col2 * + col0 + ( 48 ) + - 67 AS col1 FROM tab2
----
1039
2541
4331

query I rowsort
SELECT 83 * - col1 + col2 FROM tab0
----
-1733
-6676
16

query I rowsort
SELECT col0 + - + 88 FROM tab1
----
-3
-37
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT DISTINCT + col1 + col2 DIV - col0 FROM tab1
----
13
47
5

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT + col1 + col2 / - col0 FROM tab1
----
13
47
5

query I rowsort
SELECT col2 * + - col2 AS col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + col2 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= col1 + + 60
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col1 - + col2
----

query I rowsort
SELECT DISTINCT - 58 * - col0 + + + 12 AS col1 FROM tab0
----
5058
5638
882

query I rowsort
SELECT DISTINCT - + col2 + + col0 + - - col2 AS col2 FROM tab2 AS cor0
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT - + SUM( ALL - 94 ) FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-1214
SELECT - + SUM ( ALL - 94 ) FROM tab0 AS cor0
----
282

query I rowsort
SELECT DISTINCT + col0 * + 91 AS col2 FROM tab0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query II rowsort label-1216
SELECT ALL 39, COUNT( * ) AS col1 FROM tab1
----
39
3

skipif mysql # not compatible
query II rowsort label-1216
SELECT ALL 39, COUNT ( * ) AS col1 FROM tab1
----
39
3

query I rowsort
SELECT DISTINCT - ( + 71 ) FROM tab2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-1218
SELECT DISTINCT COUNT( * ) * - MAX( + - col0 ) AS col0, - 90 + 79 AS col0 FROM tab1
----
153
-11

skipif mysql # not compatible
query II rowsort label-1218
SELECT DISTINCT COUNT ( * ) * - MAX ( + - col0 ) AS col0, - 90 + 79 AS col0 FROM tab1
----
153
-11

query I rowsort
SELECT col0 * - + 47 FROM tab0 AS cor0
----
-4089
-4559
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT + MAX( + - 42 ) col0 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1220
SELECT DISTINCT + MAX ( + - 42 ) col0 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1221
SELECT ALL SUM( - 80 ) DIV 21 col0 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1221
SELECT ALL SUM ( - 80 ) / 21 col0 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT ( - 52 ) FROM tab0 AS cor0
----
-52
-52
-52

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + col2 ) * + + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 14 * col2 col2 FROM tab2 AS cor0
----
-14812
-35840
-60900

query I rowsort
SELECT DISTINCT + col2 + - - col2 + 32 AS col0 FROM tab2 AS cor0
----
112
148
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT ( NOT - + col1 + - + col0 + - col0 + + 97 + - 75 < col0 )
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1231
SELECT + + ( - COUNT( * ) ) DIV - 91 * - COUNT( * ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1231
SELECT + + ( - COUNT ( * ) ) / - 91 * - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT - 27 * COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1234
SELECT - 27 * COUNT ( * ) FROM tab1 AS cor0
----
-81

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

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

query III rowsort
SELECT * FROM tab2 WHERE - + 71 + + - 72 >= + + col1
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE col2 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1239
SELECT DISTINCT - COUNT( * ) + - + MAX( DISTINCT - col2 ), - COUNT( * ) AS col0 FROM tab0
----
7
-3

skipif mysql # not compatible
query II rowsort label-1239
SELECT DISTINCT - COUNT ( * ) + - + MAX ( DISTINCT - col2 ), - COUNT ( * ) AS col0 FROM tab0
----
7
-3

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

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

query I rowsort
SELECT ALL - col0 + + + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - col1 * + 95 + 68 FROM tab1
----
-127612
-27957
-303552

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT - 38 + MAX( DISTINCT + ( - 59 ) ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-1243
SELECT - 38 + MAX ( DISTINCT + ( - 59 ) ) FROM tab2
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1244
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1244
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1245
SELECT ALL + col0 * CAST( - - col0 AS SIGNED ) * - - 14 - - col1 AS col2 FROM tab0 AS cor0
----
105987
131727
3231

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL + col0 * CAST ( - - col0 AS INTEGER ) * - - 14 - - col1 AS col2 FROM tab0 AS cor0
----
105987
131727
3231

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

skipif mysql # not compatible
query I rowsort label-1246
SELECT - + MIN ( 9 ) FROM tab1 cor0
----
-9

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1250
SELECT DISTINCT - 26 AS col1, SUM( ALL - 34 ) AS col2 FROM tab2 AS cor0
----
-26
-102

skipif mysql # not compatible
query II rowsort label-1250
SELECT DISTINCT - 26 AS col1, SUM ( ALL - 34 ) AS col2 FROM tab2 AS cor0
----
-26
-102

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN - + col1 + - col2 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT col0 * - 19 AS col2 FROM tab0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query II rowsort label-1256
SELECT ALL - COUNT( * ) * 64 col1, SUM( DISTINCT - - 6 ) * + 20 AS col2 FROM tab1
----
-192
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1256
SELECT ALL - COUNT ( * ) * 64 col1, SUM ( DISTINCT - - 6 ) * + 20 AS col2 FROM tab1
----
-192
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT - 77 * - + COUNT( * ) FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT - 77 * - + COUNT ( * ) FROM tab0
----
231

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 70, + col1 + - 48, + col0, - - col0 )
----

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

query II rowsort
SELECT 59 * - col1 AS col2, 9 + + col1 AS col2 FROM tab1
----
-2773
56
-295
14
-826
23

query I rowsort
SELECT + + 60 * - - col1 FROM tab0 AS cor0
----
1260
4860
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT - col0 DIV + ( + + col1 ) + - 59 col1 FROM tab1 AS cor0
----
-60
-62
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1262
SELECT - col0 / + ( + + col1 ) + - 59 col1 FROM tab1 AS cor0
----
-60
-62
-76

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE + 54 / + - 42 <= NULL
----

query I rowsort
SELECT ALL + col0 * - - 12 FROM tab0
----
1044
1164
180

query I rowsort
SELECT col2 * - - 77 AS col2 FROM tab1
----
4543
5236
7392

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 93 IS NULL
----

query II rowsort
SELECT ALL - - col0 + - col0 + - 43 + - col2 * col2 * + col2, + 18 AS col0 FROM tab0 AS cor0
----
-103866
18
-1043
18
-970342
18

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

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

query I rowsort
SELECT DISTINCT - col0 * 7 + col0 FROM tab2 AS cor0
----
-276
-384
-450

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

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

query I rowsort
SELECT - col1 + 64 FROM tab2
----
-13
-3
13

query I rowsort
SELECT DISTINCT - 67 + + + 42 FROM tab0 WHERE ( + - col0 ) IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col2 * 80 AND NULL
----

query I rowsort
SELECT ALL col0 * + + col0 * col0 - - 39 AS col1 FROM tab2 WHERE col0 >= + col1
----
421914

query I rowsort
SELECT ALL + 68 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1278
SELECT ALL col1 AS col2, col1 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-1278
SELECT ALL col1 AS col2, col1 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

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

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

query I rowsort
SELECT ALL col1 * - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-1196
-3120
-3944

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

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

query I rowsort
SELECT + col1 * - 81 * - col0 AS col0 FROM tab0
----
147987
7857
98415

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

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

query II rowsort
SELECT ALL - col2 AS col0, 32 + + ( - ( - col2 ) ) FROM tab1
----
-59
91
-68
100
-96
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT MAX( col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-1285
SELECT MAX ( col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1287
SELECT COUNT ( * ) AS col0, 94 col1 FROM tab0
----
3
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1288
SELECT ALL * FROM tab1 WHERE NOT + 34 NOT BETWEEN NULL AND - + CAST( NULL AS SIGNED ) + col1 - col2 * + col0 * + col2 * col1 * - + col2
----

skipif mysql # not compatible
query III rowsort label-1288
SELECT ALL * FROM tab1 WHERE NOT + 34 NOT BETWEEN NULL AND - + CAST ( NULL AS INTEGER ) + col1 - col2 * + col0 * + col2 * col1 * - + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 = - 6
----

query I rowsort
SELECT DISTINCT + + col2 * - 72 * + col0 AS col2 FROM tab2 AS cor0
----
-184320
-313200
-76176

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT - COUNT( * ) * 93 AS col1 FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-1291
SELECT - COUNT ( * ) * 93 AS col1 FROM tab1 AS cor0
----
-279

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 77 >= ( - 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT + - MIN( DISTINCT - col1 ) * - - 62 AS col0 FROM tab1 AS cor0
----
2914

skipif mysql # not compatible
query I rowsort label-1293
SELECT + - MIN ( DISTINCT - col1 ) * - - 62 AS col0 FROM tab1 AS cor0
----
2914

query I rowsort
SELECT + + 75 + + col0 FROM tab1 AS cor0
----
126
160
166

query I rowsort
SELECT + 50 + ( - - col1 ) AS col1 FROM tab0 AS cor0
----
131
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT DISTINCT + 45 * + COUNT( * ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + 45 * + COUNT ( * ) FROM tab0
----
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - 68 col0 FROM tab1
----
119
153
159

query II rowsort
SELECT + col0 * + col1 AS col1, 89 AS col0 FROM tab0 AS cor0
----
1215
89
1827
89
97
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 28 ) * + 5 col2 FROM tab1 AS cor0
----
140
140
140

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT + - col0 * col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1300
SELECT + - col0 * col1 / - col0 AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT 41 * + - CAST( 20 AS SIGNED ) AS col2 FROM tab1 cor0
----
-820
-820
-820

skipif mysql # not compatible
query I rowsort label-1301
SELECT 41 * + - CAST ( 20 AS INTEGER ) AS col2 FROM tab1 cor0
----
-820
-820
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT - ( - + MIN( ALL - col2 ) ) + + + 41 AS col0 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-1302
SELECT - ( - + MIN ( ALL - col2 ) ) + + + 41 AS col0 FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT DISTINCT + COUNT( * ) + COUNT( * ) * + 32 * + + ( + 69 ) AS col2 FROM tab0
----
6627

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) * + 32 * + + ( + 69 ) AS col2 FROM tab0
----
6627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT - CAST( - 49 AS SIGNED ) + + 85 AS col1 FROM tab1 WHERE - + col0 < + col1
----
134
134
134

skipif mysql # not compatible
query I rowsort label-1304
SELECT - CAST ( - 49 AS INTEGER ) + + 85 AS col1 FROM tab1 WHERE - + col0 < + col1
----
134
134
134

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 99 FROM tab0 AS cor0 WHERE NOT - 17 IS NULL
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL SUM( - 8 ) AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL SUM ( - 8 ) AS col0 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT - 40 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 * + col0 col2 FROM tab1
----
1445
1547
867

query I rowsort
SELECT ALL + ( 66 ) FROM tab2
----
66
66
66

query I rowsort
SELECT DISTINCT col0 * + 76 * - col0 FROM tab1
----
-197676
-549100
-629356

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

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

query II rowsort
SELECT + col2 AS col1, 55 - - - col0 - + col2 * col0 * col2 * - col0 AS col1 FROM tab1
----
59
25150195
68
38291308
96
23970820

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT - COUNT( ALL - 94 ) + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1320
SELECT - COUNT ( ALL - 94 ) + COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 42 + + 57 + + 58 FROM tab0
----
157

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 - + ( 35 ) FROM tab2
----
-12
23
5

query I rowsort
SELECT 63 * col1 AS col2 FROM tab1
----
2961
315
882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col2 * col0, col1 col2 FROM tab2
----
102400
77
24334
51
252300
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1329
SELECT 56 / + - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1329
SELECT 56 / + - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1330
SELECT DISTINCT + MAX( DISTINCT + 27 ) AS col1, + 29 FROM tab0
----
27
29

skipif mysql # not compatible
query II rowsort label-1330
SELECT DISTINCT + MAX ( DISTINCT + 27 ) AS col1, + 29 FROM tab0
----
27
29

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + COUNT( + 98 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1333
SELECT + COUNT ( + 98 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT DISTINCT - - COUNT( * ) - 66 AS col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT - - COUNT ( * ) - 66 AS col1 FROM tab2 AS cor0
----
-63

query II rowsort
SELECT ALL + col2, 2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT - + 64 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-1336
SELECT - + 64 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
192

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

query II rowsort
SELECT DISTINCT 12, col1 AS col0 FROM tab2
----
12
51
12
67
12
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT MIN( ALL - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1340
SELECT MIN ( ALL - col2 ) FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT + MAX( + col1 ) * - COUNT( * ) col2 FROM tab1 AS cor0
----
-141

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1343
SELECT - col1 DIV - col2 AS col0, col0 * + + col1 AS col0 FROM tab1
----
0
425
0
4277
0
714

skipif mysql # not compatible
query II rowsort label-1343
SELECT - col1 / - col2 AS col0, col0 * + + col1 AS col0 FROM tab1
----
0
425
0
4277
0
714

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT ALL COUNT( DISTINCT - 88 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL COUNT ( DISTINCT - 88 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT ALL 60 * - col2 FROM tab0
----
-2820
-5940
-600

query I rowsort
SELECT DISTINCT + col1 + - ( + 22 ) FROM tab1
----
-17
-8
25

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - 44 + 71 BETWEEN + - 87 AND + - col2 + + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1349
SELECT CAST( NULL AS DECIMAL ) * col0 / + - 89 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT CAST ( NULL AS REAL ) * col0 / + - 89 FROM tab2
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + SUM ( ALL col1 ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT col1 + + - 69 FROM tab1 cor0
----
-22
-55
-64

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + - col0, - col1, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT + + 60 + 37 * + COUNT( * ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-1355
SELECT + + 60 + 37 * + COUNT ( * ) FROM tab2 AS cor0
----
171

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

query I rowsort
SELECT DISTINCT - 61 + + col2 FROM tab2
----
-21
-3
-38

query I rowsort
SELECT ALL col2 + 78 + + 54 * + + col0 FROM tab1
----
2928
4727
5060

query I rowsort
SELECT ALL + ( - col1 ) * col0 - - 93 * - ( + col0 ) FROM tab0 AS cor0
----
-2610
-9118
-9918

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1363
SELECT DISTINCT - col2 DIV - - col0 - - col2, CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
95
NULL

skipif mysql # not compatible
query II rowsort label-1363
SELECT DISTINCT - col2 / - - col0 - - col2, CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
95
NULL

query I rowsort
SELECT ALL - 91 - col1 AS col2 FROM tab1 AS cor0
----
-105
-138
-96

query I rowsort
SELECT ALL 6 + col0 AS col1 FROM tab1
----
57
91
97

query II rowsort
SELECT DISTINCT col0, + 65 - + + col2 FROM tab1
----
51
-31
85
6
91
-3

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

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

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

query II rowsort
SELECT col2 AS col1, + 55 * - col1 FROM tab0
----
10
-1155
47
-4455
99
-55

query I rowsort
SELECT DISTINCT - ( col1 ) * - 44 FROM tab2
----
2244
2948
3388

query II rowsort
SELECT col0, - ( col1 ) * - col0 FROM tab1 AS cor0
----
51
714
85
425
91
4277

query III rowsort
SELECT * FROM tab2 WHERE NOT 32 - + col0 > - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1373
SELECT - + CAST( NULL AS DECIMAL ) * 9, 99 col0 FROM tab2 AS cor0
----
NULL
99
NULL
99
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1373
SELECT - + CAST ( NULL AS REAL ) * 9, 99 col0 FROM tab2 AS cor0
----
NULL
99
NULL
99
NULL
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + col1 - - col2 + - - col1 * + col1 * + + col1 * - 62 + - - 46 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 49 FROM tab0 cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-1376
SELECT DISTINCT - - MAX( - + col1 ), + MAX( col2 ) col1 FROM tab2 cor0
----
-51
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1376
SELECT DISTINCT - - MAX ( - + col1 ), + MAX ( col2 ) col1 FROM tab2 cor0
----
-51
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - + ( col1 ) AND + col2 - + 46 + + - 87
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 54 < - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT - 91 DIV + 15 + 37 * - - 16 AS col0 FROM tab1
----
586
586
586

skipif mysql # not compatible
query I rowsort label-1379
SELECT - 91 / + 15 + 37 * - - 16 AS col0 FROM tab1
----
586
586
586

onlyif mysql # aggregate syntax: 
query II rowsort label-1380
SELECT ALL - 98, MAX( DISTINCT - + 61 ) AS col2 FROM tab1
----
-98
-61

skipif mysql # not compatible
query II rowsort label-1380
SELECT ALL - 98, MAX ( DISTINCT - + 61 ) AS col2 FROM tab1
----
-98
-61

query I rowsort
SELECT ALL + + 27 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT COUNT( * ) + MAX( + col1 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1382
SELECT COUNT ( * ) + MAX ( + col1 ) FROM tab0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1383
SELECT DISTINCT col2 + + + col1 DIV - 45 FROM tab0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT col2 + + + col1 / - 45 FROM tab0
----
10
46
99

query I rowsort
SELECT col2 + - - 11 * col1 FROM tab0
----
110
241
938

query I rowsort
SELECT - 12 + + col0 * 50 - + 31 AS col1 FROM tab1
----
2507
4207
4507

query I rowsort
SELECT col0 * + + 63 AS col1 FROM tab1
----
3213
5355
5733

query I rowsort
SELECT ALL 44 + - + 52 AS col1 FROM tab2
----
-8
-8
-8

query II rowsort
SELECT col2, + 37 + + col1 FROM tab0
----
10
58
47
118
99
38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 2 - + - 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1391
SELECT DISTINCT + 70 AS col2, CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-1391
SELECT DISTINCT + 70 AS col2, CAST ( NULL AS REAL ) FROM tab1 cor0
----
70
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT col2 DIV - col0 - - - col1 + - 32 DIV - col2 FROM tab0
----
-18
-2
-84

skipif mysql # not compatible
query I rowsort label-1393
SELECT col2 / - col0 - - - col1 + - 32 / - col2 FROM tab0
----
-18
-2
-84

query I rowsort
SELECT ALL - col0 + col0 + - + 60 + - - 97 AS col2 FROM tab2
----
37
37
37

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

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT - 97 + - + COUNT ( * ) AS col1 FROM tab2 cor0
----
-100

query I rowsort
SELECT DISTINCT - 4 - + 59 AS col0 FROM tab2 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ALL + MIN( DISTINCT 19 ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + MIN ( DISTINCT 19 ) FROM tab1 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1398
SELECT DISTINCT - col1 - + 12 - + - col1 DIV col0 FROM tab2 AS cor0
----
-62
-79
-88

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT - col1 - + 12 - + - col1 / col0 FROM tab2 AS cor0
----
-62
-79
-88

query II rowsort
SELECT ALL + - col2 - - + col1 AS col0, - col1 FROM tab1 AS cor0
----
-21
-47
-54
-5
-82
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 76 col1 FROM tab0
----
1140
6612
7372

query I rowsort
SELECT DISTINCT col1 * - + col1 AS col0 FROM tab2
----
-2601
-4489
-5929

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1402
SELECT DISTINCT + CAST ( + COUNT ( - 60 ) AS INTEGER ) * COUNT ( * ) col1 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT ALL col1 DIV + - 25 AS col1 FROM tab2
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL col1 / + - 25 AS col1 FROM tab2
----
-2
-2
-3

query II rowsort
SELECT 96, + 80 AS col2 FROM tab1
----
96
80
96
80
96
80

query II rowsort
SELECT 71 AS col0, - 30 + - col1 AS col1 FROM tab1
----
71
-35
71
-44
71
-77

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

query I rowsort
SELECT DISTINCT 62 * - + col2 AS col2 FROM tab0
----
-2914
-6138
-620

query I rowsort
SELECT ALL col0 * + - 31 AS col0 FROM tab0
----
-2697
-3007
-465

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT DISTINCT - - COUNT( DISTINCT + col1 ) * + + ( - COUNT( * ) ) - 61 AS col0 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT - - COUNT ( DISTINCT + col1 ) * + + ( - COUNT ( * ) ) - 61 AS col0 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT DISTINCT + 44 FROM tab0 AS cor0 WHERE 46 = - col0
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1413
SELECT DISTINCT MAX( DISTINCT - - col2 ) DIV 65 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1413
SELECT DISTINCT MAX ( DISTINCT - - col2 ) / 65 FROM tab0
----
1

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1415
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( + - col1 AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1415
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( + - col1 AS REAL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col1 col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT col2 DIV + + 47 col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1417
SELECT col2 / + + 47 col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL - MIN( - + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL - MIN ( - + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL 52 + + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL >= NULL
----
52

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL 52 + + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL >= NULL
----
52

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

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

query I rowsort
SELECT col2 * - + 21 AS col2 FROM tab1
----
-1239
-1428
-2016

query I rowsort
SELECT + 58 FROM tab2 WHERE ( NULL ) >= - 61
----

query I rowsort
SELECT DISTINCT col1 + col1 - 29 FROM tab2
----
105
125
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT ALL - ( - - col0 ) DIV + 68 col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1425
SELECT ALL - ( - - col0 ) / + 68 col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT DISTINCT + MAX( ALL - - col0 ) + + COUNT( * ) * - + 23 AS col2 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT + MAX ( ALL - - col0 ) + + COUNT ( * ) * - + 23 AS col2 FROM tab0
----
28

query I rowsort
SELECT ALL - col1 + + 41 FROM tab0
----
-40
20
40

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

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

query I rowsort
SELECT + col0 + + + col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT + ( - + col2 ) + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-1430
SELECT + ( - + col2 ) + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-2
-32
77

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT + 60 * - 77 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1432
SELECT - col1 - - + col2 + - col0 DIV - + 51 AS col0 FROM tab0 AS cor0
----
-10
-34
99

skipif mysql # not compatible
query I rowsort label-1432
SELECT - col1 - - + col2 + - col0 / - + 51 AS col0 FROM tab0 AS cor0
----
-10
-34
99

onlyif mysql # DIV for integer division: 
query II rowsort label-1433
SELECT DISTINCT - col0 + - - ( - - col0 ) AS col2, - col1 DIV 47 AS col2 FROM tab0 AS cor0
----
0
-1
0
0

skipif mysql # not compatible
query II rowsort label-1433
SELECT DISTINCT - col0 + - - ( - - col0 ) AS col2, - col1 / 47 AS col2 FROM tab0 AS cor0
----
0
-1
0
0

query I rowsort
SELECT DISTINCT + 12 * col2 + + - col2 - - - col2 * + 53 AS col0 FROM tab1 AS cor0
----
-2478
-2856
-4032

query I rowsort
SELECT + 83 - + col0 FROM tab0 AS cor0
----
-14
-4
68

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

query I rowsort
SELECT DISTINCT - col0 * - 28 FROM tab2 AS cor0
----
1288
1792
2100

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( + - 0, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 58 * col2 FROM tab2
----
1334
2320
3364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, + 51 * + - 23 col2 FROM tab0 WHERE NOT NULL <= - - col1
----

query II rowsort
SELECT ( + - ( - + col2 ) ) * + col1 AS col0, + col2 + + 9 FROM tab0
----
210
19
3807
56
99
108

query I rowsort
SELECT ALL + 35 + - col0 + 58 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1443
SELECT 25 * + ( - ( - - CAST( col1 AS SIGNED ) ) ), + 48 - - col2 + + 19 AS col1 FROM tab1
----
-1175
135
-125
126
-350
163

skipif mysql # not compatible
query II rowsort label-1443
SELECT 25 * + ( - ( - - CAST ( col1 AS INTEGER ) ) ), + 48 - - col2 + + 19 AS col1 FROM tab1
----
-1175
135
-125
126
-350
163

query III rowsort
SELECT * FROM tab0 WHERE NOT + 37 + + ( + ( col2 ) ) * - col2 IN ( col0 + + 55, - ( col1 ), - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * ( - ( - col2 ) ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + + 49 + + ( 23 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT SUM( - - 63 ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT SUM ( - - 63 ) FROM tab1 AS cor0
----
189

query I rowsort
SELECT ALL - col2 + + + col2 * col1 FROM tab2 AS cor0
----
1150
3040
3828

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 26 + + col0 / + col0 BETWEEN + 93 AND + + col1
----

query I rowsort
SELECT ALL + + 58 * - 17 FROM tab0 AS cor0
----
-986
-986
-986

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 < 61
----
15
81
47

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

query I rowsort
SELECT + 70 + + 13 FROM tab1 AS cor0
----
83
83
83

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

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

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

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

query I rowsort
SELECT DISTINCT ( - + 51 ) * - - 80 AS col1 FROM tab0
----
-4080

query I rowsort
SELECT DISTINCT col0 * - 8 + - + col1 AS col1 FROM tab1
----
-422
-685
-775

query I rowsort
SELECT + 31 * - - col1 AS col1 FROM tab1
----
1457
155
434

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

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

query I rowsort
SELECT DISTINCT + col2 + - col2 + + 72 - col2 - + col2 * + 69 * 23 * - 82 FROM tab1
----
12492840
7677919
8849116

query II rowsort
SELECT ALL + 31, col2 FROM tab2
----
31
23
31
40
31
58

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

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

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 WHERE - col1 <= - + ( 92 ) * - + 84
----
-14
-47
-5

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NULL BETWEEN NULL AND + 46
----

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

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

query I rowsort
SELECT ALL + - col0 - + + 12 * - + col1 FROM tab1 AS cor0
----
-25
117
473

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 92 < - col0
----
15
81
47
87
21
10

query I rowsort
SELECT col1 - + - 46 AS col2 FROM tab0 AS cor0
----
127
47
67

query I rowsort
SELECT ALL - 40 - + col0 FROM tab0 AS cor0
----
-127
-137
-55

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1471
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif mysql # not compatible
query IIIIII rowsort label-1471
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT + 74 * COUNT( * ) AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
222

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 74 * COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL MIN( + 38 ) AS col1 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL MIN ( + 38 ) AS col1 FROM tab2
----
38

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

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

query I rowsort
SELECT - col2 / 92 + col2 AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) <= - col1 )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - 2 - col0 * + + col2 + + - ( - col1 ) - + col2
----

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

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

query II rowsort
SELECT + 20 AS col2, - col1 + - 41 + - ( - 4 ) * - col1 FROM tab0 AS cor0
----
20
-146
20
-446
20
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1484
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) / col1 <= col0
----

skipif mysql # not compatible
query III rowsort label-1484
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) / col1 <= col0
----

query I rowsort
SELECT DISTINCT - 92 FROM tab0 WHERE col1 BETWEEN NULL AND ( col2 / col0 - col0 * col0 )
----

query I rowsort
SELECT - col1 + + 7 FROM tab2
----
-44
-60
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT - 90 + COUNT( * ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-1487
SELECT - 90 + COUNT ( * ) FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT - COUNT( * ) * MIN( 60 * col0 ) AS col1 FROM tab2
----
-8280

skipif mysql # not compatible
query I rowsort label-1488
SELECT - COUNT ( * ) * MIN ( 60 * col0 ) AS col1 FROM tab2
----
-8280

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT ALL SUM( 78 ) + - 22 AS col2 FROM tab2
----
212

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL SUM ( 78 ) + - 22 AS col2 FROM tab2
----
212

query I rowsort
SELECT DISTINCT col2 * - 25 AS col1 FROM tab1
----
-1475
-1700
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL + COUNT( * ) FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL + COUNT ( * ) FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT ALL + COUNT( * ) FROM tab0 WHERE + col1 + col1 >= 99 / - col2
----
3

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL + COUNT ( * ) FROM tab0 WHERE + col1 + col1 >= 99 / - col2
----
3

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

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

query I rowsort
SELECT DISTINCT ( 39 ) AS col0 FROM tab2
----
39

query I rowsort
SELECT ALL 25 * - col1 AS col0 FROM tab0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1496
SELECT COUNT( * ) + + 80 DIV 78 AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-1496
SELECT COUNT ( * ) + + 80 / 78 AS col1 FROM tab1
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 WHERE NOT ( col1 ) BETWEEN ( - col0 ) AND col2 + - col2
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT COUNT( * ) + - SUM( ALL ( col2 ) ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-1498
SELECT COUNT ( * ) + - SUM ( ALL ( col2 ) ) FROM tab0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT 21 * - 12 + + MAX( ALL + col0 ) FROM tab1
----
-161

skipif mysql # not compatible
query I rowsort label-1499
SELECT 21 * - 12 + + MAX ( ALL + col0 ) FROM tab1
----
-161

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

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

query I rowsort
SELECT DISTINCT + 62 * col1 FROM tab2
----
3162
4154
4774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + + 29 col2 FROM tab1
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1504
SELECT COUNT( * ) + + CAST( + 3 + + 5 AS SIGNED ) DIV COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-1504
SELECT COUNT ( * ) + + CAST ( + 3 + + 5 AS INTEGER ) / COUNT ( * ) FROM tab2
----
5

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <> NULL
----

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

query I rowsort
SELECT 79 + + col2 FROM tab0
----
126
178
89

query I rowsort
SELECT - 53 * - col2 AS col2 FROM tab0
----
2491
5247
530

query I rowsort
SELECT + 80 * col2 + + 59 FROM tab1
----
4779
5499
7739

query I rowsort
SELECT + ( + col0 ) * - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT ALL - COUNT( * ) * + 95 AS col2 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL - COUNT ( * ) * + 95 AS col2 FROM tab1
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1513
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( col0 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1513
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( col0 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + + 71 * - 12 FROM tab0 AS cor0
----
-755
-765
-837

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1516
SELECT ALL - CAST( AVG ( DISTINCT + 99 ) AS SIGNED ) - 8 AS col1 FROM tab2 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - CAST ( AVG ( DISTINCT + 99 ) AS INTEGER ) - 8 AS col1 FROM tab2 AS cor0
----
-107

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

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

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

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

query I rowsort
SELECT ALL ( - 29 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

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

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
31

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * + 34 >= col1 - + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + - COUNT( * ) * + MAX( + 29 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1525
SELECT + - COUNT ( * ) * + MAX ( + 29 ) FROM tab2 AS cor0
----
-87

query I rowsort
SELECT + 90 * + col2 FROM tab1 cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1527
SELECT + MIN( + CAST( - 99 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-99

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1530
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 * col0 + CAST( - ( - 12 ) AS SIGNED ) ) NOT BETWEEN ( col0 + 89 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1530
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 * col0 + CAST ( - ( - 12 ) AS INTEGER ) ) NOT BETWEEN ( col0 + 89 ) AND NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL - COUNT ( * ) / + COUNT ( * ) FROM tab0 cor0
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT DISTINCT col1 DIV ( col2 ) FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT col1 / ( col2 ) FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT ALL SUM( + 2 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL SUM ( + 2 ) AS col1 FROM tab1
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / + 96 BETWEEN NULL AND + 90
----

query I rowsort
SELECT DISTINCT - 6 FROM tab1 cor0
----
-6

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1540
SELECT * FROM tab2 WHERE col1 / + col1 - col0 > + col1 + 96 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1540
SELECT * FROM tab2 WHERE col1 / + col1 - col0 > + col1 + 96 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 35 + 41 * - col1 FROM tab2 AS cor0
----
-2056
-2712
-3122

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 43 < + col0 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 60 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT COUNT ( DISTINCT 78 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 28 + - 74 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1550
SELECT + 90 * - + CAST( - SUM( ALL - 33 ) AS SIGNED ) FROM tab1
----
-8910

skipif mysql # not compatible
query I rowsort label-1550
SELECT + 90 * - + CAST ( - SUM ( ALL - 33 ) AS INTEGER ) FROM tab1
----
-8910

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

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

query I rowsort
SELECT DISTINCT + 42 + + + 2 + - ( + - col0 ) FROM tab2
----
108
119
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT DISTINCT MAX( - col2 ) + 17 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT MAX ( - col2 ) + 17 FROM tab1
----
-42

query I rowsort
SELECT - col1 * + 86 AS col0 FROM tab2
----
-4386
-5762
-6622

query III rowsort
SELECT * FROM tab2 WHERE ( col2 + + col2 + col1 ) <= - 1
----

query I rowsort
SELECT 87 * + - 79 AS col1 FROM tab1
----
-6873
-6873
-6873

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT DISTINCT + ( 54 ) + COUNT( * ) + - COUNT( ALL col2 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT + ( 54 ) + COUNT ( * ) + - COUNT ( ALL col2 ) AS col2 FROM tab0
----
54

query I rowsort
SELECT ALL 12 + + 39 FROM tab2
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 * col1 col0 FROM tab0 AS cor0
----
-1134
-1806
-96

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

query I rowsort
SELECT col2 - + col0 * + + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2323
-4888
-4967

query I rowsort
SELECT DISTINCT - 92 * ( + 82 ) - col2 FROM tab0 AS cor0
----
-7554
-7591
-7643

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 83 ) * - col2 IN ( 91 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT - SUM( + - 37 ) FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-1566
SELECT - SUM ( + - 37 ) FROM tab1
----
111

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 / + - col0 / + col0 + + col0 = ( + 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT + col2 >= + - 44 * + 90 + col1 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT + col2 >= + - 44 * + 90 + col1 * + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - COUNT( * ) + SUM( col0 ) FROM tab2 AS cor0 WHERE NOT - 32 / - 89 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1569
SELECT - COUNT ( * ) + SUM ( col0 ) FROM tab2 AS cor0 WHERE NOT - 32 / - 89 IS NOT NULL
----
NULL

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

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

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

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

query II rowsort
SELECT ALL - col1, + col1 AS col2 FROM tab1 AS cor0 WHERE + 41 IS NOT NULL
----
-14
14
-47
47
-5
5

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

query I rowsort
SELECT - 47 FROM tab2 cor0
----
-47
-47
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT - MIN( - - col2 ) + 99 FROM tab0 AS cor0 WHERE NULL IS NULL
----
89

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - MIN ( - - col2 ) + 99 FROM tab0 AS cor0 WHERE NULL IS NULL
----
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT DISTINCT - SUM( ALL col2 ) * 41 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT - SUM ( ALL col2 ) * 41 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL - SUM( + - 51 ) FROM tab1, tab1 AS cor0
----
459

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL - SUM ( + - 51 ) FROM tab1, tab1 AS cor0
----
459

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

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

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

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 93 + + + col0 * - + 59 * + - col2 NOT IN ( + col1 / col2 - - col0 * col2 )
----

query I rowsort
SELECT - + 85 * + - col1 + + ( - col0 ) + - col1 AS col2 FROM tab0 AS cor0
----
-13
1677
6789

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1587
SELECT DISTINCT - 31 col0, 31 + + + 87 + - - MIN( col1 ) FROM tab1 cor0
----
-31
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1587
SELECT DISTINCT - 31 col0, 31 + + + 87 + - - MIN ( col1 ) FROM tab1 cor0
----
-31
123

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1591
SELECT ALL + col0 * + col2 + + 69 AS col1, - 19 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
1127
NULL
2629
NULL
4419
NULL

skipif mysql # not compatible
query II rowsort label-1591
SELECT ALL + col0 * + col2 + + 69 AS col1, - 19 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
1127
NULL
2629
NULL
4419
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE + 78 - + col0 IS NOT NULL
----
51
85
91

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

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

query I rowsort
SELECT ALL - - ( - col1 ) - col1 + ( + + ( 97 ) ) AS col0 FROM tab0 AS cor0
----
-65
55
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 37 * col1 - + - col0 col0 FROM tab1 AS cor0
----
-100
-1648
-467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * - col2 - + col2 + + - 13 col1 FROM tab2 AS cor0
----
-1577
-2733
-3957

query I rowsort
SELECT 22 * + col0 * + + 7 + col1 FROM tab0 AS cor0 WHERE ( 87 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT + + col2 DIV - col2 + - col2 * + 13 - 93 FROM tab0 AS cor0
----
-1381
-224
-705

skipif mysql # not compatible
query I rowsort label-1598
SELECT + + col2 / - col2 + - col2 * + 13 - 93 FROM tab0 AS cor0
----
-1381
-224
-705

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT DISTINCT - SUM( ALL - 0 ) AS col1 FROM tab0 WHERE NOT 18 * + + 8 BETWEEN col2 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT - SUM ( ALL - 0 ) AS col1 FROM tab0 WHERE NOT 18 * + + 8 BETWEEN col2 AND col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1601
SELECT ALL - 18, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-18
NULL
-18
NULL
-18
NULL

skipif mysql # not compatible
query II rowsort label-1601
SELECT ALL - 18, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-18
NULL
-18
NULL
-18
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - col0 + - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT + SUM( DISTINCT + + col1 ) AS col2 FROM tab1 WHERE NULL BETWEEN - 63 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT + SUM ( DISTINCT + + col1 ) AS col2 FROM tab1 WHERE NULL BETWEEN - 63 AND col2
----
NULL

query I rowsort
SELECT col2 + - + 85 AS col0 FROM tab1
----
-17
-26
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT - 83 * + MIN( ALL ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1606
SELECT - 83 * + MIN ( ALL ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-83

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

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

query II rowsort
SELECT - + col2 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT + 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

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

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

skipif mysql # not compatible
query I rowsort label-1611
SELECT - COUNT ( + - col0 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL - 82 * COUNT( - col1 ) col2 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1612
SELECT ALL - 82 * COUNT ( - col1 ) col2 FROM tab1 AS cor0
----
-246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col1 ) col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1614
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 + + CAST( NULL AS SIGNED ) BETWEEN + ( - ( + 19 ) ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-1614
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 + + CAST ( NULL AS INTEGER ) BETWEEN + ( - ( + 19 ) ) AND + col2
----

query I rowsort
SELECT ALL 96 * + 58 * - - col2 FROM tab2 AS cor0
----
128064
222720
322944

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + 40 <> 65 / - + col1
----

query I rowsort
SELECT col0 + ( + 12 ) FROM tab1
----
103
63
97

query I rowsort
SELECT + col0 + col1 + - col1 * - 55 + + 57 FROM tab2
----
2959
3884
4433

query II rowsort
SELECT col2 AS col0, + col2 FROM tab1
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - ( - ( - col2 ) ) * + col0, + col0 col2 FROM tab2
----
197120
64
291450
75
53958
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 + - col2 * col1 col0 FROM tab0
----
-196
-307
-3904

query I rowsort
SELECT DISTINCT 30 * + col0 + + 66 * col1 FROM tab0 AS cor0
----
2976
3996
5796

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

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL + CAST ( NULL AS INTEGER ) * + 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + 44 col0 FROM tab2
----
-1014
-2516
-4306

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

query I rowsort
SELECT ALL col0 - 55 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT 57 + - col2 DIV + + ( col1 ) AS col2 FROM tab2 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-1627
SELECT 57 + - col2 / + + ( col1 ) AS col2 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1628
SELECT ALL - - col1 DIV col2 - CAST( + col0 AS SIGNED ) * - - col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL - - col1 / col2 - CAST ( + col0 AS INTEGER ) * - - col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

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

query I rowsort
SELECT ALL 66 * - col0 + - + col0 FROM tab0 AS cor0
----
-1005
-5829
-6499

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - col0 ) IS NULL
----

query I rowsort
SELECT ALL + col2 + + ( + - col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * - col2 * - col0 * - col2 AS col1 FROM tab0
----
182700
2683935
950697

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 WHERE NOT - - col2 NOT BETWEEN - 53 AND - col2
----

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

query I rowsort
SELECT + col1 * + 52 FROM tab2 AS cor0
----
2652
3484
4004

query I rowsort
SELECT ALL 77 * + col0 + + col1 AS col0 FROM tab0 AS cor0
----
1236
6720
7470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT + MIN( ALL 28 ) + - + COUNT( * ) * - CAST( - MIN( col1 ) AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT ( - ( + ( 30 ) ) * - 50 <= col1 )
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1639
SELECT + MIN ( ALL 28 ) + - + COUNT ( * ) * - CAST ( - MIN ( col1 ) AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT ( - ( + ( 30 ) ) * - 50 <= col1 )
----
25

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

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

query I rowsort
SELECT ALL + col1 * - col2 * col0 AS col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > + 3 - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1643
SELECT - - SUM( DISTINCT - col0 ) / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1643
SELECT - - SUM ( DISTINCT - col0 ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT DISTINCT COUNT( * ) * 5 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT COUNT ( * ) * 5 FROM tab2 AS cor0
----
15

query I rowsort
SELECT DISTINCT - 90 + 83 FROM tab1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1646
SELECT DISTINCT + 69 DIV 30 AS col2, SUM( 77 ) col0 FROM tab0
----
2
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1646
SELECT DISTINCT + 69 / 30 AS col2, SUM ( 77 ) col0 FROM tab0
----
2
231

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

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT 37 + - - COUNT ( * ) FROM tab2
----
40

query I rowsort
SELECT ALL col0 * - 74 + + col2 * - - col1 AS col0 FROM tab2
----
-1656
-1664
-2231

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 14 + - - col1, + col1 * - col1 col0 FROM tab0 cor0
----
15
-1
35
-441
95
-6561

query I rowsort
SELECT ALL col1 * 95 * 45 AS col1 FROM tab2 AS cor0
----
218025
286425
329175

query I rowsort
SELECT + 27 + + col1 AS col0 FROM tab0 AS cor0
----
108
28
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + + COUNT( * ) + MIN( ALL + ( + + col2 ) ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-1653
SELECT + + COUNT ( * ) + MIN ( ALL + ( + + col2 ) ) FROM tab0 AS cor0
----
13

query II rowsort
SELECT DISTINCT - + 32 * 46 + - 84 * - + col0 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
2812
14
5668
5
6172
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL + 77 * + + MIN( ALL + ( - 41 ) ) + + COUNT( * ) + - 94 AS col0 FROM tab2 AS cor0
----
-3248

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + 77 * + + MIN ( ALL + ( - 41 ) ) + + COUNT ( * ) + - 94 AS col0 FROM tab2 AS cor0
----
-3248

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT ALL col1 DIV - col1 + col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL col1 / - col1 + col0 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT - + COUNT( - 74 ) + - - 48 AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1657
SELECT - + COUNT ( - 74 ) + - - 48 AS col0 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( 0 IN ( + - ( + 21 ), - ( 54 ) * - col2 * + + col1, col2 / + + 45 * col0 + - + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( 0 IN ( + - ( + 21 ), - ( 54 ) * - col2 * + + col1, col2 / + + 45 * col0 + - + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1659
SELECT DISTINCT * FROM tab1 WHERE NOT - + CAST( NULL AS DECIMAL ) * col2 - + - 91 = + - col2 * + - col0
----

skipif mysql # not compatible
query III rowsort label-1659
SELECT DISTINCT * FROM tab1 WHERE NOT - + CAST ( NULL AS REAL ) * col2 - + - 91 = + - col2 * + - col0
----

query I rowsort
SELECT DISTINCT 23 * + + 13 + + 83 AS col0 FROM tab1
----
382

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT COUNT( * ) - - 50 AS col0 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-1661
SELECT COUNT ( * ) - - 50 AS col0 FROM tab0 AS cor0
----
53

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

query I rowsort
SELECT ALL + - 25 - - col0 AS col1 FROM tab0 AS cor0
----
-10
62
72

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

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT + COUNT ( * ) - - MIN ( ALL + ( 92 ) ) AS col2 FROM tab2 AS cor0
----
95

query I rowsort
SELECT + 58 - - col2 AS col1 FROM tab2 AS cor0
----
116
81
98

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

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

query I rowsort
SELECT col2 + - ( col2 ) * + col1 + col1 - - - col0 FROM tab1 AS cor0
----
-1285
-316
-3172

query I rowsort
SELECT 13 + - col1 AS col1 FROM tab2 AS cor0
----
-38
-54
-64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT DISTINCT COUNT( * ) AS col2, MAX( - + col1 ) FROM tab2
----
3
-51

skipif mysql # not compatible
query II rowsort label-1670
SELECT DISTINCT COUNT ( * ) AS col2, MAX ( - + col1 ) FROM tab2
----
3
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT ( + 72 ) DIV col2 DIV - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1672
SELECT ( + 72 ) / col2 / - col2 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 <> col1 / col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - 61 * + COUNT( * ) AS col2 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-1675
SELECT - 61 * + COUNT ( * ) AS col2 FROM tab1
----
-183

query I rowsort
SELECT DISTINCT - 34 * - 95 AS col2 FROM tab2 WHERE 32 + + + col2 IS NOT NULL
----
3230

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 75 * + col1 IS NULL
----

query II rowsort
SELECT ALL - col2, 68 AS col2 FROM tab0 cor0
----
-10
68
-47
68
-99
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT COUNT( ALL col2 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-1681
SELECT COUNT ( ALL col2 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

query I rowsort
SELECT + 27 * ( + col2 ) * + col1 AS col2 FROM tab1
----
36288
7965
86292

query I rowsort
SELECT + col2 * - + 54 * + 54 FROM tab1 cor0
----
-172044
-198288
-279936

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL + - MIN( ALL - 0 ) * + + 28 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + - MIN ( ALL - 0 ) * + + 28 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 62 AS col0, 20 * + + col2 col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - col2 + - - 43 AND NULL
----
-62
200

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT DISTINCT - COUNT( * ) * + - 21 - MIN( DISTINCT + ( + ( + 51 ) ) ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT - COUNT ( * ) * + - 21 - MIN ( DISTINCT + ( + ( + 51 ) ) ) FROM tab2 AS cor0
----
12

query II rowsort
SELECT col0 AS col0, col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
14
85
5
91
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT ALL 65 * - - 72 * + COUNT( DISTINCT 59 ) * - 89 AS col2 FROM tab0
----
-416520

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL 65 * - - 72 * + COUNT ( DISTINCT 59 ) * - 89 AS col2 FROM tab0
----
-416520

query I rowsort
SELECT ALL col1 + - - 29 FROM tab2
----
106
80
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT - 33 DIV + 2 + + col2 + - col0 col2 FROM tab2
----
-33
-39
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1692
SELECT - 33 / + 2 + + col2 + - col0 col2 FROM tab2
----
-33
-39
-40

query I rowsort
SELECT - 67 + col2 * + ( - col2 ) AS col1 FROM tab0
----
-167
-2276
-9868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1694
SELECT - CAST( - 26 AS SIGNED ) FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-1694
SELECT - CAST ( - 26 AS INTEGER ) FROM tab1
----
26
26
26

query I rowsort
SELECT DISTINCT 47 + + col1 FROM tab0
----
128
48
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT - CAST( 66 AS SIGNED ) AS col2 FROM tab1
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-1696
SELECT - CAST ( 66 AS INTEGER ) AS col2 FROM tab1
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT + 40 * - COUNT( + + col1 ) + 82 AS col1 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + 40 * - COUNT ( + + col1 ) + 82 AS col1 FROM tab1 AS cor0
----
-38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 85 AND - 66 * - col2
----

query I rowsort
SELECT - 6 * col0 FROM tab0 AS cor0
----
-522
-582
-90

query I rowsort
SELECT col1 * - - col0 - - col0 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT ALL + col2 DIV + col1 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL + col2 / + col1 FROM tab1 cor0
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT col0 + + + CAST( 86 AS SIGNED ) AS col2 FROM tab2
----
132
150
161

skipif mysql # not compatible
query I rowsort label-1702
SELECT col0 + + + CAST ( 86 AS INTEGER ) AS col2 FROM tab2
----
132
150
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + 79 AS col2, ( + col2 ) col2 FROM tab0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE NULL IN ( col2, col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 - col1 col0, + 17 FROM tab1 cor0
----
0
17

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1709
SELECT - col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + CAST( NULL AS SIGNED ) / + col0 + - ( + col0 ) + 96
----

skipif mysql # not compatible
query I rowsort label-1709
SELECT - col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + CAST ( NULL AS INTEGER ) / + col0 + - ( + col0 ) + 96
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - col2 + - 37 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT + - 21 * - 44 * COUNT( * ) col2 FROM tab1 AS cor0
----
2772

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT - MAX( col0 ) col0 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1714
SELECT - MAX ( col0 ) col0 FROM tab0
----
-97

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 38
----

query I rowsort
SELECT ALL + 1 * - 18 FROM tab2
----
-18
-18
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + + col0 BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 52 + col1 * col0 col2 FROM tab1 cor0 WHERE NOT - 68 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT SUM( DISTINCT 78 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1722
SELECT SUM ( DISTINCT 78 ) FROM tab1 AS cor0
----
78

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( 34 + - - 26 * 36 ) IS NOT NULL
----

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

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

query I rowsort
SELECT - col1 * ( + 9 ) FROM tab0
----
-189
-729
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + ( + - col0 ) col1 FROM tab1 WHERE - + col1 * + col1 * - col0 + + col2 BETWEEN - + col2 + + + col2 AND + col0
----

query I rowsort
SELECT ALL + 68 + - col0 AS col2 FROM tab1
----
-17
-23
17

query I rowsort
SELECT - - ( - 30 ) AS col0 FROM tab1 WHERE + col1 * - 76 >= col2 + - col1 * - col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 5 col2 FROM tab1
----
101
64
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT - 33 DIV col0 + + 97 AS col2 FROM tab2 cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-1732
SELECT - 33 / col0 + + 97 AS col2 FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT ALL 5 * - col1 AS col2 FROM tab0 AS cor0
----
-105
-405
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT ALL - + SUM( - - 30 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL - + SUM ( - - 30 ) FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1735
SELECT + 62, COUNT( * ) AS col0 FROM tab0 AS cor0
----
62
3

skipif mysql # not compatible
query II rowsort label-1735
SELECT + 62, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
62
3

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab1 cor0
----
-40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 60 <> + col1 + + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT ALL - COUNT( ALL - 62 ) * - 60 AS col0 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL - COUNT ( ALL - 62 ) * - 60 AS col0 FROM tab1
----
180

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 46 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * - col2 * + 10 AS col2 FROM tab0
----
-1000
-22090
-98010

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 47 * + col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1744
SELECT + 87 DIV col1, + col1 AS col2 FROM tab2
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-1744
SELECT + 87 / col1, + col1 AS col2 FROM tab2
----
1
51
1
67
1
77

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1746
SELECT - col0 DIV - col0 AS col0, - col0 AS col1 FROM tab1
----
1
-51
1
-85
1
-91

skipif mysql # not compatible
query II rowsort label-1746
SELECT - col0 / - col0 AS col0, - col0 AS col1 FROM tab1
----
1
-51
1
-85
1
-91

query I rowsort
SELECT ALL - ( - + 46 ) FROM tab1
----
46
46
46

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

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

query I rowsort
SELECT DISTINCT + col0 * + + ( - 27 ) AS col2 FROM tab0 AS cor0
----
-2349
-2619
-405

query I rowsort
SELECT DISTINCT col2 + 53 AS col2 FROM tab0 AS cor0
----
100
152
63

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT + col2 * + 71 * - CAST( 3 AS SIGNED ) * col2 + col0 AS col1 FROM tab1 AS cor0
----
-1962957
-741368
-984821

skipif mysql # not compatible
query I rowsort label-1752
SELECT + col2 * + 71 * - CAST ( 3 AS INTEGER ) * col2 + col0 AS col1 FROM tab1 AS cor0
----
-1962957
-741368
-984821

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

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

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

query I rowsort
SELECT - - ( - col1 ) + - 92 FROM tab1 AS cor0
----
-106
-139
-97

query II rowsort
SELECT col0 + - col1 + - col1 AS col1, 13 AS col1 FROM tab0 AS cor0
----
-147
13
45
13
95
13

query I rowsort
SELECT DISTINCT 39 * 20 + + 95 - - - col0 FROM tab1
----
784
790
824

query III rowsort
SELECT * FROM tab2 WHERE 23 <> + - col1 - 15 * + col2 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT + col2 * + col0 * 40 AS col2 FROM tab1
----
195840
200600
247520

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT 98 DIV - col2 AS col1 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1762
SELECT 98 / - col2 AS col1 FROM tab2
----
-1
-2
-4

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

skipif mysql # not compatible
query I rowsort label-1763
SELECT + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 67 BETWEEN - ( - 50 ) AND col0
----
15
81
47

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 28 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 29 FROM tab1 AS cor0 WHERE 38 IS NOT NULL
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 12 ) col2 FROM tab1 AS cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1769
SELECT ALL 96 * - CAST( - 90 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
120960
406080
43200

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL 96 * - CAST ( - 90 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
120960
406080
43200

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 > NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1772
SELECT ( COUNT( ALL - col2 ) ), + 9 AS col1 FROM tab2
----
3
9

skipif mysql # not compatible
query II rowsort label-1772
SELECT ( COUNT ( ALL - col2 ) ), + 9 AS col1 FROM tab2
----
3
9

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( - 0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col2 FROM tab2 WHERE + + col0 IS NOT NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT MAX( DISTINCT + - col0 ) * - + SUM( - col1 ) FROM tab1 WHERE NOT - col1 IS NULL
----
-3366

skipif mysql # not compatible
query I rowsort label-1775
SELECT MAX ( DISTINCT + - col0 ) * - + SUM ( - col1 ) FROM tab1 WHERE NOT - col1 IS NULL
----
-3366

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1777
SELECT MIN( col1 ) * + - MAX( CAST( - 93 AS SIGNED ) ) FROM tab1 AS cor0
----
465

skipif mysql # not compatible
query I rowsort label-1777
SELECT MIN ( col1 ) * + - MAX ( CAST ( - 93 AS INTEGER ) ) FROM tab1 AS cor0
----
465

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1780
SELECT 66 + - 18 + - col0 * - col2 AS col2, + col0 DIV + col1 + + + col2 FROM tab0
----
753
47
918
14
9651
196

skipif mysql # not compatible
query II rowsort label-1780
SELECT 66 + - 18 + - col0 * - col2 AS col2, + col0 / + col1 + + + col2 FROM tab0
----
753
47
918
14
9651
196

query I rowsort
SELECT - 3 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - - col2 + 25 AS col0 FROM tab1
----
3506
4649
9241

query I rowsort
SELECT ALL - col0 * 23 AS col2 FROM tab0 cor0
----
-2001
-2231
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT + MAX( - 94 ) * 37 AS col0 FROM tab1 cor0
----
-3478

skipif mysql # not compatible
query I rowsort label-1784
SELECT + MAX ( - 94 ) * 37 AS col0 FROM tab1 cor0
----
-3478

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT MIN( ( - col1 ) ) col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1786
SELECT MIN ( ( - col1 ) ) col0 FROM tab1 cor0
----
-47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT DISTINCT 63 DIV + - 17 AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT 63 / + - 17 AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 * 43 + 94 AS col2 FROM tab1 AS cor0
----
2631
3018
4222

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - + 0 NOT IN ( - + ( - col1 ) ) AND NOT + ( + col1 ) + + col2 * + 75 NOT BETWEEN 54 AND - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT COUNT( * ) DIV - - 79 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT COUNT ( * ) / - - 79 AS col1 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 <> - 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT 60 + - - COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1793
SELECT 60 + - - COUNT ( * ) FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT MAX( DISTINCT + - col1 ) + - COUNT( col2 ) AS col2 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT MAX ( DISTINCT + - col1 ) + - COUNT ( col2 ) AS col2 FROM tab0
----
-4

query I rowsort
SELECT DISTINCT col0 - 42 AS col2 FROM tab2
----
22
33
4

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

query I rowsort
SELECT ALL - + col2 * + 28 + - col0 FROM tab1 cor0 WHERE col1 > + - col0 * + col0 + - 83
----
-1737
-1995
-2739

query II rowsort
SELECT - - 57 AS col0, ( + - col0 ) + - col0 * + 18 AS col2 FROM tab1 AS cor0
----
57
-1615
57
-1729
57
-969

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

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

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

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

query I rowsort
SELECT + - 34 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1803
SELECT col1 DIV 19 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-1803
SELECT col1 / 19 FROM tab2 AS cor0
----
2
3
4

query I rowsort
SELECT + + 88 * + - 44 AS col2 FROM tab0 AS cor0
----
-3872
-3872
-3872

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

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

query I rowsort
SELECT ALL - ( + - 21 ) AS col1 FROM tab1 cor0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1808
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = 47 / ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1808
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = 47 / ( - CAST ( NULL AS INTEGER ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL 61 + - MAX( + col2 ) AS col0 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL 61 + - MAX ( + col2 ) AS col0 FROM tab0
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL - COUNT( * ) * - 18 AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL - COUNT ( * ) * - 18 AS col1 FROM tab1
----
54

query I rowsort
SELECT - 76 * + col1 FROM tab0
----
-1596
-6156
-76

query I rowsort
SELECT DISTINCT 74 * - 98 + + col2 - ( + col2 ) FROM tab1
----
-7252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 * - col0 col0, - 93 FROM tab0 AS cor0
----
-1050
-93
-6090
-93
-6790
-93

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 62 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 40 * 7 IS NULL
----

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

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

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

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

query II rowsort
SELECT ALL - 84, col2 / - + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL col2 / - col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL 4 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
4
4
4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1828
SELECT - 46 DIV - COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1828
SELECT - 46 / - COUNT ( * ) FROM tab0
----
15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 19 + - 55 = NULL
----

query I rowsort
SELECT ( + 61 ) * col2 FROM tab2
----
1403
2440
3538

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

query II rowsort
SELECT DISTINCT - - 46 AS col1, - col1 FROM tab2 WHERE NOT NULL = + col1 * ( + - ( + + col0 ) ) * col0 / - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT + col0 DIV - col0 - + 7 * col1 FROM tab2
----
-358
-470
-540

skipif mysql # not compatible
query I rowsort label-1833
SELECT + col0 / - col0 - + 7 * col1 FROM tab2
----
-358
-470
-540

query I rowsort
SELECT - col2 - + 21 AS col0 FROM tab1
----
-117
-80
-89

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

skipif mysql # not compatible
query I rowsort label-1835
SELECT MAX ( + + 18 ) FROM tab2 AS cor0
----
18

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 69 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT COUNT( * ) * + 37 * - + 1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1839
SELECT COUNT ( * ) * + 37 * - + 1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1840
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 38 * + 83 * + 70 + - 90 / CAST( NULL AS SIGNED ) * col0 + 84
----

skipif mysql # not compatible
query III rowsort label-1840
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 38 * + 83 * + 70 + - 90 / CAST ( NULL AS INTEGER ) * col0 + 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1841
SELECT + + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT - 72 <> - + ( + + col1 )
----

skipif mysql # not compatible
query I rowsort label-1841
SELECT + + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT - 72 <> - + ( + + col1 )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT ALL + CAST( 68 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL + CAST ( 68 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col0, col2 + 64 * - - ( - 4 ) * - 90 AS col2 FROM tab1 AS cor0
----
51
23136
85
23099
91
23108

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, - col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT - MAX( ALL col2 ) * - - MIN( col2 ) + - - COUNT( * ) AS col0 FROM tab0
----
-987

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - MAX ( ALL col2 ) * - - MIN ( col2 ) + - - COUNT ( * ) AS col0 FROM tab0
----
-987

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT SUM( DISTINCT + 4 ) FROM tab2, tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1850
SELECT SUM ( DISTINCT + 4 ) FROM tab2, tab2 AS cor0
----
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1853
SELECT ALL + col0 DIV col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL + col0 / col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
1
1
1

query I rowsort
SELECT ALL 50 * + + 36 + - 43 FROM tab1
----
1757
1757
1757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 + col0 col2 FROM tab0
----
130
140
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 5 col0 FROM tab0
----
104
15
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT DISTINCT - + COUNT( * ) + - - 25 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1858
SELECT DISTINCT - + COUNT ( * ) + - - 25 FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL + 29 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1711
1972
2784

query I rowsort
SELECT col2 * col1 + + + col0 - 34 AS col2 FROM tab0 cor0
----
162
263
3788

query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab0 cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT + COUNT( DISTINCT col0 ) * SUM( DISTINCT 17 ) FROM tab2 AS cor0 WHERE ( ( col2 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT + COUNT ( DISTINCT col0 ) * SUM ( DISTINCT 17 ) FROM tab2 AS cor0 WHERE ( ( col2 ) ) IS NULL
----
NULL

query I rowsort
SELECT ALL + 14 - - 34 AS col2 FROM tab0 AS cor0
----
48
48
48

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

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

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL MAX ( ALL col2 ) AS col2 FROM tab1
----
96

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT CAST( - 70 AS SIGNED ) col2 FROM tab1
----
-70
-70
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1868
SELECT CAST ( - 70 AS INTEGER ) col2 FROM tab1
----
-70
-70
-70

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT + 11 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1870
SELECT + 11 / col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + ( 7 ) * - + col0 * - col0 AS col0 FROM tab2
----
14812
28672
39375

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT + + COUNT( * ) + - 77 AS col2 FROM tab1 WHERE NOT - - col0 * - col0 * + col1 + + 42 * - col1 / - 50 * + 51 + col2 < NULL
----
-77

skipif mysql # not compatible
query I rowsort label-1873
SELECT + + COUNT ( * ) + - 77 AS col2 FROM tab1 WHERE NOT - - col0 * - col0 * + col1 + + 42 * - col1 / - 50 * + 51 + col2 < NULL
----
-77

query I rowsort
SELECT DISTINCT - AVG ( ALL + - col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT + 84 DIV col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1876
SELECT + 84 / col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - 10 * + col1 AS col2 FROM tab1 AS cor0
----
140
470
50

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

query II rowsort
SELECT + 39, 22 AS col2 FROM tab0 AS cor0
----
39
22
39
22
39
22

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1881
SELECT + col2 DIV + col2, col2 * 35 AS col2 FROM tab0 AS cor0
----
1
1645
1
3465
1
350

skipif mysql # not compatible
query II rowsort label-1881
SELECT + col2 / + col2, col2 * 35 AS col2 FROM tab0 AS cor0
----
1
1645
1
3465
1
350

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT SUM( - col1 ) FROM tab1 WHERE NULL IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT SUM ( - col1 ) FROM tab1 WHERE NULL IS NULL
----
-66

query I rowsort
SELECT DISTINCT ( - 21 ) + + col0 * col2 + + - 88 + - col0 * - col2 * + col1 FROM tab0
----
19031
19097
57701

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * - + 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT MAX( + ( - - col0 ) ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1889
SELECT MAX ( + ( - - col0 ) ) AS col0 FROM tab0
----
97

query I rowsort
SELECT ( - + 70 ) FROM tab1
----
-70
-70
-70

query III rowsort
SELECT * FROM tab0 WHERE - 64 IS NULL
----

query I rowsort
SELECT ALL + 1 AS col1 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1893
SELECT COUNT( * ) AS col0, 91 + + 31 AS col0 FROM tab1
----
3
122

skipif mysql # not compatible
query II rowsort label-1893
SELECT COUNT ( * ) AS col0, 91 + + 31 AS col0 FROM tab1
----
3
122

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

query I rowsort
SELECT + 19 - - + col1 * - + ( + col1 ) FROM tab0 AS cor0
----
-422
-6542
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1896
SELECT * FROM tab1 AS cor0 WHERE ( + - 51 >= - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1896
SELECT * FROM tab1 AS cor0 WHERE ( + - 51 >= - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 27 + col1 FROM tab0
----
108
28
48

query I rowsort
SELECT + ( col2 ) + ( 79 ) + - col0 + + col0 FROM tab2
----
102
119
137

query II rowsort
SELECT col2 + - col2, col2 AS col2 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT - SUM( - - 75 ) + + + 6 col1 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1900
SELECT - SUM ( - - 75 ) + + + 6 col1 FROM tab0 AS cor0
----
-219

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

query I rowsort
SELECT ALL + + 42 - - - col2 * col1 FROM tab2 AS cor0
----
-1131
-3038
-3844

query I rowsort
SELECT ALL + ( - col0 ) * + col1 * - + 66 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + ( + 1 ) FROM tab0 AS cor0
----
10
47
99

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

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

query I rowsort
SELECT + 7 * 96 FROM tab0
----
672
672
672

query I rowsort
SELECT DISTINCT col2 * ( + - col2 ) * + col2 AS col0 FROM tab2
----
-12167
-195112
-64000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - 7 AS col0, col0 col0 FROM tab1
----
329
91
35
85
98
51

query II rowsort
SELECT ALL col0 * - col0 AS col1, 42 FROM tab2
----
-2116
42
-4096
42
-5625
42

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1910
SELECT SUM ( ALL ( + col2 ) ) col1 FROM tab2
----
121

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

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT col1 / + col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 AS col1, - col0 col2, - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, ( 6 ) AS col2 FROM tab2 AS cor0
----
-23
6
-40
6
-58
6

query I rowsort
SELECT + 52 * - 29 AS col0 FROM tab0 AS cor0 WHERE NOT - 60 * - 66 * + col0 + col0 IS NULL
----
-1508
-1508
-1508

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

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

query II rowsort
SELECT - - 95 AS col0, - 24 AS col1 FROM tab0 cor0
----
95
-24
95
-24
95
-24

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

query II rowsort
SELECT - + col2 AS col2, - ( 79 ) FROM tab0 AS cor0
----
-10
-79
-47
-79
-99
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT SUM( ALL - 64 ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT SUM ( ALL - 64 ) FROM tab1 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT - - CAST( - col0 AS SIGNED ) * CAST( - 61 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2806
3904
4575

skipif mysql # not compatible
query I rowsort label-1923
SELECT - - CAST ( - col0 AS INTEGER ) * CAST ( - 61 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2806
3904
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT - COUNT( * ) * 80 AS col2 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-1924
SELECT - COUNT ( * ) * 80 AS col2 FROM tab2
----
-240

query I rowsort
SELECT ALL + col2 + + col0 + - col2 + - - col2 * + 4 * 47 FROM tab1
----
11177
12875
18099

query I rowsort
SELECT DISTINCT 55 * + 6 + + 22 FROM tab1
----
352

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

query I rowsort
SELECT col2 + - 25 FROM tab0
----
-15
22
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT - COUNT( * ) + - SUM( ALL 39 ) FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-1929
SELECT - COUNT ( * ) + - SUM ( ALL 39 ) FROM tab0
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 + 4 col1, - ( col1 ) + - 37 + - + 11 AS col0 FROM tab0 cor0
----
87
-129
87
-49
87
-69

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + - col0 <> - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT DISTINCT + + col1 - 68 DIV + + col2 AS col1 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + + col1 - 68 / + + col2 AS col1 FROM tab2 AS cor0
----
49
66
76

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT COUNT( * ) - 59 + - ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1936
SELECT COUNT ( * ) - 59 + - ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-59

query I rowsort
SELECT + - col2 * + - col0 - + - col1 AS col0 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1938
SELECT - - 33 DIV + - SUM( + col2 ) - MAX( ALL + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1938
SELECT - - 33 / + - SUM ( + col2 ) - MAX ( ALL + col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT DISTINCT + - 67 * - 49 + - - 87 * - 99 * + 50, - 64 * + 22 AS col1 FROM tab2 AS cor0
----
-427367
-1408

query II rowsort
SELECT ALL - col0, + col1 + col1 AS col1 FROM tab2
----
-46
102
-64
154
-75
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - ( - col2 ) FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL + 59 * + col2 AS col2 FROM tab2
----
1357
2360
3422

query II rowsort
SELECT + col2 * + col0 AS col2, col1 FROM tab2
----
1058
51
2560
77
4350
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1945
SELECT DISTINCT + COUNT( * ) AS col1, + 63 AS col1 FROM tab2 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-1945
SELECT DISTINCT + COUNT ( * ) AS col1, + 63 AS col1 FROM tab2 AS cor0
----
3
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1946
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND + 30
----

skipif mysql # not compatible
query III rowsort label-1946
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + 30
----

query II rowsort
SELECT ALL - + col0 * - + 68, ( + col2 ) FROM tab1 AS cor0
----
3468
96
5780
59
6188
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT ALL 41 DIV 28 * - col0 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL 41 / 28 * - col0 AS col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + 26 AND col2
----

query I rowsort
SELECT - - col2 * col0 + - 81 - - + 10 AS col1 FROM tab0 AS cor0
----
634
799
9532

onlyif mysql # aggregate syntax: 
query II rowsort label-1952
SELECT ALL 99, COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 71 IS NULL
----
99
3

skipif mysql # not compatible
query II rowsort label-1952
SELECT ALL 99, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 71 IS NULL
----
99
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL BETWEEN col1 AND + + col0
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE + 1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL + 61 * + 66 * - COUNT( * ) FROM tab2 AS cor0
----
-12078

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL + 61 * + 66 * - COUNT ( * ) FROM tab2 AS cor0
----
-12078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT 56 DIV COUNT( * ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1956
SELECT 56 / COUNT ( * ) AS col0 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT - COUNT( * ) col1, COUNT( * ) - - + MAX( DISTINCT - 45 ) FROM tab1
----
-3
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1957
SELECT - COUNT ( * ) col1, COUNT ( * ) - - + MAX ( DISTINCT - 45 ) FROM tab1
----
-3
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT DISTINCT ( + - COUNT( - 90 ) ) + + COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT ( + - COUNT ( - 90 ) ) + + COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1959
SELECT + COUNT( * ) AS col2, 38 FROM tab2
----
3
38

skipif mysql # not compatible
query II rowsort label-1959
SELECT + COUNT ( * ) AS col2, 38 FROM tab2
----
3
38

query I rowsort
SELECT ALL col1 + - + col0 * col1 FROM tab1
----
-420
-4230
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-1961
SELECT ALL 27 DIV + col1 FROM tab0 cor0
----
0
1
27

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL 27 / + col1 FROM tab0 cor0
----
0
1
27

query I rowsort
SELECT DISTINCT - + 80 - - col2 * col1 FROM tab1 AS cor0
----
1264
215
3116

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT COUNT( 32 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1963
SELECT COUNT ( 32 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab0 WHERE col1 IN ( - 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT - COUNT( * ) * + 73 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT - COUNT ( * ) * + 73 FROM tab2
----
-219

query I rowsort
SELECT - 77 * + 64 AS col1 FROM tab1
----
-4928
-4928
-4928

query I rowsort
SELECT - col2 * - col0 + col0 AS col0 FROM tab1
----
4947
5100
6279

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1969
SELECT - COUNT( * ) * MIN( ALL - CAST( NULL AS DECIMAL ) * - col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT - COUNT ( * ) * MIN ( ALL - CAST ( NULL AS REAL ) * - col1 ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > ( col2 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * 56 col0 FROM tab0 WHERE + 10 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT 81 + - COUNT( * ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-1972
SELECT 81 + - COUNT ( * ) AS col0 FROM tab0
----
78

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( ( + col2 ) )
----

query I rowsort
SELECT + 5 FROM tab2 WHERE NOT col2 * - ( - 12 ) + - col1 / + 84 NOT BETWEEN col2 AND ( - 93 )
----

query I rowsort
SELECT DISTINCT + ( + 81 ) + 39 AS col2 FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) - 26 * COUNT( * ) AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) - 26 * COUNT ( * ) AS col1 FROM tab1
----
-87

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab1 WHERE + col1 * 37 IN ( 82 * + col0 )
----

query I rowsort
SELECT DISTINCT - col2 + - 14 FROM tab0
----
-113
-24
-61

query I rowsort
SELECT + col2 + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 5 ) = - 56
----

query I rowsort
SELECT 3 + - col2 FROM tab0
----
-44
-7
-96

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( + 3 + + 89 * - col2 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT + SUM( DISTINCT 23 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1983
SELECT + SUM ( DISTINCT 23 ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * - col0 ) <= - col1
----

query I rowsort
SELECT col0 + col0 * 16 AS col0 FROM tab0 AS cor0
----
1479
1649
255

query I rowsort
SELECT - 66 + col0 AS col2 FROM tab2 AS cor0
----
-2
-20
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 39 + 5 * - col2 col1 FROM tab0 cor0
----
3288
3343
350

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT DISTINCT + col2 DIV 88 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT + col2 / 88 AS col2 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 77 > ( + ( col0 ) * - col1 + + col0 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT + MAX( - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1990
SELECT + MAX ( - col2 ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT - col0 FROM tab2 AS cor0 WHERE - 59 IN ( col2 + + CAST( - col0 AS SIGNED ) * 28 )
----

skipif mysql # not compatible
query I rowsort label-1991
SELECT - col0 FROM tab2 AS cor0 WHERE - 59 IN ( col2 + + CAST ( - col0 AS INTEGER ) * 28 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 + col1 * 83 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT DISTINCT + COUNT( * ) + + 5 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT + COUNT ( * ) + + 5 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL + + col2 * + 88 FROM tab0 AS cor0
----
4136
8712
880

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + col2 * - 52 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-2444
-5148
-520

query I rowsort
SELECT DISTINCT + col0 * ( 98 ) AS col0 FROM tab1 AS cor0
----
4998
8330
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT + + COUNT( * ) * 52 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT + + COUNT ( * ) * 52 FROM tab2 AS cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 * 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 WHERE NOT col2 BETWEEN ( 11 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col2 BETWEEN ( 11 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT COUNT( * ) + + 13 + + COUNT( * ) AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-2002
SELECT COUNT ( * ) + + 13 + + COUNT ( * ) AS col2 FROM tab2
----
19

query I rowsort
SELECT ALL col1 + - + col2 * 50 FROM tab0
----
-2269
-479
-4949

query I rowsort
SELECT col0 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 20 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + + col1 + col1 col1 FROM tab2
----
196
228
248

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + 95 * - 87 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( - col2 )
----

query I rowsort
SELECT 73 + + + col0 + - col1 FROM tab2
----
60
68
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) / ( col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) / ( col1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + 99 - col1 AS col2 FROM tab2 AS cor0
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT DISTINCT - 4 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT - 4 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 * - 51 - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 50 ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-50
-50
-50

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( col0 * col0 ) IS NULL
----

query I rowsort
SELECT ALL - 70 - 6 + + - 74 AS col2 FROM tab0
----
-150
-150
-150

query I rowsort
SELECT - + 73 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT ( + + col0 ) AS col1 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ( - col0 ) * - - col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE ( + col0 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( + col0 ) < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2022
SELECT - CAST( NULL AS SIGNED ) AS col1, + col1 + + - col0 + - 55 FROM tab1 AS cor0
----
NULL
-135
NULL
-92
NULL
-99

skipif mysql # not compatible
query II rowsort label-2022
SELECT - CAST ( NULL AS INTEGER ) AS col1, + col1 + + - col0 + - 55 FROM tab1 AS cor0
----
NULL
-135
NULL
-92
NULL
-99

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( 70 )
----

query I rowsort
SELECT DISTINCT - - col1 * + 36 * + 39 + col0 AS col1 FROM tab1 AS cor0
----
19707
66079
7105

onlyif mysql # DIV for integer division: 
query I rowsort label-2025
SELECT ALL - 29 DIV + col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - 29 / + col2 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2026
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 36 * - 58 ) <= ( - 25 )
----

query I rowsort
SELECT col0 * + + col2 AS col0 FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT + 70 FROM tab1 AS cor0 WHERE NOT + 56 * + 97 IN ( CAST( 70 AS SIGNED ) )
----
70
70
70

skipif mysql # not compatible
query I rowsort label-2029
SELECT + 70 FROM tab1 AS cor0 WHERE NOT + 56 * + 97 IN ( CAST ( 70 AS INTEGER ) )
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col0 FROM tab2 AS cor0
----
29

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 9 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 * + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2033
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2034
SELECT DISTINCT MAX( DISTINCT 71 ), COUNT( * ) AS col0 FROM tab2
----
71
3

skipif mysql # not compatible
query II rowsort label-2034
SELECT DISTINCT MAX ( DISTINCT 71 ), COUNT ( * ) AS col0 FROM tab2
----
71
3

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 WHERE 4 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ( 44 ) AS col2 FROM tab1
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL - COUNT( col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - COUNT ( col0 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT - col2 * + col0 AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND col2
----

query I rowsort
SELECT - 57 * col2 FROM tab2
----
-1311
-2280
-3306

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= - col1
----

query I rowsort
SELECT + col0 * - + 53 AS col1 FROM tab0 AS cor0
----
-4611
-5141
-795

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 91 ) NOT BETWEEN + col2 AND + col1 * col0 + + col2
----

query I rowsort
SELECT - 86 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + + + 72 < - col0
----
-86
-86
-86

query I rowsort
SELECT - - col0 * + ( + col2 ) + + col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + + 65 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-3008
-6336
-640

query I rowsort
SELECT ( - 65 ) AS col2 FROM tab2 AS cor0 WHERE NOT 63 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT - col0 DIV + - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2048
SELECT - col0 / + - col2 FROM tab2
----
1
1
2

query II rowsort
SELECT ALL col1, - 44 + + col2 * - col1 + - 54 * 0 FROM tab1
----
14
-1388
47
-3240
5
-339

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2050
SELECT col2, - CAST( 79 AS SIGNED ) FROM tab2
----
23
-79
40
-79
58
-79

skipif mysql # not compatible
query II rowsort label-2050
SELECT col2, - CAST ( 79 AS INTEGER ) FROM tab2
----
23
-79
40
-79
58
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT CAST( NULL AS SIGNED ) + ( + + col2 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT CAST ( NULL AS INTEGER ) + ( + + col2 ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + ( - 0 ) * + col1 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT DISTINCT + + COUNT( + - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT + + COUNT ( + - col0 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 <= ( col0 )
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2055
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( - 10 / + col2 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( - 10 / + col2 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT + - 57 * col0 + + 85 + col1 * - CAST( + 89 AS SIGNED ) + - ( col1 ) * + col2 AS col2 FROM tab2 AS cor0
----
-13496
-14039
-8249

skipif mysql # not compatible
query I rowsort label-2056
SELECT + - 57 * col0 + + 85 + col1 * - CAST ( + 89 AS INTEGER ) + - ( col1 ) * + col2 AS col2 FROM tab2 AS cor0
----
-13496
-14039
-8249

query I rowsort
SELECT - col0 * 83 FROM tab0
----
-1245
-7221
-8051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT ( 8 + - - 35 / - 43 ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT ( 8 + - - 35 / - 43 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 80 * - + col2, col1 AS col0 FROM tab1
----
4720
5
5440
47
7680
14

query I rowsort
SELECT + 28 * + col1 * - + 85 FROM tab2
----
-121380
-159460
-183260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 31 + + + 22 col1, col0 AS col2 FROM tab1
----
53
51
53
85
53
91

query I rowsort
SELECT ALL + - col2 + + ( + - col0 ) FROM tab0 WHERE NOT + + 59 IS NULL
----
-196
-62
-97

query I rowsort
SELECT - ( + + col0 ) * - col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL - col1 + col1 * + + col2 + - col1 + - + 5 FROM tab2
----
1066
2921
3747

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE + col0 + - col2 < ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE + col0 + - col2 < ( col1 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2067
SELECT + col2 - - CAST( NULL AS SIGNED ) * col0 * col1 col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2067
SELECT + col2 - - CAST ( NULL AS INTEGER ) * col0 * col1 col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT DISTINCT 68 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT 68 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 64 + + 44 BETWEEN ( NULL ) AND col2 - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT - col0 IS NOT NULL ) )
----

query II rowsort
SELECT + col1 + + col2, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + - - 41 IS NULL
----
100
97
128
15
31
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - col1 < + + 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 53 / - 36, 2 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 90 col1 FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + col2 * - 50 AS col0 FROM tab1
----
-2950
-3400
-4800

query I rowsort
SELECT ALL col0 * + + 96 FROM tab1
----
4896
8160
8736

query I rowsort
SELECT col1 * - + col1 * - col0 FROM tab0
----
38367
97
98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT + - AVG ( + col2 ) * + CAST( + 94 AS SIGNED ) FROM tab2 WHERE NOT + CAST( - 29 AS SIGNED ) / col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT + - AVG ( + col2 ) * + CAST ( + 94 AS INTEGER ) FROM tab2 WHERE NOT + CAST ( - 29 AS INTEGER ) / col2 < NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + ( + 50 ) * col1 FROM tab0
----
-10500
-190350
-4950

query II rowsort
SELECT DISTINCT + col1 AS col0, 22 AS col2 FROM tab2
----
51
22
67
22
77
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col1 FROM tab1 WHERE NOT + - col0 * + - 92 * - col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 WHERE NOT + - col0 * + - 92 * - col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 - + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + - 26, col2 FROM tab2 AS cor0
----
-26
23
-26
40
-26
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT - - 26 - + + COUNT( - - col2 ) FROM tab2 AS cor0 WHERE NULL < col1
----
26

skipif mysql # not compatible
query I rowsort label-2086
SELECT - - 26 - + + COUNT ( - - col2 ) FROM tab2 AS cor0 WHERE NULL < col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-2087
SELECT - COUNT( * ) col2, 14 AS col0 FROM tab2, tab0 AS cor0
----
-9
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2087
SELECT - COUNT ( * ) col2, 14 AS col0 FROM tab2, tab0 AS cor0
----
-9
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT DISTINCT ( + - 84 ) + col1 DIV + - 97 AS col0 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT ( + - 84 ) + col1 / + - 97 AS col0 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT ALL + col2 + - col1 + - 59 AS col2 FROM tab1 AS cor0
----
-38
-5
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - MAX( - - 61 ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2090
SELECT - MAX ( - - 61 ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT - ( - - 3 ) - - col1 * + + col1 * 41 + col0 FROM tab0 AS cor0
----
135
18165
269013

query I rowsort
SELECT + col1 * - ( + col1 ) - - col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT - - ( + COUNT( * ) ) AS col0 FROM tab0 cor0 WHERE - col0 < + - col2 * 40 + + + col1
----
0

skipif mysql # not compatible
query I rowsort label-2093
SELECT - - ( + COUNT ( * ) ) AS col0 FROM tab0 cor0 WHERE - col0 < + - col2 * 40 + + + col1
----
0

query I rowsort
SELECT ALL ( 65 ) AS col0 FROM tab0
----
65
65
65

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE col2 NOT BETWEEN ( - - 82 ) AND ( + col1 + - 59 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT - CAST( NULL AS SIGNED ) + 36 * + + ( + col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT - CAST ( NULL AS INTEGER ) + 36 * + + ( + col1 ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 34 col1 FROM tab0 AS cor0
----
-34
-34
-34

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 35 + - - col2 IN ( - - col2 / + - col0 )
----

query I rowsort
SELECT DISTINCT + - 40 AS col1 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( - ( + - 43 ) ) > col1 * + col2
----
-1
-21
-81

query I rowsort
SELECT - col1 * 27 AS col2 FROM tab2
----
-1377
-1809
-2079

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 74 * - col1 + - col1 IN ( + - 66 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT DISTINCT + ( - SUM( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT + ( - SUM ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + - ( - 16 ) * - 63 + 96 AS col2 FROM tab1 AS cor0
----
-912
-912
-912

query I rowsort
SELECT - col2 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > col1
----

query II rowsort
SELECT ALL + - 62, col1 FROM tab1 cor0
----
-62
14
-62
47
-62
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT + - COUNT( * ) + - 87 AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2108
SELECT + - COUNT ( * ) + - 87 AS col1 FROM tab0 AS cor0
----
-90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + - col1 > NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2111
SELECT ALL * FROM tab0 WHERE - + 82 * 22 = CAST( + - 57 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2111
SELECT ALL * FROM tab0 WHERE - + 82 * 22 = CAST ( + - 57 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 <> NULL )
----

query I rowsort
SELECT ALL col1 * - col1 + + + 23 + + + 68 * + col1 * - 53 AS col2 FROM tab0
----
-298462
-3582
-76102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2114
SELECT CAST( + col1 AS SIGNED ), col2 * + col2 AS col1 FROM tab0
----
1
9801
21
100
81
2209

skipif mysql # not compatible
query II rowsort label-2114
SELECT CAST ( + col1 AS INTEGER ), col2 * + col2 AS col1 FROM tab0
----
1
9801
21
100
81
2209

query II rowsort
SELECT ALL 23 + - col2 * - 94 AS col1, 53 * + col2 FROM tab1
----
5569
3127
6415
3604
9047
5088

query I rowsort
SELECT ALL - + col0 * + col1 FROM tab0 WHERE NULL IS NULL
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + MIN( 13 ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2117
SELECT + MIN ( 13 ) AS col1 FROM tab0 AS cor0
----
13

query I rowsort
SELECT ALL + 18 - col1 AS col2 FROM tab0 AS cor0
----
-3
-63
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2119
SELECT + SUM( + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT + SUM ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT - MIN( + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2120
SELECT - MIN ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col2 * + 66 AS col0 FROM tab0
----
3102
6534
660

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2122
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2122
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - 24 + + - col1 BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT 60 * + + COUNT( * ) * - + 70 * - 87 - - - 87 AS col2 FROM tab1
----
1096113

skipif mysql # not compatible
query I rowsort label-2124
SELECT 60 * + + COUNT ( * ) * - + 70 * - 87 - - - 87 AS col2 FROM tab1
----
1096113

query I rowsort
SELECT col2 * - 41 AS col2 FROM tab2
----
-1640
-2378
-943

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2126
SELECT DISTINCT + - 0 + + - CAST( NULL AS DECIMAL ) + + + col2 AS col0 FROM tab2 WHERE - + 45 * - - 0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + - 0 + + - CAST ( NULL AS REAL ) + + + col2 AS col0 FROM tab2 WHERE - + 45 * - - 0 IS NULL
----

query I rowsort
SELECT 37 * - col2 AS col0 FROM tab1
----
-2183
-2516
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + COUNT( + 87 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2128
SELECT + COUNT ( + 87 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL - 57 * - COUNT( DISTINCT + - col1 ) - - 25 AS col0 FROM tab2 AS cor0 WHERE 55 IS NOT NULL
----
196

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - 57 * - COUNT ( DISTINCT + - col1 ) - - 25 AS col0 FROM tab2 AS cor0 WHERE 55 IS NOT NULL
----
196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= col1 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2131
SELECT * FROM tab0 cor0 WHERE NOT + 95 * + col2 * - ( + col2 ) * + + col2 <= + + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2131
SELECT * FROM tab0 cor0 WHERE NOT + 95 * + col2 * - ( + col2 ) * + + col2 <= + + CAST ( col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2132
SELECT ALL + + CAST( + 61 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + + CAST ( + 61 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL - + 68 FROM tab2 cor0
----
-68
-68
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col2 * + col1 <> - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2135
SELECT + - MAX( ALL + col1 ) * + - MAX( ALL + CAST( - + col0 AS DECIMAL ) ) / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT + - MAX ( ALL + col1 ) * + - MAX ( ALL + CAST ( - + col0 AS REAL ) ) / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL AVG ( + 7 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - - 97 * col2 AS col1 FROM tab1 AS cor0
----
5723
6596
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT + + SUM( ALL - 18 ) AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2138
SELECT + + SUM ( ALL - 18 ) AS col0 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + MAX( + col1 ) * - - COUNT( * ) * + COUNT( * ) FROM tab1
----
423

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + MAX ( + col1 ) * - - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL - 89 + + COUNT( * ) AS col0 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL - 89 + + COUNT ( * ) AS col0 FROM tab2
----
-86

query I rowsort
SELECT DISTINCT 47 + - + col2 * - - col1 AS col1 FROM tab2
----
-1126
-3033
-3839

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT + SUM( + col2 ) + + - COUNT( * ) AS col2 FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + SUM ( + col2 ) + + - COUNT ( * ) AS col2 FROM tab1
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2143
SELECT DISTINCT MIN( DISTINCT + 19 ) + - 91 * + CAST( - 29 AS SIGNED ) + + - 56 AS col1, - 31 FROM tab0
----
2602
-31

skipif mysql # not compatible
query II rowsort label-2143
SELECT DISTINCT MIN ( DISTINCT + 19 ) + - 91 * + CAST ( - 29 AS INTEGER ) + + - 56 AS col1, - 31 FROM tab0
----
2602
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - 91 + - SUM( col0 ) FROM tab1 AS cor0
----
-318

skipif mysql # not compatible
query I rowsort label-2144
SELECT - 91 + - SUM ( col0 ) FROM tab1 AS cor0
----
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT MAX( - col1 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2145
SELECT MAX ( - col1 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + COUNT( DISTINCT - 91 ) * 27 AS col2 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2146
SELECT + COUNT ( DISTINCT - 91 ) * 27 AS col2 FROM tab1 AS cor0
----
27

query III rowsort
SELECT * FROM tab0 WHERE + 64 IS NULL
----

query I rowsort
SELECT - - col0 AS col1 FROM tab2 cor0 WHERE col1 = NULL
----

query I rowsort
SELECT ALL - - col2 - + + col0 + + + col1 + col1 FROM tab0 AS cor0
----
-35
194
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT DISTINCT - 90 DIV - ( - + col0 ) col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2150
SELECT DISTINCT - 90 / - ( - + col0 ) col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - col1 + + col0 + - col1 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-2578
-7150
-8284

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT - 26 + + - SUM( ( + 73 ) ) + + - COUNT( * ) - + COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-248

skipif mysql # not compatible
query I rowsort label-2152
SELECT - 26 + + - SUM ( ( + 73 ) ) + + - COUNT ( * ) - + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-248

query I rowsort
SELECT DISTINCT + 18 FROM tab0 WHERE NOT ( NOT 84 >= NULL )
----

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT - ( col1 ) + - col2 + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 9 AS col2, col1 AS col2 FROM tab1
----
9
14
9
47
9
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col2 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT - CAST( NULL AS SIGNED ) / + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT - CAST ( NULL AS INTEGER ) / + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT 90 * + ( col1 ) IN ( + col0 * ( - 62 ), 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT 90 * + ( col1 ) IN ( + col0 * ( - 62 ), 13 )
----
NULL

query II rowsort
SELECT DISTINCT + 73, + col2 FROM tab1
----
73
59
73
68
73
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = + col0 + 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + - 70 * - col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL <= - col1 * + 48
----
0

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL <= - col1 * + 48
----
0

query II rowsort
SELECT col0 * + 17, col2 FROM tab0
----
1479
10
1649
99
255
47

query I rowsort
SELECT ALL + + col1 * + 18 AS col2 FROM tab2 AS cor0
----
1206
1386
918

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT COUNT( * ) + + 43 * 46 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
1978

skipif mysql # not compatible
query I rowsort label-2167
SELECT COUNT ( * ) + + 43 * 46 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
1978

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2168
SELECT - col2 * CAST( NULL AS DECIMAL ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2168
SELECT - col2 * CAST ( NULL AS REAL ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - + COUNT( * ) * + 25 AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2169
SELECT - + COUNT ( * ) * + 25 AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT COUNT( * ) + + CAST( 44 AS SIGNED ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2170
SELECT COUNT ( * ) + + CAST ( 44 AS INTEGER ) FROM tab0 AS cor0
----
47

query II rowsort
SELECT ALL col0, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT ALL * FROM tab0 WHERE 10 - - col1 <= + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT DISTINCT + SUM( ALL - 60 ) + - + COUNT( * ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT + SUM ( ALL - 60 ) + - + COUNT ( * ) FROM tab0
----
-183

query I rowsort
SELECT col1 FROM tab1 WHERE NULL = - col2
----

query I rowsort
SELECT DISTINCT - col0 + 53 AS col1 FROM tab0 AS cor0
----
-34
-44
38

query I rowsort
SELECT ALL + - 3 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT - 77 + - - 14 FROM tab1
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL - + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT IN ( 0 * - 21 + + + col1 + - col1, col2 + + 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

query II rowsort
SELECT + + 75 AS col2, + 88 AS col2 FROM tab1 AS cor0
----
75
88
75
88
75
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + col0 ) col0, - col0 * col0 FROM tab2
----
-46
-2116
-64
-4096
-75
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT - ( + MIN( 82 ) ) AS col0 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-2183
SELECT - ( + MIN ( 82 ) ) AS col0 FROM tab1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT - COUNT( - col1 ) + - - COUNT( + + ( - col1 ) ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2184
SELECT - COUNT ( - col1 ) + - - COUNT ( + + ( - col1 ) ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 * + ( - 15 ) AS col2 FROM tab2
----
1125
690
960

query I rowsort
SELECT col2 * - 86 AS col2 FROM tab0
----
-4042
-8514
-860

query I rowsort
SELECT DISTINCT + col2 * + 2 * + col2 + - col2 FROM tab1 cor0
----
18336
6903
9180

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT 73 / - col2 + - col0 <= ( - col2 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL - SUM( col0 ) AS col1 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - SUM ( col0 ) AS col1 FROM tab1 cor0
----
-227

query I rowsort
SELECT ALL - + 9 AS col2 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT 32 FROM tab1 AS cor0 WHERE - 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT + 80 * + 6 + + col2 + + col1 * - CAST( NULL AS SIGNED ) / - + col2 + + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT + 80 * + 6 + + col2 + + col1 * - CAST ( NULL AS INTEGER ) / - + col2 + + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2194
SELECT - col1 DIV col2 + - col1 + - 90, + col1 - + + col1 - + + col1 + col1 AS col1 FROM tab0 AS cor0
----
-113
0
-172
0
-91
0

skipif mysql # not compatible
query II rowsort label-2194
SELECT - col1 / col2 + - col1 + - 90, + col1 - + + col1 - + + col1 + col1 AS col1 FROM tab0 AS cor0
----
-113
0
-172
0
-91
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2195
SELECT col1 * + + 7 + - CAST( NULL AS DECIMAL ) * 40 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT col1 * + + 7 + - CAST ( NULL AS REAL ) * 40 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2196
SELECT + + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2196
SELECT + + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT col0 * - col2 AS col0, col1 + 93 - - + 88 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-705
262
-870
202
-9603
182

query I rowsort
SELECT ALL col2 * - col2 AS col2 FROM tab1 cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT ALL - col1, 1 AS col0 FROM tab0 AS cor0
----
-1
1
-21
1
-81
1

query I rowsort
SELECT ALL - + 48 + + + 72 * 88 FROM tab0 AS cor0
----
6288
6288
6288

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL + + MAX( - + col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL + + MAX ( - + col0 ) FROM tab0 cor0
----
-15

query I rowsort
SELECT + 73 + + 57 * - - 98 AS col1 FROM tab1
----
5659
5659
5659

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 89 + - col2 - + col1 FROM tab0 cor0
----
-120
-189
-217

query I rowsort
SELECT - - 63 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + ( - ( 6 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 96 + - 78 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 96 + - 78 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2208
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 13 col2, col2 AS col0 FROM tab1 AS cor0
----
13
59
13
68
13
96

query II rowsort
SELECT - 49 AS col1, col2 FROM tab0 cor0
----
-49
10
-49
47
-49
99

query III rowsort
SELECT + 6, - ( + col1 ) AS col0, + + 35 AS col1 FROM tab2 AS cor0
----
9 values hashing to e5f1e6b4908a06748641c4a07165e902

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT DISTINCT - 14 + - - SUM( + col1 ) + AVG ( col2 ) FROM tab0 cor0 WHERE NULL NOT BETWEEN + 15 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT - 14 + - - SUM ( + col1 ) + AVG ( col2 ) FROM tab0 cor0 WHERE NULL NOT BETWEEN + 15 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL SUM( 37 ) AS col2 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL SUM ( 37 ) AS col2 FROM tab2 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT + ( - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + ( - COUNT ( * ) ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col1 * + 55 AS col0 FROM tab1
----
2585
275
770

query I rowsort
SELECT ALL + 81 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
81
81
81

query I rowsort
SELECT - - 7 AS col1 FROM tab1 WHERE NOT NULL <> - 45
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2218
SELECT 66 DIV - COUNT( * ) AS col0 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-2218
SELECT 66 / - COUNT ( * ) AS col0 FROM tab0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2219
SELECT + 58 AS col1 FROM tab0 WHERE NOT + ( + col1 ) < - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2219
SELECT + 58 AS col1 FROM tab0 WHERE NOT + ( + col1 ) < - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - ( + - col2 ) * - + col0 + + col0 AS col1 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2221
SELECT COUNT( * ) DIV + + 68 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2221
SELECT COUNT ( * ) / + + 68 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT COUNT( 54 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT COUNT ( 54 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 87 col1 FROM tab1 AS cor0
----
-87
-87
-87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - col1 ) <> - col1 * 17
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2225
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2225
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT - 60 * + + col2 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) <> ( + 5 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-2226
SELECT - 60 * + + col2 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) <> ( + 5 + - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - 22 * + 86 NOT IN ( 87, col0, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2228
SELECT DISTINCT col1 + - col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT col1 + - col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 8 ) col0 FROM tab1
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT - + COUNT( * ) col2 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-2230
SELECT - + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT DISTINCT + col2 + - + 94, + ( - col1 ) + - + 86 AS col2 FROM tab1
----
-26
-133
-35
-91
2
-100

query I rowsort
SELECT DISTINCT + ( - - 87 ) AS col2 FROM tab2 cor0
----
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND + 76
----

query I rowsort
SELECT ALL - - 86 AS col2 FROM tab0 AS cor0
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2235
SELECT DISTINCT - + CAST( 19 AS SIGNED ) AS col2, + 62 * col1 FROM tab0 cor0
----
-19
1302
-19
5022
-19
62

skipif mysql # not compatible
query II rowsort label-2235
SELECT DISTINCT - + CAST ( 19 AS INTEGER ) AS col2, + 62 * col1 FROM tab0 cor0
----
-19
1302
-19
5022
-19
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT - 68 * + + COUNT( * ) FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-2236
SELECT - 68 * + + COUNT ( * ) FROM tab2 AS cor0
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT col2 * - 85 / - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT col2 * - 85 / - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2238
SELECT CAST( NULL AS DECIMAL ) * - 3 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT CAST ( NULL AS REAL ) * - 3 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT - ( - 33 ) * + COUNT( * ) + - + 99 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT - ( - 33 ) * + COUNT ( * ) + - + 99 FROM tab2
----
0

query I rowsort
SELECT ALL 18 - + + 95 FROM tab0 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( + col2 + + col2 / - 83 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2241
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( + col2 + + col2 / - 83 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL - + SUM( - + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 21 + - ( + col1 ) = - ( col0 )
----
156

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL - + SUM ( - + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 21 + - ( + col1 ) = - ( col0 )
----
156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 28 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT col1 + + col2 DIV ( col2 ) AS col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-2245
SELECT col1 + + col2 / ( col2 ) AS col1 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT - col1 + col2 - - 18 AS col0 FROM tab1 AS cor0
----
100
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT COUNT( ALL + 47 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2247
SELECT COUNT ( ALL + 47 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2248
SELECT DISTINCT + CAST( - 9 AS SIGNED ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT + CAST ( - 9 AS INTEGER ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT + - MAX( + col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2249
SELECT + - MAX ( + col2 ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( - col1 * - col0 * col1, col0 )
----

query I rowsort
SELECT DISTINCT col0 * - 38 * col1 AS col2 FROM tab0 AS cor0
----
-3686
-46170
-69426

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2252
SELECT ALL + CAST( NULL AS DECIMAL ) * - 75 / - - ( - 83 ) / - ( + + 12 ) - + ( - 20 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + CAST ( NULL AS REAL ) * - 75 / - - ( - 83 ) / - ( + + 12 ) - + ( - 20 ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT ALL col0 DIV + - 78 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL col0 / + - 78 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT DISTINCT col2 * col0 * + col2 * - CAST( + + col0 AS SIGNED ) * + ( + - 67 ) AS col0 FROM tab2
----
1267807500
439091200
74997388

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT col2 * col0 * + col2 * - CAST ( + + col0 AS INTEGER ) * + ( + - 67 ) AS col0 FROM tab2
----
1267807500
439091200
74997388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / - col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2255
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - col1 col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - col1 AND col2
----

query I rowsort
SELECT DISTINCT - 14 * + - col1 FROM tab0 AS cor0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT ALL + + MAX( DISTINCT + 90 ) * + + COUNT( * ) * + 79 AS col2 FROM tab2 AS cor0
----
21330

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + + MAX ( DISTINCT + 90 ) * + + COUNT ( * ) * + 79 AS col2 FROM tab2 AS cor0
----
21330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT col2 + - - CAST( NULL AS SIGNED ) + - - col2 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-2259
SELECT col2 + - - CAST ( NULL AS INTEGER ) + - - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT ALL - SUM( - 18 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
162

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - SUM ( - 18 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
162

query II rowsort
SELECT + col2 AS col2, col1 FROM tab2 cor0
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - col2 NOT BETWEEN - col0 AND - ( - col2 ) + - + 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL - COUNT( * ) * ( + 69 ) FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - COUNT ( * ) * ( + 69 ) FROM tab1 AS cor0
----
-207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 58 ) * - col0 col1 FROM tab0 AS cor0
----
5046
5626
870

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT - + COUNT( * ) FROM tab2 WHERE NOT + ( + ( + 74 ) ) * 39 + - col1 + + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT - + COUNT ( * ) FROM tab2 WHERE NOT + ( + ( + 74 ) ) * 39 + - col1 + + col2 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT - 74 + + ( + - COUNT( * ) ) AS col0 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-2266
SELECT - 74 + + ( + - COUNT ( * ) ) AS col0 FROM tab0
----
-77

query I rowsort
SELECT + - ( col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2268
SELECT DISTINCT + col0 DIV - 86 - + 16 FROM tab1 AS cor0
----
-16
-17

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT + col0 / - 86 - + 16 FROM tab1 AS cor0
----
-16
-17

query I rowsort
SELECT + 14 / + col2 AS col0 FROM tab1 AS cor0 WHERE col2 * - + col1 > ( NULL )
----

query II rowsort
SELECT ALL ( 18 ) AS col2, 63 FROM tab2 cor0
----
18
63
18
63
18
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2271
SELECT DISTINCT + 72 * + 31, + COUNT( * ) col2 FROM tab1 AS cor0
----
2232
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2271
SELECT DISTINCT + 72 * + 31, + COUNT ( * ) col2 FROM tab1 AS cor0
----
2232
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL MIN( ALL - col2 ) * - 29 * 31 + + 15 FROM tab0 AS cor0
----
89016

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL MIN ( ALL - col2 ) * - 29 * 31 + + 15 FROM tab0 AS cor0
----
89016

query I rowsort
SELECT DISTINCT 87 * col0 FROM tab1 cor0
----
4437
7395
7917

query I rowsort
SELECT DISTINCT - ( + - col2 ) AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - ( - - 37 ) FROM tab2
----
-37
-37
-37

query I rowsort
SELECT 43 * - 77 AS col2 FROM tab1
----
-3311
-3311
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + + 84 * col0 + - 80 <> - - 92
----
0

skipif mysql # not compatible
query I rowsort label-2277
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + + 84 * col0 + - 80 <> - - 92
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 31 * col2 * + + 63 <> - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 19 > + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2280
SELECT ALL + CAST( NULL AS SIGNED ) col1, 9 - col1 * - 62 * + col0 - - 4 AS col0 FROM tab1 AS cor0
----
NULL
26363
NULL
265187
NULL
44281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2280
SELECT ALL + CAST ( NULL AS INTEGER ) col1, 9 - col1 * - 62 * + col0 - - 4 AS col0 FROM tab1 AS cor0
----
NULL
26363
NULL
265187
NULL
44281

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT - - 12 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2282
SELECT - - 12 / - col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> ( + 10 )
----

query I rowsort
SELECT DISTINCT - + ( + + col0 ) * + - 48 FROM tab2 AS cor0
----
2208
3072
3600

query I rowsort
SELECT ALL + 62 AS col1 FROM tab1 WHERE ( - col0 ) * - 62 NOT IN ( - + col2, ( + - col0 ), - - 0, col2, - col1 + - col1 )
----
62
62
62

query I rowsort
SELECT DISTINCT - col0 + + + col0 + + + 12 * - 51 AS col2 FROM tab0 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + col0 * 2 AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT - col0 + 95 FROM tab2
----
20
31
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2289
SELECT ALL 19 DIV + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL 19 / + COUNT ( * ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT DISTINCT + col1 DIV col1 * - + col1 + - - col1 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + col1 / col1 * - + col1 + - - col1 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2291
SELECT ALL col0 DIV col0 AS col2, col0 + + col1 * - + 30 FROM tab0 AS cor0
----
1
-2415
1
-543
1
67

skipif mysql # not compatible
query II rowsort label-2291
SELECT ALL col0 / col0 AS col2, col0 + + col1 * - + 30 FROM tab0 AS cor0
----
1
-2415
1
-543
1
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT DISTINCT - col2 DIV + 60 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT - col2 / + 60 AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + col0 + + col1 + - col1 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE 50 * - 27 IS NULL
----

query I rowsort
SELECT ALL col0 / - - 8 + + 91 * - col2 / - + col2 FROM tab2 WHERE NOT ( NULL IN ( 19 ) ) OR NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 66 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2297
SELECT DISTINCT + + 52 * col2 + - CAST( + col1 AS SIGNED ) * + + col1 * col1 * + col1 + - 90 AS col1, 0 FROM tab1 AS cor0
----
-33514
0
-4876235
0
2353
0

skipif mysql # not compatible
query II rowsort label-2297
SELECT DISTINCT + + 52 * col2 + - CAST ( + col1 AS INTEGER ) * + + col1 * col1 * + col1 + - 90 AS col1, 0 FROM tab1 AS cor0
----
-33514
0
-4876235
0
2353
0

query I rowsort
SELECT DISTINCT 22 - - + col2 * - col0 * - col2 * ( - col1 ) * col0 + + col2 + 95 FROM tab0 cor0
----
-15894773
-40258861
-92217393

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT DISTINCT col2 DIV 90 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT col2 / 90 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 69 col1, + col1 AS col2 FROM tab2 AS cor0
----
-69
51
-69
67
-69
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT DISTINCT COUNT( DISTINCT + 28 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT COUNT ( DISTINCT + 28 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL - - MIN( + - 56 ) AS col2 FROM tab2 WHERE NOT NULL = - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL - - MIN ( + - 56 ) AS col2 FROM tab2 WHERE NOT NULL = - col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT MAX( + col0 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2304
SELECT DISTINCT MAX ( + col0 ) col2 FROM tab1
----
91

query I rowsort
SELECT ALL col2 - + ( - col1 ) AS col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT DISTINCT + MIN( + col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT + MIN ( + col2 ) FROM tab1 cor0
----
59

query II rowsort
SELECT DISTINCT - - 93, col0 FROM tab2 AS cor0
----
93
46
93
64
93
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2308
SELECT ALL + 90, + 65 DIV - 86 AS col1 FROM tab0 cor0
----
90
0
90
0
90
0

skipif mysql # not compatible
query II rowsort label-2308
SELECT ALL + 90, + 65 / - 86 AS col1 FROM tab0 cor0
----
90
0
90
0
90
0

query II rowsort
SELECT 13, - ( + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
13
-59
13
-68
13
-96

query II rowsort
SELECT + col1 AS col2, + 60 * + col0 AS col2 FROM tab0 AS cor0
----
1
5820
21
5220
81
900

onlyif mysql # aggregate syntax: 
query II rowsort label-2311
SELECT COUNT( * ), + 25 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
22

skipif mysql # not compatible
query II rowsort label-2311
SELECT COUNT ( * ), + 25 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
22

query I rowsort
SELECT DISTINCT - 91 FROM tab0 AS cor0 WHERE NOT + col2 >= - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT - SUM( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT NULL = 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT - SUM ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT NULL = 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2314
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 86 AS col1, - col2 col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2314
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 86 AS col1, - col2 col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 / + - col1 * + - col0 * - 43 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT + ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2316
SELECT + ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL ( - col0 ) * - - col1 + - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2318
SELECT 12 * 63 DIV - COUNT( * ) AS col2 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-2318
SELECT 12 * 63 / - COUNT ( * ) AS col2 FROM tab1
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88 col0, - 44 AS col2 FROM tab2
----
88
-44
88
-44
88
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2320
SELECT ALL CAST( NULL AS DECIMAL ) * + - col2 * + 19 * - 90 * + col0 + - 99 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL CAST ( NULL AS REAL ) * + - col2 * + 19 * - 90 * + col0 + - 99 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col2 * 60 AS col0 FROM tab2
----
153600
261000
63480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT col2 + - col2 + - col0 + + CAST( - 19 AS SIGNED ) FROM tab0 AS cor0
----
-106
-116
-34

skipif mysql # not compatible
query I rowsort label-2322
SELECT col2 + - col2 + - col0 + + CAST ( - 19 AS INTEGER ) FROM tab0 AS cor0
----
-106
-116
-34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 - + col1 * - col1 IS NULL
----

query I rowsort
SELECT ( - 49 ) + + col1 FROM tab1 AS cor0
----
-2
-35
-44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 55 + - + col2 AS col2 FROM tab0 cor0
----
-102
-154
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT DISTINCT col2 DIV + + col1 - + col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT col2 / + + col1 - + col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - - 15 - + col1 AS col1 FROM tab0 AS cor0
----
-6
-66
14

query I rowsort
SELECT ALL + + col2 + ( ( + - col0 ) ) FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + COUNT( DISTINCT + col0 ) - - - 0 + 62 AS col2 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2330
SELECT + COUNT ( DISTINCT + col0 ) - - - 0 + 62 AS col2 FROM tab1 AS cor0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT - col0 + - 28 DIV + col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2331
SELECT - col0 + - 28 / + col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL - - 94 * - + MAX( ALL + 36 ) AS col0 FROM tab1 AS cor0
----
-3384

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - - 94 * - + MAX ( ALL + 36 ) AS col0 FROM tab1 AS cor0
----
-3384

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 45 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT COUNT( DISTINCT + - 93 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT COUNT ( DISTINCT + - 93 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE + - 53 * + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 78 + - - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2337
SELECT ALL col1, - 54 DIV ( + - col1 ) + 47 AS col2 FROM tab0
----
1
101
21
49
81
47

skipif mysql # not compatible
query II rowsort label-2337
SELECT ALL col1, - 54 / ( + - col1 ) + 47 AS col2 FROM tab0
----
1
101
21
49
81
47

query I rowsort
SELECT ALL col2 + col1 AS col1 FROM tab2 WHERE NOT NULL >= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT col2 DIV + 31 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2339
SELECT col2 / + 31 AS col2 FROM tab0
----
0
1
3

query I rowsort
SELECT + 0 * + col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2341
SELECT ALL COUNT( * ) AS col0, 10 AS col2 FROM tab1
----
3
10

skipif mysql # not compatible
query II rowsort label-2341
SELECT ALL COUNT ( * ) AS col0, 10 AS col2 FROM tab1
----
3
10

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col1 + - - 86 AS col0 FROM tab0
----
107
167
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2344
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 78 <> - col2 * + ( - col0 ) * col2 + + col2 + CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2344
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 78 <> - col2 * + ( - col0 ) * col2 + + col2 + CAST ( - - col0 AS INTEGER )
----

query I rowsort
SELECT + 82 + - col1 FROM tab0 AS cor0
----
1
61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL - MAX( + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - MAX ( + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL - MIN( ALL + col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - MIN ( ALL + col2 ) FROM tab0 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT ALL - + SUM( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL - + SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL - + 68 FROM tab1 cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2350
SELECT 81 DIV + SUM( - - col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2350
SELECT 81 / + SUM ( - - col0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT COUNT( - col0 ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2351
SELECT COUNT ( - col0 ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT ALL COUNT( DISTINCT - + col2 ) AS col2, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2352
SELECT ALL COUNT ( DISTINCT - + col2 ) AS col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT - - 29 + col2 FROM tab2 AS cor0
----
52
69
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - - col1 + - col2 + 71 / - col1 + 82 NOT IN ( col0 )
----

query I rowsort
SELECT + col2 + 15 AS col0 FROM tab2
----
38
55
73

query I rowsort
SELECT ALL - ( - + col1 ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 1 + + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 1 + + col0 FROM tab0
----
NULL

query I rowsort
SELECT + 65 * - col1 AS col2 FROM tab2 AS cor0 WHERE col0 + col2 IS NOT NULL
----
-3315
-4355
-5005

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 55 AND NULL
----

query I rowsort
SELECT - col1 * - - 41 + col2 FROM tab1 AS cor0
----
-146
-1859
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT - + MIN( DISTINCT + 13 ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT - + MIN ( DISTINCT + 13 ) FROM tab1 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT MAX( - 96 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2362
SELECT MAX ( - 96 ) FROM tab0 AS cor0
----
-96

query I rowsort
SELECT col1 * - col0 * - + col2 * 95 FROM tab2
----
18726400
27687750
5126010

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT DISTINCT - col1 * + col1 DIV + + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT - col1 * + col1 / + + col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2365
SELECT COUNT( * ) * - CAST( + 72 AS SIGNED ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-2365
SELECT COUNT ( * ) * - CAST ( + 72 AS INTEGER ) FROM tab1
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2366
SELECT ALL - 45 DIV + MIN( ALL + - col0 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2366
SELECT ALL - 45 / + MIN ( ALL + - col0 ) col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2367
SELECT SUM( DISTINCT 15 ) AS col1, 11 FROM tab2
----
15
11

skipif mysql # not compatible
query II rowsort label-2367
SELECT SUM ( DISTINCT 15 ) AS col1, 11 FROM tab2
----
15
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT ALL col1 DIV + - 73 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL col1 / + - 73 AS col1 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT 66 IS NULL
----
-51
-85
-91

query I rowsort
SELECT + - 17 AS col0 FROM tab2 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT MAX( DISTINCT - 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2372
SELECT MAX ( DISTINCT - 97 ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT - 49 * - col2 AS col1 FROM tab0
----
2303
4851
490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1, 55 col0 FROM tab1 AS cor0
----
14
55
47
55
5
55

query I rowsort
SELECT 92 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
92
92
92

query I rowsort
SELECT DISTINCT + ( - 9 ) AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - 55 * - col0 AS col0 FROM tab0 cor0
----
4785
5335
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 74 col1 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2379
SELECT 75 DIV + 63 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2379
SELECT 75 / + 63 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col1 * + + 55 AS col1 FROM tab0 AS cor0
----
1155
4455
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 68, 12 + + col2 + 40, - 36 + + col0, - 25 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL - MAX( 24 ) * - 75 * - ( - 72 ) col1 FROM tab0 AS cor0
----
129600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2382
SELECT ALL - MAX ( 24 ) * - 75 * - ( - 72 ) col1 FROM tab0 AS cor0
----
129600

query I rowsort
SELECT - 18 AS col2 FROM tab0 AS cor0 WHERE + 70 < + col0 + col2
----
-18
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2384
SELECT + COUNT( * ) DIV + SUM( ALL + 62 ) AS col1, SUM( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
0
-156

skipif mysql # not compatible
query II rowsort label-2384
SELECT + COUNT ( * ) / + SUM ( ALL + 62 ) AS col1, SUM ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
0
-156

query I rowsort
SELECT - col2 * + - col0 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2386
SELECT SUM( CAST( - + 56 AS SIGNED ) ) AS col0 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-2386
SELECT SUM ( CAST ( - + 56 AS INTEGER ) ) AS col0 FROM tab1
----
-168

query I rowsort
SELECT + - col0 AS col2 FROM tab1 WHERE + 56 + + 96 = + + ( - + col1 )
----

query I rowsort
SELECT + 15 * col0 + + col2 * col2 * + 30 FROM tab2
----
102045
16560
48960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT + + CAST( - col2 AS SIGNED ) + + col2 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2389
SELECT + + CAST ( - col2 AS INTEGER ) + + col2 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2390
SELECT DISTINCT - col0 AS col2, 90 DIV - col2 AS col0 FROM tab2 AS cor0
----
-46
-3
-64
-2
-75
-1

skipif mysql # not compatible
query II rowsort label-2390
SELECT DISTINCT - col0 AS col2, 90 / - col2 AS col0 FROM tab2 AS cor0
----
-46
-3
-64
-2
-75
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 52 - - 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query III rowsort label-2392
SELECT DISTINCT - COUNT( DISTINCT - + col2 ), + ( - + COUNT( + 35 ) ), 90 AS col0 FROM tab1
----
-3
-3
90

skipif mysql # not compatible
query III rowsort label-2392
SELECT DISTINCT - COUNT ( DISTINCT - + col2 ), + ( - + COUNT ( + 35 ) ), 90 AS col0 FROM tab1
----
-3
-3
90

query I rowsort
SELECT DISTINCT 10 + - - col2 FROM tab1
----
106
69
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 - + col2 + + - col2 + - - 49 col2 FROM tab2
----
21
57
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2395
SELECT ( - 14 ) - - col1 + + 4 / + CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-2395
SELECT ( - 14 ) - - col1 + + 4 / + CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2396
SELECT ALL - + CAST( + col2 AS SIGNED ) DIV - col2 FROM tab1 AS cor0 WHERE NOT 93 <= - 84 AND NOT col1 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL - + CAST ( + col2 AS INTEGER ) / - col2 FROM tab1 AS cor0 WHERE NOT 93 <= - 84 AND NOT col1 IS NULL
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT DISTINCT + col2 DIV 64 + - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT + col2 / 64 + - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-2398
SELECT + COUNT( - + ( - - col1 ) ) AS col0, - ( - - 3 ) AS col1, + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
3
-3
NULL

skipif mysql # not compatible
query III rowsort label-2398
SELECT + COUNT ( - + ( - - col1 ) ) AS col0, - ( - - 3 ) AS col1, + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
3
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT - ( + MIN( col1 ) ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2399
SELECT - ( + MIN ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + 7 + - col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 / + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1 * - - col0 * - + 73 AS col0, - col2 FROM tab0
----
-133371
-10
-7081
-99
-88695
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL SUM( - + 67 ) FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL SUM ( - + 67 ) FROM tab1
----
-201

query II rowsort
SELECT DISTINCT 60 * + 10 * - col1 AS col0, 72 FROM tab2
----
-30600
72
-40200
72
-46200
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 22 col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT ALL + 70 * - CAST( - 75 AS SIGNED ) + 14 / col1 + col0 FROM tab1 WHERE NOT col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + 70 * - CAST ( - 75 AS INTEGER ) + 14 / col1 + col0 FROM tab1 WHERE NOT col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2407
SELECT - 27 DIV + 39 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2407
SELECT - 27 / + 39 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * - 9 * + col1 AS col1 FROM tab1
----
-12096
-2655
-28764

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col2 + col0 BETWEEN + col1 - - + col1 - - 76 AND + col0
----
10
47
99

query I rowsort
SELECT DISTINCT col1 * - 15 - - ( - 18 ) AS col1 FROM tab2 AS cor0 WHERE NOT 77 - + col0 = + col1
----
-1023
-1173
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT SUM( DISTINCT - - 3 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT SUM ( DISTINCT - - 3 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT DISTINCT 85 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT 85 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT col0 + - 51 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 * - 57 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2416
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( + col0 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2416
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( + col0 ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2417
SELECT + col0 + col2 DIV 60 AS col0 FROM tab0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-2417
SELECT + col0 + col2 / 60 AS col0 FROM tab0
----
15
87
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT + ( MAX( DISTINCT col2 ) ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2418
SELECT + ( MAX ( DISTINCT col2 ) ) AS col2 FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 3 col2 FROM tab2
----
-138
-192
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT ALL - 84 DIV COUNT( * ) + 10 AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - 84 / COUNT ( * ) + 10 AS col1 FROM tab2
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 * col0 col2 FROM tab1
----
-2754
-4590
-4914

query I rowsort
SELECT ALL - col2 - col1 * col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT SUM( - col1 ) col2 FROM tab1 WHERE ( + 62 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2423
SELECT SUM ( - col1 ) col2 FROM tab1 WHERE ( + 62 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT COUNT( * ) * - MIN( ALL - col2 ) AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT COUNT ( * ) * - MIN ( ALL - col2 ) AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + 40 - - col2 * - col0 FROM tab0 WHERE ( col1 / col0 ) IS NULL
----

query I rowsort
SELECT - col0 + 68 * - col0 AS col0 FROM tab1
----
-3519
-5865
-6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col1 FROM tab1
----
75
75
75

query I rowsort
SELECT ALL + 32 FROM tab1 WHERE + col2 BETWEEN - col1 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT 16 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT 16 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2430
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 39 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - 32 * COUNT( * ) - COUNT( * ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-2432
SELECT - 32 * COUNT ( * ) - COUNT ( * ) FROM tab2
----
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 39 + + col2 FROM tab2 WHERE NOT col2 + - 11 IS NULL
----
62
79
97

query I rowsort
SELECT - col1 * col1 FROM tab2 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - 74 * 60 AND - col0 + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 1 IN ( col0 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT SUM( 67 ) AS col2 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-2438
SELECT SUM ( 67 ) AS col2 FROM tab1
----
201

query I rowsort
SELECT DISTINCT - 70 * 49 FROM tab0
----
-3430

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT DISTINCT col0 DIV 31 AS col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT col0 / 31 AS col0 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT 94 * + 60 + COUNT( * ) AS col2 FROM tab1 cor0
----
5643

skipif mysql # not compatible
query I rowsort label-2442
SELECT 94 * + 60 + COUNT ( * ) AS col2 FROM tab1 cor0
----
5643

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT 16 + - MAX( - 99 ) FROM tab1
----
115

skipif mysql # not compatible
query I rowsort label-2444
SELECT 16 + - MAX ( - 99 ) FROM tab1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL MIN( col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL MIN ( col2 ) AS col2 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT CAST( - 31 AS SIGNED ) * + 60 + + col1 AS col0 FROM tab2
----
-1783
-1793
-1809

skipif mysql # not compatible
query I rowsort label-2446
SELECT CAST ( - 31 AS INTEGER ) * + 60 + + col1 AS col0 FROM tab2
----
-1783
-1793
-1809

query III rowsort
SELECT * FROM tab1 WHERE NOT + 6 * + 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT 64 DIV - col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT 64 / - col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2449
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) * col1 ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2449
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) * col1 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT ALL col1 + - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * + col2 ) >= - 72 * + 31 + 55
----

query I rowsort
SELECT ALL + 19 AS col0 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT - 96 * + col0 AS col1 FROM tab1 AS cor0
----
-4896
-8160
-8736

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 + + col0 ) BETWEEN NULL AND 82
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 70 IS NULL
----

query I rowsort
SELECT DISTINCT - 61 * col0 AS col2 FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT ALL - 57 * 6 FROM tab2
----
-342
-342
-342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - 6 col0 FROM tab1
----
-306
-510
-546

query I rowsort
SELECT 6 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT + col0 <= col1
----
6
6
6

query I rowsort
SELECT - col1 * + 8 FROM tab2
----
-408
-536
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT + COUNT( - + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2461
SELECT + COUNT ( - + col0 ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT + col2 DIV + 49 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2462
SELECT + col2 / + 49 AS col2 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 77 / - 43 + col2 IS NULL
----

query I rowsort
SELECT ( - col1 ) + col2 AS col0 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL 8 + col0 / col1 FROM tab1 AS cor0 WHERE NOT 81 * 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT - 79 + - ( COUNT( * ) ) FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2466
SELECT - 79 + - ( COUNT ( * ) ) FROM tab0 AS cor0
----
-82

query I rowsort
SELECT + 77 * - 38 + col1 * + 93 + col1 AS col1 FROM tab1 AS cor0
----
-1610
-2456
1492

query II rowsort
SELECT - col1, 7 AS col1 FROM tab1
----
-14
7
-47
7
-5
7

query I rowsort
SELECT DISTINCT - - col1 + + - col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ALL + col1 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL + col1 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - 44 NOT BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT ALL - 96 * - - 33 - + col2 * col1 FROM tab0 AS cor0
----
-3267
-3378
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + ( + COUNT( * ) ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2473
SELECT + ( + COUNT ( * ) ) col2 FROM tab0 cor0
----
3

query II rowsort
SELECT - col1 AS col0, col1 AS col0 FROM tab2 cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - MAX( ALL - 22 ) col1 FROM tab1 AS cor0 WHERE 72 IN ( ( ( 98 ) ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2475
SELECT - MAX ( ALL - 22 ) col1 FROM tab1 AS cor0 WHERE 72 IN ( ( ( 98 ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2476
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col2 * + 22 + 22 * CAST( + 53 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2476
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col2 * + 22 + 22 * CAST ( + 53 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT + ( + + 22 ) DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT + ( + + 22 ) / - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT ALL - 56 / + CAST( NULL AS SIGNED ) * col0 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL - 56 / + CAST ( NULL AS INTEGER ) * col0 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + + 54 FROM tab0 AS cor0
----
-4698
-5238
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT col1 * + - col2 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT col1 * + - col2 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - - col1 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT + - col1 + + 36 * - col2 FROM tab2 AS cor0
----
-1517
-2155
-879

query I rowsort
SELECT DISTINCT col0 + - col2 * ( - col1 ) FROM tab2
----
1219
3144
3961

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NULL AND NOT NULL NOT IN ( col0 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2485
SELECT ALL * FROM tab2 WHERE NOT - col1 * + 37 <> - ( - CAST( NULL AS SIGNED ) ) + 40 * col2
----

skipif mysql # not compatible
query III rowsort label-2485
SELECT ALL * FROM tab2 WHERE NOT - col1 * + 37 <> - ( - CAST ( NULL AS INTEGER ) ) + 40 * col2
----

query I rowsort
SELECT - 68 * - 95 + - - 10 * - 92 * col0 AS col2 FROM tab1
----
-40460
-71740
-77260

query I rowsort
SELECT + col0 * + col0 - 49 AS col0 FROM tab2 WHERE + + 83 + - - col0 + col2 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col0 AS col2, col0 col1 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2489
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / + COUNT( * ) + - 9 + - 35 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT + CAST ( NULL AS REAL ) / + COUNT ( * ) + - 9 + - 35 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT DISTINCT + COUNT( * ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2492
SELECT COUNT( * ) AS col1, - 26 FROM tab1
----
3
-26

skipif mysql # not compatible
query II rowsort label-2492
SELECT COUNT ( * ) AS col1, - 26 FROM tab1
----
3
-26

query I rowsort
SELECT + col1 * 7 AS col1 FROM tab2 AS cor0
----
357
469
539

query II rowsort
SELECT 98 AS col1, + col0 + - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
98
-45
98
23
98
26

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT DISTINCT - COUNT( * ) AS col2, + MIN( - 99 ) + 36 AS col1 FROM tab2 AS cor0
----
-3
-63

skipif mysql # not compatible
query II rowsort label-2495
SELECT DISTINCT - COUNT ( * ) AS col2, + MIN ( - 99 ) + 36 AS col1 FROM tab2 AS cor0
----
-3
-63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, - ( - col2 ) * + col1 FROM tab0 AS cor0
----
15
3807
87
210
97
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 14 NOT BETWEEN + + 8 AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT DISTINCT + MAX( + 76 ) AS col2 FROM tab0 cor0
----
76

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT + MAX ( + 76 ) AS col2 FROM tab0 cor0
----
76

query II rowsort
SELECT DISTINCT - 82 AS col0, 59 + + 57 AS col2 FROM tab0
----
-82
116

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 * + col0, + col0 AS col0 FROM tab0
----
-225
15
-7569
87
-9409
97

query I rowsort
SELECT - ( 96 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2504
SELECT CAST( NULL AS SIGNED ), 5 + + - col1 * + - col1 col1 FROM tab2
----
NULL
2606
NULL
4494
NULL
5934

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2504
SELECT CAST ( NULL AS INTEGER ), 5 + + - col1 * + - col1 col1 FROM tab2
----
NULL
2606
NULL
4494
NULL
5934

query II rowsort
SELECT - col0 AS col1, - 26 AS col1 FROM tab0
----
-15
-26
-87
-26
-97
-26

query I rowsort
SELECT - col1 * + 31 * - 80 * - - col1 * + col0 AS col0 FROM tab1
----
24790080
498527120
5270000

query I rowsort
SELECT - + col2 * + - col0 - - 84 FROM tab1 AS cor0
----
4980
5099
6272

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - ( COUNT( + col0 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2508
SELECT - ( COUNT ( + col0 ) ) FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 87 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT + COUNT( * ) + - + MIN( DISTINCT col0 ) * - + 57 + + 2 AS col0 FROM tab0
----
860

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + COUNT ( * ) + - + MIN ( DISTINCT col0 ) * - + 57 + + 2 AS col0 FROM tab0
----
860

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT COUNT( ALL - col0 ) + 73 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-2513
SELECT COUNT ( ALL - col0 ) + 73 FROM tab2
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2514
SELECT DISTINCT * FROM tab1 WHERE ( - CAST( NULL AS DECIMAL ) ) IS NULL AND NOT + 16 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2514
SELECT DISTINCT * FROM tab1 WHERE ( - CAST ( NULL AS REAL ) ) IS NULL AND NOT + 16 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 + - 77 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3565cde0e9e7c7a2aebe3ad80a374839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT + 7 + + CAST( + col2 AS SIGNED ) + - col2 + + + col0 * + - 13 AS col1 FROM tab0 AS cor0
----
-1124
-1254
-188

skipif mysql # not compatible
query I rowsort label-2516
SELECT + 7 + + CAST ( + col2 AS INTEGER ) + - col2 + + + col0 * + - 13 AS col1 FROM tab0 AS cor0
----
-1124
-1254
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL - ( + + COUNT( * ) ) + + 44 FROM tab2 cor0
----
41

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - ( + + COUNT ( * ) ) + + 44 FROM tab2 cor0
----
41

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2519
SELECT ALL + COUNT( * ) DIV + - ( + - 21 ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL + COUNT ( * ) / + - ( + - 21 ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT - - col2 DIV + col0 + col2 AS col1 FROM tab0 AS cor0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-2521
SELECT - - col2 / + col0 + col2 AS col1 FROM tab0 AS cor0
----
10
100
50

query I rowsort
SELECT 14 * + 53 AS col1 FROM tab2
----
742
742
742

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 + + 62 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT COUNT( ALL + col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2524
SELECT COUNT ( ALL + col1 ) col1 FROM tab1
----
3

query I rowsort
SELECT ALL 87 + - + col1 FROM tab0
----
6
66
86

query I rowsort
SELECT + col2 - + + col1 AS col0 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT DISTINCT + col2 * col0 * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col1 * col1 * 74 * + + 78 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT + col2 * col0 * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col1 * col1 * 74 * + + 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 71 + - col1 FROM tab2
----
-6
20
4

query I rowsort
SELECT 40 * 44 * + + 49 - + col0 - ( - - 36 ) * ( + col2 ) - col2 FROM tab2
----
84019
84696
85343

query I rowsort
SELECT ALL - col1 * - + 84 * - col2 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - COUNT( + col1 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - COUNT ( + col1 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT - COUNT( * ) * + - 48 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-2532
SELECT - COUNT ( * ) * + - 48 FROM tab0 AS cor0
----
144

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 65 * col2 * - - col0 + ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 47, - 99 AS col2 FROM tab0 cor0
----
47
-99
47
-99
47
-99

query I rowsort
SELECT col2 * 59 AS col1 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 * - col1, col2 * - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT + COUNT( * ) * + 21 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 / + + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT + COUNT ( * ) * + 21 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 / + + 51 )
----
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - - col1 AND + + 64
----
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT + col0 * 40 DIV - col1 AS col2 FROM tab2 cor0
----
-33
-36
-44

skipif mysql # not compatible
query I rowsort label-2539
SELECT + col0 * 40 / - col1 AS col2 FROM tab2 cor0
----
-33
-36
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT + + 21 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT + + 21 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 70 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
182070
505750
579670

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( col0 ) IN ( + ( - col0 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( + col0 )
----

query I rowsort
SELECT DISTINCT - - 30 AS col1 FROM tab0 WHERE + col1 * 37 + col2 + - col2 IS NOT NULL
----
30

query I rowsort
SELECT + - col0 + - + 45 FROM tab0 WHERE NOT NULL BETWEEN - 44 * - - 65 - - 76 AND NULL
----

query II rowsort
SELECT ALL - 52 + - col0 * col0 + col0 + + 10 AS col1, + col0 FROM tab1
----
-2592
51
-7182
85
-8232
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT ALL - col0 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL - col0 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT - MAX( ALL + ( - + col0 ) ) + + 78 AS col1 FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-2548
SELECT - MAX ( ALL + ( - + col0 ) ) + + 78 AS col1 FROM tab0 cor0
----
93

query I rowsort
SELECT + - col2 + + col2 + - 27 * + 48 * + col2 + - 34 FROM tab0 cor0
----
-128338
-12994
-60946

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 31 BETWEEN - + col2 * + col1 + col0 AND ( - 75 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT - - col2 DIV - col1 + 54 + - 60 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-2551
SELECT - - col2 / - col1 + 54 + - 60 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL + + COUNT( + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + + COUNT ( + col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col0 * - col1 * - 98 + + - col2 AS col0 FROM tab1 AS cor0
----
41591
419078
69876

query I rowsort
SELECT - + col0 + + col2 - - col2 * col0 FROM tab0 AS cor0
----
737
793
9605

query I rowsort
SELECT - + 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - + MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2556
SELECT - + MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT DISTINCT + col2 + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT + col2 + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 - + + 42 col2 FROM tab2 cor0
----
-114
-114
-114

query I rowsort
SELECT DISTINCT + col2 * - + 80 - col1 FROM tab0 cor0
----
-3841
-7921
-821

query I rowsort
SELECT 7 + - 57 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2561
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2561
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT col0 - - col1 * + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
10047
201110
2210

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + - 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col0 col0, + col1 AS col0 FROM tab0
----
108
21
96
81
98
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0 WHERE + col1 = ( NULL )
----

query II rowsort
SELECT ALL - 19 + + - col2, col1 FROM tab0
----
-118
1
-29
21
-66
81

query I rowsort
SELECT + 81 AS col1 FROM tab0 WHERE NOT - col2 + col2 * + ( + - col0 ) IS NULL
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2568
SELECT DISTINCT + - COUNT( * ) + COUNT( * ) col1 FROM tab0 AS cor0 WHERE 12 <= CAST( - 55 AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2568
SELECT DISTINCT + - COUNT ( * ) + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE 12 <= CAST ( - 55 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT 28 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
252

skipif mysql # not compatible
query I rowsort label-2569
SELECT 28 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT - col2 DIV - - col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - col2 / - - col0 FROM tab1 AS cor0
----
-1
0

query II rowsort
SELECT ALL - + col2, + 6 AS col1 FROM tab2 AS cor0
----
-23
6
-40
6
-58
6

onlyif mysql # DIV for integer division: 
query II rowsort label-2572
SELECT - col2 * - + 26 + - 97 AS col0, - col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
1411
0
501
0
943
0

skipif mysql # not compatible
query II rowsort label-2572
SELECT - col2 * - + 26 + - 97 AS col0, - col2 / - col1 AS col2 FROM tab2 AS cor0
----
1411
0
501
0
943
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT 52 * + COUNT( * ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2573
SELECT 52 * + COUNT ( * ) FROM tab2 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + - col2 + + 3 <> - + col1 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL - 65 * - + 82 + SUM( ALL - 56 ) FROM tab2 AS cor0
----
5162

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - 65 * - + 82 + SUM ( ALL - 56 ) FROM tab2 AS cor0
----
5162

query I rowsort
SELECT 74 + 68 FROM tab2
----
142
142
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL 93 + + SUM( - col1 ) * - 51 * - ( + - 45 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL 93 + + SUM ( - col1 ) * - 51 * - ( + - 45 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT DISTINCT + MAX( - col1 ) col2 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2579
SELECT DISTINCT + MAX ( - col1 ) col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT MIN( + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2580
SELECT MIN ( + col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2581
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE - + ( - 85 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( - col1, ( - col1 ) + - - col2, - - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - + 98 ) + - col1 NOT BETWEEN NULL AND col2
----
85
5
59

query I rowsort
SELECT + col0 * - 61 + col1 AS col1 FROM tab1 cor0
----
-3097
-5180
-5504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT ALL 27 * + CAST( + col0 AS SIGNED ) FROM tab0
----
2349
2619
405

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL 27 * + CAST ( + col0 AS INTEGER ) FROM tab0
----
2349
2619
405

query I rowsort
SELECT - 47 + col0 + + + col0 FROM tab2
----
103
45
81

query I rowsort
SELECT + col0 + - 12 FROM tab1 AS cor0
----
39
73
79

query II rowsort
SELECT + + 96, + col1 * + col1 + + col1 * 78 AS col0 FROM tab2 AS cor0
----
96
11935
96
6579
96
9715

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT DISTINCT col2 - + CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT col2 - + CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2592
SELECT ALL - + CAST( + + SUM( ALL - 44 ) AS SIGNED ) - + COUNT( * ) FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - + CAST ( + + SUM ( ALL - 44 ) AS INTEGER ) - + COUNT ( * ) FROM tab1 AS cor0
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-2593
SELECT DISTINCT - 30 - + 50 DIV - col0 + + + 15 - + 64 + - - 51 AS col1 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT - 30 - + 50 / - col0 + + + 15 - + 64 + - - 51 AS col1 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT DISTINCT - 0 - col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2595
SELECT ALL - COUNT( * ) * 40 AS col1, COUNT( * ) AS col1 FROM tab1
----
-120
3

skipif mysql # not compatible
query II rowsort label-2595
SELECT ALL - COUNT ( * ) * 40 AS col1, COUNT ( * ) AS col1 FROM tab1
----
-120
3

query II rowsort
SELECT 6 - - + col1, 69 * - 59 + - col0 AS col0 FROM tab2
----
57
-4117
73
-4146
83
-4135

query I rowsort
SELECT DISTINCT + 80 * - - 70 FROM tab0
----
5600

query I rowsort
SELECT - 78 * - col0 AS col1 FROM tab0
----
1170
6786
7566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + - col0 <= + CAST( + + 13 AS SIGNED ) + 0
----

skipif mysql # not compatible
query I rowsort label-2599
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + - col0 <= + CAST ( + + 13 AS INTEGER ) + 0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT + MAX( DISTINCT - + col2 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT + MAX ( DISTINCT - + col2 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT - COUNT( * ) * - - MAX( col0 ) * - - 50 + - 58 FROM tab0
----
-14608

skipif mysql # not compatible
query I rowsort label-2601
SELECT - COUNT ( * ) * - - MAX ( col0 ) * - - 50 + - 58 FROM tab0
----
-14608

query II rowsort
SELECT col0 AS col1, - 64 * - - col0 + - - 7 FROM tab1
----
51
-3257
85
-5433
91
-5817

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT DISTINCT + COUNT( * ), 24 AS col2 FROM tab2
----
3
24

skipif mysql # not compatible
query II rowsort label-2603
SELECT DISTINCT + COUNT ( * ), 24 AS col2 FROM tab2
----
3
24

query II rowsort
SELECT DISTINCT 5 AS col2, 78 FROM tab1
----
5
78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 18 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col2, col2 * - col2 * + col1 * 68 * - + col1 AS col0 FROM tab2 AS cor0
----
23
93563172
40
645075200
58
1026867728

query II rowsort
SELECT 59 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
59
15
59
87
59
97

query I rowsort
SELECT DISTINCT 80 FROM tab0 AS cor0 WHERE - 14 IS NULL
----

query I rowsort
SELECT ALL + + col1 * - + col0 + - col2 * + col0 * - 15 AS col1 FROM tab2 AS cor0
----
13524
33472
60225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2610
SELECT DISTINCT + CAST( + + 76 AS DECIMAL ) * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + CAST ( + + 76 AS REAL ) * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL < 60
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col0 + col2 + - - 47
----

query I rowsort
SELECT DISTINCT - col1 * - + col2 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT + ( col1 ) * col0, col2 + - col2 AS col2 FROM tab2 AS cor0
----
2346
0
4928
0
5025
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT DISTINCT - SUM( ALL - - col1 ) * 12 AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2340
3

skipif mysql # not compatible
query II rowsort label-2615
SELECT DISTINCT - SUM ( ALL - - col1 ) * 12 AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2340
3

query I rowsort
SELECT DISTINCT + - 69 * - col2 AS col2 FROM tab1 AS cor0
----
4071
4692
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT COUNT( * ) * - - ( + COUNT( * ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2617
SELECT COUNT ( * ) * - - ( + COUNT ( * ) ) FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2618
SELECT + col2 DIV + 4 AS col0 FROM tab0
----
11
2
24

skipif mysql # not compatible
query I rowsort label-2618
SELECT + col2 / + 4 AS col0 FROM tab0
----
11
2
24

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2619
SELECT * FROM tab2 WHERE CAST( NULL AS DECIMAL ) + + 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2619
SELECT * FROM tab2 WHERE CAST ( NULL AS REAL ) + + 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0 WHERE ( - + 19 + + col0 ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 2 / - 25 IS NOT NULL
----

query I rowsort
SELECT + 51 * + ( 28 ) AS col0 FROM tab0 AS cor0
----
1428
1428
1428

query I rowsort
SELECT ALL + + col0 * col2 * - col1 AS col1 FROM tab2 cor0
----
-197120
-291450
-53958

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT IN ( - + col0 * - - col0 + - col2 + - 7, - 6 / + + ( + - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + 29 ) + - col0 AS col2 FROM tab2
----
-17
-35
-46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 - - 36 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col2 + + col2 <> ( - - ( col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - col2 AS col1 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT ALL - 52 - col2 AS col2 FROM tab2 AS cor0
----
-110
-75
-92

query I rowsort
SELECT - col0 * 31 + + - col2 AS col1 FROM tab2 AS cor0
----
-1449
-2024
-2383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT ALL + 48 / col2 + + col1 AS col2 FROM tab2 cor0 WHERE col1 + + col2 / + - 50 + CAST( NULL AS SIGNED ) + - - 68 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + 48 / col2 + + col1 AS col2 FROM tab2 cor0 WHERE col1 + + col2 / + - 50 + CAST ( NULL AS INTEGER ) + - - 68 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 17 - + + 46 FROM tab2 AS cor0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT col1 DIV col2 + - - col1 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-2633
SELECT col1 / col2 + - - col1 FROM tab2 AS cor0
----
53
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL - 83 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - 83 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT - col1 DIV + - 77 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2635
SELECT - col1 / + - 77 AS col1 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col2 FROM tab2
----
-34
-34
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2637
SELECT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) / + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2639
SELECT - COUNT( * ) DIV - - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2639
SELECT - COUNT ( * ) / - - COUNT ( * ) FROM tab2
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) NOT BETWEEN NULL AND 26
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 25 * col2 IS NOT NULL
----

query II rowsort
SELECT ALL col1, 83 FROM tab2
----
51
83
67
83
77
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - + col0 * + + col1
----

query I rowsort
SELECT ALL - 39 * - - col1 + + col0 FROM tab1 AS cor0
----
-110
-1742
-495

query I rowsort
SELECT ALL + - col2 * + col0 * 86 AS col2 FROM tab0 AS cor0
----
-60630
-74820
-825858

query I rowsort
SELECT + 26 + + 99 * + col2 FROM tab2 AS cor0
----
2303
3986
5768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2647
SELECT 95 * 71 + 24 + - CAST( - - 35 AS SIGNED ) * - - col0 / col0 + col0 / - + 67 / - + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2647
SELECT 95 * 71 + 24 + - CAST ( - - 35 AS INTEGER ) * - - col0 / col0 + col0 / - + 67 / - + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 WHERE NULL < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL col0 + - - 29 + - - col1 * + + ( - col0 ) + + col0 + CAST( 64 AS SIGNED ) - + - 18 * + col0 FROM tab2
----
-1333
-3432
-3555

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL col0 + - - 29 + - - col1 * + + ( - col0 ) + + col0 + CAST ( 64 AS INTEGER ) - + - 18 * + col0 FROM tab2
----
-1333
-3432
-3555

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT - MIN( 95 ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-2650
SELECT - MIN ( 95 ) FROM tab1
----
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL < - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ( + - COUNT( * ) ) + + - MIN( - col1 ) + COUNT( * ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2652
SELECT ( + - COUNT ( * ) ) + + - MIN ( - col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + - 48 AS col0 FROM tab0 cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL - 6 - COUNT( ALL col1 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - 6 - COUNT ( ALL col1 ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT col0 + - ( + + col1 ) FROM tab0
----
-66
66
96

query II rowsort
SELECT - col0, + ( - col0 ) AS col2 FROM tab0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT DISTINCT - col1 * + col1 * 34 FROM tab2 AS cor0
----
-152626
-201586
-88434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT ALL - - col1 * col0 + CAST( - 7 AS SIGNED ) FROM tab1 AS cor0
----
418
4270
707

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - - col1 * col0 + CAST ( - 7 AS INTEGER ) FROM tab1 AS cor0
----
418
4270
707

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT ALL - col1 DIV col2 * - - col2 - col1 * - - col1 AS col1 FROM tab0 cor0
----
-1
-461
-6608

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - col1 / col2 * - - col2 - col1 * - - col1 AS col1 FROM tab0 cor0
----
-1
-461
-6608

query I rowsort
SELECT DISTINCT + + 14 AS col2 FROM tab0 cor0
----
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 23 / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + col0 AS col1, + 8 AS col2 FROM tab0 AS cor0
----
-15
8
-87
8
-97
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 31 * + + 56 col1 FROM tab1 cor0
----
147560
157976
88536

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL COUNT( - - 46 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL COUNT ( - - 46 ) FROM tab0
----
3

query I rowsort
SELECT ALL + 84 * + + 46 FROM tab2
----
3864
3864
3864

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - ( + col0 ) AS col2, col2 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT COUNT( * ) * + COUNT( DISTINCT col0 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2668
SELECT COUNT ( * ) * + COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE - 31 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ALL + 35 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + 35 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-105

query I rowsort
SELECT - 21 + - ( + col2 ) + - col2 FROM tab0 AS cor0
----
-115
-219
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-2672
SELECT - col2, + col0 + + - col0 DIV + 54 col2 FROM tab1
----
-59
84
-68
90
-96
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2672
SELECT - col2, + col0 + + - col0 / + 54 col2 FROM tab1
----
-59
84
-68
90
-96
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2673
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL 59 + + COUNT( ALL - ( + col1 ) ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL 59 + + COUNT ( ALL - ( + col1 ) ) FROM tab1
----
62

query I rowsort
SELECT DISTINCT - col2 + col1 * - 7 FROM tab1 AS cor0
----
-194
-397
-94

query I rowsort
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT + ( col1 ) * - - col2 * 6 AS col0 FROM tab2 AS cor0 WHERE ( NOT + ( - col0 ) >= + 13 * + col1 + + col2 + + + col1 + + 56 )
----
18480
23316
7038

query I rowsort
SELECT ALL + col0 + + - col2 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 * - ( + + col2 ) ) < col1 + - - col2 * + col2
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE + 72 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT - - COUNT( * ) * + COUNT( * ) * + - COUNT( + col0 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2682
SELECT - - COUNT ( * ) * + COUNT ( * ) * + - COUNT ( + col0 ) FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL + + 9 * + COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + + 9 * + COUNT ( * ) FROM tab2 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2684
SELECT DISTINCT + + 10 DIV col0 * col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + + 10 / col0 * col2 AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 34 col0 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT + 37 * - col2 + - - 0 DIV - - 10 * - 60 + - + 35 AS col1 FROM tab1
----
-2218
-2551
-3587

skipif mysql # not compatible
query I rowsort label-2686
SELECT + 37 * - col2 + - - 0 / - - 10 * - 60 + - + 35 AS col1 FROM tab1
----
-2218
-2551
-3587

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * col1 + col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 + 24 = NULL
----

query I rowsort
SELECT ALL - col0 * - - col0 * col2 + - ( - col2 ) FROM tab0
----
-10528
-75680
-931392

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT COUNT( DISTINCT - 81 ) + 57 AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2690
SELECT COUNT ( DISTINCT - 81 ) + 57 AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT DISTINCT MIN( DISTINCT - col2 ) + - + 11 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT MIN ( DISTINCT - col2 ) + - + 11 FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT MAX( ALL - 53 ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-2692
SELECT MAX ( ALL - 53 ) FROM tab2 AS cor0
----
-53

query I rowsort
SELECT + 57 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ( + col2 ) AS col0, - 56 FROM tab0 AS cor0
----
10
-56
47
-56
99
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * + + col1 + 52 - - 91 col1 FROM tab2 AS cor0
----
1316
3223
4029

query II rowsort
SELECT DISTINCT + 47 AS col2, 75 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
47
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT - COUNT( * ) * - ( + 3 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2698
SELECT - COUNT ( * ) * - ( + 3 ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - SUM( DISTINCT + - 47 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2699
SELECT - SUM ( DISTINCT + - 47 ) FROM tab2 AS cor0
----
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 14 * - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT DISTINCT col1 DIV + 84 + col2 * 25 FROM tab2 AS cor0
----
1000
1450
575

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT col1 / + 84 + col2 * 25 FROM tab2 AS cor0
----
1000
1450
575

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2702
SELECT ALL col2 * + CAST( NULL AS SIGNED ), - ( - col0 ) + col0 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2702
SELECT ALL col2 * + CAST ( NULL AS INTEGER ), - ( - col0 ) + col0 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query II rowsort label-2703
SELECT DISTINCT + 58 DIV + 81 AS col0, col0 * 77 FROM tab2 AS cor0
----
0
3542
0
4928
0
5775

skipif mysql # not compatible
query II rowsort label-2703
SELECT DISTINCT + 58 / + 81 AS col0, col0 * 77 FROM tab2 AS cor0
----
0
3542
0
4928
0
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT + + 6 + + 4 + + 5 * - MIN( ALL 81 ) col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) - + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2704
SELECT + + 6 + + 4 + + 5 * - MIN ( ALL 81 ) col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) - + - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT - SUM( 26 ) AS col1 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2705
SELECT - SUM ( 26 ) AS col1 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2706
SELECT COUNT( + col0 ), COUNT( * ) AS col0 FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2706
SELECT COUNT ( + col0 ), COUNT ( * ) AS col0 FROM tab2 cor0
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 39 / + col2 + - - col0 <= - 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 51 ) col2 FROM tab0
----
51
51
51

query I rowsort
SELECT 13 * - col0 AS col0 FROM tab0
----
-1131
-1261
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2710
SELECT SUM( DISTINCT + CAST( + 65 AS SIGNED ) ) * - 72 + - 36 * + MAX( - col2 ) FROM tab0
----
-4320

skipif mysql # not compatible
query I rowsort label-2710
SELECT SUM ( DISTINCT + CAST ( + 65 AS INTEGER ) ) * - 72 + - 36 * + MAX ( - col2 ) FROM tab0
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT + AVG ( DISTINCT + 64 ) * + + COUNT( * ) AS col0 FROM tab0 WHERE NOT + - col2 * - 9 * + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT + AVG ( DISTINCT + 64 ) * + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT + - col2 * - 9 * + + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2712
SELECT DISTINCT COUNT( * ) DIV - 21 AS col1 FROM tab0 cor0 WHERE NOT ( + col0 = + col0 * - - 33 + + ( col1 ) + + col2 + 1 )
----
0

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT COUNT ( * ) / - 21 AS col1 FROM tab0 cor0 WHERE NOT ( + col0 = + col0 * - - 33 + + ( col1 ) + + col2 + 1 )
----
0

query II rowsort
SELECT - - 1 AS col0, 42 + col2 FROM tab0 AS cor0
----
1
141
1
52
1
89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + - 64 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT - MAX( ALL + + col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2716
SELECT - MAX ( ALL + + col0 ) AS col0 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - COUNT( * ) + + SUM( DISTINCT - col2 ) AS col0 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-2717
SELECT - COUNT ( * ) + + SUM ( DISTINCT - col2 ) AS col0 FROM tab0
----
-159

query I rowsort
SELECT + col0 + + 11 FROM tab0
----
108
26
98

query III rowsort
SELECT ALL * FROM tab2 WHERE - 59 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE 48 NOT IN ( + col1 * col0 * - col0, - col0 * - - 54 + col2, col1 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 + + 50, col0 FROM tab1 AS cor0
----
109
85
118
91
146
51

query I rowsort
SELECT - 72 + col0 * - 58 FROM tab0 cor0
----
-5118
-5698
-942

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 96 * + 72 + + col1 * - 16 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - col1 * - 62 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT DISTINCT + COUNT( DISTINCT - 12 ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-2725
SELECT DISTINCT + COUNT ( DISTINCT - 12 ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT + CAST( - col1 AS SIGNED ) * + + col2 * + col0 / - - 78 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT + CAST ( - col1 AS INTEGER ) * + + col2 * + col0 / - - 78 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT 4 DIV + ( - col0 ) * col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2727
SELECT 4 / + ( - col0 ) * col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( + 69 ) - - col0 * - col0 FROM tab2
----
-2047
-4027
-5556

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT COUNT( * ) - + SUM( ALL - col2 ) AS col0 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-2729
SELECT COUNT ( * ) - + SUM ( ALL - col2 ) AS col0 FROM tab0
----
159

query I rowsort
SELECT DISTINCT - ( + col2 ) - 78 + - col0 AS col0 FROM tab2
----
-147
-182
-211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT DISTINCT - 81 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT - 81 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR NOT + 83 * col1 + + col2 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 88 * + 72 AS col2 FROM tab2 AS cor0
----
6336
6336
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT - SUM( DISTINCT col0 ) * + 23 AS col2 FROM tab2 AS cor0
----
-4255

skipif mysql # not compatible
query I rowsort label-2734
SELECT - SUM ( DISTINCT col0 ) * + 23 AS col2 FROM tab2 AS cor0
----
-4255

query II rowsort
SELECT - col2, - col2 AS col2 FROM tab0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT MIN( - + col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2736
SELECT MIN ( - + col0 ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT - COUNT( * ) * + 60 AS col2 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT - COUNT ( * ) * + 60 AS col2 FROM tab0
----
-180

query I rowsort
SELECT 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT + col2 DIV + col0 + - 4 + col2 + + 24 + - col1 FROM tab0 AS cor0
----
-11
119
9

skipif mysql # not compatible
query I rowsort label-2739
SELECT + col2 / + col0 + - 4 + col2 + + 24 + - col1 FROM tab0 AS cor0
----
-11
119
9

query II rowsort
SELECT ALL col1, - col0 * 46 * 31 AS col0 FROM tab0 AS cor0
----
1
-138322
21
-124062
81
-21390

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + + COUNT( + + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2741
SELECT + + COUNT ( + + col2 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + + col1 AS col2, col0 * + ( 94 ) AS col2 FROM tab2 AS cor0
----
51
4324
67
7050
77
6016

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 83 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT COUNT( * ) * 25 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT COUNT ( * ) * 25 FROM tab0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT DISTINCT + col0 DIV 58 * 96 FROM tab2
----
0
96

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + col0 / 58 * 96 FROM tab2
----
0
96

query I rowsort
SELECT - col2 * + 98 * - col0 AS col0 FROM tab2
----
103684
250880
426300

query I rowsort
SELECT ALL + col1 * + 5 AS col0 FROM tab0
----
105
405
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL + MAX( 78 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL + MAX ( 78 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 78 + + + col1 FROM tab0
----
159
79
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + + 49 AS col0 FROM tab1 AS cor0
----
108
117
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - 33 col0 FROM tab2
----
23
-33
40
-33
58
-33

query I rowsort
SELECT ALL 51 * + col0 AS col1 FROM tab1
----
2601
4335
4641

query I rowsort
SELECT ALL - col1 + - 97 FROM tab1
----
-102
-111
-144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2755
SELECT * FROM tab1 AS cor0 WHERE - CAST( + col2 AS SIGNED ) - + col0 * - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2755
SELECT * FROM tab1 AS cor0 WHERE - CAST ( + col2 AS INTEGER ) - + col0 * - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT + 41 * 85 + + - ( - + 62 ) + - MAX( - 67 ) AS col0 FROM tab2 AS cor0
----
3614

skipif mysql # not compatible
query I rowsort label-2756
SELECT + 41 * 85 + + - ( - + 62 ) + - MAX ( - 67 ) AS col0 FROM tab2 AS cor0
----
3614

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2757
SELECT DISTINCT - col1 + - ( - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT - col1 + - ( - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 77 col1 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ALL - 43 - - col1 FROM tab0 AS cor0
----
-22
-42
38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 59 * + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - - col2, - col1 * - + col1, col0 )
----

query I rowsort
SELECT ALL + ( 42 ) + - 54 AS col1 FROM tab2
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT - AVG ( ALL + + CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2763
SELECT - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL + COUNT( * ) * + MAX( + col1 ) + - - COUNT( ALL col1 ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL + COUNT ( * ) * + MAX ( + col1 ) + - - COUNT ( ALL col1 ) FROM tab1
----
144

query I rowsort
SELECT ALL 23 - + col1 + 50 AS col1 FROM tab0
----
-8
52
72

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 10 * - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT ALL CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT DISTINCT + col1 + ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0 WHERE col0 * + + col1 > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT + col1 + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 WHERE col0 * + + col1 > ( NULL )
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col2 AND col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN - col2 AND - - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT + MIN( ALL + 26 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
26

skipif mysql # not compatible
query I rowsort label-2773
SELECT + MIN ( ALL + 26 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT + MIN( + - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2774
SELECT + MIN ( + - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2775
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - + col0 AS SIGNED ) * CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2775
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - + col0 AS INTEGER ) * CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 * - 94 col2 FROM tab1 AS cor0
----
-4042
-4042
-4042

query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2778
SELECT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT + col1 * col1 <= + 83
----
0

skipif mysql # not compatible
query I rowsort label-2778
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT + col1 * col1 <= + 83
----
0

query I rowsort
SELECT DISTINCT + + 75 * ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-3825
-5025
-5775

query I rowsort
SELECT ALL + col1 * - - col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 59 * - + 92 NOT IN ( col1 )
----

query I rowsort
SELECT ALL + col2 * + + 98 * ( 47 ) FROM tab2
----
105938
184240
267148

query I rowsort
SELECT ALL - ( ( + 67 ) ) AS col1 FROM tab1
----
-67
-67
-67

query II rowsort
SELECT ALL col1, + col1 * - col2 FROM tab0
----
1
-99
21
-210
81
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT MAX( ALL - + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT MAX ( ALL - + col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NOT 29 < - - 60
----
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT 29 < - - 60
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2787
SELECT ALL - col2 + + + CAST( + col2 AS SIGNED ) * + + col2 AS col1 FROM tab2
----
1560
3306
506

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - col2 + + + CAST ( + col2 AS INTEGER ) * + + col2 AS col1 FROM tab2
----
1560
3306
506

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT + col1 + + + 54 DIV - + 63 AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2788
SELECT + col1 + + + 54 / - + 63 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT col0 * - ( + 33 ) + col2 + col2 FROM tab0 cor0
----
-2851
-3003
-401

query I rowsort
SELECT DISTINCT + + col0 + + 99 AS col2 FROM tab1 AS cor0
----
150
184
190

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-2791
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= col0
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE + col0 * - - col1 / + ( - + col2 ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT + COUNT( ALL ( + + col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT + COUNT ( ALL ( + + col1 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2795
SELECT ALL + + 41 - COUNT( * ), - ( - 70 ) * 21 AS col0 FROM tab1 AS cor0
----
38
1470

skipif mysql # not compatible
query II rowsort label-2795
SELECT ALL + + 41 - COUNT ( * ), - ( - 70 ) * 21 AS col0 FROM tab1 AS cor0
----
38
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL 49 + COUNT( * ) AS col1 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL 49 + COUNT ( * ) AS col1 FROM tab2
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * - 40 - + col1 + col0 col1 FROM tab0
----
-1424
-1454
-1586

query I rowsort
SELECT col2 - + - col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL COUNT( DISTINCT - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL COUNT ( DISTINCT - col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - col2 - - - col2 AS col0 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT - 48 - + 96 AS col1 FROM tab0
----
-144
-144
-144

query II rowsort
SELECT DISTINCT + 9, col1 FROM tab2
----
9
51
9
67
9
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IS NOT NULL OR col2 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 34 col1 FROM tab0 AS cor0
----
-34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 84 NOT BETWEEN NULL AND + 27
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * + col0 col2 FROM tab1 AS cor0
----
4641
7735
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT + CAST( - - col2 AS SIGNED ) FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2808
SELECT + CAST ( - - col2 AS INTEGER ) FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT - + COUNT( * ) * + MAX( + + col2 ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2809
SELECT - + COUNT ( * ) * + MAX ( + + col2 ) FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - MAX( + 37 ) col2 FROM tab0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2810
SELECT - MAX ( + 37 ) col2 FROM tab0
----
-37

query I rowsort
SELECT ALL 6 + + - 47 AS col1 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT ALL + col1 + ( + 94 ) * - + col2 FROM tab0
----
-4337
-919
-9305

query I rowsort
SELECT DISTINCT + col0 + + col1 FROM tab0 WHERE + - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT DISTINCT + 25 DIV + COUNT( * ) + + 32 AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT + 25 / + COUNT ( * ) + + 32 AS col2 FROM tab0
----
40

query I rowsort
SELECT DISTINCT + col2 + + col2 + - col0 + - col0 + col0 AS col0 FROM tab2
----
0
16
41

query I rowsort
SELECT DISTINCT + col1 + col0 * + col0 FROM tab2 WHERE NOT - col2 < - 2 + + - 48
----
2167
4173

query III rowsort
SELECT * FROM tab1 WHERE NULL = - - 29
----

query I rowsort
SELECT ALL + 61 + 55 AS col2 FROM tab1 cor0
----
116
116
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT DISTINCT + COUNT( DISTINCT 93 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT + COUNT ( DISTINCT 93 ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 - - - col1 + + + 28 * + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL COUNT( * ) - + ( - 69 ) col0 FROM tab2
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2821
SELECT ALL COUNT ( * ) - + ( - 69 ) col0 FROM tab2
----
72

query I rowsort
SELECT ALL + col0 + + col1 - - col0 AS col2 FROM tab2 AS cor0
----
143
205
217

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE - col0 - 60 > + + 12 AND NOT + 19 IS NOT NULL
----

query I rowsort
SELECT - - col2 - + - ( - - 81 ) FROM tab1 AS cor0
----
140
149
177

query I rowsort
SELECT + 77 - col0 + - - col1 AS col1 FROM tab2 AS cor0
----
69
82
90

query I rowsort
SELECT ALL - 10 * + 10 * - - col1 + col1 * - col1 FROM tab2 AS cor0
----
-11189
-13629
-7701

query II rowsort
SELECT + + col0 + - 85 + - ( col1 ), col0 AS col0 FROM tab2 AS cor0
----
-77
75
-90
46
-98
64

query II rowsort
SELECT ALL + col1, col0 - col0 FROM tab0 AS cor0
----
1
0
21
0
81
0

query I rowsort
SELECT - 87 + - col1 * - + col0 FROM tab1 AS cor0
----
338
4190
627

query I rowsort
SELECT col0 * + col0 + 69 AS col2 FROM tab1 AS cor0
----
2670
7294
8350

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + + COUNT( * ) + ( - 73 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + ( + - col2 ) AND NULL
----
-73

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + + COUNT ( * ) + ( - 73 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + ( + - col2 ) AND NULL
----
-73

query I rowsort
SELECT DISTINCT + col0 - - 70 FROM tab2 AS cor0
----
116
134
145

onlyif mysql # aggregate syntax: 
query II rowsort label-2833
SELECT ALL - COUNT( * ) AS col0, + 34 AS col2 FROM tab1 AS cor0
----
-3
34

skipif mysql # not compatible
query II rowsort label-2833
SELECT ALL - COUNT ( * ) AS col0, + 34 AS col2 FROM tab1 AS cor0
----
-3
34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 45 / - - col1 IS NULL
----

query I rowsort
SELECT ALL - - 56 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 85 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT DISTINCT col0 * + col1 * + + CAST( - 89 AS SIGNED ) FROM tab0 WHERE NOT + 87 + + col2 IS NULL
----
-108135
-162603
-8633

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT col0 * + col1 * + + CAST ( - 89 AS INTEGER ) FROM tab0 WHERE NOT + 87 + + col2 IS NULL
----
-108135
-162603
-8633

query I rowsort
SELECT DISTINCT ( + 77 ) FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( ( NOT + ( col2 ) * col2 IS NOT NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-2839
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( ( NOT + ( col2 ) * col2 IS NOT NULL ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL + MIN( ALL col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL + MIN ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT + + col1 * + + col1 + + + 93 * - col1 + col2 FROM tab2 WHERE NULL IS NULL
----
-1192
-1684
-2119

query I rowsort
SELECT col1 * - 0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + + 58 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT NULL >= NULL )
----

query II rowsort
SELECT + col2 + + col1 - - col1 AS col2, ( + col0 ) * - - 23 AS col2 FROM tab2 AS cor0
----
125
1058
192
1725
194
1472

query I rowsort
SELECT + col2 + + col0 * - col0 + - + 51 * - col2 FROM tab0 AS cor0
----
-4261
-7049
2219

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 44 + + - 17 + - 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2848
SELECT * FROM tab0 WHERE - + col2 + + col2 / CAST( NULL AS SIGNED ) > - - 83 / + + col2
----

skipif mysql # not compatible
query III rowsort label-2848
SELECT * FROM tab0 WHERE - + col2 + + col2 / CAST ( NULL AS INTEGER ) > - - 83 / + + col2
----

query I rowsort
SELECT DISTINCT + ( - - 72 ) AS col2 FROM tab2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2850
SELECT ALL + col0 + col0 + + 81 + - 59 DIV col1 * + 90 AS col2 FROM tab0
----
-5035
111
75

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + col0 + col0 + + 81 + - 59 / col1 * + 90 AS col2 FROM tab0
----
-5035
111
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 20 + 56 + + col0 * - 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + 59 FROM tab0
----
140
60
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 8 <= + col2 + + col2
----

query I rowsort
SELECT + 34 + - + 96 - + + 37 FROM tab2
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2856
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3

query II rowsort
SELECT + 66 AS col0, col2 AS col2 FROM tab0 AS cor0
----
66
10
66
47
66
99

query II rowsort
SELECT - 97, col0 AS col1 FROM tab2 AS cor0 WHERE 29 IS NULL
----

query I rowsort
SELECT ALL 30 * + - 12 - - - col0 + - col2 - - - col1 AS col2 FROM tab2 AS cor0
----
-480
-541
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col1 FROM tab1 AS cor0
----
-93
-93
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2861
SELECT - + 78 * - col2 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT - + 78 * - col2 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0, - 88 + - col1 AS col1 FROM tab2
----
46
-139
64
-165
75
-155

query II rowsort
SELECT DISTINCT + col0 * - col2 AS col1, - 6 * + col2 FROM tab1
----
-4896
-576
-5015
-354
-6188
-408

query I rowsort
SELECT ALL - col2 * - + col2 * + col0 AS col0 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2865
SELECT 79 DIV - COUNT( ALL + + 31 ) AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-2865
SELECT 79 / - COUNT ( ALL + + 31 ) AS col1 FROM tab0
----
-26

query III rowsort
SELECT * FROM tab2 WHERE NOT + 15 <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * col0 col0, col2 AS col1 FROM tab2
----
1058
23
2560
40
4350
58

query I rowsort
SELECT + 47 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT - 50 FROM tab2 cor0 WHERE NOT col1 * - + col1 - + + col0 IS NULL
----
-50
-50
-50

query II rowsort
SELECT col0 AS col2, + col2 * col2 + + 69 FROM tab0 AS cor0
----
15
2278
87
169
97
9870

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL - 86 * + COUNT( ( col0 ) ) AS col0 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL - 86 * + COUNT ( ( col0 ) ) AS col0 FROM tab2
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2874
SELECT col2 DIV - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2874
SELECT col2 / - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 84
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT col1 * + - col0 * + + col2 * - 83 FROM tab2 AS cor0
----
16360960
24190350
4478514

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 <> - col1
----

query I rowsort
SELECT + col0 + + 14 AS col2 FROM tab1
----
105
65
99

query III rowsort
SELECT * FROM tab2 WHERE col0 * - col1 IS NULL
----

query I rowsort
SELECT ALL col1 - - - col0 AS col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT col0 + + 54 FROM tab0
----
141
151
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2883
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2883
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT col0 * ( col1 ) + col1 FROM tab2
----
2397
5005
5092

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( 15 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT 62 DIV col0 col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2886
SELECT 62 / col0 col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - 46 + col2 AS col2 FROM tab2
----
-23
-6
12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + col2 * ( + col2 ) )
----

query I rowsort
SELECT DISTINCT + 20 * col2 FROM tab0
----
1980
200
940

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( col1 )
----

query I rowsort
SELECT - 68 + col0 FROM tab2
----
-22
-4
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT + col0 DIV - 64 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT + col0 / - 64 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2895
SELECT MIN( DISTINCT col1 ) + AVG ( + CAST( NULL AS SIGNED ) + col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT MIN ( DISTINCT col1 ) + AVG ( + CAST ( NULL AS INTEGER ) + col0 ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2896
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-2896
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT MIN( + col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2897
SELECT MIN ( + col2 ) col0 FROM tab2
----
23

query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab2
----
48

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT ( COUNT( * ) ) col2 FROM tab1 WHERE NOT ( 35 ) = ( + col1 / 97 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2900
SELECT DISTINCT ( COUNT ( * ) ) col2 FROM tab1 WHERE NOT ( 35 ) = ( + col1 / 97 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 col2 FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
21
54
82

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2902
SELECT DISTINCT * FROM tab1 WHERE NOT col1 = ( + 19 * CAST( 49 * - col2 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2902
SELECT DISTINCT * FROM tab1 WHERE NOT col1 = ( + 19 * CAST ( 49 * - col2 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT SUM( ALL - col2 ) col1 FROM tab0 WHERE NOT 10 * + col1 BETWEEN - 97 AND 83
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2903
SELECT DISTINCT SUM ( ALL - col2 ) col1 FROM tab0 WHERE NOT 10 * + col1 BETWEEN - 97 AND 83
----
-57

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 18 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT MAX( - 37 ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT MAX ( - 37 ) FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT 32 + - COUNT( - col0 + ( - 97 ) ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-2906
SELECT 32 + - COUNT ( - col0 + ( - 97 ) ) FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IN ( 3 )
----
0

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IN ( 3 )
----
0

query I rowsort
SELECT ALL 93 * + col2 + + col2 FROM tab1
----
5546
6392
9024

query III rowsort
SELECT * FROM tab0 WHERE col1 * 69 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 NOT BETWEEN + col2 AND ( NULL )
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2912
SELECT COUNT( * ) DIV MAX( DISTINCT ( - ( col1 ) ) DIV - 81 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2912
SELECT COUNT ( * ) / MAX ( DISTINCT ( - ( col1 ) ) / - 81 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT DISTINCT COUNT( * ) * 67 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT COUNT ( * ) * 67 FROM tab0 AS cor0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL ( + COUNT( * ) ) * 97 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL ( + COUNT ( * ) ) * 97 FROM tab0 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT COUNT( ( + ( + ( col0 ) ) ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( - ( col2 ) ) AND col1 + 99
----
0

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT COUNT ( ( + ( + ( col0 ) ) ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( - ( col2 ) ) AND col1 + 99
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1 * - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT ALL + 46 * - COUNT( * ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL + 46 * - COUNT ( * ) FROM tab2 AS cor0
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2918
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS DECIMAL ) <> col2
----

skipif mysql # not compatible
query III rowsort label-2918
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS REAL ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL SUM( 74 ) FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL SUM ( 74 ) FROM tab1
----
222

query I rowsort
SELECT ALL 36 AS col1 FROM tab0 WHERE NOT NULL <> col0 * - 98 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 61 + col0 col2 FROM tab2 AS cor0
----
3157
4162
4761

query I rowsort
SELECT ALL + 19 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
19
19
19

query I rowsort
SELECT + col1 * 30 + + 56 FROM tab1 AS cor0
----
1466
206
476

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * 18 IN ( col1 - ( 49 + - col2 ) )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT ALL + - COUNT( * ) * 33 AS col2 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL + - COUNT ( * ) * 33 AS col2 FROM tab1 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN ( col0 ) AND NULL
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2928
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = - 48 * + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 20 NOT BETWEEN NULL AND - col0 * col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) BETWEEN - col2 AND ( 77 + col1 )
----

query I rowsort
SELECT col2 * - ( + 38 ) * col1 FROM tab0
----
-144666
-3762
-7980

query III rowsort
SELECT * FROM tab1 WHERE ( 52 + col0 ) <> col0 OR - col1 / col0 + + 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2934
SELECT * FROM tab2 WHERE ( 45 * 64 + + col0 ) IN ( 94 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2934
SELECT * FROM tab2 WHERE ( 45 * 64 + + col0 ) IN ( 94 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL

query I rowsort
SELECT - col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL ( COUNT( * ) ) FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND - 76
----
0

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL ( COUNT ( * ) ) FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND - 76
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - col0 + col0 ) OR NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT DISTINCT + - COUNT( * ) - - COUNT( * ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2939
SELECT DISTINCT + - COUNT ( * ) - - COUNT ( * ) col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT ALL ( + - col1 ) + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL ( + - col1 ) + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + 75 + col2 FROM tab1 AS cor0
----
3921
6434
6893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT ALL - - CAST( + + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT - col2 * - col2 + 83 DIV - col1 col0 FROM tab0 AS cor0
----
2208
97
9718

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2943
SELECT - col2 * - col2 + 83 / - col1 col0 FROM tab0 AS cor0
----
2208
97
9718

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 77 * - col1 )
----

query I rowsort
SELECT - col0 + - 51 AS col2 FROM tab2 AS cor0
----
-115
-126
-97

query II rowsort
SELECT 32 AS col1, ( 93 ) - col1 * + col2 FROM tab2
----
32
-1080
32
-2987
32
-3793

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + ( - + 30 ) / col1 + col1 ) NOT BETWEEN ( 4 * + col2 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 98 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 / col0 NOT IN ( - 43 + col0 ) OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2950
SELECT DISTINCT - 98 AS col1, ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-98
3

skipif mysql # not compatible
query II rowsort label-2950
SELECT DISTINCT - 98 AS col1, ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-98
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2951
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL + 23 * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + 23 * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL + col1 * + + col1 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
450
6486
910

query I rowsort
SELECT DISTINCT - + col2 * + - col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT 30 * COUNT( DISTINCT ( col0 ) ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-2955
SELECT 30 * COUNT ( DISTINCT ( col0 ) ) FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ( MAX( ALL - 60 ) ) * COUNT( * ) * + COUNT( * ) FROM tab0
----
-540

skipif mysql # not compatible
query I rowsort label-2956
SELECT ( MAX ( ALL - 60 ) ) * COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-540

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( - col1 ) <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) BETWEEN col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT MAX( DISTINCT 1 ) * - - SUM( - - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2959
SELECT MAX ( DISTINCT 1 ) * - - SUM ( - - col0 ) FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + col1 * + ( + col2 ) col2 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT MIN( DISTINCT col0 ) * - COUNT( * ) FROM tab2 WHERE NOT ( + 64 + - col2 * + 67 ) IN ( col2 * ( 27 ) )
----
-138

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT MIN ( DISTINCT col0 ) * - COUNT ( * ) FROM tab2 WHERE NOT ( + 64 + - col2 * + 67 ) IN ( col2 * ( 27 ) )
----
-138

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 24 ) >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT - COUNT( * ) * + MAX( DISTINCT - 65 ) FROM tab1 WHERE NOT ( + col1 - - col2 + 57 * - col2 * col2 ) = ( 78 / - 58 - 5 )
----
195

skipif mysql # not compatible
query I rowsort label-2963
SELECT - COUNT ( * ) * + MAX ( DISTINCT - 65 ) FROM tab1 WHERE NOT ( + col1 - - col2 + 57 * - col2 * col2 ) = ( 78 / - 58 - 5 )
----
195

query I rowsort
SELECT col2 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
118
136
192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 80 ) BETWEEN ( col2 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + + + col0 * + 34 AS col1 FROM tab2 AS cor0
----
1587
2216
2608

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT + col2 DIV + + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2967
SELECT + col2 / + + col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT SUM( DISTINCT - 22 ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-2968
SELECT SUM ( DISTINCT - 22 ) FROM tab0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT DISTINCT - CAST( + CAST( 22 AS SIGNED ) AS SIGNED ) + 21 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT - CAST ( + CAST ( 22 AS INTEGER ) AS INTEGER ) + 21 AS col1 FROM tab0
----
-1

query I rowsort
SELECT ALL 53 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL - 70 AS col2 FROM tab1 WHERE NOT ( 55 ) BETWEEN col1 AND - 49
----
-70
-70
-70

query II rowsort
SELECT - col0 AS col0, + ( + 43 ) FROM tab1 AS cor0
----
-51
43
-85
43
-91
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT ALL - CAST( + ( + - col0 ) AS SIGNED ) * - - 6 AS col0 FROM tab0 AS cor0
----
522
582
90

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL - CAST ( + ( + - col0 ) AS INTEGER ) * - - 6 AS col0 FROM tab0 AS cor0
----
522
582
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT - 9 * - 73 * - + 6 + + ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3939

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT - 9 * - 73 * - + 6 + + ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3939

query I rowsort
SELECT DISTINCT + - ( - - ( 89 ) ) * - + ( col0 ) FROM tab0 AS cor0
----
1335
7743
8633

query I rowsort
SELECT + 96 + - + ( + 87 ) FROM tab2 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT + 72 + + COUNT( * ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2977
SELECT + 72 + + COUNT ( * ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT DISTINCT + + 3 * - col0 + + + col1 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-240
21
-290
1
36
81

query I rowsort
SELECT - 81 + + 51 AS col2 FROM tab0
----
-30
-30
-30

query I rowsort
SELECT ALL col0 * 55 + - + 14 AS col0 FROM tab0
----
4771
5321
811

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2981
SELECT DISTINCT - col2 * - col2 * - CAST( - col0 AS SIGNED ) * CAST( + col2 AS DECIMAL ) * CAST( NULL AS SIGNED ) - col2 + col0 / - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT - col2 * - col2 * - CAST ( - col0 AS INTEGER ) * CAST ( + col2 AS REAL ) * CAST ( NULL AS INTEGER ) - col2 + col0 / - col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 77 * - + col0 * + + 76 - + 23 FROM tab2 WHERE NOT NULL = - + 4
----

query I rowsort
SELECT DISTINCT - 98 + - col2 FROM tab1
----
-157
-166
-194

query I rowsort
SELECT DISTINCT - 53 + + col0 AS col1 FROM tab1
----
-2
32
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2985
SELECT DISTINCT * FROM tab0 WHERE + CAST( - 39 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2985
SELECT DISTINCT * FROM tab0 WHERE + CAST ( - 39 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 3 * - - col0 + + col1 FROM tab0 AS cor0
----
-240
-290
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2987
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 / - - 14 * + - 29 - + + col0 + - col2 * - CAST( col0 AS SIGNED ) + col0 * col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2987
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 / - - 14 * + - 29 - + + col0 + - col2 * - CAST ( col0 AS INTEGER ) + col0 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * col0 + + 67 AS col1 FROM tab1 AS cor0
----
4344
492
781

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2989
SELECT ALL + 55 * col1, - CAST( - 8 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2585
8
275
8
770
8

skipif mysql # not compatible
query II rowsort label-2989
SELECT ALL + 55 * col1, - CAST ( - 8 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2585
8
275
8
770
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT MAX( ALL + - 38 ) FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT MAX ( ALL + - 38 ) FROM tab2
----
-38

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE + - 4 <> 52
----
-51
-85
-91

query I rowsort
SELECT col2 * - 78 AS col2 FROM tab1
----
-4602
-5304
-7488

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT - MAX( DISTINCT - + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2995
SELECT - MAX ( DISTINCT - + col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL SUM( DISTINCT - 39 ) AS col1 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL SUM ( DISTINCT - 39 ) AS col1 FROM tab1
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 19 AS col1, 2 * - - ( + col2 ) col0 FROM tab0
----
-19
198
-19
20
-19
94

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + col0 / + col0 + - + ( - 40 )
----

query II rowsort
SELECT + col2, col0 AS col1 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT 47 * MAX( ALL + col0 ) FROM tab2
----
3525

skipif mysql # not compatible
query I rowsort label-3000
SELECT 47 * MAX ( ALL + col0 ) FROM tab2
----
3525

query II rowsort
SELECT DISTINCT + 22, 86 AS col0 FROM tab2
----
22
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT COUNT( * ) * - 50 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-3002
SELECT COUNT ( * ) * - 50 FROM tab0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT ALL CAST( NULL AS SIGNED ) * - 54 * - + col2 * - 13 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL CAST ( NULL AS INTEGER ) * - 54 * - + col2 * - 13 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col1 * - ( - 52 ) + 99 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
122091
256355
261399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 95, + col2 col0 FROM tab0 AS cor0
----
95
10
95
47
95
99

query II rowsort
SELECT ALL - - col1 * 42 + + - col1 + + 12 + 54 * - col1 AS col2, + col0 FROM tab2 AS cor0
----
-651
46
-859
75
-989
64

query I rowsort
SELECT ( - 97 ) * col2 + - col2 * + 13 * + + col1 + col2 FROM tab0
----
-10791
-3690
-54003

query I rowsort
SELECT DISTINCT 45 + + + ( + ( + - ( - - col0 ) ) ) AS col0 FROM tab1
----
-40
-46
-6

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 51 <= - + 66
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT - MIN( DISTINCT 17 ) + 33 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3011
SELECT - MIN ( DISTINCT 17 ) + 33 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 54 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ( + + COUNT( ( + 72 ) ) ) + - ( 43 ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3013
SELECT ( + + COUNT ( ( + 72 ) ) ) + - ( 43 ) FROM tab1 AS cor0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3014
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - CAST( - col0 AS DECIMAL ) AND - + col0 / - ( + - col1 ) * + col0
----
0

skipif mysql # not compatible
query I rowsort label-3014
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - CAST ( - col0 AS REAL ) AND - + col0 / - ( + - col1 ) * + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT ALL - 27 * COUNT( * ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - 27 * COUNT ( * ) AS col0 FROM tab0 cor0
----
-81

query II rowsort
SELECT + - col1 * - 4 AS col2, + col2 - col2 FROM tab0 AS cor0
----
324
0
4
0
84
0

query III rowsort
SELECT * FROM tab0 WHERE + 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT NULL IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT COUNT( * ) - 46 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-3019
SELECT COUNT ( * ) - 46 FROM tab2
----
-43

query I rowsort
SELECT ALL + col0 * col2 + - - ( col0 ) FROM tab2
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL + 19 + - - COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + 19 + - - COUNT ( * ) FROM tab1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT + col1 + + CAST( - - 93 AS SIGNED ) FROM tab2 AS cor0
----
144
160
170

skipif mysql # not compatible
query I rowsort label-3022
SELECT + col1 + + CAST ( - - 93 AS INTEGER ) FROM tab2 AS cor0
----
144
160
170

query II rowsort
SELECT ALL - - col2 AS col0, - col2 * + ( - col0 ) + 4 AS col2 FROM tab0 AS cor0
----
10
874
47
709
99
9607

query II rowsort
SELECT ALL 30 AS col2, 96 - col2 FROM tab2
----
30
38
30
56
30
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL SUM( ALL ( col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL SUM ( ALL ( col2 ) ) FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 96, + col2 col0 FROM tab1 AS cor0
----
96
59
96
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT MIN( - 5 ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT MIN ( - 5 ) FROM tab2 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT 71 - - col2 + + + col0 / + col2 * CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT 71 - - col2 + + + col0 / + col2 * CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 62 AS col0 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - + COUNT( - col2 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3030
SELECT - + COUNT ( - col2 ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3031
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 BETWEEN ( NULL ) AND CAST( - + ( + col0 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3031
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 BETWEEN ( NULL ) AND CAST ( - + ( + col0 ) AS INTEGER )
----

query II rowsort
SELECT ALL col1, ( + + col2 ) AS col0 FROM tab1 cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT DISTINCT - ( + ( - COUNT( ALL - ( - 19 ) ) ) ) AS col2 FROM tab0 WHERE - col0 * - 17 NOT BETWEEN - - col2 AND col1
----
3

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - ( + ( - COUNT ( ALL - ( - 19 ) ) ) ) AS col2 FROM tab0 WHERE - col0 * - 17 NOT BETWEEN - - col2 AND col1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + 59 BETWEEN ( + col1 + + - col0 + - + col1 * - 86 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT COUNT( ALL - ( + 12 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT COUNT ( ALL - ( + 12 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT - ( - ( - COUNT( * ) ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT - ( - ( - COUNT ( * ) ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3037
SELECT CAST( NULL AS SIGNED ) * 59 * COUNT( * ) / COUNT( * ) FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT CAST ( NULL AS INTEGER ) * 59 * COUNT ( * ) / COUNT ( * ) FROM tab2, tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT 84 * ( + + COUNT( - col2 ) ) + 47 FROM tab2 AS cor0
----
299

skipif mysql # not compatible
query I rowsort label-3038
SELECT 84 * ( + + COUNT ( - col2 ) ) + 47 FROM tab2 AS cor0
----
299

query I rowsort
SELECT - 86 - - + 30 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col1, + 73, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT ALL + + 5 DIV + - 79 - 37 + + - col0 AS col1 FROM tab0 cor0
----
-124
-134
-52

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + + 5 / + - 79 - 37 + + - col0 AS col1 FROM tab0 cor0
----
-124
-134
-52

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE ( - 40 NOT IN ( - col1, 87 ) )
----
51
85
91

query I rowsort
SELECT DISTINCT - col0 + - 32 AS col1 FROM tab0 AS cor0
----
-119
-129
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT + 47 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3043
SELECT + 47 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
44

query I rowsort
SELECT DISTINCT - + col1 - col2 - + col2 * - col0 * + col0 + + 56 * - - 13 FROM tab2 AS cor0
----
164451
326853
49322

query I rowsort
SELECT ALL + col1 - 60 FROM tab2 AS cor0
----
-9
17
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT DISTINCT - - COUNT( * ) AS col2, + SUM( ALL + - 41 ) + + 6 AS col2 FROM tab1 AS cor0
----
3
-117

skipif mysql # not compatible
query II rowsort label-3046
SELECT DISTINCT - - COUNT ( * ) AS col2, + SUM ( ALL + - 41 ) + + 6 AS col2 FROM tab1 AS cor0
----
3
-117

query I rowsort
SELECT DISTINCT 57 + - + ( + ( - + col1 ) ) FROM tab2 AS cor0
----
108
124
134

query I rowsort
SELECT ALL + ( + - col2 ) - + col0 FROM tab2 cor0
----
-104
-133
-69

query II rowsort
SELECT DISTINCT + col0 AS col2, + ( - col0 ) * - ( + col0 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( 94 * + col0, - col2, + + col0 - + 26 + + 5 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3050
SELECT + COUNT( * ) + SUM( DISTINCT 97 ) + COUNT( * ) DIV 4 * + - 10 DIV + SUM( - 36 ) + + - 82 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3050
SELECT + COUNT ( * ) + SUM ( DISTINCT 97 ) + COUNT ( * ) / 4 * + - 10 / + SUM ( - 36 ) + + - 82 FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3051
SELECT - MIN( DISTINCT + - col1 ) AS col1, 8 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL
8

skipif mysql # not compatible
query II rowsort label-3051
SELECT - MIN ( DISTINCT + - col1 ) AS col1, 8 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + col0 BETWEEN + col2 AND - - col2
----
3

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + col0 BETWEEN + col2 AND - - col2
----
3

query I rowsort
SELECT 72 * col0 AS col0 FROM tab2
----
3312
4608
5400

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + ( 85 ) AND NULL
----

query I rowsort
SELECT - col0 * - 39 FROM tab2
----
1794
2496
2925

onlyif mysql # DIV for integer division: 
query I rowsort label-3056
SELECT DISTINCT - + col1 DIV - ( - col1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT - + col1 / - ( - col1 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + ( + - 78 ) FROM tab2 AS cor0
----
-78

query I rowsort
SELECT ALL ( + - 10 ) * - col1 FROM tab0
----
10
210
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3059
SELECT + + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT + + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, + col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT - - 56 + - 1 + + COUNT( ALL col1 ) * - CAST( - + 39 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-3062
SELECT - - 56 + - 1 + + COUNT ( ALL col1 ) * - CAST ( - + 39 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT ALL + - col2 DIV - - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL + - col2 / - - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 81 * + 88 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, ( - + ( col2 ) ) )
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT + col1 <> 91
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 / + - col0 - + col0 <> + 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + col2 NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE - 32 + + col0 - + - ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + col1 + ( col1 ) FROM tab2
----
125
192
194

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + + col2 + - 82 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + + col2 + - 82 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + 3 col1 FROM tab0
----
24
4
84

query I rowsort
SELECT - 4 * col0 * 54 FROM tab1
----
-11016
-18360
-19656

query I rowsort
SELECT col2 / 42 FROM tab1 WHERE + 59 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3074
SELECT - 31 AS col2, - col0 * CAST( 72 AS SIGNED ) + - col0 * + - col1 * + col0 * - + 20 AS col1 FROM tab2
----
-31
-2161632
-31
-6312448
-31
-7542900

skipif mysql # not compatible
query II rowsort label-3074
SELECT - 31 AS col2, - col0 * CAST ( 72 AS INTEGER ) + - col0 * + - col1 * + col0 * - + 20 AS col1 FROM tab2
----
-31
-2161632
-31
-6312448
-31
-7542900

query I rowsort
SELECT DISTINCT - col2 + - ( - 54 ) FROM tab1
----
-14
-42
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3076
SELECT - SUM( - + col0 ) AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
185
NULL

skipif mysql # not compatible
query II rowsort label-3076
SELECT - SUM ( - + col0 ) AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
185
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT COUNT( col2 ) + + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT COUNT ( col2 ) + + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL + ( - + MIN( ALL + col1 ) ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL + ( - + MIN ( ALL + col1 ) ) FROM tab1 cor0
----
-5

query I rowsort
SELECT ( + col1 ) + - col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( + - col2 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( + - col2 ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT - 52 + MAX( ALL + col2 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3081
SELECT - 52 + MAX ( ALL + col2 ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT - col2 * - - col2 - - col0 + + 84 FROM tab1 AS cor0
----
-3312
-4449
-9081

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3083
SELECT COUNT( * ) AS col1, ( - 61 ) * - 75 + + 97 DIV + COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3
4607

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3083
SELECT COUNT ( * ) AS col1, ( - 61 ) * - 75 + + 97 / + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3
4607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3084
SELECT + MAX( CAST( col2 AS SIGNED ) ) col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3084
SELECT + MAX ( CAST ( col2 AS INTEGER ) ) col1 FROM tab1 cor0
----
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + col2 ) * 14 AS col0 FROM tab1
----
1344
826
952

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT 57 * - + COUNT( * ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT 57 * - + COUNT ( * ) FROM tab0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3088
SELECT ALL col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3088
SELECT ALL col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 45 col2 FROM tab0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT 7 col0, + ( + + MIN( ( + 72 ) ) ) FROM tab2
----
7
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3090
SELECT 7 col0, + ( + + MIN ( ( + 72 ) ) ) FROM tab2
----
7
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT + col2 DIV - + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT + col2 / - + col1 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN 91 * + col0 AND + + 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( - + col1 + + ( 42 ) + + - col1 - 49, 47 * - col2 * - ( - - 56 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3093
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( - + col1 + + ( 42 ) + + - col1 - 49, 47 * - col2 * - ( - - 56 ) )
----
0

query I rowsort
SELECT ALL col2 / - + col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 52 * + - col2 FROM tab0 AS cor0
----
-2444
-5148
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT SUM( ALL col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-3096
SELECT SUM ( ALL col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT + ( + col1 ) - + 73 AS col0 FROM tab1 AS cor0 WHERE NOT 53 IS NULL
----
-26
-59
-68

query II rowsort
SELECT col0, - col1 AS col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT DISTINCT + col2 * + - col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3100
SELECT ALL COUNT( * ) DIV - 22 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3100
SELECT ALL COUNT ( * ) / - 22 col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL 29 * - SUM( DISTINCT + col1 ) AS col1 FROM tab2
----
-5655

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL 29 * - SUM ( DISTINCT + col1 ) AS col1 FROM tab2
----
-5655

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - col1 > NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT + 17 * - 36 + - COUNT( 96 ) AS col0 FROM tab1 AS cor0
----
-615

skipif mysql # not compatible
query I rowsort label-3104
SELECT + 17 * - 36 + - COUNT ( 96 ) AS col0 FROM tab1 AS cor0
----
-615

query I rowsort
SELECT ( + + col2 ) * - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT + - col2 AS col2 FROM tab2 AS cor0 WHERE - col1 BETWEEN 95 AND col2 / - col1 - - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT + SUM( DISTINCT ( - - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col2 * + col2, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT + SUM ( DISTINCT ( - - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col2 * + col2, - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3108
SELECT + CAST( 7 AS SIGNED ) FROM tab1 cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3108
SELECT + CAST ( 7 AS INTEGER ) FROM tab1 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT MIN( + - col2 ) + + COUNT( * ) FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-3109
SELECT MIN ( + - col2 ) + + COUNT ( * ) FROM tab2
----
-55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - col2
----

query II rowsort
SELECT 94 + + col2 * col1, 13 * - + 23 AS col2 FROM tab0
----
193
-299
304
-299
3901
-299

query I rowsort
SELECT DISTINCT + 73 * col2 + - - col2 + col2 FROM tab0
----
3525
7425
750

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 < col0
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT COUNT( DISTINCT col0 ) + + + MAX( DISTINCT col0 ) + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT COUNT ( DISTINCT col0 ) + + + MAX ( DISTINCT col0 ) + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2
----
78

query I rowsort
SELECT ALL + - ( - + col0 ) - 49 * col1 FROM tab0 AS cor0
----
-3954
-942
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3116
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 >= - + CAST( col2 AS SIGNED ) - + col0 + - col0 * - 15 * + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3116
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 >= - + CAST ( col2 AS INTEGER ) - + col0 + - col0 * - 15 * + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + - 78 * 98 FROM tab2 AS cor0
----
389844
512148
588588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3118
SELECT - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3118
SELECT - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3119
SELECT DISTINCT - COUNT( * ) DIV - + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - COUNT ( * ) / - + COUNT ( * ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 63 + 18 <= + col2 + col2
----
75
67
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT + COUNT( * ) * - 1 AS col1, + 42 FROM tab2
----
-3
42

skipif mysql # not compatible
query II rowsort label-3121
SELECT + COUNT ( * ) * - 1 AS col1, + 42 FROM tab2
----
-3
42

query III rowsort
SELECT * FROM tab2 WHERE - - col1 / - col0 IS NULL
----

query I rowsort
SELECT - 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

query I rowsort
SELECT col1 + 1 + + col0 * col0 FROM tab1 AS cor0
----
2616
7231
8329

query I rowsort
SELECT DISTINCT + col0 - + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE col2 + + + col1 >= - 74
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 64 col1, - col0 + - col2 FROM tab1 AS cor0
----
-64
-144
-64
-147
-64
-159

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 90 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT DISTINCT + SUM( + 61 ) FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT + SUM ( + 61 ) FROM tab0 AS cor0
----
183

query I rowsort
SELECT ( + - col0 ) AS col2 FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT ALL + col2, - ( + col2 ) FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT - 79 FROM tab0 WHERE NOT col2 IS NULL
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-3134
SELECT ALL - COUNT( - col1 ) AS col1, + COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-3134
SELECT ALL - COUNT ( - col1 ) AS col1, + COUNT ( * ) FROM tab1
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT col2 DIV 36 AS col1 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3135
SELECT col2 / 36 AS col1 FROM tab1
----
1
1
2

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 - - 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT SUM( + - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT SUM ( + - col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT - CAST( + 2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3138
SELECT - CAST ( + 2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = + ( 2 ) + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col0 * + col1 * + + col2 AS col2, 69 AS col1 FROM tab2
----
197120
69
291450
69
53958
69

query I rowsort
SELECT + 73 + - - col2 FROM tab1
----
132
141
169

query I rowsort
SELECT ALL + 28 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3144
SELECT CAST( - col2 AS SIGNED ) + - + col0 DIV + + 18 AS col2 FROM tab0 AS cor0
----
-104
-14
-47

skipif mysql # not compatible
query I rowsort label-3144
SELECT CAST ( - col2 AS INTEGER ) + - + col0 / + + 18 AS col2 FROM tab0 AS cor0
----
-104
-14
-47

query I rowsort
SELECT DISTINCT + + col1 * - col2 * 3 + + 67 AS col1 FROM tab1 AS cor0
----
-3965
-818
-9521

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT ALL - 48 DIV + - col1 FROM tab1 AS cor0 WHERE NOT + col1 DIV col2 + col1 IS NULL
----
1
3
9

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL - 48 / + - col1 FROM tab1 AS cor0 WHERE NOT + col1 / col2 + col1 IS NULL
----
1
3
9

query I rowsort
SELECT DISTINCT + 9 FROM tab1 AS cor0 WHERE NOT ( NULL ) < 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3148
SELECT col2 + - col1 * - CAST( - - col2 AS SIGNED ) AS col2, - CAST( col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
198
-1
220
-21
3854
-81

skipif mysql # not compatible
query II rowsort label-3148
SELECT col2 + - col1 * - CAST ( - - col2 AS INTEGER ) AS col2, - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
198
-1
220
-21
3854
-81

query I rowsort
SELECT ALL + + col1 * 87 AS col0 FROM tab0 AS cor0
----
1827
7047
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3150
SELECT 90 + + 97 * CAST( NULL AS SIGNED ), col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3150
SELECT 90 + + 97 * CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT ALL + 82 DIV + + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL + 82 / + + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT ALL + + MAX( + - 8 ) AS col2 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + + MAX ( + - 8 ) AS col2 FROM tab0 AS cor0
----
-8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col2 + col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 36 * - + 26 + col1 AS col0 FROM tab1
----
-889
-922
-931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col0 FROM tab2
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT ALL - ( + 59 ) * + + col2 * CAST( NULL AS SIGNED ) + - - col1 - - - 68 + - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL - ( + 59 ) * + + col2 * CAST ( NULL AS INTEGER ) + - - col1 - - - 68 + - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 59 * + 26 IS NOT NULL
----

query II rowsort
SELECT - 21 + - col1, col1 + + - col2 AS col2 FROM tab2 cor0
----
-72
28
-88
9
-98
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT + - 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-3160
SELECT + - CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL < col1
----
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL < col1
----
0

query I rowsort
SELECT DISTINCT + col0 * - - 90 AS col1 FROM tab2 cor0
----
4140
5760
6750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col0 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT + col2 * 35 FROM tab0
----
1645
3465
350

query II rowsort
SELECT - col1 AS col2, 62 AS col0 FROM tab1 WHERE NOT NULL = + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * - ( - ( - ( + col2 ) ) ) col2 FROM tab0
----
178929
2100
9801

query II rowsort
SELECT ALL + 59 AS col0, col1 FROM tab1
----
59
14
59
47
59
5

query I rowsort
SELECT + 10 * - 37 AS col1 FROM tab2
----
-370
-370
-370

query I rowsort
SELECT DISTINCT + col1 * - - 32 - + col0 + 62 AS col0 FROM tab2 AS cor0
----
1648
2131
2462

query I rowsort
SELECT + - 84 + + 72 + - 12 * - - 3 FROM tab1 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 58 AS col2, 14 col2 FROM tab2 AS cor0
----
58
14
58
14
58
14

query I rowsort
SELECT DISTINCT + 65 * - + col0 FROM tab2 AS cor0
----
-2990
-4160
-4875

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - ( + + col1 ) ) BETWEEN + + col0 AND + - col2 * col1
----

query I rowsort
SELECT ALL 73 + - + col2 AS col1 FROM tab0 AS cor0
----
-26
26
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT DISTINCT + - CAST( - 57 AS SIGNED ) + col1 col2 FROM tab0 AS cor0
----
138
58
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3175
SELECT DISTINCT + - CAST ( - 57 AS INTEGER ) + col1 col2 FROM tab0 AS cor0
----
138
58
78

query I rowsort
SELECT 62 * ( + + col1 ) AS col1 FROM tab0 AS cor0
----
1302
5022
62

query I rowsort
SELECT - col1 * + - col1 FROM tab1 cor0 WHERE col0 + - col2 - + - col1 * - - col1 * + + col0 * - col0 IS NOT NULL
----
196
2209
25

query I rowsort
SELECT + col0 * col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3179
SELECT ALL col0 + - col1, 42 DIV + col0 col0 FROM tab2 AS cor0
----
-13
0
-5
0
8
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3179
SELECT ALL col0 + - col1, 42 / + col0 col0 FROM tab2 AS cor0
----
-13
0
-5
0
8
0

query I rowsort
SELECT - col2 + - 11 AS col2 FROM tab0 AS cor0
----
-110
-21
-58

query II rowsort
SELECT + col0 + ( - 70 ), col2 AS col2 FROM tab1
----
-19
96
15
59
21
68

query I rowsort
SELECT DISTINCT - col1 - - col2 AS col2 FROM tab1
----
21
54
82

query III rowsort
SELECT ALL - col2 * + + ( col0 ) - + col1 AS col2, col0 - + col1 AS col2, 12 FROM tab0 AS cor0
----
9 values hashing to d783851ed21e890000eab614c3310a75

query II rowsort
SELECT 64, 61 AS col1 FROM tab1 AS cor0
----
64
61
64
61
64
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col1 FROM tab0 AS cor0 WHERE 0 * + 8 IS NOT NULL
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT ALL - - ( + 94 ) * - COUNT( * ) * ( - - 58 ) AS col0 FROM tab0 AS cor0
----
-16356

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - - ( + 94 ) * - COUNT ( * ) * ( - - 58 ) AS col0 FROM tab0 AS cor0
----
-16356

query I rowsort
SELECT - col2 - + col0 + + 81 AS col1 FROM tab1 AS cor0
----
-63
-66
-78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT DISTINCT + MAX( ALL + + col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT + MAX ( ALL + + col0 ) AS col2 FROM tab2 cor0
----
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - col1 * + 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + + col0 col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + + MAX( - 89 ) col1 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3192
SELECT + + MAX ( - 89 ) col1 FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL + ( COUNT( + 99 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL + ( COUNT ( + 99 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 = - - col0
----

query I rowsort
SELECT 24 + 31 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 51 >= + 81 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - 71 + - col2 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT - 27 * - - col1 AS col0 FROM tab1
----
-1269
-135
-378

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 + + + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT - col1 * - 26 FROM tab1
----
1222
130
364

query I rowsort
SELECT DISTINCT ( + - 39 ) FROM tab0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3202
SELECT - - CAST( NULL AS SIGNED ) * 23 FROM tab0, tab0 AS cor0 WHERE + + 86 IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3202
SELECT - - CAST ( NULL AS INTEGER ) * 23 FROM tab0, tab0 AS cor0 WHERE + + 86 IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL + ( + COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3203
SELECT ALL + ( + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col1 * - col2 + - - col2 FROM tab0 cor0
----
198
220
3854

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 60 * + 77 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - - 5
----

query I rowsort
SELECT col2 + - ( + col0 ) FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT - + col2 + - CAST( NULL AS SIGNED ) * 20 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT - + col2 + - CAST ( NULL AS INTEGER ) * 20 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( ( + + col1 ) * col0 ) = NULL
----

query I rowsort
SELECT - col2 * + - col1 * + 91 + + - col2 AS col0 FROM tab0 AS cor0
----
19100
346390
8910

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT - + COUNT( * ) * - + MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3213
SELECT - + COUNT ( * ) * - + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT + + col1 * + col2 AS col0 FROM tab0 cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT ALL - CAST( NULL AS SIGNED ) * col0 * + 43 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 * + 43 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ( ( 5 ) ) AS col0, 95 AS col2 FROM tab1
----
5
95
5
95
5
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT COUNT( + + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3217
SELECT COUNT ( + + col0 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT + + 82 + + col0 FROM tab0 WHERE 33 < + col2
----
179
97

query I rowsort
SELECT ALL - 30 FROM tab2 WHERE NOT col2 * 89 * 50 = - col0 * - col2 * - - col1
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3220
SELECT + CAST( NULL AS SIGNED ) - ( 5 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT + CAST ( NULL AS INTEGER ) - ( 5 ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 52 <> - col0 + - 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3222
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - - col0 + - 43 * + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT CAST ( NULL AS REAL ) + - - col0 + - 43 * + col0 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3223
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + + col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3223
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + + col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * col2 * + col0 AS col1 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT 5 FROM tab0 WHERE NOT + col2 IS NULL
----
5
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT ALL - - CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL - - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3227
SELECT ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT + + MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3228
SELECT + + MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 93 col2, - ( col0 ) * + col2 + 50 FROM tab0 AS cor0 WHERE NOT + col2 * - - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 29 * 94 * + col2, col0 FROM tab1 cor0
----
-160834
85
-185368
91
-261696
51

query I rowsort
SELECT DISTINCT - 90 * + col1 AS col0 FROM tab2 AS cor0
----
-4590
-6030
-6930

query II rowsort
SELECT - col2 AS col0, + col0 * + - col0 AS col2 FROM tab2 AS cor0
----
-23
-2116
-40
-4096
-58
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT MAX( ALL - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3233
SELECT MAX ( ALL - col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT ALL col1 * + - col1 + col1 FROM tab1
----
-182
-20
-2162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT ALL 70 * CAST( - 26 AS SIGNED ) FROM tab1
----
-1820
-1820
-1820

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL 70 * CAST ( - 26 AS INTEGER ) FROM tab1
----
-1820
-1820
-1820

query I rowsort
SELECT DISTINCT + col2 * - 32 + - col2 FROM tab0
----
-1551
-3267
-330

query I rowsort
SELECT ALL 0 * - col1 / + col0 FROM tab1 WHERE NOT + 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL - 10 + + COUNT( * ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - 10 + + COUNT ( * ) FROM tab2
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3239
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT - COUNT( * ) - + + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3240
SELECT - COUNT ( * ) - + + COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT - 13 - - - col1 AS col2 FROM tab0 AS cor0
----
-14
-34
-94

query I rowsort
SELECT ALL 17 + + - col2 + - - 16 * + 22 * - + col1 AS col2 FROM tab1 AS cor0
----
-16595
-1802
-5007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - + col1 * + col0 col1 FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT + COUNT( DISTINCT + + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT + COUNT ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT - + COUNT( * ) + + - 2 AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3245
SELECT - + COUNT ( * ) + + - 2 AS col1 FROM tab0 AS cor0
----
-5

query II rowsort
SELECT + + 76 AS col0, - 30 FROM tab1 AS cor0 WHERE NULL < + 72 + + - col2 * + 34
----

query I rowsort
SELECT - - col2 + + 21 AS col0 FROM tab1 AS cor0
----
117
80
89

query I rowsort
SELECT ALL - 77 * + + 23 FROM tab1 AS cor0
----
-1771
-1771
-1771

query I rowsort
SELECT - 42 + + ( - - col1 ) FROM tab2
----
25
35
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 78 col1 FROM tab0 WHERE NULL IS NULL
----
78
78
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL = col2 + + 22 )
----

query II rowsort
SELECT + col2, 86 FROM tab0
----
10
86
47
86
99
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL IS NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + - col1 col1 FROM tab1
----
-124
-82
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3255
SELECT col0 DIV col0 * col2 * + col0 AS col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-3255
SELECT col0 / col0 * col2 * + col0 AS col0 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT ALL col2, - col0 AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 76 * + - 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT + CAST( - - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3258
SELECT + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3259
SELECT DISTINCT + + 69 AS col0, 83 * - ( + 77 ) + + 69 + - COUNT( * ) FROM tab1 cor0
----
69
-6325

skipif mysql # not compatible
query II rowsort label-3259
SELECT DISTINCT + + 69 AS col0, 83 * - ( + 77 ) + + 69 + - COUNT ( * ) FROM tab1 cor0
----
69
-6325

query I rowsort
SELECT DISTINCT col1 * 19 * + + col1 FROM tab1
----
3724
41971
475

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT + col2 DIV + - 32 AS col2 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3261
SELECT + col2 / + - 32 AS col2 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT DISTINCT 98 * + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
5782
6664
9408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3263
SELECT - 5 * col0 AS col2, - ( CAST( NULL AS SIGNED ) ) * - 97 * - 79 + ( 96 ) / - col2 + - col0 + - + col0 FROM tab2 AS cor0
----
-230
NULL
-320
NULL
-375
NULL

skipif mysql # not compatible
query II rowsort label-3263
SELECT - 5 * col0 AS col2, - ( CAST ( NULL AS INTEGER ) ) * - 97 * - 79 + ( 96 ) / - col2 + - col0 + - + col0 FROM tab2 AS cor0
----
-230
NULL
-320
NULL
-375
NULL

query I rowsort
SELECT DISTINCT + 31 * - 65 - + col2 + col2 / + ( col1 ) FROM tab1 AS cor0 WHERE NOT - 41 * 47 <= + col2 * - - col1 * + 27 + + 2
----

query II rowsort
SELECT - + ( + 84 ) AS col2, - 71 FROM tab0 AS cor0
----
-84
-71
-84
-71
-84
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL 95 * - COUNT( * ) * - - 17 FROM tab2 AS cor0
----
-4845

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL 95 * - COUNT ( * ) * - - 17 FROM tab2 AS cor0
----
-4845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3267
SELECT CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col2 / col1 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT ALL - col1 DIV - 67 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - col1 / - 67 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 34 < ( + col2 ) * + 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 53 + + 78 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 36 * + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1836
3060
3276

query I rowsort
SELECT ALL ( ( - - 90 ) ) + 71 - - + 9 + - + col0 + 21 * - col1 FROM tab1
----
-175
-20
-908

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT COUNT( * ) * - 21 AS col0 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-3274
SELECT COUNT ( * ) * - 21 AS col0 FROM tab2
----
-63

query I rowsort
SELECT col2 * + 67 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT + col2 * + - 21 AS col1 FROM tab0 AS cor0
----
-2079
-210
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col0 FROM tab1 cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT DISTINCT COUNT( * ) + 46 AS col2 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT COUNT ( * ) + 46 AS col2 FROM tab1 AS cor0
----
49

query I rowsort
SELECT DISTINCT + - 9 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL + 68 - + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + 68 - + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT - MIN( 84 ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT - MIN ( 84 ) AS col2 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT ( 6 ) * - 47 + + - col2 * ( - + col1 ) * - 68 - col0 FROM tab1 AS cor0
----
-20427
-217701
-91725

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - MAX( DISTINCT 1 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3284
SELECT - MAX ( DISTINCT 1 ) AS col2 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) = NULL
----

query II rowsort
SELECT ALL ( - ( - - col0 ) ) AS col1, - col0 AS col1 FROM tab1
----
-51
-51
-85
-85
-91
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( - 88 ) FROM tab2 cor0
----
-88

query I rowsort
SELECT - - 80 * col0 AS col2 FROM tab1 cor0
----
4080
6800
7280

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( NOT 71 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 58 * - - col2 FROM tab1
----
3422
3944
5568

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL + CAST( - SUM( - - 33 ) AS SIGNED ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + CAST ( - SUM ( - - 33 ) AS INTEGER ) FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL ( - SUM( DISTINCT col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL ( - SUM ( DISTINCT col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - col1 IN ( col0, col1 + col2 + - 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2, 80 * - 71 FROM tab2 cor0
----
23
-5680
40
-5680
58
-5680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 4 col2, col1 + - 31 AS col1 FROM tab2 AS cor0
----
-4
20
-4
36
-4
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT ALL + COUNT( * ) AS col2, MAX( DISTINCT 21 ) FROM tab1 AS cor0
----
3
21

skipif mysql # not compatible
query II rowsort label-3298
SELECT ALL + COUNT ( * ) AS col2, MAX ( DISTINCT 21 ) FROM tab1 AS cor0
----
3
21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3300
SELECT * FROM tab0 AS cor0 WHERE NULL >= CAST( NULL AS DECIMAL ) * + 12
----

skipif mysql # not compatible
query III rowsort label-3300
SELECT * FROM tab0 AS cor0 WHERE NULL >= CAST ( NULL AS REAL ) * + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT 91 + COUNT( * ) col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3301
SELECT 91 + COUNT ( * ) col1 FROM tab0 AS cor0
----
94

query I rowsort
SELECT DISTINCT + 30 * + col2 + + 4 * + ( - + col2 ) AS col1 FROM tab2 AS cor0
----
1040
1508
598

query I rowsort
SELECT 49 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - + 37 AND NULL
----

query I rowsort
SELECT ALL - - col2 + - 39 FROM tab1 AS cor0 WHERE NOT - 72 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 / + col1 * - - col0 AS col2 FROM tab2 WHERE NOT + 46 BETWEEN NULL AND - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT ALL col1 + + + ( + col1 ) + - + 80 DIV + col1 FROM tab1
----
-6
23
93

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL col1 + + + ( + col1 ) + - + 80 / + col1 FROM tab1
----
-6
23
93

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL AND NULL IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 WHERE NULL = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <= col1 * + ( - 73 ) + + col1 + + - col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT + 77 + COUNT( * ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3310
SELECT + 77 + COUNT ( * ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT col1 + - col1 * 6 FROM tab0 AS cor0
----
-105
-405
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + 87 BETWEEN NULL AND + 84 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - 45 AS col0 FROM tab2 AS cor0
----
-22
-5
13

query I rowsort
SELECT DISTINCT + col0 / - 55 + + 81 FROM tab2 AS cor0 WHERE NOT 35 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 96 col1 FROM tab1 AS cor0
----
101
110
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 + - - 50 NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 + - - 50 NOT IN ( - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT + SUM( DISTINCT + 85 ) FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT + SUM ( DISTINCT + 85 ) FROM tab1 AS cor0
----
85

query I rowsort
SELECT - 68 * 49 AS col1 FROM tab1
----
-3332
-3332
-3332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3319
SELECT + COUNT( ALL + - col2 ) DIV + 7 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3319
SELECT + COUNT ( ALL + - col2 ) / + 7 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT + 82 * + - SUM( - col0 ) * + 93 AS col0 FROM tab0
----
1517574

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT + 82 * + - SUM ( - col0 ) * + 93 AS col0 FROM tab0
----
1517574

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT - MAX( + + 55 ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3321
SELECT - MAX ( + + 55 ) FROM tab2 AS cor0
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-3322
SELECT col1 DIV - + col0 + col0, col0 + + - ( col1 ) col2 FROM tab0 AS cor0
----
10
-66
87
66
97
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3322
SELECT col1 / - + col0 + col0, col0 + + - ( col1 ) col2 FROM tab0 AS cor0
----
10
-66
87
66
97
96

query I rowsort
SELECT ALL 73 * + - 91 FROM tab0 AS cor0
----
-6643
-6643
-6643

query I rowsort
SELECT col1 + - - col0 AS col2 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT + 17 > + col1
----
-21
-81

query I rowsort
SELECT 40 + - col1 AS col2 FROM tab2 cor0
----
-11
-27
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT 74 + - - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT 74 + - - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) NOT BETWEEN col2 AND + 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + ( + 29 ) * + + col1 col0 FROM tab0
----
110403
2871
6090

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT MIN( DISTINCT - + 57 ) col2 FROM tab2
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3331
SELECT MIN ( DISTINCT - + 57 ) col2 FROM tab2
----
-57

query I rowsort
SELECT ALL col0 + - + 11 FROM tab1
----
40
74
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3333
SELECT 3 AS col2, + CAST( - col1 AS SIGNED ) FROM tab0
----
3
-1
3
-21
3
-81

skipif mysql # not compatible
query II rowsort label-3333
SELECT 3 AS col2, + CAST ( - col1 AS INTEGER ) FROM tab0
----
3
-1
3
-21
3
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT DISTINCT 14 DIV + col0 + + col2 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT 14 / + col0 + + col2 AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL ( + 64 ) + - 95 + + + col2 AS col1 FROM tab2
----
-8
27
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT DISTINCT - 62 * + MIN( - 39 ) FROM tab1 AS cor0
----
2418

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT - 62 * + MIN ( - 39 ) FROM tab1 AS cor0
----
2418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3337
SELECT - - col1 + + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3337
SELECT - - col1 + + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT - ( + + COUNT( - col0 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT - ( + + COUNT ( - col0 ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - 65 + - 92 AS col1 FROM tab0
----
-157
-157
-157

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3340
SELECT col2 + CAST( + col1 AS SIGNED ) - + col1 + col0 * - col2 + ( - col2 ) + - 89 DIV - 53 FROM tab2
----
-1057
-2559
-4349

skipif mysql # not compatible
query I rowsort label-3340
SELECT col2 + CAST ( + col1 AS INTEGER ) - + col1 + col0 * - col2 + ( - col2 ) + - 89 / - 53 FROM tab2
----
-1057
-2559
-4349

query I rowsort
SELECT col0 * - col0 + + - col2 FROM tab1
----
-2697
-7284
-8349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3342
SELECT DISTINCT CAST( ( col1 ) AS SIGNED ) * - 22 + - + col1 * ( + col1 ) + + ( ( + col2 ) ) + + col1 FROM tab0 AS cor0
----
-8215
-872
77

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT CAST ( ( col1 ) AS INTEGER ) * - 22 + - + col1 * ( + col1 ) + + ( ( + col2 ) ) + + col1 FROM tab0 AS cor0
----
-8215
-872
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3343
SELECT DISTINCT + COUNT( * ) - + COUNT( - col0 ) * - + COUNT( * ) DIV 18 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT + COUNT ( * ) - + COUNT ( - col0 ) * - + COUNT ( * ) / 18 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT + 49 DIV + - 40 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3345
SELECT + 49 / + - 40 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT DISTINCT + col1 * + + col0 DIV + - col0 + - col1 FROM tab1 AS cor0
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + col1 * + + col0 / + - col0 + - col1 FROM tab1 AS cor0
----
-10
-28
-94

query II rowsort
SELECT ALL - ( col0 ), col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT + col2 * - col0 * + - 1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT ( 32 ) AS col2 FROM tab2
----
32

query II rowsort
SELECT - col2, 42 AS col1 FROM tab1
----
-59
42
-68
42
-96
42

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 + col0 BETWEEN NULL AND col2 / + col0
----

query II rowsort
SELECT col0 AS col0, 93 * + col2 FROM tab1
----
51
8928
85
5487
91
6324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT 34 * CAST( + col1 AS SIGNED ) FROM tab0
----
2754
34
714

skipif mysql # not compatible
query I rowsort label-3353
SELECT 34 * CAST ( + col1 AS INTEGER ) FROM tab0
----
2754
34
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT COUNT( ALL - + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3354
SELECT COUNT ( ALL - + col2 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3355
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3355
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( + col1 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95, 33 col0 FROM tab2
----
95
33
95
33
95
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT SUM( + - 67 ) AS col1 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-3357
SELECT SUM ( + - 67 ) AS col1 FROM tab2
----
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 col0 FROM tab2
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 > + col2
----
87
21
10

query II rowsort
SELECT ALL col1, + 71 FROM tab0 AS cor0
----
1
71
21
71
81
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE col0 >= - col2
----
3

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE col0 >= - col2
----
3

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE - 89 + - col0 >= ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT - col2 + col2 DIV col1 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3363
SELECT - col2 + col2 / col1 AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE 66 * + 71 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE 66 * + 71 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT MIN( DISTINCT - col0 ) * COUNT( * ) + + 38 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-187

skipif mysql # not compatible
query I rowsort label-3365
SELECT MIN ( DISTINCT - col0 ) * COUNT ( * ) + + 38 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-187

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 * - col0 ) BETWEEN ( 58 ) AND + col1
----

query I rowsort
SELECT - 55 + 8 * + 77 AS col2 FROM tab0
----
561
561
561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) + - col1 ) IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) + - col1 ) IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL - MAX( ALL col2 ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3369
SELECT ALL - MAX ( ALL col2 ) col0 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT - col2 * - 82 AS col2 FROM tab1 WHERE NOT 25 > ( NULL )
----

query I rowsort
SELECT 13 - col0 * - col2 AS col2 FROM tab0 WHERE NOT - col0 + - col1 IS NULL
----
718
883
9616

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT MAX( DISTINCT 31 ) AS col0 FROM tab0 WHERE NOT col0 + col0 IS NULL
----
31

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT MAX ( DISTINCT 31 ) AS col0 FROM tab0 WHERE NOT col0 + col0 IS NULL
----
31

query I rowsort
SELECT + col0 * col1 + - col2 * 82 AS col2 FROM tab0
----
-2639
-8021
1007

query I rowsort
SELECT ALL - col1 * ( col0 * - col0 ) FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT + col2 / col1 + 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-3375
SELECT + col2 / col1 + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 41 * - 87 AS col2 FROM tab0
----
-3567
-3567
-3567

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3377
SELECT + COUNT( * ) * SUM( - col0 ) + - COUNT( DISTINCT CAST( col1 AS DECIMAL ) ) * - 50 FROM tab2
----
-405

skipif mysql # not compatible
query I rowsort label-3377
SELECT + COUNT ( * ) * SUM ( - col0 ) + - COUNT ( DISTINCT CAST ( col1 AS REAL ) ) * - 50 FROM tab2
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT - COUNT( * ) FROM tab2 WHERE NOT col1 BETWEEN NULL AND - col2
----
-3

skipif mysql # not compatible
query I rowsort label-3378
SELECT - COUNT ( * ) FROM tab2 WHERE NOT col1 BETWEEN NULL AND - col2
----
-3

query I rowsort
SELECT ALL 87 - - col1 AS col2 FROM tab0
----
108
168
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3380
SELECT 56 + + COUNT( * ) DIV - 21 AS col0 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-3380
SELECT 56 + + COUNT ( * ) / - 21 AS col0 FROM tab0
----
56

query I rowsort
SELECT 62 * col1 AS col2 FROM tab2
----
3162
4154
4774

query I rowsort
SELECT ( col1 ) * - 60 FROM tab2
----
-3060
-4020
-4620

query I rowsort
SELECT DISTINCT - 56 * - col0 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT DISTINCT 12 * col0 AS col1 FROM tab0
----
1044
1164
180

query I rowsort
SELECT + col1 * ( 43 ) FROM tab2 AS cor0
----
2193
2881
3311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3386
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col1 * ( - col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-2555
-4414
-5865

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT - col1 * + ( + col1 DIV 78 ) FROM tab0 cor0
----
-81
0
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT - col1 * + ( + col1 / 78 ) FROM tab0 cor0
----
-81
0
0

query I rowsort
SELECT DISTINCT 23 - + col0 FROM tab0 AS cor0
----
-64
-74
8

query III rowsort
SELECT * FROM tab2 WHERE col1 * 25 - - col1 = + col0
----

query I rowsort
SELECT DISTINCT + 22 + - col1 FROM tab0
----
-59
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT DISTINCT - 29 * - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2
----
261

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - 29 * - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2
----
261

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 < col2 / + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT - SUM( ALL col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3395
SELECT - SUM ( ALL col2 ) AS col2 FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL + 41 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + 41 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
123

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 41 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 59 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT DISTINCT 9 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT 9 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3400
SELECT - COUNT( * ) FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3400
SELECT - COUNT ( * ) FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 93 / - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 42 * - col2 * col0 AS col0 FROM tab1
----
-205632
-210630
-259896

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3403
SELECT COUNT( * ) + CAST( NULL AS DECIMAL ) col0 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-3403
SELECT COUNT ( * ) + CAST ( NULL AS REAL ) col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT MAX( ALL - col0 ) DIV 49 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3404
SELECT MAX ( ALL - col0 ) / 49 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( 86 ) + col2 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( 86 ) + col2 AND col1
----
0

query I rowsort
SELECT + 20 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 31 AND + col0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 * col2 col0 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT ALL + 94 * - col2 * - col1 AS col0 FROM tab1
----
126336
27730
300424

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - + MIN( ALL 26 ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3409
SELECT - + MIN ( ALL 26 ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3410
SELECT - + 63 DIV 55 + + 63 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

skipif mysql # not compatible
query I rowsort label-3410
SELECT - + 63 / 55 + + 63 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT 49 + + col1 + + col1 FROM tab2
----
151
183
203

query I rowsort
SELECT col0 * - + col1 + - col0 AS col2 FROM tab0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT + 10 - + COUNT( - 83 ) FROM tab2 AS cor0 WHERE NOT ( 58 * - col2 ) IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT + 10 - + COUNT ( - 83 ) FROM tab2 AS cor0 WHERE NOT ( 58 * - col2 ) IS NOT NULL
----
10

query I rowsort
SELECT ALL + + col0 + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT DISTINCT 10 + - col0 DIV - col0 col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3416
SELECT DISTINCT 10 + - col0 / - col0 col0 FROM tab2 AS cor0
----
11

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT 4 BETWEEN ( - col2 ) AND ( 23 )
----

query I rowsort
SELECT - col2 + + - 55 FROM tab0 AS cor0
----
-102
-154
-65

query I rowsort
SELECT - col1 - 85 / - 24 AS col1 FROM tab2 cor0 WHERE ( 81 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 10 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 82 col0, col1 * col0 + + 97 * - col0 AS col1 FROM tab1 AS cor0
----
-82
-4233
-82
-4550
-82
-7820

query I rowsort
SELECT DISTINCT + 71 FROM tab0 cor0
----
71

query I rowsort
SELECT ALL + - col2 * + + col2 / - col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 53 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3427
SELECT ALL + col0 * 86 + - 59 + CAST( NULL AS DECIMAL ) * + 24 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + col0 * 86 + - 59 + CAST ( NULL AS REAL ) * + 24 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - 95 - + col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT - COUNT( * ) - + 84 * - + ( + COUNT( * ) ) AS col0 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - COUNT ( * ) - + 84 * - + ( + COUNT ( * ) ) AS col0 FROM tab1
----
249

query I rowsort
SELECT DISTINCT col1 * col1 + + ( - col1 ) FROM tab2
----
2550
4422
5852

query I rowsort
SELECT ALL + col2 - col2 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3432
SELECT * FROM tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3432
SELECT * FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 81 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT DISTINCT + col2 DIV + 2 - - + col0 DIV + 55 FROM tab0
----
23
50
6

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + col2 / + 2 - - + col0 / + 55 FROM tab0
----
23
50
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL COUNT( 18 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL COUNT ( 18 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL + + MAX( + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + + MAX ( + col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - col0 ) NOT BETWEEN ( col0 / + col1 * 26 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT + MIN( col0 ) * + MAX( + - 40 ) FROM tab2 AS cor0
----
-1840

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT + MIN ( col0 ) * + MAX ( + - 40 ) FROM tab2 AS cor0
----
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL - COUNT( * ) col2 FROM tab2 AS cor0 WHERE + col1 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3439
SELECT ALL - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + col1 < NULL
----
0

query I rowsort
SELECT DISTINCT + - ( - - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 57 + - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 * + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3443
SELECT - CAST( NULL AS DECIMAL ) * - 39 + MIN( - col2 ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( + 44, 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT - CAST ( NULL AS REAL ) * - 39 + MIN ( - col2 ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( + 44, 52 )
----
NULL

query II rowsort
SELECT + col0 AS col0, + 38 FROM tab0 AS cor0
----
15
38
87
38
97
38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 BETWEEN - col0 + - + ( - col1 ) + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT DISTINCT + COUNT( * ) AS col1, - 10 AS col2 FROM tab1
----
3
-10

skipif mysql # not compatible
query II rowsort label-3446
SELECT DISTINCT + COUNT ( * ) AS col1, - 10 AS col2 FROM tab1
----
3
-10

query II rowsort
SELECT col0 AS col0, + col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT + MAX( col2 ) col2 FROM tab2 WHERE NULL <> ( ( + - 11 ) + + col1 / + - col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3448
SELECT DISTINCT + MAX ( col2 ) col2 FROM tab2 WHERE NULL <> ( ( + - 11 ) + + col1 / + - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3449
SELECT DISTINCT col2, - CAST( NULL AS SIGNED ) AS col2, - ( - col2 ) AS col2 FROM tab2
----
9 values hashing to df282ae1b2eac65deadec77411c4d29b

skipif mysql # not compatible
query III rowsort label-3449
SELECT DISTINCT col2, - CAST ( NULL AS INTEGER ) AS col2, - ( - col2 ) AS col2 FROM tab2
----
9 values hashing to df282ae1b2eac65deadec77411c4d29b

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT - COUNT( - col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3450
SELECT - COUNT ( - col2 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL - 45 * - + col0 FROM tab2
----
2070
2880
3375

query II rowsort
SELECT + col1, + col2 * col0 * col1 FROM tab2
----
51
53958
67
291450
77
197120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col1 FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3454
SELECT - SUM( DISTINCT - col0 ) AS col2, MAX( ALL - - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3454
SELECT - SUM ( DISTINCT - col0 ) AS col2, MAX ( ALL - - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT 60 FROM tab0 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) = ( col1 )
----
60
60
60

skipif mysql # not compatible
query I rowsort label-3455
SELECT 60 FROM tab0 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) = ( col1 )
----
60
60
60

query I rowsort
SELECT DISTINCT + col0 - - 67 AS col0 FROM tab0 AS cor0 WHERE NULL >= + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3457
SELECT CAST( NULL AS SIGNED ) col0, 28 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3457
SELECT CAST ( NULL AS INTEGER ) col0, 28 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT + CAST( + 64 AS SIGNED ) AS col1 FROM tab1 WHERE - + 62 IS NOT NULL
----
64
64
64

skipif mysql # not compatible
query I rowsort label-3458
SELECT + CAST ( + 64 AS INTEGER ) AS col1 FROM tab1 WHERE - + 62 IS NOT NULL
----
64
64
64

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 89 <> ( NULL )
----

query I rowsort
SELECT ALL + 92 * - + 90 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 399a08a2fad39f21778329b51c31b5af

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) - + 79 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) - + 79 FROM tab0 AS cor0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + col0 col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT + - col1 + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT + - col1 + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 - - col1 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT DISTINCT + SUM( - - col1 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT + SUM ( - - col1 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ALL + col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + col1 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 + - - col1 AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ( + 40 ) + - + col2 + + - col2 * - - 68 FROM tab1 cor0
----
-4031
-4652
-6584

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT 10 + - COUNT( * ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-3469
SELECT 10 + - COUNT ( * ) FROM tab1
----
7

query I rowsort
SELECT + col2 * + 95 - - col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 56 + + + col0 AS col0 FROM tab1
----
-5
29
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT - SUM( - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT - SUM ( - col2 ) FROM tab2
----
121

query I rowsort
SELECT DISTINCT - 43 + col1 FROM tab0
----
-22
-42
38

query I rowsort
SELECT ( - 3 ) FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT DISTINCT CAST( - 35 AS SIGNED ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT CAST ( - 35 AS INTEGER ) FROM tab1
----
-35

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col2 ) + + 39 IS NOT NULL
----

query I rowsort
SELECT col0 * + - col1 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - col0 + + 47
----

query I rowsort
SELECT + ( - + 25 ) AS col1 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ALL + 88 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 * + col0 * - + col2 * col0 + + 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL 36 * - COUNT( * ) AS col1 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL 36 * - COUNT ( * ) AS col1 FROM tab2
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT DISTINCT 82 + - CAST( + 76 AS SIGNED ) * + - col0 col1 FROM tab0
----
1222
6694
7454

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3483
SELECT DISTINCT 82 + - CAST ( + 76 AS INTEGER ) * + - col0 col1 FROM tab0
----
1222
6694
7454

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < - col0 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT - MAX( ALL + 11 ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-3485
SELECT - MAX ( ALL + 11 ) FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL MIN( 24 ) + MAX( DISTINCT - 28 ) AS col0 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL MIN ( 24 ) + MAX ( DISTINCT - 28 ) AS col0 FROM tab0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * + col0 * 66 + + + col1 + + 2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT col1 DIV - - col2 + - col2 col0 FROM tab2
----
-21
-39
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3488
SELECT DISTINCT col1 / - - col2 + - col2 col0 FROM tab2
----
-21
-39
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 40 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT + CAST( 59 AS SIGNED ) * 90 FROM tab1 AS cor0
----
5310
5310
5310

skipif mysql # not compatible
query I rowsort label-3490
SELECT + CAST ( 59 AS INTEGER ) * 90 FROM tab1 AS cor0
----
5310
5310
5310

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + 46 + - + 55 + + col1 * - 6 + + - col0 - col2 >= NULL ) )
----

query I rowsort
SELECT ALL 34 * 97 FROM tab2 AS cor0
----
3298
3298
3298

query I rowsort
SELECT - 9 * + 21 * + + col1 FROM tab2 AS cor0
----
-12663
-14553
-9639

query I rowsort
SELECT - 22 + - - 71 FROM tab2
----
49
49
49

query I rowsort
SELECT ALL + 94 * - col1 + - - col1 FROM tab2
----
-4743
-6231
-7161

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT col0 DIV - col0 + 6 AS col1 FROM tab0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3496
SELECT col0 / - col0 + 6 AS col1 FROM tab0
----
5
5
5

query I rowsort
SELECT ALL - 17 * + - col1 AS col1 FROM tab2
----
1139
1309
867

query I rowsort
SELECT ALL + - col0 + + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1127
3016
3811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3499
SELECT - + 18 / MAX( col1 ) + + CAST( NULL AS SIGNED ) + + 5 * MAX( 4 ) * ( - 8 ) * + 1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT - + 18 / MAX ( col1 ) + + CAST ( NULL AS INTEGER ) + + 5 * MAX ( 4 ) * ( - 8 ) * + 1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + col0 + + col2 + + col1 FROM tab0 AS cor0
----
353
7600
9509

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT DISTINCT + + COUNT( DISTINCT 40 ) - + 44 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT + + COUNT ( DISTINCT 40 ) - + 44 FROM tab1 AS cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3502
SELECT * FROM tab2 cor0 WHERE ( + col2 ) NOT IN ( col0 + + CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-3502
SELECT * FROM tab2 cor0 WHERE ( + col2 ) NOT IN ( col0 + + CAST ( NULL AS INTEGER ), col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT ALL - COUNT( * ) - - 95 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - COUNT ( * ) - - 95 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3504
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN - col1 AND - 28
----

skipif mysql # not compatible
query III rowsort label-3504
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 AND - 28
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 51 * col2 + + ( col2 ) + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL 78 / - + col1 AS col0 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL MAX( 41 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL MAX ( 41 ) FROM tab0
----
41

query III rowsort
SELECT ALL * FROM tab2 WHERE 10 < - col1
----

query I rowsort
SELECT + col2 * + col1 + - col1 AS col0 FROM tab1 WHERE ( NOT + col0 + col0 BETWEEN NULL AND col1 )
----
1330
290
3149

query I rowsort
SELECT DISTINCT - col0 + 91 AS col1 FROM tab1
----
0
40
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3512
SELECT COUNT( * ) - - 66 AS col2, COUNT( * ) AS col2 FROM tab2
----
69
3

skipif mysql # not compatible
query II rowsort label-3512
SELECT COUNT ( * ) - - 66 AS col2, COUNT ( * ) AS col2 FROM tab2
----
69
3

query I rowsort
SELECT + col2 - - + 44 AS col0 FROM tab1
----
103
112
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT DISTINCT + 18 * - col0 * CAST( + + col0 AS SIGNED ) + col2 + - + col0 * - ( + col2 ) * ( col2 ) FROM tab1
----
165894
271794
423294

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + 18 * - col0 * CAST ( + + col0 AS INTEGER ) + col2 + - + col0 * - ( + col2 ) * ( col2 ) FROM tab1
----
165894
271794
423294

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT DISTINCT col0 DIV 91 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT col0 / 91 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ( col1 ) * + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 72 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> + + 71
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3518
SELECT * FROM tab2 AS cor0 WHERE NOT 29 + + 92 + + - col0 / col1 - - CAST( NULL AS DECIMAL ) IN ( - CAST( + col0 AS SIGNED ), + 48 )
----

skipif mysql # not compatible
query III rowsort label-3518
SELECT * FROM tab2 AS cor0 WHERE NOT 29 + + 92 + + - col0 / col1 - - CAST ( NULL AS REAL ) IN ( - CAST ( + col0 AS INTEGER ), + 48 )
----

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT 49 IS NOT NULL
----

query I rowsort
SELECT ALL - - 44 / col2 + - col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3521
SELECT DISTINCT 20 AS col2, 97 DIV + ( + col0 ) + - col0 AS col1 FROM tab0
----
20
-86
20
-9
20
-96

skipif mysql # not compatible
query II rowsort label-3521
SELECT DISTINCT 20 AS col2, 97 / + ( + col0 ) + - col0 AS col1 FROM tab0
----
20
-86
20
-9
20
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT SUM( DISTINCT col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3522
SELECT SUM ( DISTINCT col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT 4 * + col1 FROM tab0
----
324
4
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT DISTINCT + ( - col2 ) DIV + 58 + + col2 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT + ( - col2 ) / + 58 + + col2 FROM tab0 AS cor0
----
10
47
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> + 35 * + - col0 - col1 + + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col0 ) IN ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col0 ) IN ( col0 )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3527
SELECT DISTINCT - 85 FROM tab0 AS cor0 WHERE - 78 + - col0 / - CAST( NULL AS DECIMAL ) IS NULL
----
-85

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT - 85 FROM tab0 AS cor0 WHERE - 78 + - col0 / - CAST ( NULL AS REAL ) IS NULL
----
-85

query I rowsort
SELECT DISTINCT + - 19 AS col1 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND 11
----

query I rowsort
SELECT + col1 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3530
SELECT DISTINCT 39, + COUNT( * ) col0 FROM tab0 AS cor0
----
39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3530
SELECT DISTINCT 39, + COUNT ( * ) col0 FROM tab0 AS cor0
----
39
3

query I rowsort
SELECT - + 5 FROM tab1 cor0
----
-5
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 93 + - col2 FROM tab1
----
-152
-161
-189

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > ( + 20 )
----

query III rowsort
SELECT * FROM tab1 WHERE - - ( 7 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - COUNT( * ) FROM tab2 WHERE + col1 + - col0 BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-3536
SELECT - COUNT ( * ) FROM tab2 WHERE + col1 + - col0 BETWEEN NULL AND - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT + 67 + COUNT( * ) + 19 AS col2 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT + 67 + COUNT ( * ) + 19 AS col2 FROM tab0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT + ( MAX( 66 ) ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT + ( MAX ( 66 ) ) FROM tab2
----
66

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NOT + ( - + col1 ) < NULL
----

query I rowsort
SELECT - - 55 + + + col1 AS col2 FROM tab1 AS cor0
----
102
60
69

query I rowsort
SELECT + col2 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3542
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3543
SELECT DISTINCT - ( - CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT - ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + col2 + col1 * - col2 AS col2 FROM tab0 WHERE NOT + + ( + col2 ) + - - col2 / - + col1 + + col2 - + col0 * 2 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + 59 FROM tab2
----
1
19
36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col1 / - + 74 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + col1 + - + col1 * - + col0 AS col0 FROM tab0 AS cor0
----
1343
1858
197

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT 28 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT 28 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT 50 + col2 + - + 86 DIV + col2 FROM tab1 AS cor0
----
108
117
146

skipif mysql # not compatible
query I rowsort label-3549
SELECT 50 + col2 + - + 86 / + col2 FROM tab1 AS cor0
----
108
117
146

query I rowsort
SELECT - - 2 * + ( - 32 ) + - col0 FROM tab0 AS cor0
----
-151
-161
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT 85 + + - SUM( DISTINCT + col2 ) + 41 AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3551
SELECT 85 + + - SUM ( DISTINCT + col2 ) + 41 AS col0 FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT 99 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT 99 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3553
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( + + col1 AS SIGNED ) + + col1 * col2 NOT BETWEEN 25 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3553
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( + + col1 AS INTEGER ) + + col1 * col2 NOT BETWEEN 25 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( - col2 ) / - 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col1 FROM tab2 WHERE NOT + col0 * + 0 + + + col0 * - col0 * - + col1 * + col0 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 1 AS col0, 58 col0 FROM tab1 AS cor0
----
1
58
1
58
1
58

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT + - MAX( ALL + - 46 ) col1 FROM tab0 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3558
SELECT + - MAX ( ALL + - 46 ) col1 FROM tab0 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - - MIN( + 68 ) AS col0 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3559
SELECT - - MIN ( + 68 ) AS col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL - col2 * - 18 FROM tab0 cor0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL - - 48 * + 12 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
585

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL - - 48 * + 12 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
585

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + - 65 NOT BETWEEN + col0 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - ( + + 9 ) * + 78 + + 67 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3564
SELECT DISTINCT + 55 DIV - - 6, col0 FROM tab2
----
9
46
9
64
9
75

skipif mysql # not compatible
query II rowsort label-3564
SELECT DISTINCT + 55 / - - 6, col0 FROM tab2
----
9
46
9
64
9
75

query I rowsort
SELECT col0 * col1 + - + col2 + + col2 * - + col0 FROM tab1 AS cor0
----
-1979
-4278
-4649

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3566
SELECT ALL - - CAST( - 78 AS SIGNED ) DIV - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-43
-63
-74

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - - CAST ( - 78 AS INTEGER ) / - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-43
-63
-74

query I rowsort
SELECT ALL - + 20 * col2 + - col0 AS col1 FROM tab1 cor0 WHERE NOT - 82 / - + 97 < + - col0
----
-1265
-1451
-1971

query I rowsort
SELECT - col0 * - - 54 + - - col2 FROM tab2 AS cor0
----
-2461
-3416
-3992

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + ( + 24 ) + col0 >= 93
----

query I rowsort
SELECT ALL - col0 + + 62 AS col0 FROM tab0
----
-25
-35
47

query II rowsort
SELECT col2, + col0 - + col2 AS col2 FROM tab0
----
10
77
47
-32
99
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - 92 / - - 71
----

query II rowsort
SELECT ALL - col0, col1 FROM tab1
----
-51
14
-85
5
-91
47

query III rowsort
SELECT * FROM tab1 WHERE - - 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT - MAX( - 13 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT - MAX ( - 13 ) FROM tab2 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT ALL - ( - - col1 ) + + - col0 + + + col1 + + CAST( + col2 AS SIGNED ) * + + CAST( NULL AS SIGNED ) + + CAST( col0 AS SIGNED ) * - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL - ( - - col1 ) + + - col0 + + + col1 + + CAST ( + col2 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + + CAST ( col0 AS INTEGER ) * - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 + col2 AS col2, ( + 75 ) FROM tab2
----
104
75
133
75
69
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT col2 + + CAST( 18 AS SIGNED ) AS col0 FROM tab0
----
117
28
65

skipif mysql # not compatible
query I rowsort label-3578
SELECT col2 + + CAST ( 18 AS INTEGER ) AS col0 FROM tab0
----
117
28
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - col2 ) * + 96 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL - + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - col1 * col1 * - 42 FROM tab1
----
1050
8232
92778

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 52 + 27 BETWEEN + col2 + - col1 AND - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col1 ) * col0 * + col2 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT + - col1 AS col0 FROM tab2 WHERE NOT - + 17 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - 62 * + COUNT( * ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-3585
SELECT - 62 * + COUNT ( * ) FROM tab0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL COUNT( * ) * + 48 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL COUNT ( * ) * + 48 FROM tab1
----
144

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 69 <> ( - col2 ) OR NOT col1 NOT BETWEEN NULL AND - - 94
----

query I rowsort
SELECT + 80 * col1 FROM tab2
----
4080
5360
6160

query II rowsort
SELECT - col1, + 17 AS col0 FROM tab1
----
-14
17
-47
17
-5
17

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 41 * - - col2 AS col1 FROM tab2 AS cor0
----
1640
2378
943

onlyif mysql # aggregate syntax: 
query II rowsort label-3592
SELECT ALL MIN( + col0 ) * + - 32 AS col2, 51 AS col2 FROM tab2 AS cor0
----
-1472
51

skipif mysql # not compatible
query II rowsort label-3592
SELECT ALL MIN ( + col0 ) * + - 32 AS col2, 51 AS col2 FROM tab2 AS cor0
----
-1472
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT MAX( + ( col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3593
SELECT MAX ( + ( col0 ) ) FROM tab2
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3594
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE NOT + + 83 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE NOT + + 83 IS NULL
----
NULL

query I rowsort
SELECT + col2 * 46 + + col1 FROM tab2 AS cor0
----
1109
1917
2735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( + - col2 ) col1, + 24 FROM tab0 AS cor0
----
10
24
47
24
99
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT ALL col0 * + - col1 + + col1 DIV + - 56 FROM tab2 AS cor0
----
-2346
-4929
-5026

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL col0 * + - col1 + + col1 / + - 56 FROM tab2 AS cor0
----
-2346
-4929
-5026

query I rowsort
SELECT DISTINCT - 13 AS col2 FROM tab2 cor0
----
-13

query I rowsort
SELECT DISTINCT + col1 * - + col0 * - - 87 AS col0 FROM tab1 AS cor0
----
-36975
-372099
-62118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col1 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT 75 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + col0 * col0 + + 61 FROM tab0 AS cor0
----
286
7630
9470

query I rowsort
SELECT + ( + col0 ) * - + col2 AS col2 FROM tab0 cor0
----
-705
-870
-9603

query II rowsort
SELECT + col1 + - 63, col0 FROM tab0 AS cor0
----
-42
87
-62
97
18
15

query I rowsort
SELECT - ( - - col1 ) + + - col1 * + + col2 * + - col1 + + col1 FROM tab2
----
237160
260362
59823

query III rowsort
SELECT * FROM tab2 WHERE - 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 50 + - - 93 + - + col0 * - - 94 + - col0 > ( col1 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL + 96 * + COUNT( * ) + - MIN( ALL 36 ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL + 96 * + COUNT ( * ) + - MIN ( ALL 36 ) FROM tab2
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL + COUNT( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL + COUNT ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT CAST( NULL AS SIGNED ) * 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT CAST ( NULL AS INTEGER ) * 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + + col2 * + 8 AS col1 FROM tab1 AS cor0
----
39168
40120
49504

query I rowsort
SELECT ALL + col1 * - - col1 + col0 + col2 + - + col0 * + col1 + - col2 * + - col1 - + ( - 69 ) * - 12 + - col1 AS col2 FROM tab1
----
-794
131
412

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL 76 - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL 76 - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT + - ( + ( + MAX( ALL - 83 ) ) ) AS col1 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3614
SELECT + - ( + ( + MAX ( ALL - 83 ) ) ) AS col1 FROM tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT ( - 51 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT COUNT( 2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT COUNT ( 2 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - col1 >= + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - - 56 ) <> 99 - + 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab0 WHERE NOT + col0 <= - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL + COUNT( * ) * + 73 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + COUNT ( * ) * + 73 FROM tab0
----
219

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE 33 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col1, - 59 col0 FROM tab0
----
1215
-59
1827
-59
97
-59

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + 44 * + col0 - 64 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3624
SELECT - CAST( col0 AS SIGNED ) AS col0, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-3624
SELECT - CAST ( col0 AS INTEGER ) AS col0, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT + col1 * + 68 FROM tab1 AS cor0
----
3196
340
952

query I rowsort
SELECT + + 61 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT DISTINCT col2 DIV - col1 + - col2 * col0 FROM tab1
----
-4902
-5026
-6189

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT col2 / - col1 + - col2 * col0 FROM tab1
----
-4902
-5026
-6189

query I rowsort
SELECT + col0 + + 82 AS col0 FROM tab0 cor0
----
169
179
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + 84 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT + COUNT( * ) + + - COUNT( * ) + + 67 FROM tab1 cor0
----
67

skipif mysql # not compatible
query I rowsort label-3630
SELECT + COUNT ( * ) + + - COUNT ( * ) + + 67 FROM tab1 cor0
----
67

query I rowsort
SELECT ALL - + col0 + + + 41 FROM tab1 AS cor0
----
-10
-44
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ALL COUNT( - - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL COUNT ( - - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3633
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * - col2 AS col0, + 67 FROM tab2 AS cor0
----
NULL
67
NULL
67
NULL
67

skipif mysql # not compatible
query II rowsort label-3633
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * - col2 AS col0, + 67 FROM tab2 AS cor0
----
NULL
67
NULL
67
NULL
67

query I rowsort
SELECT - 55 + ( + - col1 ) + col1 FROM tab2 AS cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col0 col2 FROM tab0 AS cor0 WHERE col2 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL + 20 * + + col1 * - col0 + col1 + col0 FROM tab2 AS cor0
----
-100358
-46823
-98419

query II rowsort
SELECT + col2 * + col2 - + col2, - ( - col0 ) * + col0 * - 27 - col2 AS col1 FROM tab0 AS cor0
----
2162
-6122
90
-204373
9702
-254142

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 51 * + + col2 FROM tab1
----
3009
3468
4896

query II rowsort
SELECT - col0 AS col0, + col2 + ( + - col2 ) AS col2 FROM tab0
----
-15
0
-87
0
-97
0

query I rowsort
SELECT 27 FROM tab2 WHERE + col0 + - col0 / - col1 * - col1 * - + col2 + + - col1 + col2 IS NOT NULL
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + MIN( - + 12 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-3642
SELECT + MIN ( - + 12 ) FROM tab0
----
-12

query I rowsort
SELECT - col2 * + - col1 - 63 AS col1 FROM tab0
----
147
36
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT + col2 DIV col1 - - col2 col2 FROM tab1
----
102
69
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3644
SELECT + col2 / col1 - - col2 col2 FROM tab1
----
102
69
70

query I rowsort
SELECT DISTINCT - col2 + - 16 * - - 52 FROM tab0
----
-842
-879
-931

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3646
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - CAST( - + col1 AS DECIMAL ) AND col1
----

skipif mysql # not compatible
query III rowsort label-3646
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - CAST ( - + col1 AS REAL ) AND col1
----

query I rowsort
SELECT DISTINCT + - col2 - + + col0 * - ( + ( col2 ) ) FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT 91 + + ( - col1 ) FROM tab1 AS cor0
----
44
77
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3649
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0, - col1 AS col2 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-3649
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0, - col1 AS col2 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT 55 FROM tab0 AS cor0 WHERE NOT - 2 >= 67
----
55
55
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3651
SELECT - COUNT( * ), - ( 14 ) * + COUNT( * ) * + 29 FROM tab2 AS cor0 WHERE NOT NULL > + col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3651
SELECT - COUNT ( * ), - ( 14 ) * + COUNT ( * ) * + 29 FROM tab2 AS cor0 WHERE NOT NULL > + col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT + + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - 68 / col1 + - 61 IS NULL
----

query I rowsort
SELECT + + 97 AS col0 FROM tab0 cor0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT CAST( - - ( + col1 ) AS SIGNED ) * + + 68 AS col1 FROM tab2
----
3468
4556
5236

skipif mysql # not compatible
query I rowsort label-3655
SELECT CAST ( - - ( + col1 ) AS INTEGER ) * + + 68 AS col1 FROM tab2
----
3468
4556
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT - SUM( ALL - 89 ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-3656
SELECT - SUM ( ALL - 89 ) FROM tab2
----
267

query I rowsort
SELECT col0 * - - 81 AS col2 FROM tab2
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) col0 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3658
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) col0 FROM tab1
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT col2 * - CAST( NULL AS SIGNED ) * - ( ( 35 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT col2 * - CAST ( NULL AS INTEGER ) * - ( ( 35 ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - col2 NOT IN ( - col2 * - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * col1 col2 FROM tab2 AS cor0
----
2397
3149
3619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT - + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT - ( + col0 ) NOT IN ( - + 2, 38 * - col2 * - + 76, - CAST( col0 AS SIGNED ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3662
SELECT - + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( + col0 ) NOT IN ( - + 2, 38 * - col2 * - + 76, - CAST ( col0 AS INTEGER ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT MIN( - + 6 ) col2 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3663
SELECT DISTINCT MIN ( - + 6 ) col2 FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT ALL - col2 * + col0 + - CAST( NULL AS SIGNED ) - - col0 FROM tab2 WHERE NULL NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL - col2 * + col0 + - CAST ( NULL AS INTEGER ) - - col0 FROM tab2 WHERE NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3665
SELECT ALL * FROM tab0 WHERE NOT + ( - 69 ) / + col0 - col0 * - CAST( - - col1 AS DECIMAL ) <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3665
SELECT ALL * FROM tab0 WHERE NOT + ( - 69 ) / + col0 - col0 * - CAST ( - - col1 AS REAL ) <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + + 96 ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT - 7 AS col2 FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT ALL 49 * + - col0 AS col2 FROM tab1 AS cor0
----
-2499
-4165
-4459

query I rowsort
SELECT ALL - 53 AS col0 FROM tab0 cor0
----
-53
-53
-53

query I rowsort
SELECT col2 - - 85 + 17 AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( + + col2 ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL 51 * CAST( NULL AS SIGNED ) + + + AVG ( - 96 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL 51 * CAST ( NULL AS INTEGER ) + + + AVG ( - 96 ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 + - 2 + - + 79 AS col2 FROM tab2 WHERE ( NOT - col1 IS NULL )
----
-14
-30
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT COUNT( * ) + 3 AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT COUNT ( * ) + 3 AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT - MIN( ALL + 69 ) FROM tab0, tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3675
SELECT - MIN ( ALL + 69 ) FROM tab0, tab2 AS cor0
----
-69

query I rowsort
SELECT ALL + + col2 - - 33 FROM tab0 AS cor0
----
132
43
80

query I rowsort
SELECT ALL + ( col2 ) - + 72 AS col0 FROM tab2 AS cor0
----
-14
-32
-49

query III rowsort
SELECT * FROM tab1 cor0 WHERE 10 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col1 FROM tab2 cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT ALL CAST( NULL AS SIGNED ) * col0 / + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL CAST ( NULL AS INTEGER ) * col0 / + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT ALL - col0 DIV + 7 + + ( + 41 ) FROM tab1 AS cor0
----
28
29
34

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL - col0 / + 7 + + ( + 41 ) FROM tab1 AS cor0
----
28
29
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3682
SELECT SUM( - col1 ) DIV 5 AS col2 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3682
SELECT SUM ( - col1 ) / 5 AS col2 FROM tab0 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT DISTINCT 45 * + - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT 45 * + - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3684
SELECT ALL + col1 DIV - + col0 + + - col2 * - + col2 FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + col1 / - + col0 + + - col2 * - + col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL COUNT( * ) FROM tab1 WHERE 38 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL COUNT ( * ) FROM tab1 WHERE 38 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - 40
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL - MAX( ALL + + col1 ) * + + COUNT( - ( - - col2 ) ) AS col1 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL - MAX ( ALL + + col1 ) * + + COUNT ( - ( - - col2 ) ) AS col1 FROM tab2
----
-231

query I rowsort
SELECT 81 * + col1 AS col2 FROM tab1
----
1134
3807
405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3691
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( 8 ) * 16 FROM tab0
----
128
128
128

query II rowsort
SELECT DISTINCT + 29 * + 17 AS col2, 30 * + col0 * - 2 * 75 * + ( - col0 ) FROM tab2 AS cor0
----
493
18432000
493
25312500
493
9522000

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 8 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3696
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) FROM tab2
----
6

query III rowsort
SELECT * FROM tab2 WHERE col0 + - + col1 NOT BETWEEN - - col2 AND 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 57 + - col1 + - col2 * 73 * + col0 * - + col1 AS col0 FROM tab0
----
1333746
4168641
701075

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 71 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 37 IN ( - col2, + col2, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 39 + + col0 AS col0 FROM tab1 AS cor0
----
12
46
52

query II rowsort
SELECT - col0, + 44 AS col2 FROM tab0 cor0
----
-15
44
-87
44
-97
44

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 38
----

query I rowsort
SELECT + 49 * + - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1029
-3969
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT + MAX( ALL 47 ) * 3 AS col0 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3705
SELECT + MAX ( ALL 47 ) * 3 AS col0 FROM tab1 AS cor0
----
141

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - - col0
----

query I rowsort
SELECT ALL + 76 AS col2 FROM tab0 cor0
----
76
76
76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - ( col1 ) + col0 * + 94, col1 )
----

query II rowsort
SELECT - + col2, + 81 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 - + col1 * + 21 AS col2 FROM tab2
----
-1020
-1340
-1540

query I rowsort
SELECT col1 - + - col0 + 31 AS col0 FROM tab0
----
127
129
139

query I rowsort
SELECT + col1 - + + col0 AS col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT ( + col2 ) - 74 AS col1 FROM tab2
----
-16
-34
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT + COUNT( * ) + + 29 * - 66 FROM tab2
----
-1911

skipif mysql # not compatible
query I rowsort label-3715
SELECT + COUNT ( * ) + + 29 * - 66 FROM tab2
----
-1911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT ALL + CAST( 33 AS SIGNED ) + - + 83 FROM tab0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + CAST ( 33 AS INTEGER ) + - + 83 FROM tab0
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT DISTINCT + col2 DIV + 68 - col1 AS col2 FROM tab1
----
-13
-46
-5

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT + col2 / + 68 - col1 AS col2 FROM tab1
----
-13
-46
-5

query I rowsort
SELECT 8 + col2 AS col2 FROM tab1
----
104
67
76

query I rowsort
SELECT DISTINCT - - 13 + + col0 FROM tab2 AS cor0
----
59
77
88

query I rowsort
SELECT DISTINCT + - 53 AS col1 FROM tab2 AS cor0
----
-53

query I rowsort
SELECT ALL + col2 * - - 53 FROM tab0
----
2491
5247
530

query I rowsort
SELECT DISTINCT - 91 * - - col2 FROM tab2
----
-2093
-3640
-5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col2 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT ALL + 81 * - + col0 / + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( 19 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT ALL - col0 / - CAST( NULL AS SIGNED ) * + 25 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL - col0 / - CAST ( NULL AS INTEGER ) * + 25 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL + - MIN( DISTINCT - 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL + - MIN ( DISTINCT - 72 ) FROM tab1 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 21, 90 col1 FROM tab1 AS cor0
----
21
90
21
90
21
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3728
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3728
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + ( - + 69 ) AS col0 FROM tab1 cor0
----
-69
-69
-69

query I rowsort
SELECT ( - 76 ) FROM tab0 AS cor0
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, + col2 col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - ( - col2 ) * - 37 AS col2 FROM tab1
----
-2183
-2516
-3552

query I rowsort
SELECT + col0 * + + 77 AS col1 FROM tab1
----
3927
6545
7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + + col1 AS col0, + col0 col0 FROM tab2
----
102
46
134
75
154
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 17, - col2 col1 FROM tab1
----
17
-59
17
-68
17
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - 97 NOT BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT + 83 FROM tab0 WHERE NOT + col2 IS NULL
----
83
83
83

query II rowsort
SELECT DISTINCT + col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT + 40 AS col1, - COUNT( * ) FROM tab0 cor0
----
40
-3

skipif mysql # not compatible
query II rowsort label-3739
SELECT + 40 AS col1, - COUNT ( * ) FROM tab0 cor0
----
40
-3

query III rowsort
SELECT * FROM tab0 WHERE 56 NOT BETWEEN - - 3 * - + 17 AND - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 13 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT ALL + CAST( + ( - 41 ) AS SIGNED ) + - col1 + - + col2 FROM tab1
----
-105
-151
-156

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL + CAST ( + ( - 41 ) AS INTEGER ) + - col1 + - + col2 FROM tab1
----
-105
-151
-156

query I rowsort
SELECT ALL col1 * + ( + + 88 ) FROM tab1
----
1232
4136
440

query I rowsort
SELECT DISTINCT + 39 + 69 FROM tab1
----
108

query I rowsort
SELECT - 6 * + col1 FROM tab1 WHERE + 99 IS NOT NULL
----
-282
-30
-84

query I rowsort
SELECT DISTINCT - + col0 - - col2 + + col0 - + ( + col2 ) * + 76 * + 28 AS col0 FROM tab1 cor0
----
-125493
-144636
-204192

query I rowsort
SELECT DISTINCT - + 98 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col2 AND + - col1 * - - col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - COUNT( - 99 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3748
SELECT - COUNT ( - 99 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3

query I rowsort
SELECT - col1 * - col0 * - - 97 * - - 86 + col1 FROM tab0 AS cor0
----
10135611
15240855
809175

query I rowsort
SELECT 37 + 7 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 - - 98 AS col2 FROM tab1 AS cor0
----
51
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT + + MIN( - col1 ) + - 91 + + + COUNT( * ) FROM tab0 cor0
----
-169

skipif mysql # not compatible
query I rowsort label-3752
SELECT + + MIN ( - col1 ) + - 91 + + + COUNT ( * ) FROM tab0 cor0
----
-169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - + col1 col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3754
SELECT ALL + - col2, - CAST( - 15 AS SIGNED ) + - 32 + + + 54 * 86 FROM tab0 AS cor0 WHERE NOT NULL <> + 65
----

skipif mysql # not compatible
query II rowsort label-3754
SELECT ALL + - col2, - CAST ( - 15 AS INTEGER ) + - 32 + + + 54 * 86 FROM tab0 AS cor0 WHERE NOT NULL <> + 65
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3756
SELECT ( - col1 ) + - col0 AS col2, - CAST( NULL AS SIGNED ) - ( - col0 ) FROM tab0
----
-108
NULL
-96
NULL
-98
NULL

skipif mysql # not compatible
query II rowsort label-3756
SELECT ( - col1 ) + - col0 AS col2, - CAST ( NULL AS INTEGER ) - ( - col0 ) FROM tab0
----
-108
NULL
-96
NULL
-98
NULL

query I rowsort
SELECT DISTINCT 47 FROM tab1 WHERE NULL IS NULL
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT - CAST( + - col1 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3758
SELECT - CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT + - col0 AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - + COUNT( col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3760
SELECT - + COUNT ( col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 85 * - 74 FROM tab2
----
-6290

query III rowsort
SELECT * FROM tab1 WHERE NOT - 12 - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + + col0 * - 49 AS col1 FROM tab0
----
-4753
-59535
-89523

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 IS NOT NULL
----

query II rowsort
SELECT - + col2 * + - col2 AS col0, - col1 FROM tab0 AS cor0
----
100
-21
2209
-81
9801
-1

query I rowsort
SELECT DISTINCT + 41 + + + col0 AS col2 FROM tab1 cor0 WHERE NOT + ( + 94 ) + + - col1 IS NOT NULL
----

query I rowsort
SELECT - 13 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
-119808
-45253
-60112

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT - + col0 DIV 89 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT - + col0 / 89 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT col0 DIV 95 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3770
SELECT col0 / 95 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ( + - ( + col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 * + col0 col0 FROM tab0
----
-2958
-3298
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL COUNT( * ) * - 2 * + + COUNT( * ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL COUNT ( * ) * - 2 * + + COUNT ( * ) FROM tab2
----
-18

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = - 71
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT ALL - COUNT( * ) * + COUNT( * ) + CAST( COUNT( - - CAST( + col0 AS SIGNED ) ) AS SIGNED ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + CAST ( COUNT ( - - CAST ( + col0 AS INTEGER ) ) AS INTEGER ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT - - 10 * - 84 + + - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-843

skipif mysql # not compatible
query I rowsort label-3777
SELECT - - 10 * - 84 + + - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-843

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 53 / + col0 / - 45 >= col0 * - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + col1 IN ( + - col1, + col1 + + col0 * + col0, - - col0 * - col0, + + 28, - 97 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3780
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + ( + - col2 ) AS col1 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3782
SELECT + ( CAST( NULL AS DECIMAL ) ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3782
SELECT + ( CAST ( NULL AS REAL ) ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - 23 * + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - 94 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 35 * + + 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT + - 85 FROM tab0 cor0 WHERE + col2 BETWEEN NULL AND + + ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 43 + 31 + ( col1 ) BETWEEN NULL AND - - col0
----

query I rowsort
SELECT DISTINCT + - col0 * - - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3790
SELECT ALL - 8 * ( ( + + ( + - col1 ) ) ) DIV + col1 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL - 8 * ( ( + + ( + - col1 ) ) ) / + col1 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT DISTINCT 72 * COUNT( * ) col2 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3791
SELECT DISTINCT 72 * COUNT ( * ) col2 FROM tab1 AS cor0
----
216

query II rowsort
SELECT DISTINCT + - col0 AS col1, + col0 FROM tab1 cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 26 NOT BETWEEN - 88 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col2 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT MAX( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3795
SELECT MAX ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT - col2 DIV col0 col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3796
SELECT - col2 / col0 col1 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT DISTINCT 88, 14 * + col1 AS col2 FROM tab0 AS cor0
----
88
1134
88
14
88
294

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL - 43 * + COUNT( * ) FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - 43 * + COUNT ( * ) FROM tab2 AS cor0
----
-129

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 35 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT - 43 * COUNT( * ) FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-3800
SELECT - 43 * COUNT ( * ) FROM tab0 AS cor0
----
-129

query I rowsort
SELECT DISTINCT 23 * + 32 FROM tab1
----
736

query I rowsort
SELECT ALL - - 74 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * + col2 + - 91 - col2 * + col1 FROM tab0
----
-3193
569
9413

query I rowsort
SELECT - ( - + col2 ) + + 39 FROM tab1
----
107
135
98

query I rowsort
SELECT ALL + ( + col1 ) + - - col0 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE + 77 IS NULL
----

query I rowsort
SELECT ALL - 73 + 82 FROM tab2
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 31 < - 37
----

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) + - - CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) + - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3812
SELECT DISTINCT - - col0 AS col0, 76 * + 15 FROM tab1 AS cor0 WHERE - col0 IN ( + col2 * + + CAST( - 52 AS SIGNED ) - col2, + 94 )
----

skipif mysql # not compatible
query II rowsort label-3812
SELECT DISTINCT - - col0 AS col0, 76 * + 15 FROM tab1 AS cor0 WHERE - col0 IN ( + col2 * + + CAST ( - 52 AS INTEGER ) - col2, + 94 )
----

query I rowsort
SELECT + col1 * + col1 * col2 + + - 19 * 51 * 83 + col1 + - + 65 - + 60 + - 58 * - ( - col2 ) * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
-72356
-81991
8282

query I rowsort
SELECT DISTINCT col1 * - col0 - + col0 AS col0 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT - 39 - COUNT( * ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT - 39 - COUNT ( * ) FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT DISTINCT MAX( + + 47 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT MAX ( + + 47 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - col1 + - + col1 * + + col2 * - col0 + - 50 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT ALL + 15 AS col2, col0 FROM tab2
----
15
46
15
64
15
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT - ( + COUNT( * ) ) AS col1 FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT NULL <> NULL
----
0

query II rowsort
SELECT ALL col0, col1 AS col0 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL - ( + 47 ) FROM tab2
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3822
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - col2 / - col2 IN ( 17, - col2, CAST( NULL AS SIGNED ), - + 46 * + CAST( NULL AS SIGNED ), - col2, - - 62 )
----

skipif mysql # not compatible
query III rowsort label-3822
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - col2 / - col2 IN ( 17, - col2, CAST ( NULL AS INTEGER ), - + 46 * + CAST ( NULL AS INTEGER ), - col2, - - 62 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 - + col2 < - 72
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + ( - 60 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 37 col1 FROM tab0 AS cor0
----
-37
-37
-37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL - + COUNT( - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - + COUNT ( - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT - - COUNT( * ) + + + MAX( 87 ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3828
SELECT - - COUNT ( * ) + + + MAX ( 87 ) AS col0 FROM tab2 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab0 AS cor0 WHERE col2 * - + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT + ( + + 74 ) DIV - 50 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3830
SELECT + ( + + 74 ) / - 50 AS col1 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3831
SELECT ALL 32 + + 6 DIV + COUNT( * ) AS col2 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL 32 + + 6 / + COUNT ( * ) AS col2 FROM tab2
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, - col2 col0 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT ALL - 51 + + CAST( ( + - col0 ) AS SIGNED ) - - - col0 FROM tab0
----
-225
-245
-81

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL - 51 + + CAST ( ( + - col0 ) AS INTEGER ) - - - col0 FROM tab0
----
-225
-245
-81

query I rowsort
SELECT DISTINCT + col0 + + 68 FROM tab0
----
155
165
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT + MIN( - ( - ( - - col1 ) ) ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3835
SELECT + MIN ( - ( - ( - - col1 ) ) ) AS col2 FROM tab1
----
5

query I rowsort
SELECT - col2 + + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 * col1 + 17 FROM tab2 AS cor0
----
1190
3097
3903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT DISTINCT + CAST( 39 AS SIGNED ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + CAST ( 39 AS INTEGER ) FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT 12 + + COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT 12 + + COUNT ( * ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL + ( + ( 57 ) ) + MAX( ALL - col2 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL + ( + ( 57 ) ) + MAX ( ALL - col2 ) FROM tab0
----
47

query I rowsort
SELECT + 84 * col0 + + 78 AS col1 FROM tab1
----
4362
7218
7722

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 >= col1
----

query I rowsort
SELECT ALL + col2 * 7 AS col2 FROM tab1
----
413
476
672

query I rowsort
SELECT ALL - col1 * - 26 AS col1 FROM tab0
----
2106
26
546

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 77 + - 36 FROM tab1
----
-1114
-3655
-421

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3847
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( ( + CAST( col0 AS SIGNED ) ) - + 7 )
----

skipif mysql # not compatible
query III rowsort label-3847
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( ( + CAST ( col0 AS INTEGER ) ) - + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT - 39 + COUNT( * ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-3848
SELECT - 39 + COUNT ( * ) FROM tab2
----
-36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * + col2 <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3850
SELECT ALL MAX( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3851
SELECT - col1 DIV col2 FROM tab0 WHERE NULL IS NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT - col1 / col2 FROM tab0 WHERE NULL IS NULL
----
-1
-2
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 12 + 19 * + col0 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT COUNT( * ) FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3853
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT MIN( - col0 ) + + COUNT( * ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-3854
SELECT MIN ( - col0 ) + + COUNT ( * ) FROM tab0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL SUM( DISTINCT + 23 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL SUM ( DISTINCT + 23 ) FROM tab2 cor0
----
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 27 * - 4 NOT IN ( col1 )
----

query I rowsort
SELECT ALL + col2 * 68 AS col1 FROM tab2 AS cor0
----
1564
2720
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT DISTINCT col1 DIV + col2 AS col2 FROM tab2 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT col1 / + col2 AS col2 FROM tab2 cor0
----
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT DISTINCT + MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT col0 DIV + ( 93 + - 15 ) AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3861
SELECT col0 / + ( 93 + - 15 ) AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT + SUM( ALL col2 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT + SUM ( ALL col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3863
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT - + 23 DIV + col1 + + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3864
SELECT - + 23 / + col1 + + col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 72 * + col0 + 3 < + ( + col0 )
----

query I rowsort
SELECT + ( 29 ) + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-181
-3778
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL - col0 + col1 col0 FROM tab1 AS cor0 WHERE NOT ( - col1 + CAST( NULL AS SIGNED ) * ( - col2 ) ) < ( 24 + + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3867
SELECT ALL - col0 + col1 col0 FROM tab1 AS cor0 WHERE NOT ( - col1 + CAST ( NULL AS INTEGER ) * ( - col2 ) ) < ( 24 + + col2 )
----

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND ( - 17 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT ( - - col2 ) + 93 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT ( - - col2 ) + 93 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 80 FROM tab0 WHERE NULL <= ( + 73 * - 38 )
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT - col0 / - 3 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + col0 = + col2 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + 74 AS col1 FROM tab2
----
120
138
149

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE 0 BETWEEN - col1 AND ( - col0 * 44 )
----

query I rowsort
SELECT DISTINCT - col2 + - + col0 AS col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT - col1 * col2 AS col2 FROM tab2 WHERE + col2 NOT BETWEEN + 50 AND ( - col0 )
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 * col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT COUNT( * ) FROM tab2 WHERE - col1 BETWEEN + 4 - + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT COUNT ( * ) FROM tab2 WHERE - col1 BETWEEN + 4 - + col2 AND NULL
----
0

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND 17
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT ALL col1 + col1 DIV - 11 FROM tab0
----
1
20
74

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL col1 + col1 / - 11 FROM tab0
----
1
20
74

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + - col0 + - 46 FROM tab1
----
-126
-83
-90

query III rowsort
SELECT * FROM tab2 WHERE ( col0 / + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 15 + col2 + + col1 FROM tab0
----
115
143
46

query III rowsort
SELECT * FROM tab2 WHERE 21 IS NULL
----

query I rowsort
SELECT ( - 46 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + ( 35 ) * + col2 col2 FROM tab2 cor0
----
1360
1972
782

query I rowsort
SELECT col1 * + + col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL - col1 - col0 FROM tab1 AS cor0 WHERE NULL <> ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT - 38 + 49 * col1 FROM tab2 AS cor0 WHERE + CAST( 45 AS SIGNED ) + + 13 IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-3890
SELECT - 38 + 49 * col1 FROM tab2 AS cor0 WHERE + CAST ( 45 AS INTEGER ) + + 13 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT 4 * + COUNT( * ) FROM tab0 cor0 WHERE col0 * + 46 IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-3891
SELECT 4 * + COUNT ( * ) FROM tab0 cor0 WHERE col0 * + 46 IS NOT NULL
----
12

query I rowsort
SELECT 47 * col0 - + - col2 FROM tab0
----
4099
4658
752

query I rowsort
SELECT - 7 * 59 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2028634b13d665f3ae5ae523d1f8c304

query I rowsort
SELECT DISTINCT col1 * - - 96 * - 2 FROM tab1
----
-2688
-9024
-960

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

query II rowsort
SELECT - col0 AS col2, col0 * - col1 FROM tab2 cor0
----
-46
-2346
-64
-4928
-75
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT DISTINCT - - col2 DIV 61 DIV + col0 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3897
SELECT DISTINCT - - col2 / 61 / + col0 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 8 FROM tab2 cor0 WHERE ( NULL ) BETWEEN + 79 AND col2 * col2 + - 17
----

query II rowsort
SELECT ALL - + 14, 23 + - + 38 + col1 * col1 AS col1 FROM tab2 AS cor0
----
-14
2586
-14
4474
-14
5914

query I rowsort
SELECT DISTINCT + 45 * + col1 FROM tab0 AS cor0
----
3645
45
945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL + MIN( DISTINCT - CAST( col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE + col2 + col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + MIN ( DISTINCT - CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE + col2 + col1 > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 70 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 <= - ( + col1 ) * col2 + - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL 33 * + SUM( ALL + col1 ) AS col1 FROM tab2
----
6435

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL 33 * + SUM ( ALL + col1 ) AS col1 FROM tab2
----
6435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - 53 col0 FROM tab1
----
2491
265
742

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN NULL AND - - col0 + col0 / + 37
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL <= - - 9 - 85
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3908
SELECT DISTINCT + 30 DIV - 1, MAX( - - col2 ) AS col1 FROM tab0
----
-30
99

skipif mysql # not compatible
query II rowsort label-3908
SELECT DISTINCT + 30 / - 1, MAX ( - - col2 ) AS col1 FROM tab0
----
-30
99

query I rowsort
SELECT ALL col1 * + 89 FROM tab0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT SUM( DISTINCT + 37 ) AS col2 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-3910
SELECT SUM ( DISTINCT + 37 ) AS col2 FROM tab2
----
37

query I rowsort
SELECT ALL 20 AS col2 FROM tab2 WHERE NOT - col2 = + 78
----
20
20
20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( + col2 ) NOT IN ( 7 ) ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND ( + 44 )
----

query I rowsort
SELECT DISTINCT - col0 * - col2 + - col0 + + 15 + col1 FROM tab1 AS cor0
----
4874
4950
6159

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 9 ) NOT BETWEEN NULL AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 / - col0 col1 FROM tab0 WHERE ( - + col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3917
SELECT - 5 + + MAX( - - 69 ) AS col1, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-3917
SELECT - 5 + + MAX ( - - 69 ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT col1 / - col0 + + CAST( NULL AS SIGNED ) + col2 + col2 * + 22 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT col1 / - col0 + + CAST ( NULL AS INTEGER ) + col2 + col2 * + 22 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + - 60 AS col2 FROM tab2 AS cor0
----
-14
15
4

query I rowsort
SELECT - ( + - col0 ) FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL MIN( + 58 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL MIN ( + 58 ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > - - col1 + + col1
----

query I rowsort
SELECT ALL + 24 + - - col1 * + - 43 - - - col1 AS col1 FROM tab0
----
-20
-3540
-900

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 / - + ( + col0 ) * + - col0 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3925
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) NOT IN ( + col0 + + - col0 )
----

skipif mysql # not compatible
query III rowsort label-3925
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( + col0 + + - col0 )
----

query II rowsort
SELECT ALL col1 AS col1, - col2 * 32 FROM tab0
----
1
-3168
21
-320
81
-1504

query II rowsort
SELECT - 71 - - 43 AS col1, col0 AS col2 FROM tab0
----
-28
15
-28
87
-28
97

query I rowsort
SELECT ALL 59 + col0 - - - 85 * 31 FROM tab1
----
-2485
-2491
-2525

query I rowsort
SELECT + 49 * + 40 + - + col1 + + + 66 * + + 67 - - + col2 * + col1 FROM tab1 AS cor0
----
6672
7712
9531

query I rowsort
SELECT ALL + col2 + - 11 AS col0 FROM tab0 AS cor0
----
-1
36
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + + COUNT( * ) + - 26 col0 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3931
SELECT + + COUNT ( * ) + - 26 col0 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= col1 / + col1
----
0

skipif mysql # not compatible
query I rowsort label-3932
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= col1 / + col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 + + - col2 = ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT - + SUM( 41 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3937
SELECT - + SUM ( 41 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-369

query I rowsort
SELECT ( + + col2 ) + - + col0 + - ( - col0 ) * - 88 * 78 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3939
SELECT - 1 * - col1 FROM tab2 WHERE NOT ( NULL ) IS NULL AND + CAST( - - col0 AS DECIMAL ) / - col1 + + 80 + 63 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3939
SELECT - 1 * - col1 FROM tab2 WHERE NOT ( NULL ) IS NULL AND + CAST ( - - col0 AS REAL ) / - col1 + + 80 + 63 IS NULL
----

query I rowsort
SELECT DISTINCT + 57 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT CAST( NULL AS SIGNED ) * ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT CAST ( NULL AS INTEGER ) * ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 73 AS col2 FROM tab2 AS cor0
----
73

query I rowsort
SELECT DISTINCT - col1 / - col1 * ( + col1 ) FROM tab1 AS cor0 WHERE NOT + 11 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 <> ( col2 + 83 + + col1 - col0 * + 2 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - - ( 42 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 9 * - + 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 37 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 12 ) NOT BETWEEN - + col0 AND ( + + col1 / - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL 60 * - + COUNT( col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL 60 * - + COUNT ( col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT col2 * - 7 AS col0 FROM tab0
----
-329
-693
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3952
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 46 * - 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT + COUNT( * ) * + MAX( ALL col1 ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT + COUNT ( * ) * + MAX ( ALL col1 ) FROM tab0
----
243

query II rowsort
SELECT ALL col0, col2 * + 2 FROM tab1
----
51
192
85
118
91
136

query I rowsort
SELECT col1 * ( + + 78 ) FROM tab1
----
1092
3666
390

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT - COUNT( + + 70 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3957
SELECT - COUNT ( + + 70 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND - - col1
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT DISTINCT + MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT + MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT - col1 * - col0 + 85 * - col2 AS col0 FROM tab1 AS cor0
----
-1503
-4590
-7446

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL + 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT - MAX( + + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3964
SELECT - MAX ( + + col1 ) FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + col1 BETWEEN + - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * + col1 col1 FROM tab0 AS cor0
----
-200
-3760
0

query II rowsort
SELECT DISTINCT - + 42 + + col1, col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
25
75
35
64
9
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL - - COUNT( * ) * COUNT( * ) * - SUM( - - 94 ) FROM tab1 AS cor0
----
-2538

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - - COUNT ( * ) * COUNT ( * ) * - SUM ( - - 94 ) FROM tab1 AS cor0
----
-2538

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT 0 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3970
SELECT 0 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 68 + + - col0 AS col0 FROM tab2 AS cor0
----
-7
22
4

query I rowsort
SELECT 36 + col0 AS col0 FROM tab1 AS cor0
----
121
127
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + col1 <= NULL
----

query I rowsort
SELECT + + 2 + + 7 + 25 + + col2 AS col1 FROM tab2 AS cor0 WHERE 39 NOT IN ( - + 78, col2 )
----
57
74
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 + - col0 col2 FROM tab0
----
-168
-178
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT DISTINCT CAST( + 71 AS SIGNED ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT CAST ( + 71 AS INTEGER ) FROM tab2
----
71

query I rowsort
SELECT - - 7 AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL 23 + + COUNT( * ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL 23 + + COUNT ( * ) FROM tab0
----
26

query I rowsort
SELECT ALL + 12 + 0 AS col0 FROM tab0
----
12
12
12

query I rowsort
SELECT ALL ( - ( - col0 ) ) * 48 * 29 + - 57 AS col1 FROM tab0
----
121047
134967
20823

query I rowsort
SELECT ALL 24 - + col1 FROM tab1 cor0
----
-23
10
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + - 51 + + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL >= col2 - + col2
----
-51

skipif mysql # not compatible
query I rowsort label-3982
SELECT + - 51 + + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL >= col2 - + col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 84 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 84 IS NOT NULL
----
-3

query I rowsort
SELECT + - col1 * - - col1 * + 78 FROM tab1 AS cor0
----
-15288
-172302
-1950

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <> + + col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - - COUNT( * ) + - 12 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-3986
SELECT - - COUNT ( * ) + - 12 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, + col0 col0 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / + 21 IN ( - 80 * 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT - 47 + - col2 + + + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT - 47 + - col2 + + + col1 <> NULL
----
0

query II rowsort
SELECT col1 * 89 AS col1, - 14 FROM tab2
----
4539
-14
5963
-14
6853
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT DISTINCT - COUNT( * ) col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3991
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT + MIN( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + MIN ( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT - ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT + COUNT( DISTINCT - col1 ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 col1, col0 + + col0 AS col2 FROM tab1 cor0
----
35
102
35
170
35
182

query II rowsort
SELECT col2 AS col2, + col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3997
SELECT + - COUNT( * ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3997
SELECT + - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

query II rowsort
SELECT + col0 AS col1, col1 * - col2 AS col0 FROM tab2 AS cor0
----
46
-1173
64
-3080
75
-3886

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 10 / col2 * - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 23 + - + col0 + - - col2 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + - 91 * - + 38 AS col1, - 63 * + - col0 FROM tab2 AS cor0
----
3458
2898
3458
4032
3458
4725

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - - col0 IS NULL
----

query I rowsort
SELECT ALL - col0 + - + 37 + + + 46 FROM tab1
----
-42
-76
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4004
SELECT ALL * FROM tab2 WHERE + - ( + + col1 ) NOT IN ( - col1, 39 / + CAST( col0 AS DECIMAL ) - - 52, - col2 )
----

skipif mysql # not compatible
query III rowsort label-4004
SELECT ALL * FROM tab2 WHERE + - ( + + col1 ) NOT IN ( - col1, 39 / + CAST ( col0 AS REAL ) - - 52, - col2 )
----

query I rowsort
SELECT ALL - 11 * - col2 FROM tab1 AS cor0
----
1056
649
748

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - MAX( + 81 ) AS col1 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4006
SELECT - MAX ( + 81 ) AS col1 FROM tab1 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + ( + - ( + + col0 ) ) + - col0 * + + col0 + - col1 col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT - - col2 AS col0, col0 + + 86 AS col0 FROM tab2 AS cor0
----
23
132
40
150
58
161

query I rowsort
SELECT + + 96 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 - ( + 88 ) + col0 + + col0 * - + col2 * - col1
----

query I rowsort
SELECT - 24 FROM tab0 AS cor0 WHERE ( - + col1 ) < - + 91
----

query II rowsort
SELECT + col1, 72 - col0 FROM tab1 cor0
----
14
21
47
-19
5
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL MIN( DISTINCT col1 ) * - ( - 20 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL MIN ( DISTINCT col1 ) * - ( - 20 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND 75
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT DISTINCT + + col1 DIV - + col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + + col1 / - + col0 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT - 29 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-29
-29
-29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col0, 86, 64 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT 67 / CAST( NULL AS SIGNED ) - + + CAST( 33 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT 67 / CAST ( NULL AS INTEGER ) - + + CAST ( 33 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT DISTINCT 78 + + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT 78 + + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + 84 - + COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4018
SELECT + 84 - + COUNT ( * ) FROM tab2
----
81

query I rowsort
SELECT 13 * - 38 + - col0 AS col2 FROM tab0
----
-509
-581
-591

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT col2 DIV col1 + - col0 col1 FROM tab0
----
-15
-87
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4020
SELECT col2 / col1 + - col0 col1 FROM tab0
----
-15
-87
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4021
SELECT ALL + 6 AS col1 FROM tab1 WHERE NOT - col1 <= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL + 6 AS col1 FROM tab1 WHERE NOT - col1 <= + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 37 <= + col0 * - - col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 NOT IN ( - - col1, 81 + + col0, col0, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN 26 AND 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 91 ) FROM tab2, tab1 cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT ALL - col0 + - + col0 + + col1 * + - col1 + col0 - 67 * 93 FROM tab1 AS cor0 WHERE 34 IS NULL
----

query II rowsort
SELECT ALL - + col0 AS col2, + col0 * 21 + - col2 AS col2 FROM tab1 AS cor0
----
-51
975
-85
1726
-91
1843

query I rowsort
SELECT + + ( - 61 ) FROM tab2 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ALL + COUNT( * ) * + 86 + 48 * + 40 FROM tab1 AS cor0
----
2178

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL + COUNT ( * ) * + 86 + 48 * + 40 FROM tab1 AS cor0
----
2178

query I rowsort
SELECT DISTINCT ( + 80 ) FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - SUM( + - 7 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4031
SELECT - SUM ( + - 7 ) FROM tab0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col2 - col0 AS col0 FROM tab1
----
14
45
47
-23
5
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4033
SELECT + col2 * - CAST( NULL AS SIGNED ) * + col0 + - - col1, col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4033
SELECT + col2 * - CAST ( NULL AS INTEGER ) * + col0 + - - col1, col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT - 70 + COUNT( * ) * + 54 AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-4034
SELECT - 70 + COUNT ( * ) * + 54 AS col1 FROM tab1
----
92

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT - col0 <= 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + 96 col0 FROM tab0
----
152
152
152

query I rowsort
SELECT DISTINCT - col0 + - ( + - col0 ) AS col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( ( - col2 ) ) * - col1 ) NOT BETWEEN NULL AND 18 + + col2 - - + col0 + + 0 * - - 8 * - 37 * + col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 56 * - 34 FROM tab2
----
-1904

query I rowsort
SELECT DISTINCT 93 + 9 FROM tab2 cor0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT 60 / + AVG ( DISTINCT - + col2 ) + + - 65 AS col2 FROM tab1 AS cor0 WHERE col1 IN ( 32 + CAST( - 44 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT 60 / + AVG ( DISTINCT - + col2 ) + + - 65 AS col2 FROM tab1 AS cor0 WHERE col1 IN ( 32 + CAST ( - 44 AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT col2, - 75 AS col2 FROM tab0 cor0
----
10
-75
47
-75
99
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( + - CAST( NULL AS SIGNED ) ) - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( + - CAST ( NULL AS INTEGER ) ) - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 37 <> + + col0 * - 28 + - 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 69 + + col2 FROM tab0 AS cor0
----
-22
-59
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 * - 84 + + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 * - 84 + + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT + CAST( NULL AS SIGNED ) + - + col1 + - + col1 + - - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT + CAST ( NULL AS INTEGER ) + - + col1 + - + col1 + - - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 24 + + col2 + col1 FROM tab1 AS cor0
----
-1013
-226
-56

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 35 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT ALL - CAST( NULL AS SIGNED ) / - col2 - - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - CAST ( NULL AS INTEGER ) / - col2 - - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - col2
----

query II rowsort
SELECT ALL 43, - col1 * + col0 * + col1 - + ( + - 90 ) AS col1 FROM tab1
----
43
-200929
43
-2035
43
-9906

query I rowsort
SELECT ALL - 96 FROM tab1, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT ALL col0 DIV + - 3 FROM tab2
----
-15
-21
-25

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL col0 / + - 3 FROM tab2
----
-15
-21
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT + MAX( + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT + MAX ( + - col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - + ( - 90 ) AS col1 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4057
SELECT - + 0 * 84 * - COUNT( * ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-4057
SELECT - + 0 * 84 * - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
0
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 78 * + + col2 + + - 24 / - + col0 + 81 col0 FROM tab0 WHERE NOT NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4060
SELECT ALL - col1 * + col1 / + 85 * - col0 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - col1 * + col1 / + 85 * - col0 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL + col0 + - 41 AS col1 FROM tab0 WHERE NOT col1 + 61 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4064
SELECT col1 * + + 32 + 45 + - 26 DIV 67 AS col1 FROM tab0 AS cor0
----
2637
717
77

skipif mysql # not compatible
query I rowsort label-4064
SELECT col1 * + + 32 + 45 + - 26 / 67 AS col1 FROM tab0 AS cor0
----
2637
717
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT ( 58 ) + 9 + - - col1 + - ( - col2 ) * - col1 DIV - col1 FROM tab0 AS cor0
----
167
195
98

skipif mysql # not compatible
query I rowsort label-4065
SELECT ( 58 ) + 9 + - - col1 + - ( - col2 ) * - col1 / - col1 FROM tab0 AS cor0
----
167
195
98

query I rowsort
SELECT + col2 + 80 FROM tab2 cor0
----
103
120
138

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 91 AS col1 FROM tab0 AS cor0
----
91

query I rowsort
SELECT ALL + - 96 AS col0 FROM tab0 AS cor0
----
-96
-96
-96

query II rowsort
SELECT ALL - - col0 * + col2 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
4896
-51
5015
-85
6188
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 + - - col2 col0 FROM tab0
----
132
184
95

query I rowsort
SELECT DISTINCT col1 + - + 32 AS col0 FROM tab0
----
-11
-31
49

query II rowsort
SELECT col0 AS col1, + 98 FROM tab2
----
46
98
64
98
75
98

query I rowsort
SELECT DISTINCT col0 + - - col0 + 62 FROM tab1
----
164
232
244

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT - COUNT( * ) * + ( + 75 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-4075
SELECT - COUNT ( * ) * + ( + 75 ) FROM tab2
----
-225

query I rowsort
SELECT DISTINCT - ( - col1 ) + + 64 + col1 AS col1 FROM tab1
----
158
74
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT - + col2 DIV - + col0 + 18 + 21 FROM tab0 AS cor0
----
39
40
42

skipif mysql # not compatible
query I rowsort label-4077
SELECT - + col2 / - + col0 + 18 + 21 FROM tab0 AS cor0
----
39
40
42

query I rowsort
SELECT - col2 * + - col0 + - col0 FROM tab1
----
4845
4930
6097

query I rowsort
SELECT ALL - 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + - col2 AS col0, ( - - col2 ) FROM tab2 cor0
----
-23
23
-40
40
-58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, 0 * + col2 col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

query I rowsort
SELECT ALL - - ( - 22 ) FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + ( + 96 ) * - col2 * - - ( - + 55 ) FROM tab2 AS cor0
----
121440
211200
306240

query I rowsort
SELECT ALL col1 * - - 81 AS col2 FROM tab2
----
4131
5427
6237

query I rowsort
SELECT DISTINCT + ( + 40 ) * 63 FROM tab1
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT ALL 23 * + CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-1058
-1472
-1725

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL 23 * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-1058
-1472
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT DISTINCT SUM( 54 ) AS col1 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT SUM ( 54 ) AS col1 FROM tab0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT ALL + col1 DIV - 88 * - ( - col0 ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + col1 / - 88 * - ( - col0 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * - ( - 48 ) * 51 FROM tab2
----
112608
156672
183600

query I rowsort
SELECT ALL 39 * - col2 FROM tab0
----
-1833
-3861
-390

query I rowsort
SELECT DISTINCT - 71 AS col2 FROM tab2 cor0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4093
SELECT ALL - + 71 DIV col1 * - - col1 FROM tab1 AS cor0
----
-47
-70
-70

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - + 71 / col1 * - - col1 FROM tab1 AS cor0
----
-47
-70
-70

query I rowsort
SELECT ALL col1 * 36 FROM tab0
----
2916
36
756

query I rowsort
SELECT ALL col1 + - 85 + 72 * - col0 * - 89 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - - col0, 83 AS col2 FROM tab0 AS cor0
----
15
83
87
83
97
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL + - MIN( ALL col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL + - MIN ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 89 * - col2 FROM tab1 AS cor0
----
-5251
-6052
-8544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4100
SELECT + + col1 col0, + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
1
-99
21
-10
81
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4100
SELECT + + col1 col0, + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT + - ( + 88 ) * + 44 FROM tab0 cor0
----
-3872
-3872
-3872

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 41 + ( + - 41 ) BETWEEN col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 + - ( col1 ) + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + + 10 + + col1 AS col0 FROM tab1 AS cor0
----
15
24
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT - - CAST( NULL AS SIGNED ) / + 9 + - - 8 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT - - CAST ( NULL AS INTEGER ) / + 9 + - - 8 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - COUNT( * ) + - 58 col2 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4106
SELECT - COUNT ( * ) + - 58 col2 FROM tab1 AS cor0
----
-61

query II rowsort
SELECT + 45 + + + 79 * - + col2 AS col1, - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1772
-102
-3115
-154
-4537
-134

query I rowsort
SELECT DISTINCT 57 + - col1 AS col2 FROM tab1
----
10
43
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT 7 + MIN( col1 ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-4109
SELECT 7 + MIN ( col1 ) AS col1 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT MIN( ALL col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT MIN ( ALL col1 ) AS col2 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT + - CAST( - - col1 AS SIGNED ) / + col2 + col2 + + 29 AS col2 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4111
SELECT + - CAST ( - - col1 AS INTEGER ) / + col2 + col2 + + 29 AS col2 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL 75 + + + 28 - 7 * + 28 FROM tab0
----
-93
-93
-93

query I rowsort
SELECT ALL col1 + - ( + col2 ) * + + ( - 42 ) * col2 + + + col0 - + - 99 FROM tab0
----
411839
4407
92973

query I rowsort
SELECT DISTINCT - col2 * + - 12 + + col1 FROM tab2
----
327
557
763

query I rowsort
SELECT ALL col2 - - 0 AS col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4116
SELECT - + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT - + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 35 * - 98 AS col1 FROM tab1 AS cor0
----
3430
3430
3430

query I rowsort
SELECT col2 + + 73 AS col0 FROM tab1
----
132
141
169

query I rowsort
SELECT + - col1 + - col0 + + col1 * - + 44 AS col1 FROM tab0 AS cor0
----
-1032
-142
-3660

query II rowsort
SELECT - 50 AS col2, col2 + + 21 + + - 18 AS col2 FROM tab1 AS cor0
----
-50
62
-50
71
-50
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 80, col2 col2 FROM tab1 AS cor0
----
-80
59
-80
68
-80
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT ALL CAST( 13 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL CAST ( 13 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + 75 AS col1 FROM tab2 cor0
----
-23
75
-40
75
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL - MAX( - 69 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL - MAX ( - 69 ) FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - MAX( DISTINCT - - 25 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4125
SELECT - MAX ( DISTINCT - - 25 ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT ALL - ( 1 ) * + col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + - 97 * + col1 FROM tab0 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 40 IN ( - col1, - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT ALL SUM( ALL - col2 ) FROM tab0 WHERE NOT NULL BETWEEN + + col0 + + CAST( NULL AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL SUM ( ALL - col2 ) FROM tab0 WHERE NOT NULL BETWEEN + + col0 + + CAST ( NULL AS INTEGER ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT CAST( + + ( + - 24 ) AS SIGNED ) AS col1 FROM tab1
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-4130
SELECT CAST ( + + ( + - 24 ) AS INTEGER ) AS col1 FROM tab1
----
-24
-24
-24

query I rowsort
SELECT - 26 * + 72 AS col1 FROM tab0 AS cor0
----
-1872
-1872
-1872

query I rowsort
SELECT DISTINCT + - 66 * - + col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 + col0 * 32 / - - col2 AND - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT ALL + + 85 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL - 33 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4136
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( + col1 AS SIGNED ) NOT BETWEEN + col1 / - col1 + 71 * - col1 + + - col2 + - - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4136
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( + col1 AS INTEGER ) NOT BETWEEN + col1 / - col1 + 71 * - col1 + + - col2 + - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL - - col0 * + + col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT DISTINCT + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 93 < - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - 91 BETWEEN - 40 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4143
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) DIV + - COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) / + - COUNT ( * ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - MAX( - - 83 ) AS col0 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-4144
SELECT - MAX ( - - 83 ) AS col0 FROM tab0
----
-83

query I rowsort
SELECT ALL + col0 + - col2 * col2 AS col1 FROM tab0
----
-13
-2194
-9704

query I rowsort
SELECT DISTINCT col2 + 30 AS col1 FROM tab0
----
129
40
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT DISTINCT 40 - - + SUM( 89 ) AS col1 FROM tab2
----
307

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT 40 - - + SUM ( 89 ) AS col1 FROM tab2
----
307

query I rowsort
SELECT DISTINCT + 41 * - + col1 * - col1 + - col0 AS col0 FROM tab0
----
-56
17994
268986

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col0 FROM tab1
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * + ( 22 ) col2 FROM tab0
----
1034

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - 74 * + + col0 * - 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + col0 * - + col1 AS col0, col2 * - + col2 FROM tab2 AS cor0
----
-2346
-529
-4928
-1600
-5025
-3364

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT 59 + + + MIN( ALL - + col1 ) AS col0 FROM tab1 WHERE NOT NULL >= col0 * - col0 * - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT 59 + + + MIN ( ALL - + col1 ) AS col0 FROM tab1 WHERE NOT NULL >= col0 * - col0 * - + 18
----
NULL

query I rowsort
SELECT ALL + ( - ( - col0 ) ) AS col2 FROM tab0
----
15
87
97

query II rowsort
SELECT - col1 * + ( + + col0 ), 89 AS col0 FROM tab1
----
-425
89
-4277
89
-714
89

query I rowsort
SELECT - 78 * 14 FROM tab1
----
-1092
-1092
-1092

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) = + 50 * + col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT - 44 * - - COUNT( * ) * SUM( - 54 ) * 38 FROM tab1
----
812592

skipif mysql # not compatible
query I rowsort label-4158
SELECT - 44 * - - COUNT ( * ) * SUM ( - 54 ) * 38 FROM tab1
----
812592

query I rowsort
SELECT DISTINCT col2 - + 64 AS col2 FROM tab1 AS cor0 WHERE ( ( - + 38 ) ) NOT IN ( col1 ) OR - col1 NOT BETWEEN + 28 AND - - col0 * - 91 - + col1 * + 83
----
-5
32
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT - + MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-4160
SELECT - + MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-47

query I rowsort
SELECT ALL - col1 * - ( + + col1 ) AS col2 FROM tab0
----
1
441
6561

query II rowsort
SELECT col0 AS col2, col0 FROM tab1 WHERE - 13 IS NOT NULL
----
51
51
85
85
91
91

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + - col1 AND - col1
----

query I rowsort
SELECT ALL - col1 * - 83 * - col0 * - + col0 AS col0 FROM tab2 AS cor0
----
26177536
31280625
8957028

query I rowsort
SELECT DISTINCT 45 + - + col0 FROM tab2 AS cor0
----
-1
-19
-30

query I rowsort
SELECT + 45 * + 78 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL - + MAX( ALL + - col2 ) + 57 col1 FROM tab1 AS cor0
----
116

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4167
SELECT ALL - + MAX ( ALL + - col2 ) + 57 col1 FROM tab1 AS cor0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL - + SUM( DISTINCT - col2 ) * COUNT( DISTINCT + - 91 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - + SUM ( DISTINCT - col2 ) * COUNT ( DISTINCT + - 91 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT - - 95 + - ( + col1 ) + + ( col0 ) FROM tab2 AS cor0
----
103
82
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4170
SELECT DISTINCT + 45 DIV - 69 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + 45 / - 69 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + col1 + col1 + + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4172
SELECT DISTINCT - col2 DIV - + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT - col2 / - + col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 > - + col0 / + - col1 - + col0
----
51
14
96

query I rowsort
SELECT + 83 + - ( col0 ) + 50 FROM tab0
----
118
36
46

query I rowsort
SELECT ( + col0 ) + col1 * + - 69 * - col0 FROM tab2
----
161920
340096
346800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL MIN( + 68 ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL MIN ( + 68 ) FROM tab0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4178
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4178
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 + + ( - col2 ) col0 FROM tab0 AS cor0
----
-42
-5
-94

query II rowsort
SELECT DISTINCT + + 18 - + - col1, col0 + ( - - col1 ) AS col2 FROM tab2 AS cor0
----
69
97
85
142
95
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 - 0 col2 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT ALL + 61 * + col0 - - 79 + - 2 * - col1 * col0 FROM tab1 AS cor0
----
14184
4618
6114

query I rowsort
SELECT ALL + 37 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query II rowsort label-4184
SELECT COUNT( * ), 17 col2 FROM tab1 AS cor0
----
3
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4184
SELECT COUNT ( * ), 17 col2 FROM tab1 AS cor0
----
3
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - COUNT( DISTINCT + 11 ) * 59 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4186
SELECT - COUNT ( DISTINCT + 11 ) * 59 FROM tab2 AS cor0
----
-59

query II rowsort
SELECT ALL + col2 AS col0, + 68 + col2 FROM tab2 AS cor0
----
23
91
40
108
58
126

onlyif mysql # aggregate syntax: 
query II rowsort label-4188
SELECT + ( - COUNT( + col1 ) ) AS col1, 81 + + + COUNT( * ) FROM tab1 AS cor0
----
-3
84

skipif mysql # not compatible
query II rowsort label-4188
SELECT + ( - COUNT ( + col1 ) ) AS col1, 81 + + + COUNT ( * ) FROM tab1 AS cor0
----
-3
84

query I rowsort
SELECT ALL + 68 AS col0 FROM tab1 AS cor0 WHERE col1 * + ( - 31 ) >= - 60 + - + 74
----

query II rowsort
SELECT DISTINCT + col0 AS col1, 45 FROM tab1 AS cor0
----
51
45
85
45
91
45

query I rowsort
SELECT + col2 * ( col0 ) FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL - ( + + col0 ) - + 68 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
SELECT ALL - col0 DIV + col2 + - - col0 * - - 97 AS col0 FROM tab0
----
1455
8431
9409

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - col0 / + col2 + - - col0 * - - 97 AS col0 FROM tab0
----
1455
8431
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT - MAX( col1 ) * MIN( DISTINCT + col0 ) + + 61 FROM tab0 AS cor0 WHERE NOT ( + col0 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - MAX ( col1 ) * MIN ( DISTINCT + col0 ) + + 61 FROM tab0 AS cor0 WHERE NOT ( + col0 IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4195
SELECT DISTINCT * FROM tab2 WHERE - - col0 + + + col2 + - - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4195
SELECT DISTINCT * FROM tab2 WHERE - - col0 + + + col2 + - - CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT - ( + - COUNT( * ) ) + - + COUNT( DISTINCT 41 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - ( + - COUNT ( * ) ) + - + COUNT ( DISTINCT 41 ) FROM tab2
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 41 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL - COUNT( DISTINCT - col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL - COUNT ( DISTINCT - col2 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 81 * + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + - 89 * col1 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab2, tab0 cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 + - - 67 + + - 15 * 50 + + 29 col2 FROM tab0
----
-526
-554
-623

query I rowsort
SELECT ALL 94 * + 88 + - - col2 * - 37 AS col2 FROM tab0
----
4609
6533
7902

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT + 0 - + - COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4205
SELECT + 0 - + - COUNT ( * ) AS col0 FROM tab1
----
3

query I rowsort
SELECT 68 + + col1 FROM tab0
----
149
69
89

query I rowsort
SELECT ALL - col0 + - 84 AS col2 FROM tab0
----
-171
-181
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4208
SELECT ALL CAST( + - 22 AS SIGNED ) - 68 FROM tab2
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL CAST ( + - 22 AS INTEGER ) - 68 FROM tab2
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT + COUNT( * ) + ( 41 ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4209
SELECT + COUNT ( * ) + ( 41 ) FROM tab2 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT col0 + col2 + ( + - CAST( 27 AS SIGNED ) ) * col1 AS col1 FROM tab1 cor0
----
-1110
-231
9

skipif mysql # not compatible
query I rowsort label-4210
SELECT col0 + col2 + ( + - CAST ( 27 AS INTEGER ) ) * col1 AS col1 FROM tab1 cor0
----
-1110
-231
9

query I rowsort
SELECT col0 * + 10 AS col0 FROM tab2 AS cor0
----
460
640
750

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE - col2 = + 25 AND NOT 84 NOT BETWEEN + col2 + col2 * col1 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT + ( + + MIN( - - ( + + col1 ) ) ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4213
SELECT + ( + + MIN ( - - ( + + col1 ) ) ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT + MIN( DISTINCT 50 ) AS col0 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4214
SELECT + MIN ( DISTINCT 50 ) AS col0 FROM tab0 AS cor0
----
50

query I rowsort
SELECT - + ( + - col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ( 91 ) * - col2 AS col1 FROM tab2
----
-2093
-3640
-5278

query I rowsort
SELECT ALL + 20 * 7 AS col0 FROM tab1
----
140
140
140

query I rowsort
SELECT DISTINCT + 44 * - col2 + + col0 AS col1 FROM tab0
----
-2053
-353
-4259

query I rowsort
SELECT ALL - 93 + - col0 FROM tab2
----
-139
-157
-168

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN + col1 - - - 48 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4221
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + + ( - 5 ) AS col0 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT + COUNT( - col0 ) FROM tab1 AS cor0 WHERE NOT col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT + COUNT ( - col0 ) FROM tab1 AS cor0 WHERE NOT col2 < NULL
----
0

query I rowsort
SELECT + 75 * col0 + + - col2 AS col2 FROM tab0 AS cor0
----
1078
6515
7176

query I rowsort
SELECT - 79 + + col2 + - - col2 FROM tab0 cor0
----
-59
119
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL 89 + - COUNT( * ) col0 FROM tab2
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4226
SELECT ALL 89 + - COUNT ( * ) col0 FROM tab2
----
86

query I rowsort
SELECT ALL col1 + + col1 + - col1 * + col2 AS col0 FROM tab2
----
-1071
-2926
-3752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT DISTINCT - 56 * - col2 FROM tab1 WHERE NOT + - ( CAST( NULL AS SIGNED ) ) NOT BETWEEN + col0 * col1 AND ( - + col2 )
----

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT - 56 * - col2 FROM tab1 WHERE NOT + - ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN + col0 * col1 AND ( - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 16, col2 + + 90 col1 FROM tab0
----
-16
100
-16
137
-16
189

query I rowsort
SELECT DISTINCT 63 * + 57 * - col1 AS col1 FROM tab2
----
-183141
-240597
-276507

query I rowsort
SELECT DISTINCT - + col2 + ( - 39 ) + + col0 FROM tab0 WHERE - col0 > + 77 + + - col2
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT + 55 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4233
SELECT ALL + - CAST( NULL AS SIGNED ), + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4233
SELECT ALL + - CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT DISTINCT + col0, - col0 AS col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT ALL - MIN( - col1 ) AS col0, 11 FROM tab2 AS cor0
----
77
11

skipif mysql # not compatible
query II rowsort label-4235
SELECT ALL - MIN ( - col1 ) AS col0, 11 FROM tab2 AS cor0
----
77
11

query II rowsort
SELECT DISTINCT + col2 AS col1, + ( col0 ) * col0 * + - col0 AS col1 FROM tab2 AS cor0
----
23
-97336
40
-262144
58
-421875

query I rowsort
SELECT DISTINCT + 34 * - - 18 * - col1 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 73 <= col2
----
-28696
-3001

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT DISTINCT - COUNT( * ) + + - 53 AS col2 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT - COUNT ( * ) + + - 53 AS col2 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT DISTINCT + col0 * 82 AS col1 FROM tab0 AS cor0
----
1230
7134
7954

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col2, - 20 AS col0 FROM tab2 WHERE ( NOT 85 BETWEEN col1 + 72 AND NULL )
----
46
-20
64
-20
75
-20

query III rowsort
SELECT * FROM tab2 WHERE col0 + + - col2 - + 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - - ( + + COUNT( * ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4243
SELECT - - ( + + COUNT ( * ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + col2 * + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL OR NULL IS NOT NULL
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - SUM( ALL ( + - col2 ) ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-4245
SELECT - SUM ( ALL ( + - col2 ) ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 / - col0 * - 95 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 / - col0 * - 95 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4247
SELECT - 15 + - COUNT( * ) AS col2, + 10 FROM tab2 AS cor0
----
-18
10

skipif mysql # not compatible
query II rowsort label-4247
SELECT - 15 + - COUNT ( * ) AS col2, + 10 FROM tab2 AS cor0
----
-18
10

query II rowsort
SELECT ALL col1 + - col1, - col1 + - 18 AS col1 FROM tab1 AS cor0
----
0
-23
0
-32
0
-65

query I rowsort
SELECT DISTINCT + 60 + + col0 FROM tab1
----
111
145
151

query I rowsort
SELECT ALL - - col2 + 63 FROM tab0 AS cor0
----
110
162
73

query I rowsort
SELECT ALL - ( ( - col2 ) ) - - col2 AS col0 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT 49 * - 81 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3966

skipif mysql # not compatible
query I rowsort label-4252
SELECT 49 * - 81 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3966

query I rowsort
SELECT - 69 * col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3519
-4623
-5313

query I rowsort
SELECT DISTINCT - ( + - col2 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - 17, + ( + - col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - ( + 34 ) AS col0 FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL + - SUM( - col1 ) - + - COUNT( * ) * - + ( - COUNT( * ) ) FROM tab0 cor0
----
112

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + - SUM ( - col1 ) - + - COUNT ( * ) * - + ( - COUNT ( * ) ) FROM tab0 cor0
----
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - col2 * + col1 * + col2 + + - ( - ( - + col0 ) ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 30 FROM tab2 AS cor0 WHERE ( NOT ( + col1 ) IS NULL )
----
-30
-30
-30

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col2, col0 + + 10 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT + ( - col1 ) DIV + col0 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT + ( - col1 ) / + col0 AS col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE NOT + col1 * col1 <> NULL
----

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT DISTINCT - COUNT( - ( + + 11 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - COUNT ( - ( + + 11 ) ) FROM tab0
----
-3

query I rowsort
SELECT 64 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NULL OR + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4268
SELECT + 19 DIV - SUM( ALL - 55 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT + 19 / - SUM ( ALL - 55 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT - - 37 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + - 97 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT - CAST( CAST( - + col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4271
SELECT - CAST ( CAST ( - + col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT DISTINCT col0 AS col1, 22 FROM tab2 AS cor0 WHERE - col0 > - 65
----
46
22
64
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT ALL COUNT( DISTINCT + CAST( - col0 AS SIGNED ) ) * - 61 AS col0 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL COUNT ( DISTINCT + CAST ( - col0 AS INTEGER ) ) * - 61 AS col0 FROM tab2
----
-183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4274
SELECT - + 47 AS col1, - 91 AS col0 FROM tab0 WHERE NOT CAST( + 16 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4274
SELECT - + 47 AS col1, - 91 AS col0 FROM tab0 WHERE NOT CAST ( + 16 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT DISTINCT MIN( - col1 ) col1 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4275
SELECT DISTINCT MIN ( - col1 ) col1 FROM tab2
----
-77

query I rowsort
SELECT + col0 / col0 * - + 38 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT DISTINCT - + CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT - + CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL col0 * + - col1 * - col2 * 8 AS col1 FROM tab0 AS cor0
----
146160
456840
76824

query I rowsort
SELECT DISTINCT + col0 * - + 65 FROM tab2 cor0
----
-2990
-4160
-4875

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT + + SUM( DISTINCT + + 30 ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4280
SELECT + + SUM ( DISTINCT + + 30 ) FROM tab2 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT DISTINCT 38 DIV col1 * + col1 col0 FROM tab1 AS cor0
----
0
28
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4281
SELECT DISTINCT 38 / col1 * + col1 col0 FROM tab1 AS cor0
----
0
28
35

query I rowsort
SELECT DISTINCT - col0 + + ( 75 ) AS col1 FROM tab0
----
-12
-22
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + 25 + - - COUNT( * ) AS col1 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-4283
SELECT + 25 + - - COUNT ( * ) AS col1 FROM tab0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT DISTINCT 12 * CAST( NULL AS SIGNED ) + - - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT 12 * CAST ( NULL AS INTEGER ) + - - col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT + 83 * COUNT( * ) + COUNT( * ) FROM tab0 WHERE NULL IN ( col1, col1 - - + col1 + - + col2 + - col0 + 8 / 69 )
----
0

skipif mysql # not compatible
query I rowsort label-4285
SELECT + 83 * COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NULL IN ( col1, col1 - - + col1 + - + col2 + - col0 + 8 / 69 )
----
0

query I rowsort
SELECT ALL + 15 * 86 * + - col0 FROM tab1 AS cor0
----
-109650
-117390
-65790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 col1 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT - - 17 * + col1 + - ( - + col1 ) AS col2 FROM tab0 AS cor0
----
1458
18
378

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4289
SELECT - CAST( + col0 AS SIGNED ) DIV + - 96 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4289
SELECT - CAST ( + col0 AS INTEGER ) / + - 96 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT ALL + + 21 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + + 21 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 44 IS NOT NULL
----

query I rowsort
SELECT ( - - 65 ) - col1 AS col2 FROM tab1
----
18
51
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT 13 DIV 20 DIV + col0 + + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4293
SELECT 13 / 20 / + col0 + + + col2 FROM tab1
----
59
68
96

query I rowsort
SELECT - + col0 + - col0 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL 55 - + - COUNT( * ) FROM tab0 cor0 WHERE NULL <= NULL
----
55

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL 55 - + - COUNT ( * ) FROM tab0 cor0 WHERE NULL <= NULL
----
55

query I rowsort
SELECT - 17 + ( - + col2 ) FROM tab0 AS cor0
----
-116
-27
-64

query I rowsort
SELECT DISTINCT - - col0 * + + col1 * + 39 - col2 * 92 + - ( + + col0 ) AS col1 FROM tab2 AS cor0
----
188448
190564
89332

query I rowsort
SELECT 37 + 30 AS col2 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT - 12 * - col1 + + col1 AS col1 FROM tab2 AS cor0
----
1001
663
871

query II rowsort
SELECT + col0, col2 AS col0 FROM tab2 AS cor0 WHERE 13 <> NULL
----

query I rowsort
SELECT 72 + - ( + 20 ) AS col2 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 + 40 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT MIN( + 81 ) AS col0 FROM tab1 cor0
----
81

skipif mysql # not compatible
query I rowsort label-4303
SELECT MIN ( + 81 ) AS col0 FROM tab1 cor0
----
81

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + col0 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT - - COUNT( * ) + - - MIN( - col0 ) FROM tab0 WHERE NOT ( 20 ) >= + col1 * + col0
----
-94

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - - COUNT ( * ) + - - MIN ( - col0 ) FROM tab0 WHERE NOT ( 20 ) >= + col1 * + col0
----
-94

query II rowsort
SELECT - col0, col1 - - - col1 AS col0 FROM tab0 WHERE NOT + col2 * + 1 > - - col0
----
-87
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4307
SELECT DISTINCT CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 81 FROM tab0 AS cor0 WHERE NOT + col1 <> - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT - COUNT( * ) * MIN( 93 ) * 47 * + COUNT( * ) FROM tab0 cor0
----
-39339

skipif mysql # not compatible
query I rowsort label-4309
SELECT - COUNT ( * ) * MIN ( 93 ) * 47 * + COUNT ( * ) FROM tab0 cor0
----
-39339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4310
SELECT ALL - 9 AS col1, + ( - - MIN( CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-4310
SELECT ALL - 9 AS col1, + ( - - MIN ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
-9
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 49 * col2 AS col0 FROM tab2 WHERE NOT col2 - - col1 IS NULL
----
1127
1960
2842

query I rowsort
SELECT DISTINCT 22 * 26 AS col1 FROM tab2
----
572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4314
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT + 67 * - col0 AS col1 FROM tab0
----
-1005
-5829
-6499

query I rowsort
SELECT - col0 * 5 FROM tab2
----
-230
-320
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + ( + 53 ) * + COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-4317
SELECT + ( + 53 ) * + COUNT ( * ) FROM tab0
----
159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 76 NOT BETWEEN - col1 * + col0 AND ( - col2 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 63 FROM tab0 WHERE + col0 IS NOT NULL
----
63
63
63

query I rowsort
SELECT DISTINCT + 39 - + col2 AS col1 FROM tab2
----
-1
-19
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN - ( + 58 ) AND ( - col1 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN - ( + 58 ) AND ( - col1 * - col1 )
----
0

query I rowsort
SELECT ALL + col1 - col1 * + 88 FROM tab0
----
-1827
-7047
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT + SUM( 83 ) + - MAX( ALL ( col2 ) ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT + SUM ( 83 ) + - MAX ( ALL ( col2 ) ) AS col1 FROM tab1
----
153

query III rowsort
SELECT * FROM tab2 WHERE NOT 30 + 74 IS NOT NULL
----

query I rowsort
SELECT - col0 + col0 * + col2 FROM tab0
----
690
783
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT + 16 + + MIN( DISTINCT col1 ) col1 FROM tab2
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4327
SELECT + 16 + + MIN ( DISTINCT col1 ) col1 FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT DISTINCT + COUNT( * ) * - 50 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT + COUNT ( * ) * - 50 FROM tab1
----
-150

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL <= ( 6 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 65 IN ( col2 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT COUNT( * ) * 61 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT COUNT ( * ) * 61 FROM tab0
----
183

query I rowsort
SELECT col0 + + ( col1 ) FROM tab2
----
141
142
97

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT - CAST( NULL AS SIGNED ) - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT - CAST ( NULL AS INTEGER ) - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ALL COUNT( * ) col2 FROM tab0 WHERE NOT col1 = ( - 39 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4336
SELECT ALL COUNT ( * ) col2 FROM tab0 WHERE NOT col1 = ( - 39 )
----
3

query I rowsort
SELECT + 40 - col0 FROM tab1
----
-11
-45
-51

query I rowsort
SELECT DISTINCT - 18 * col1 FROM tab0
----
-1458
-18
-378

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( ( col0 ) ) AND ( - ( col1 ) )
----

query I rowsort
SELECT - 28 FROM tab2 cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT - col2 + 74 DIV 97 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - col2 + 74 / 97 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 51 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 77 + col1 AS col2 FROM tab1
----
124
82
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT ( col1 ) / ( - ( + col1 ) * CAST( NULL AS SIGNED ) + - col1 / - 40 ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4345
SELECT ( col1 ) / ( - ( + col1 ) * CAST ( NULL AS INTEGER ) + - col1 / - 40 ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4346
SELECT ( + col0 ) DIV + 61 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4346
SELECT ( + col0 ) / + 61 FROM tab0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4347
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST( col2 AS DECIMAL ) < + col2
----
3

skipif mysql # not compatible
query I rowsort label-4347
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( col2 AS REAL ) < + col2
----
3

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE NOT 39 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT ALL 99 * + 39 AS col2 FROM tab0 AS cor0
----
3861
3861
3861

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * 68 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4352
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * 68 IS NOT NULL
----
0

query I rowsort
SELECT + + 21 * ( - ( - 8 ) * + col2 ) AS col1 FROM tab2 AS cor0
----
3864
6720
9744

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL SUM( DISTINCT col0 ) FROM tab1 AS cor0 WHERE col0 BETWEEN - col0 + + col0 AND ( col2 * col0 )
----
227

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL SUM ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE col0 BETWEEN - col0 + + col0 AND ( col2 * col0 )
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4355
SELECT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) * col1 + col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4355
SELECT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) * col1 + col2 ) IS NULL
----

query I rowsort
SELECT ALL + ( 56 ) FROM tab0
----
56
56
56

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL > 31 + - ( col0 )
----

query I rowsort
SELECT + 14 * + col1 FROM tab0
----
1134
14
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT ALL - CAST( + col2 AS SIGNED ) - + col0 * col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - CAST ( + col2 AS INTEGER ) - + col0 * col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 58 / col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT COUNT( * ) DIV + - 79 * COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT COUNT ( * ) / + - 79 * COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 99 <= NULL
----

query II rowsort
SELECT DISTINCT - col0, - col2 + - col0 AS col0 FROM tab1 cor0
----
-51
-147
-85
-144
-91
-159

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + 22
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT DISTINCT - 52 AS col1, COUNT( * ) col2 FROM tab2 AS cor0
----
-52
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4366
SELECT DISTINCT - 52 AS col1, COUNT ( * ) col2 FROM tab2 AS cor0
----
-52
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT - col1 * + - 45 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT - col1 * + - 45 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 + col1 - - 89 * col0 * col0 FROM tab0 cor0
----
22315
673762
847203

query I rowsort
SELECT + + col1 + 93 * + ( + 69 ) AS col0 FROM tab1 AS cor0
----
6422
6431
6464

query I rowsort
SELECT col2 * + + col0 + - + 61 + + + col0 + col0 * + 35 AS col1 FROM tab0
----
1184
13034
3941

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE - - col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col0 + col2 + + col1 * 84 * 28 AS col1 FROM tab1
----
110703
11904
33075

query I rowsort
SELECT ALL - 21 + - col2 FROM tab1
----
-117
-80
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + - - col0 col0 FROM tab0
----
119
129
47

query I rowsort
SELECT ALL 86 FROM tab2 WHERE NULL BETWEEN - + col1 AND - 21
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT ALL col1 - col1 DIV col1 AS col2 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL col1 - col1 / col1 AS col2 FROM tab2
----
50
66
76

query I rowsort
SELECT DISTINCT + 53 + - 54 + 85 AS col1 FROM tab0
----
84

query I rowsort
SELECT col2 - - ( col1 ) + col2 AS col1 FROM tab2 AS cor0
----
157
183
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col1 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT DISTINCT 71 * + col0 - + 4 AS col0 FROM tab1 AS cor0
----
3617
6031
6457

query I rowsort
SELECT 59 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - 39 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * 30 / 23 * + 37 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT 52 * MIN( - ( + col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT 52 * MIN ( - ( + col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col2 * - + 67 AS col0 FROM tab1 AS cor0
----
51
-6432
85
-3953
91
-4556

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4386
SELECT - CAST( NULL AS DECIMAL ) - - 19 / + col2 + - 62 * + 66 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4386
SELECT - CAST ( NULL AS REAL ) - - 19 / + col2 + - 62 * + 66 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT ALL + col2 * 81 + + - CAST( - CAST( 45 AS SIGNED ) AS SIGNED ) * + 30 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + col2 * 81 + + - CAST ( - CAST ( 45 AS INTEGER ) AS INTEGER ) * + 30 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL + MAX( ALL - - ( - 85 ) ) AS col1 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + MAX ( ALL - - ( - 85 ) ) AS col1 FROM tab1 AS cor0
----
-85

query II rowsort
SELECT - col0 AS col2, 85 FROM tab1 cor0
----
-51
85
-85
85
-91
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4390
SELECT ALL + 46 AS col0, CAST( + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
46
1
46
21
46
81

skipif mysql # not compatible
query II rowsort label-4390
SELECT ALL + 46 AS col0, CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
46
1
46
21
46
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL - SUM( col2 ) AS col0 FROM tab2 AS cor0 WHERE col1 NOT IN ( + 11 * col2 * - col0 * 25 )
----
-121

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - SUM ( col2 ) AS col0 FROM tab2 AS cor0 WHERE col1 NOT IN ( + 11 * col2 * - col0 * 25 )
----
-121

query II rowsort
SELECT ALL - col2 * col0 AS col1, 10 FROM tab1
----
-4896
10
-5015
10
-6188
10

query I rowsort
SELECT DISTINCT 43 * + col0 * + ( 32 ) FROM tab1
----
116960
125216
70176

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE - 10 + - col1 = + col0 * 87 * col0
----
0

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE - 10 + - col1 = + col0 * 87 * col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4395
SELECT ALL col1 col2, - col2 DIV - 69 AS col1 FROM tab0
----
1
1
21
0
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4395
SELECT ALL col1 col2, - col2 / - 69 AS col1 FROM tab0
----
1
1
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL SUM( - - 48 ) AS col0 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL SUM ( - - 48 ) AS col0 FROM tab1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL - ( 38 ) + COUNT( * ) FROM tab2 WHERE NOT 91 * - 61 * - 65 * + + 14 - col0 BETWEEN + col1 * - ( - 78 ) AND ( NULL )
----
-38

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - ( 38 ) + COUNT ( * ) FROM tab2 WHERE NOT 91 * - 61 * - 65 * + + 14 - col0 BETWEEN + col1 * - ( - 78 ) AND ( NULL )
----
-38

query I rowsort
SELECT ALL 11 * + + col0 FROM tab2
----
506
704
825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT ALL - COUNT( * ) FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND col0 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND col0 * - col1
----
0

query II rowsort
SELECT DISTINCT ( 51 ) * - col0 * + 35, + col1 FROM tab2
----
-114240
77
-133875
67
-82110
51

query I rowsort
SELECT ALL + 20 * + + col1 AS col1 FROM tab2
----
1020
1340
1540

query I rowsort
SELECT ALL - 81 + - col2 FROM tab1 WHERE NOT + + 5 IS NULL
----
-140
-149
-177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT + + COUNT( * ) DIV + 57 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT + + COUNT ( * ) / + 57 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - COUNT( ALL + col0 ) * + 56 + 6 * + SUM( DISTINCT - - col0 ) AS col2 FROM tab0 AS cor0
----
1026

skipif mysql # not compatible
query I rowsort label-4404
SELECT - COUNT ( ALL + col0 ) * + 56 + 6 * + SUM ( DISTINCT - - col0 ) AS col2 FROM tab0 AS cor0
----
1026

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <= - + 7 * - col1 + - 21 * + + col1
----

query II rowsort
SELECT - col2 AS col0, 1 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4407
SELECT ALL + 15 + - - MAX( - + col1 ) + 1 DIV - + COUNT( * ) col1 FROM tab1
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4407
SELECT ALL + 15 + - - MAX ( - + col1 ) + 1 / - + COUNT ( * ) col1 FROM tab1
----
10

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + col2 + ( - ( - col1 ) ) + 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4409
SELECT + + CAST( + col0 AS SIGNED ), - col2 col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4409
SELECT + + CAST ( + col0 AS INTEGER ), - col2 col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE ( ( NOT ( NULL ) IS NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( + + col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT MIN( ALL + 44 ) col1 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4412
SELECT MIN ( ALL + 44 ) col1 FROM tab1 AS cor0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4413
SELECT ALL - - CAST( 9 AS SIGNED ) AS col0, + MAX( ALL + col0 ) FROM tab0 AS cor0
----
9
97

skipif mysql # not compatible
query II rowsort label-4413
SELECT ALL - - CAST ( 9 AS INTEGER ) AS col0, + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
9
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL - MAX( DISTINCT - 0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - MAX ( DISTINCT - 0 ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 57 < 4 * - 82 * - col0 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4417
SELECT + - ( 4 ) DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4417
SELECT + - ( 4 ) / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 40 - + col2 + - - col1 NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4419
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4419
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4420
SELECT col2 + - col1 * 38 col2 FROM tab1 WHERE col1 / 38 BETWEEN + CAST( NULL AS DECIMAL ) * + 89 * + 92 + col2 AND col0 * + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4420
SELECT col2 + - col1 * 38 col2 FROM tab1 WHERE col1 / 38 BETWEEN + CAST ( NULL AS REAL ) * + 89 * + 92 + col2 AND col0 * + col2
----

query I rowsort
SELECT - 49 - - col2 AS col0 FROM tab2
----
-26
-9
9

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 42
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4423
SELECT ALL 71 DIV + col1 + - CAST( col2 AS SIGNED ) - 84 + - col1 + - + col2 * + - col0 * - col1 FROM tab2
----
-197321
-291658
-54115

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL 71 / + col1 + - CAST ( col2 AS INTEGER ) - 84 + - col1 + - + col2 * + - col0 * - col1 FROM tab2
----
-197321
-291658
-54115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT CAST( NULL AS SIGNED ) - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT CAST ( NULL AS INTEGER ) - - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT col2 * - + col2 + + 94 * - col0 FROM tab0
----
-18919
-3619
-8278

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT - 85 DIV - 23 + + + 1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT - 85 / - 23 + + + 1 FROM tab1
----
4

query I rowsort
SELECT - + 82 FROM tab2 WHERE + + 31 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT DISTINCT + + MAX( DISTINCT + CAST( col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + + MAX ( DISTINCT + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT CAST( NULL AS SIGNED ) * - col0 - - ( col1 ) - col2 / - 15 * + col1 - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4429
SELECT CAST ( NULL AS INTEGER ) * - col0 - - ( col1 ) - col2 / - 15 * + col1 - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 * - - 66 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9049d471d6dd4d1aa933c5ed6a0436f9

query I rowsort
SELECT DISTINCT ( ( - + col0 ) ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT + - col2 * + - col2 * + + CAST( - col0 AS SIGNED ) * + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-182721
-2684016
-950698

skipif mysql # not compatible
query I rowsort label-4432
SELECT + - col2 * + - col2 * + + CAST ( - col0 AS INTEGER ) * + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-182721
-2684016
-950698

query I rowsort
SELECT ( - col1 ) FROM tab0 cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab2 cor0
----
8

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 48 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + 6 AS col2 FROM tab0 cor0
----
-282
-594
-60

query I rowsort
SELECT DISTINCT ( - col2 ) * + - 39 * - + col0 AS col2 FROM tab0
----
-27495
-33930
-374517

query II rowsort
SELECT 31, col2 FROM tab2
----
31
23
31
40
31
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4439
SELECT 6 AS col0, - ( - CAST( NULL AS SIGNED ) ) AS col2, + + CAST( NULL AS SIGNED ) FROM tab2
----
9 values hashing to a3f0c1b5422cf1bbcefa5a28c30153b3

skipif mysql # not compatible
query III rowsort label-4439
SELECT 6 AS col0, - ( - CAST ( NULL AS INTEGER ) ) AS col2, + + CAST ( NULL AS INTEGER ) FROM tab2
----
9 values hashing to a3f0c1b5422cf1bbcefa5a28c30153b3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) > ( NULL )
----

query I rowsort
SELECT DISTINCT - 59 * - - 87 FROM tab1
----
-5133

onlyif mysql # DIV for integer division: 
query II rowsort label-4442
SELECT DISTINCT + - col0 AS col1, 87 DIV col0 * + col0 FROM tab0 WHERE NOT col0 - - 50 + - 41 BETWEEN - 69 AND - + col0
----
-15
75
-87
87
-97
0

skipif mysql # not compatible
query II rowsort label-4442
SELECT DISTINCT + - col0 AS col1, 87 / col0 * + col0 FROM tab0 WHERE NOT col0 - - 50 + - 41 BETWEEN - 69 AND - + col0
----
-15
75
-87
87
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL + 15 * + COUNT( * ) FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + 15 * + COUNT ( * ) FROM tab1 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT - - COUNT( * ) * + 26 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT - - COUNT ( * ) * + 26 FROM tab0 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 * + 73 + - + ( col2 ) col0 FROM tab0 AS cor0
----
5449
5501
5538

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4446
SELECT + 10 * + col2 + col2, CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
1089
NULL
110
NULL
517
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4446
SELECT + 10 * + col2 + col2, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
1089
NULL
110
NULL
517
NULL

query I rowsort
SELECT col0 * - - 48 AS col2 FROM tab0 AS cor0
----
4176
4656
720

query I rowsort
SELECT DISTINCT col1 + + 51 FROM tab0
----
132
52
72

query I rowsort
SELECT + col2 * col2 + col0 * - col2 * + 6 / + col2 - col1 / col2 AS col0 FROM tab0 WHERE + col2 * col0 + - - 39 IS NULL
----

query II rowsort
SELECT DISTINCT - col0 * + col0 + - col1 - + 45 AS col1, - 85 FROM tab2 cor0
----
-2212
-85
-4218
-85
-5737
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 35 + col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT 45 + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4452
SELECT 45 + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL - 86 + COUNT( * ) - + 14 FROM tab0 AS cor0 WHERE NOT ( col0 ) <> NULL
----
-100

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - 86 + COUNT ( * ) - + 14 FROM tab0 AS cor0 WHERE NOT ( col0 ) <> NULL
----
-100

query I rowsort
SELECT ALL + 67 AS col2 FROM tab2 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4455
SELECT + ( + col2 ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4455
SELECT + ( + col2 ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT col0 * - - ( - col2 ) DIV + col2 col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4456
SELECT col0 * - - ( - col2 ) / + col2 col0 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT DISTINCT + col0 + + col2 AS col0, + col2 AS col2 FROM tab1
----
144
59
147
96
159
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT DISTINCT col1 DIV + col2 * + - col1 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT col1 / + col2 * + - col1 AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL - 70 + - - col0 AS col1 FROM tab0
----
-55
17
27

query II rowsort
SELECT DISTINCT col2 + + 95, + col2 FROM tab2
----
118
23
135
40
153
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4461
SELECT ALL COUNT( - + 27 ) AS col1, - 40 + - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col1 * + col1
----
0
-40

skipif mysql # not compatible
query II rowsort label-4461
SELECT ALL COUNT ( - + 27 ) AS col1, - 40 + - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col1 * + col1
----
0
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT DISTINCT - MIN( ALL 9 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT - MIN ( ALL 9 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT DISTINCT + col2 AS col0, + col0 * - col1 + 6 FROM tab1
----
59
-419
68
-4271
96
-708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT MIN( - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4464
SELECT MIN ( - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT ( 20 ) AS col1 FROM tab1 AS cor0
----
20

query I rowsort
SELECT + 5 AS col1 FROM tab1 cor0
----
5
5
5

query I rowsort
SELECT + - 88 * - + 3 FROM tab2 AS cor0
----
264
264
264

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - MIN( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4469
SELECT - MIN ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 71 + - col0, - col0 )
----

query I rowsort
SELECT + 91 * - 67 AS col0 FROM tab0 cor0 WHERE NOT ( + - 71 ) * - 50 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL IN ( col1, + 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col0 FROM tab1 WHERE NOT ( + 94 ) - - col2 * - + col2 * - ( + - 42 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 37 AS col1 FROM tab1
----
37

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 WHERE - 49 <> NULL
----

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + ( + ( + col2 ) ) FROM tab0
----
10
47
99

query II rowsort
SELECT ALL + 70 * col1 + col2 AS col1, col0 AS col0 FROM tab1
----
1076
51
3358
91
409
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT DISTINCT col0 * + col0 * - CAST( NULL AS SIGNED ) + col0 - + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT col0 * + col0 * - CAST ( NULL AS INTEGER ) + col0 - + col0 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT COUNT( col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4483
SELECT COUNT ( col0 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT ALL + col1 * - col2 - - col2, 30 AS col2 FROM tab0 AS cor0
----
-200
30
-3760
30
0
30

query I rowsort
SELECT 51 AS col0 FROM tab2 AS cor0 WHERE ( - - 46 ) IS NOT NULL
----
51
51
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4486
SELECT DISTINCT + - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) - + 81 FROM tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT + - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - + 81 FROM tab2 cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT DISTINCT - 71 + - col1 DIV - 2 FROM tab0 cor0
----
-31
-61
-71

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT - 71 + - col1 / - 2 FROM tab0 cor0
----
-31
-61
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT col2 + CAST( NULL AS SIGNED ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT col2 + CAST ( NULL AS INTEGER ) + + col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col2 + + col1 + + col0 * - 66, 58 AS col0 FROM tab0
----
-5711
58
-6302
58
-862
58

query II rowsort
SELECT - 74, - col0 + - col2 AS col0 FROM tab2
----
-74
-104
-74
-133
-74
-69

query II rowsort
SELECT DISTINCT 85 AS col2, - 18 FROM tab1
----
85
-18

query I rowsort
SELECT 59 * col0 FROM tab0
----
5133
5723
885

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT - 64 col1, COUNT( - 82 ) FROM tab2
----
-64
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4493
SELECT - 64 col1, COUNT ( - 82 ) FROM tab2
----
-64
3

query I rowsort
SELECT col0 / + + ( - + col2 ) * + 33 * + col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4495
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) < ( - col1 + - ( + + CAST( + + col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4495
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) < ( - col1 + - ( + + CAST ( + + col0 AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT DISTINCT col1 DIV 3 DIV 36 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT col1 / 3 / 36 FROM tab1 cor0
----
0

query II rowsort
SELECT col2 AS col0, + col2 * col1 * ( 5 ) * + col1 AS col1 FROM tab2 cor0
----
23
299115
40
1185800
58
1301810

query I rowsort
SELECT 19 FROM tab0 AS cor0 WHERE NOT - 68 * + - 88 IS NULL
----
19
19
19

query II rowsort
SELECT DISTINCT - - 49 AS col0, 32 * + col1 AS col1 FROM tab0 AS cor0
----
49
2592
49
32
49
672

query I rowsort
SELECT ALL + ( - + 88 ) AS col2 FROM tab0 AS cor0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col1 FROM tab2 AS cor0
----
76
76
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - col0 - col1 * - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NOT - 86 = - col2
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT ALL + - MIN( DISTINCT + col0 ) col1, + ( - 42 ) FROM tab0 AS cor0
----
-15
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4504
SELECT ALL + - MIN ( DISTINCT + col0 ) col1, + ( - 42 ) FROM tab0 AS cor0
----
-15
-42

query I rowsort
SELECT DISTINCT + 51 * - col1 AS col1 FROM tab2 cor0
----
-2601
-3417
-3927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 col0 FROM tab1 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT + MAX( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4507
SELECT + MAX ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT + 56 FROM tab2 WHERE ( + ( 19 ) + col0 + - CAST( NULL AS SIGNED ) + col0 + + col0 * - 45 / + 47 + - + col1 ) > col2
----

skipif mysql # not compatible
query I rowsort label-4508
SELECT + 56 FROM tab2 WHERE ( + ( 19 ) + col0 + - CAST ( NULL AS INTEGER ) + col0 + + col0 * - 45 / + 47 + - + col1 ) > col2
----

query I rowsort
SELECT 40 + - + col2 * - col2 - - + col1 AS col1 FROM tab0
----
161
2330
9842

query I rowsort
SELECT + 8 + - 36 + 11 * + col2 FROM tab1
----
1028
621
720

query II rowsort
SELECT DISTINCT - col2 * + ( + 46 ), - col2 AS col0 FROM tab2
----
-1058
-23
-1840
-40
-2668
-58

query I rowsort
SELECT ALL 75 * + + 41 AS col0 FROM tab1
----
3075
3075
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL - 81 + + + COUNT( * ) col1 FROM tab2
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4513
SELECT ALL - 81 + + + COUNT ( * ) col1 FROM tab2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT DISTINCT + ( + col1 ) DIV + - col0 + - col2 * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * + col1 <= ( - 72 )
----
100
2204
9801

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT + ( + col1 ) / + - col0 + - col2 * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * + col1 <= ( - 72 )
----
100
2204
9801

query I rowsort
SELECT - + 21 * - col0 FROM tab0 AS cor0
----
1827
2037
315

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT - - col1 DIV + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4516
SELECT - - col1 / + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + 82 AS col1, - col1 FROM tab2 AS cor0
----
82
-51
82
-67
82
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 26 * 9 col0 FROM tab1
----
239
248
281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + 19 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col2 ), 27 * + + 43 * + - col0 * - col1 col1 FROM tab2 AS cor0
----
23
2723706
40
5721408
58
5834025

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT - - SUM( ALL + 84 ) AS col0 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-4522
SELECT - - SUM ( ALL + 84 ) AS col0 FROM tab1 AS cor0
----
252

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < col1 + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT - 60 * - SUM( ALL + col1 ) - + ( + + MAX( ALL 67 ) ) AS col2 FROM tab1 WHERE NOT col1 + 57 NOT BETWEEN NULL AND - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT - 60 * - SUM ( ALL + col1 ) - + ( + + MAX ( ALL 67 ) ) AS col2 FROM tab1 WHERE NOT col1 + 57 NOT BETWEEN NULL AND - - col2
----
NULL

query I rowsort
SELECT 31 * - col0 FROM tab0
----
-2697
-3007
-465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4526
SELECT ALL * FROM tab0 WHERE NOT - col1 + ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4526
SELECT ALL * FROM tab0 WHERE NOT - col1 + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4527
SELECT - SUM( DISTINCT col0 ) * SUM( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT - SUM ( DISTINCT col0 ) * SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT ALL CAST( NULL AS SIGNED ) * 56 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL CAST ( NULL AS INTEGER ) * 56 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT - col0 BETWEEN NULL AND + 44 * + col2
----

skipif mysql # not compatible
query I rowsort label-4529
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT - col0 BETWEEN NULL AND + 44 * + col2
----

query I rowsort
SELECT DISTINCT - 48 * - - 45 FROM tab1
----
-2160

query I rowsort
SELECT col2 * + + 83 * col1 + - + col2 FROM tab1 AS cor0
----
111456
24426
265200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT + 83 DIV + COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4532
SELECT + 83 / + COUNT ( * ) FROM tab0 AS cor0
----
27

query II rowsort
SELECT ALL col0, 52 AS col0 FROM tab2 AS cor0
----
46
52
64
52
75
52

query II rowsort
SELECT ALL - 68, 86 AS col2 FROM tab1 AS cor0
----
-68
86
-68
86
-68
86

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - - col2 + + col0 FROM tab2
----
1219
3144
3961

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4538
SELECT - - ( + col0 ) / - CAST( NULL AS SIGNED ) * + col2 + - - ( + ( + ( col2 ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT - - ( + col0 ) / - CAST ( NULL AS INTEGER ) * + col2 + - - ( + ( + ( col2 ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4539
SELECT * FROM tab1 WHERE NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4539
SELECT * FROM tab1 WHERE NULL <> CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 24 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 - + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-752
-880
-9702

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 12 AS col0 FROM tab1 cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 * + 54, + 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT 15 * + COUNT( * ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT 15 * + COUNT ( * ) AS col1 FROM tab2
----
45

query I rowsort
SELECT - 63 * - - ( + col2 ) * - - 68 AS col1 FROM tab1
----
-252756
-291312
-411264

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT - COUNT( * ) * MIN( DISTINCT col2 ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - COUNT ( * ) * MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
-30

query I rowsort
SELECT - 61 * - col0 AS col0 FROM tab0
----
5307
5917
915

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT - MIN( - 23 ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT - MIN ( - 23 ) AS col1 FROM tab2 cor0
----
23

query I rowsort
SELECT + 60 * + col0 * col0 * col0 FROM tab2 WHERE NOT + - 59 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4552
SELECT DISTINCT 67 DIV col0 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT 67 / col0 AS col0 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT 33 + + COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT 33 + + COUNT ( * ) FROM tab1
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) col2 FROM tab1 cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * + col1 col0 FROM tab1 AS cor0
----
1190
3995
425

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL - MAX( - 24 ) AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL - MAX ( - 24 ) AS col0 FROM tab1 AS cor0
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4557
SELECT ALL + CAST( NULL AS DECIMAL ) * - MIN( 0 ) col2, 15 AS col2 FROM tab0 AS cor0
----
NULL
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4557
SELECT ALL + CAST ( NULL AS REAL ) * - MIN ( 0 ) col2, 15 AS col2 FROM tab0 AS cor0
----
NULL
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 * - 73 / - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - - COUNT( * ) + 18 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4559
SELECT - - COUNT ( * ) + 18 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL ( - 2 ) AS col1 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - col2 + + + col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT - COUNT( * ) + + - 92 col0 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT - COUNT ( * ) + + - 92 col0 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT + - col1 + 18 + + col0 * + col1 FROM tab1 AS cor0
----
4248
438
718

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT + SUM( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + SUM ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT + col2 + 22 + - col0 FROM tab2
----
-1
-2
5

query I rowsort
SELECT DISTINCT col1 + - 39 FROM tab0
----
-18
-38
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 84 col0 FROM tab2
----
130
148
159

query I rowsort
SELECT - col1 + - col0 * - - col0 FROM tab0
----
-306
-7590
-9410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE + 54 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE + 54 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4570
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT - 32 col1, COUNT( ALL - + 69 ) AS col0 FROM tab1
----
-32
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4571
SELECT - 32 col1, COUNT ( ALL - + 69 ) AS col0 FROM tab1
----
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT - ( + COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT - ( + COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT 40 + + + 53 FROM tab1
----
93

query II rowsort
SELECT ALL col0 - 32 AS col1, col2 FROM tab0 AS cor0
----
-17
47
55
10
65
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4575
SELECT + + 92, + col0 * - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
92
NULL
92
NULL
92
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4575
SELECT + + 92, + col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
92
NULL
92
NULL
92
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 73 col2 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT 74 * + - col1 * + col0 FROM tab2 AS cor0
----
-173604
-364672
-371850

query I rowsort
SELECT - - ( 12 ) - + col0 FROM tab1 AS cor0
----
-39
-73
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT - COUNT( * ) FROM tab2 WHERE - col2 * col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4579
SELECT - COUNT ( * ) FROM tab2 WHERE - col2 * col2 IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * + ( + ( 83 ) ) AS col2 FROM tab1
----
-4897
-5644
-7968

query I rowsort
SELECT ALL + + 75 FROM tab2 cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT MAX( - - col2 ) * - - 19 col0 FROM tab0 AS cor0
----
1881

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4583
SELECT MAX ( - - col2 ) * - - 19 col0 FROM tab0 AS cor0
----
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE + 87 + - + 14 > col1
----
2

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE + 87 + - + 14 > col1
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 90 = NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 41 FROM tab0
----
-3567
-3977
-615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL - ( 34 ) * + CAST( NULL AS SIGNED ) * - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - ( 34 ) * + CAST ( NULL AS INTEGER ) * - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4588
SELECT * FROM tab2 WHERE NOT + CAST( - + 63 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4588
SELECT * FROM tab2 WHERE NOT + CAST ( - + 63 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 33 ) IS NOT NULL
----

query I rowsort
SELECT - 46 * - col1 FROM tab0
----
3726
46
966

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT SUM( + col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4591
SELECT SUM ( + col2 ) col2 FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT + - col1 DIV + + 34 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4592
SELECT + - col1 / + + 34 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT ALL col1 * 42 AS col0, col1 FROM tab1
----
1974
47
210
5
588
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + MIN( + col0 ) + + - COUNT( * ) col1 FROM tab1
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4594
SELECT DISTINCT + MIN ( + col0 ) + + - COUNT ( * ) col1 FROM tab1
----
48

query I rowsort
SELECT col2 * + - col0 FROM tab0 WHERE + 52 + 91 IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT + - 6 FROM tab2 cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4597
SELECT - + CAST( NULL AS DECIMAL ) * + + 70 / + col2 - + col1, - 3 AS col2 FROM tab1 AS cor0
----
NULL
-3
NULL
-3
NULL
-3

skipif mysql # not compatible
query II rowsort label-4597
SELECT - + CAST ( NULL AS REAL ) * + + 70 / + col2 - + col1, - 3 AS col2 FROM tab1 AS cor0
----
NULL
-3
NULL
-3
NULL
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <= - 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT + COUNT( * ) * - 55 AS col1 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-4599
SELECT + COUNT ( * ) * - 55 AS col1 FROM tab2 AS cor0
----
-165

query I rowsort
SELECT + - 44 * 6 FROM tab1 AS cor0
----
-264
-264
-264

query I rowsort
SELECT ALL - + ( col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

query II rowsort
SELECT ALL col2 * + col2, + col2 FROM tab1 AS cor0
----
3481
59
4624
68
9216
96

query I rowsort
SELECT ALL 50 * + - col0 AS col2 FROM tab2
----
-2300
-3200
-3750

query III rowsort
SELECT * FROM tab0 WHERE + + 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT DISTINCT + ( + - col0 ) DIV col2 * + 25 FROM tab2
----
-25
-50

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT + ( + - col0 ) / col2 * + 25 FROM tab2
----
-25
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT + COUNT( * ) + + - 73 AS col2 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-4606
SELECT + COUNT ( * ) + + - 73 AS col2 FROM tab0
----
-70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 * - ( - 62 ) BETWEEN + - 10 AND - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT 72 * - - 86 + + col1 DIV - ( + col1 ) FROM tab0
----
6191
6191
6191

skipif mysql # not compatible
query I rowsort label-4608
SELECT 72 * - - 86 + + col1 / - ( + col1 ) FROM tab0
----
6191
6191
6191

query I rowsort
SELECT 1 + 98 AS col0 FROM tab0
----
99
99
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) <> NULL
----

query I rowsort
SELECT ALL 78 - + - col1 FROM tab2 AS cor0
----
129
145
155

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT NULL > - ( - 82 )
----

query II rowsort
SELECT DISTINCT + + col2 - 55 + + col2, + col1 * + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-9
-2601
25
-5929
61
-4489

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL 4 + + + COUNT( ( - col0 ) ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL 4 + + + COUNT ( ( - col0 ) ) AS col0 FROM tab0
----
7

query II rowsort
SELECT ALL - col0, 76 AS col1 FROM tab1 AS cor0
----
-51
76
-85
76
-91
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 96 * + + 14 > NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 cor0 WHERE NOT + col1 * 25 NOT BETWEEN - col1 + + ( col0 ) AND NULL
----

query I rowsort
SELECT 44 * + 70 AS col2 FROM tab2
----
3080
3080
3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT ALL + col0 * col0 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL + col0 * col0 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - + 39 ) FROM tab2 cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4623
SELECT - - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT DISTINCT CAST( NULL AS SIGNED ) + 33 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 33 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT DISTINCT CAST( + 77 AS SIGNED ) * + 58 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
4466

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT CAST ( + 77 AS INTEGER ) * + 58 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
4466

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT ALL - + col0 * ( - + col2 ) DIV col1 + col0 * 94 AS col1 FROM tab0 AS cor0
----
1418
18721
8219

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - + col0 * ( - + col2 ) / col1 + col0 * 94 AS col1 FROM tab0 AS cor0
----
1418
18721
8219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT DISTINCT + + AVG ( DISTINCT - - col0 ) + - - AVG ( + 64 ) - - COUNT( * ) * + + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT 13 NOT BETWEEN - col2 * 1 AND + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT + + AVG ( DISTINCT - - col0 ) + - - AVG ( + 64 ) - - COUNT ( * ) * + + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT 13 NOT BETWEEN - col2 * 1 AND + - 10
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 80 col0 FROM tab1 AS cor0
----
127
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - 1 + + COUNT( * ) + + + 17 + + + MIN( ALL - col2 ) FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4629
SELECT - 1 + + COUNT ( * ) + + + 17 + + + MIN ( ALL - col2 ) FROM tab0 AS cor0
----
-80

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 / - col1 AND + - 36 + + ( + 59 )
----

query I rowsort
SELECT DISTINCT - col1 + + + 12 AS col1 FROM tab2
----
-39
-55
-65

query I rowsort
SELECT ALL + col0 + - - col1 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT DISTINCT SUM( 93 ) FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT SUM ( 93 ) FROM tab2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL 35 * MIN( col2 ) + MIN( DISTINCT - + col2 ) col0 FROM tab1
----
1969

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4634
SELECT ALL 35 * MIN ( col2 ) + MIN ( DISTINCT - + col2 ) col0 FROM tab1
----
1969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4635
SELECT + ( + COUNT( * ) ) * - + COUNT( * ) + + 55, - MAX( + col2 ) AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * + 36 > - col2
----
55
NULL

skipif mysql # not compatible
query II rowsort label-4635
SELECT + ( + COUNT ( * ) ) * - + COUNT ( * ) + + 55, - MAX ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + 36 > - col2
----
55
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( ( col1 ) + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( + col0 ) - - col2 AS col1 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT - col2 * col1 AS col2, 74 AS col1 FROM tab2 AS cor0
----
-1173
74
-3080
74
-3886
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT ALL + - 98 DIV + + COUNT( * ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + - 98 / + + COUNT ( * ) FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL - SUM( + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - SUM ( + col2 ) FROM tab0 AS cor0
----
-156

query II rowsort
SELECT DISTINCT - col0, 27 AS col0 FROM tab0 AS cor0
----
-15
27
-87
27
-97
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL MIN( DISTINCT 43 ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL MIN ( DISTINCT 43 ) FROM tab1 AS cor0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT + 92 DIV - + ( - col0 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4643
SELECT + 92 / - + ( - col0 ) FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT ( col0 ) DIV + - col0 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT ( col0 ) / + - col0 AS col0 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col0 FROM tab1 AS cor0
----
-51
-51
-51

query II rowsort
SELECT DISTINCT col2 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4647
SELECT - 18 * + + SUM( ALL col1 ) * - - ( - CAST( COUNT( * ) AS SIGNED ) ) FROM tab0
----
5562

skipif mysql # not compatible
query I rowsort label-4647
SELECT - 18 * + + SUM ( ALL col1 ) * - - ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0
----
5562

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT ALL + col2 + + col0 DIV - col0 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + col2 + + col0 / - col0 FROM tab1
----
58
67
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4649
SELECT 59 AS col2, COUNT( ALL + + 46 ) + - - 54 FROM tab2
----
59
57

skipif mysql # not compatible
query II rowsort label-4649
SELECT 59 AS col2, COUNT ( ALL + + 46 ) + - - 54 FROM tab2
----
59
57

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL + - 63 + + + COUNT( * ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + - 63 + + + COUNT ( * ) FROM tab1 AS cor0
----
-60

query I rowsort
SELECT DISTINCT + col0 * col1 + + 20 - - col0 FROM tab1
----
4388
530
785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + 21 + + col0, + col2 col1 FROM tab0
----
117
47
119
99
129
10

query I rowsort
SELECT 30 * + ( + + col1 ) AS col2 FROM tab0
----
2430
30
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4655
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT - - MAX( ALL col1 ) + - + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT - - MAX ( ALL col1 ) + - + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT + CAST( NULL AS SIGNED ) * 65 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT + CAST ( NULL AS INTEGER ) * 65 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL - ( - 54 ) - - CAST( - 32 AS SIGNED ) FROM tab2 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - ( - 54 ) - - CAST ( - 32 AS INTEGER ) FROM tab2 AS cor0
----
22
22
22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 90
----

query I rowsort
SELECT ALL - + 88 FROM tab1 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT DISTINCT + MIN( ALL - CAST( 6 AS SIGNED ) ) AS col0 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT + MIN ( ALL - CAST ( 6 AS INTEGER ) ) AS col0 FROM tab2 cor0
----
-6

query I rowsort
SELECT ALL + ( - col0 ) AS col0 FROM tab1 WHERE NOT ( + 95 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4663
SELECT + CAST( - SUM( ALL + col1 ) AS SIGNED ) DIV COUNT( * ) - - + CAST( - - SUM( DISTINCT 34 ) AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT + CAST ( - SUM ( ALL + col1 ) AS INTEGER ) / COUNT ( * ) - - + CAST ( - - SUM ( DISTINCT 34 ) AS INTEGER ) FROM tab0
----
0

query II rowsort
SELECT ALL + col2 AS col2, col1 - + col2 FROM tab1
----
59
-54
68
-21
96
-82

query I rowsort
SELECT DISTINCT - 84 * + - 38 FROM tab0
----
3192

query I rowsort
SELECT + 36 + + 46 FROM tab2
----
82
82
82

query I rowsort
SELECT ALL - col2 + ( col0 ) FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 WHERE NULL BETWEEN ( + ( - - col1 ) ) AND + col1
----

query I rowsort
SELECT DISTINCT col0 + + + 18 AS col0 FROM tab2
----
64
82
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT + COUNT( * ) + COUNT( - col2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4670
SELECT + COUNT ( * ) + COUNT ( - col2 ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL COUNT( * ) - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4672
SELECT DISTINCT - CAST( - 32 AS SIGNED ) + 97 AS col1, + 84 FROM tab1
----
129
84

skipif mysql # not compatible
query II rowsort label-4672
SELECT DISTINCT - CAST ( - 32 AS INTEGER ) + 97 AS col1, + 84 FROM tab1
----
129
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT ALL + + 4 * - 57 + + col1 * col0 * col0 DIV - + 52 + + - 84 + - + 4 FROM tab1 AS cor0
----
-1010
-1016
-7800

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + + 4 * - 57 + + col1 * col0 * col0 / - + 52 + + - 84 + - + 4 FROM tab1 AS cor0
----
-1010
-1016
-7800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4674
SELECT DISTINCT + COUNT( * ) AS col0, - COUNT( * ) DIV + 19 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-4674
SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( * ) / + 19 FROM tab2 AS cor0
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT DISTINCT + col1 DIV 66 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + col1 / 66 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - SUM( DISTINCT 92 ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-4676
SELECT - SUM ( DISTINCT 92 ) FROM tab0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT + MAX( DISTINCT - 94 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-94

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT + MAX ( DISTINCT - 94 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT ALL + col0 * + - CAST( 23 AS SIGNED ) AS col1 FROM tab1
----
-1173
-1955
-2093

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + col0 * + - CAST ( 23 AS INTEGER ) AS col1 FROM tab1
----
-1173
-1955
-2093

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT DISTINCT + col2 DIV - col1 AS col2 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT + col2 / - col1 AS col2 FROM tab0
----
-99
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 16 IN ( 89, col0 - col1 + + 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT ( col0 ) DIV - 86 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT ( col0 ) / - 86 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - col0 * col0 FROM tab0 AS cor0 WHERE NOT 13 + + 40 - col2 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + col0
----

query I rowsort
SELECT - col1 + - 69 FROM tab0
----
-150
-70
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4685
SELECT ALL 15 DIV COUNT( * ) DIV 90 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL 15 / COUNT ( * ) / 90 AS col0 FROM tab1
----
0

query I rowsort
SELECT - col1 + - + ( 54 ) + col2 * - col2 AS col1 FROM tab0
----
-175
-2344
-9856

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT + SUM( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + SUM ( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # DIV for integer division: 
query II rowsort label-4688
SELECT + + col0, + 83 DIV + col2 - col0 AS col1 FROM tab1 AS cor0
----
51
-51
85
-84
91
-90

skipif mysql # not compatible
query II rowsort label-4688
SELECT + + col0, + 83 / + col2 - col0 AS col1 FROM tab1 AS cor0
----
51
-51
85
-84
91
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT + - col0 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT + - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 / + - 55 * col1 + col1 + col1 FROM tab1 AS cor0 WHERE NOT - 85 * + col0 + + col2 - + - col1 <= ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + 52 col2 FROM tab0 AS cor0
----
-4524
-5044
-780

query I rowsort
SELECT DISTINCT + 89 + + col2 AS col2 FROM tab1 AS cor0
----
148
157
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT COUNT( * ) * COUNT( ALL + 13 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4693
SELECT COUNT ( * ) * COUNT ( ALL + 13 ) AS col2 FROM tab1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + 8, - 5, - col2 )
----

query I rowsort
SELECT ALL - col2 * ( + + col2 ) - 85 AS col1 FROM tab0 AS cor0
----
-185
-2294
-9886

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT DISTINCT + 88 DIV - 98 + 24 + + col0 FROM tab1 cor0
----
109
115
75

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT + 88 / - 98 + 24 + + col0 FROM tab1 cor0
----
109
115
75

query I rowsort
SELECT DISTINCT col2 * - + 67 FROM tab0 AS cor0
----
-3149
-6633
-670

query I rowsort
SELECT - 42 * - 51 AS col0 FROM tab0 cor0
----
2142
2142
2142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT + 47 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT + 47 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL SUM( - - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL SUM ( - - col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT - 68 * + col2 AS col2 FROM tab0
----
-3196
-6732
-680

query II rowsort
SELECT + col2 * - 74 * - col0 AS col0, + col1 + + col0 AS col2 FROM tab1
----
362304
65
371110
90
457912
138

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 = - - 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 50 * col2 * - 96 * 25 FROM tab0
----
11880000
1200000
5640000

query I rowsort
SELECT DISTINCT 21 * - col2 FROM tab0
----
-2079
-210
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL COUNT( * ) * + 79 AS col2 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL COUNT ( * ) * + 79 AS col2 FROM tab2
----
237

query I rowsort
SELECT col1 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
201019
2125
9996

query II rowsort
SELECT DISTINCT + - col0, col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query II rowsort
SELECT + col0, - col2 AS col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 79 / + col0 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - + 57 AS col0 FROM tab2 AS cor0
----
-57
-57
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT - 37 DIV 1 AS col0 FROM tab1 cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-4712
SELECT - 37 / 1 AS col0 FROM tab1 cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT ALL - CAST( NULL AS SIGNED ) * - 15 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL - CAST ( NULL AS INTEGER ) * - 15 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE + col0 * col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4715
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE + col0 * col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL ( 11 ) + - MAX( DISTINCT - col1 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL ( 11 ) + - MAX ( DISTINCT - col1 ) FROM tab2
----
62

query I rowsort
SELECT DISTINCT 39 + - col2 AS col0 FROM tab1
----
-20
-29
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ( - + MAX( DISTINCT + + ( - - ( - col1 ) ) ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4718
SELECT ( - + MAX ( DISTINCT + + ( - - ( - col1 ) ) ) ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4719
SELECT - CAST( NULL AS DECIMAL ) + MIN( col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT - CAST ( NULL AS REAL ) + MIN ( col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + 67 ) FROM tab0 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4721
SELECT DISTINCT col1 + + col2 + col0 AS col1, + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
120
NULL
181
NULL
200
NULL

skipif mysql # not compatible
query II rowsort label-4721
SELECT DISTINCT col1 + + col2 + col0 AS col1, + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
120
NULL
181
NULL
200
NULL

query I rowsort
SELECT ( 90 ) + - + col1 AS col2 FROM tab0
----
69
89
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 0 AS col0, 3 * ( + 69 ) * - - 74 col1 FROM tab0 WHERE + col1 + + 79 IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 + + 47 * - ( + col0 ) FROM tab2 AS cor0
----
-2111
-2931
-3458

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 25 * col1 / col0 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + + 89 FROM tab2 AS cor0
----
14
25
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - - col2 ) col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL 26 - + 65 * - MIN( ALL - - col1 ) * - 81 AS col1 FROM tab0 AS cor0
----
-5239

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL 26 - + 65 * - MIN ( ALL - - col1 ) * - 81 AS col1 FROM tab0 AS cor0
----
-5239

query I rowsort
SELECT ALL 28 - - col0 + + col0 * - - col0 FROM tab0 AS cor0
----
268
7684
9534

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT 57 DIV ( - col1 ) FROM tab1
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-4730
SELECT 57 / ( - col1 ) FROM tab1
----
-1
-11
-4

query II rowsort
SELECT + 79 AS col0, col2 FROM tab2
----
79
23
79
40
79
58

query II rowsort
SELECT ALL - 26 AS col2, - 19 AS col1 FROM tab2
----
-26
-19
-26
-19
-26
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL 6 FROM tab1 WHERE NOT NULL = NULL
----

query II rowsort
SELECT + 97 AS col2, - col2 - 33 FROM tab0
----
97
-132
97
-43
97
-80

query I rowsort
SELECT ALL + 79 * 77 FROM tab1
----
6083
6083
6083

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 27 * 88 AS col0 FROM tab0 AS cor0
----
-2376
-2376
-2376

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - ( - 29 ) AND NULL
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4740
SELECT - + ( - MIN( - + 2 ) ) / - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT - + ( - MIN ( - + 2 ) ) / - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 + + 28 AS col2 FROM tab1 AS cor0
----
124
87
96

query I rowsort
SELECT - col2 + + - 43 + - 51 AS col2 FROM tab0 AS cor0
----
-104
-141
-193

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 = col0 + + + col2 + + col0
----

query I rowsort
SELECT DISTINCT col1 * col0 * - col1 * col0 AS col0 FROM tab0 cor0
----
-1476225
-3337929
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL 22 * + COUNT( * ) AS col0 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL 22 * + COUNT ( * ) AS col0 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4746
SELECT COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT col2 + - col0 + - + 32 AS col2 FROM tab1
----
-55
-58
13

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 48 * - 16 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + + COUNT( * ) + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + + COUNT ( * ) + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 70 * + ( + col2 ) BETWEEN + - 61 AND NULL
----

query I rowsort
SELECT + - 64 * + col0 AS col1 FROM tab2 AS cor0
----
-2944
-4096
-4800

query I rowsort
SELECT + ( col2 ) * - 43 AS col0 FROM tab0 AS cor0
----
-2021
-4257
-430

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT col2 DIV + col1 col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4753
SELECT col2 / + col1 col2 FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab2 WHERE NULL IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT - COUNT( * ) * + COUNT( * ) - + 79 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-4755
SELECT - COUNT ( * ) * + COUNT ( * ) - + 79 FROM tab0
----
-88

query I rowsort
SELECT ALL + col2 * col2 + 49 FROM tab1
----
3530
4673
9265

query I rowsort
SELECT ALL + 9 * - 26 AS col1 FROM tab2
----
-234
-234
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 * 29 col2 FROM tab2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + ( + COUNT( * ) ) * 54 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-4759
SELECT + ( + COUNT ( * ) ) * 54 FROM tab0
----
162

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 13 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) = col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT 10 <= ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT 10 <= ( + col0 )
----
0

query I rowsort
SELECT 74 * 6 FROM tab2
----
444
444
444

query I rowsort
SELECT col2 * - 45 FROM tab1
----
-2655
-3060
-4320

query I rowsort
SELECT col2 + + col0 * col2 AS col2 FROM tab0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT - COUNT( + col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - COUNT ( + col0 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + MIN( 42 ) AS col2 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-4769
SELECT + MIN ( 42 ) AS col2 FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL + 78 AS col2 FROM tab1 WHERE NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + 78 AS col2 FROM tab1 WHERE NULL <> CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 21 * + col0 AND + 58 + col0
----

query I rowsort
SELECT + 21 + col0 AS col1 FROM tab0 WHERE NOT ( + 77 ) IS NULL
----
108
118
36

query I rowsort
SELECT DISTINCT - 88 + + col2 FROM tab0
----
-41
-78
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( - col0 ) ) IN ( 18 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL ( + 79 ) * + 12 + - MIN( DISTINCT 8 ) AS col1 FROM tab1
----
940

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL ( + 79 ) * + 12 + - MIN ( DISTINCT 8 ) AS col1 FROM tab1
----
940

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT 37 DIV - col0 + col2 FROM tab0
----
10
45
99

skipif mysql # not compatible
query I rowsort label-4777
SELECT 37 / - col0 + col2 FROM tab0
----
10
45
99

query I rowsort
SELECT - ( + 83 ) AS col1 FROM tab1
----
-83
-83
-83

query I rowsort
SELECT ALL col2 FROM tab2 WHERE - col2 NOT IN ( col0 )
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 + + col0 ) > + ( 3 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 46 IN ( - col2 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4782
SELECT COUNT( DISTINCT col2 ) DIV MAX( col1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT COUNT ( DISTINCT col2 ) / MAX ( col1 ) AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 + col1 * + 62 col2 FROM tab2
----
3209
4201
4821

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 7 <> NULL
----

query I rowsort
SELECT - 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT DISTINCT - col0 * ( + col2 * - col0 ) + - col2 FROM tab2
----
163800
326192
48645

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 + col2 col1 FROM tab0 AS cor0
----
-12
-49
40

query I rowsort
SELECT ALL - - col1 * - 78 FROM tab2 AS cor0
----
-3978
-5226
-6006

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * 39 + + col2 >= col1 + 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * 65 FROM tab1 AS cor0
----
-3835
-4420
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT COUNT( - col1 ) * 67 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4792
SELECT COUNT ( - col1 ) * 67 FROM tab0 AS cor0
----
201

query I rowsort
SELECT ALL col1 * 94 AS col1 FROM tab1 AS cor0
----
1316
4418
470

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 3 * col1 IN ( col1 - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4795
SELECT + 93 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1
-4
-93

skipif mysql # not compatible
query I rowsort label-4795
SELECT + 93 / - col1 AS col2 FROM tab0 AS cor0
----
-1
-4
-93

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE col1 / + col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + col1 * ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE 98 + 65 NOT BETWEEN ( NULL ) AND 58
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT + + 81 DIV + 7 AS col0 FROM tab1 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-4798
SELECT + + 81 / + 7 AS col0 FROM tab1 AS cor0
----
11
11
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 * col1 ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4801
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 85 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
85
85
85

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 ) BETWEEN col0 * 75 AND ( NULL )
----

query I rowsort
SELECT ALL - ( col1 ) * 70 AS col2 FROM tab0 WHERE NOT ( col1 * + col0 + 49 * - 87 ) NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT 34 + - col1 FROM tab2
----
-17
-33
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT CAST( MIN( ALL col1 ) AS SIGNED ) + - CAST( + AVG ( DISTINCT col1 ) AS SIGNED ) col0 FROM tab0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4806
SELECT CAST ( MIN ( ALL col1 ) AS INTEGER ) + - CAST ( + AVG ( DISTINCT col1 ) AS INTEGER ) col0 FROM tab0
----
-33

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN - col0 * + col2 + + 78 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + 94 col2 FROM tab1
----
178
178
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT COUNT( * ) + - 34 + - 19 * + COUNT( * ) AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4809
SELECT COUNT ( * ) + - 34 + - 19 * + COUNT ( * ) AS col1 FROM tab2
----
-88

query I rowsort
SELECT DISTINCT - 43 * - - 83 + - 19 FROM tab1
----
-3588

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * col2 >= ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT - + 95 + + 97 * 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-4812
SELECT - + 95 + + 97 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - + col1 + - 1 FROM tab0 AS cor0
----
-109
-97
-99

query I rowsort
SELECT col1 * col2 + ( col0 ) AS col0 FROM tab1 AS cor0 WHERE ( 94 / 86 ) IS NULL
----

query I rowsort
SELECT ALL + col0 * - - col2 - - col1 AS col0 FROM tab2 AS cor0
----
1109
2637
4417

query I rowsort
SELECT 57 FROM tab0 cor0 WHERE NULL IS NULL
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT + SUM( + 45 ) * - COUNT( * ) * COUNT( * ) FROM tab2
----
-1215

skipif mysql # not compatible
query I rowsort label-4817
SELECT + SUM ( + 45 ) * - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-1215

query I rowsort
SELECT DISTINCT - 34 + 56 FROM tab0
----
22

query I rowsort
SELECT ALL - col1 * + 70 FROM tab2
----
-3570
-4690
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + + COUNT( * ) * + 78 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-4820
SELECT + + COUNT ( * ) * + 78 FROM tab0 AS cor0
----
234

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT - col2, 27 + - col0 AS col1 FROM tab1 AS cor0
----
-59
-58
-68
-64
-96
-24

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col2 ) IN ( + 4 * ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * + 54 AS col2 FROM tab0 AS cor0
----
-2538
-5346
-540

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( + 66 ) / col1 )
----

query I rowsort
SELECT - col0 * - col1 + - col1 + - col1 AS col0 FROM tab0 AS cor0
----
1053
1785
95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 IN ( col2 * - 19 + col2 )
----

query II rowsort
SELECT ALL + 71 AS col0, - col2 AS col0 FROM tab1 cor0
----
71
-59
71
-68
71
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT + COUNT( * ) AS col0, - SUM( ALL + + 9 ) AS col2 FROM tab1 AS cor0
----
3
-27

skipif mysql # not compatible
query II rowsort label-4829
SELECT + COUNT ( * ) AS col0, - SUM ( ALL + + 9 ) AS col2 FROM tab1 AS cor0
----
3
-27

query I rowsort
SELECT ALL col2 * col0 * 25 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( - - 71 ) FROM tab2
----
-71
-71
-71

query I rowsort
SELECT - col1 * - 64 FROM tab1
----
3008
320
896

query I rowsort
SELECT + 90 * + col0 AS col0 FROM tab1
----
4590
7650
8190

query I rowsort
SELECT DISTINCT col1 * - 93 FROM tab0
----
-1953
-7533
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 * - col1 col2 FROM tab2
----
-1139
-1309
-867

query I rowsort
SELECT ALL - 44 * + - ( - + col2 ) AS col1 FROM tab1
----
-2596
-2992
-4224

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / + 8 - - 85 < ( - 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT ALL - 5 DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL - 5 / col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4839
SELECT 6 DIV + - col2, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-4839
SELECT 6 / + - col2, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT MIN( + - ( + col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT MIN ( + - ( + col2 ) ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab1 cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + 93 ) FROM tab1
----
93
93
93

query I rowsort
SELECT + ( + 79 ) * - col0 AS col2 FROM tab2
----
-3634
-5056
-5925

query I rowsort
SELECT DISTINCT + 33 * - 40 + + - 80 FROM tab0 AS cor0
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + - COUNT( * ) + + - 72 col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4846
SELECT + - COUNT ( * ) + + - 72 col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT - MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT - MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT col0 + + - col1 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - col0 ) / + 7 - + col0 BETWEEN NULL AND + 71 + + 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT 57 DIV 63 + + col1 + - 59 * col0 FROM tab0
----
-5112
-5722
-804

skipif mysql # not compatible
query I rowsort label-4851
SELECT 57 / 63 + + col1 + - 59 * col0 FROM tab0
----
-5112
-5722
-804

query I rowsort
SELECT DISTINCT + 0 + + col1 AS col1 FROM tab1 WHERE NOT ( col2 ) < ( + ( + col0 ) + - ( + col1 ) )
----
14
47

query I rowsort
SELECT DISTINCT col0 * + 62 + col0 * - 73 AS col2 FROM tab0
----
-1067
-165
-957

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 FROM tab1 WHERE - 94 + + 0 < ( - col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT col1 + + 85 FROM tab0 WHERE - col1 / col1 / CAST( - col0 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4856
SELECT col1 + + 85 FROM tab0 WHERE - col1 / col1 / CAST ( - col0 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 62 + col0 FROM tab2
----
108
126
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL - + ( - MAX( + - ( - col0 ) ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - + ( - MAX ( + - ( - col0 ) ) ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL + + COUNT( * ) + 30 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + + COUNT ( * ) + 30 FROM tab1 AS cor0
----
33

query I rowsort
SELECT + - 5 * - col1 + col2 * + col1 - - col1 AS col2 FROM tab1 AS cor0
----
1428
325
3478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4861
SELECT CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 53 > NULL
----

query I rowsort
SELECT + - 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT ALL CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT - ( + COUNT( + 81 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT - ( + COUNT ( + 81 ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col2 * col2 * 68 + + 95 + - - col2 AS col0 FROM tab0 AS cor0
----
150354
666662
6905

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL BETWEEN - 3 - - + col1 AND + 1 ) )
----

query I rowsort
SELECT DISTINCT ( ( + + col0 ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT DISTINCT + col1 DIV - col2 * - col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT + col1 / - col2 * - col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * - col2 * + 58 AS col1 FROM tab2 AS cor0
----
178640
225388
68034

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT 25 * - ( + - 2 ) + - COUNT( * ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4871
SELECT 25 * - ( + - 2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < - + 67 + - + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 * col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 69 BETWEEN + + col2 / + - ( - 33 ) + - ( - col0 ) AND col0 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + COUNT( * ) FROM tab1 WHERE NOT - col0 = - 52
----
3

skipif mysql # not compatible
query I rowsort label-4875
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - col0 = - 52
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4876
SELECT ALL + 45 DIV + CAST( + AVG ( col0 ) AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + 45 / + CAST ( + AVG ( col0 ) AS INTEGER ) AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - col1 + + + col2 + col0 + col1 * + ( + + col2 ) * + ( + 1 ) + 51 * col2
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL IN ( - 0 * - + col0, + 80 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < ( - col1 ) * - col1 * col2 + + col1
----

query I rowsort
SELECT + col2 * + - 46 FROM tab2
----
-1058
-1840
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT DISTINCT + MAX( ALL 33 ) col1 FROM tab0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4881
SELECT DISTINCT + MAX ( ALL 33 ) col1 FROM tab0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col2 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE col0 NOT IN ( + 23, 37 / - col0 * col0 )
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 30 * - col2 + + + 2 + + col2 FROM tab1 WHERE ( ( NULL ) = + 99 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + SUM( ALL - + 2 ) * - 28 + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-4885
SELECT + SUM ( ALL - + 2 ) * - 28 + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2
----
168

query I rowsort
SELECT DISTINCT + ( + 95 ) AS col0 FROM tab1, tab1 AS cor0
----
95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + col0 + + col1 * + 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + MAX( DISTINCT + - col1 ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4888
SELECT + MAX ( DISTINCT + - col1 ) col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL MIN( DISTINCT + - ( - col0 ) ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4889
SELECT ALL MIN ( DISTINCT + - ( - col0 ) ) col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT DISTINCT - COUNT( ALL col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - COUNT ( ALL col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 + 77 FROM tab0 AS cor0
----
164
174
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT - COUNT( * ) + + 18 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-4892
SELECT - COUNT ( * ) + + 18 FROM tab2
----
15

query I rowsort
SELECT col2 * 29 * + + col1 * + + col0 + 57 FROM tab2
----
1564839
5716537
8452107

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ( 15 ) - - + COUNT( * ) AS col2 FROM tab2 WHERE - + 73 + ( - - 26 ) - col1 + + col2 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-4894
SELECT ( 15 ) - - + COUNT ( * ) AS col2 FROM tab2 WHERE - + 73 + ( - - 26 ) - col1 + + col2 IS NULL
----
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 12 * + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT COUNT( * ) * - 74 AS col2 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-4896
SELECT COUNT ( * ) * - 74 AS col2 FROM tab0
----
-222

query I rowsort
SELECT ALL - col1 * + + ( 15 ) AS col0 FROM tab1
----
-210
-705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT MIN( DISTINCT ( + ( + col2 ) ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4898
SELECT MIN ( DISTINCT ( + ( + col2 ) ) ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT + - COUNT( * ) + COUNT( DISTINCT 24 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-4899
SELECT + - COUNT ( * ) + COUNT ( DISTINCT 24 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

query I rowsort
SELECT DISTINCT - - col2 * + 28 AS col1 FROM tab1 AS cor0
----
1652
1904
2688

query II rowsort
SELECT DISTINCT + col0, col0 * + col2 FROM tab0 cor0
----
15
705
87
870
97
9603

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4902
SELECT - 55 + + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT - 55 + + COUNT ( * ) * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4904
SELECT - 17, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-17
3

skipif mysql # not compatible
query II rowsort label-4904
SELECT - 17, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-17
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + - col0 * + col1 + + 0, col0, + 12 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + col0 col0, - col1 - + col0 col2 FROM tab0 AS cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col2 + col2 + col1 FROM tab0 AS cor0
----
-577
-839
-9503

query I rowsort
SELECT + 45 * - - col0 AS col2 FROM tab0 AS cor0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT SUM( DISTINCT - col0 ), + 5 AS col2 FROM tab0
----
-199
5

skipif mysql # not compatible
query II rowsort label-4909
SELECT SUM ( DISTINCT - col0 ), + 5 AS col2 FROM tab0
----
-199
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT ALL MIN( + 34 ) AS col0, - COUNT( * ) FROM tab1
----
34
-3

skipif mysql # not compatible
query II rowsort label-4910
SELECT ALL MIN ( + 34 ) AS col0, - COUNT ( * ) FROM tab1
----
34
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT 57 + - - COUNT( * ) col1 FROM tab1
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4911
SELECT 57 + - - COUNT ( * ) col1 FROM tab1
----
60

query I rowsort
SELECT ALL col1 * - col2 + 92 FROM tab0
----
-118
-3715
-7

query I rowsort
SELECT + 78 + + 52 FROM tab2
----
130
130
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 + col1 * col1 * + col0 * col0 col0 FROM tab1
----
180533
18292637
509704

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL COUNT( - ( 8 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL COUNT ( - ( 8 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 * - col0 + col2 * - 96 FROM tab2 cor0
----
-3266
-6400
-9918

query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab2 cor0 WHERE col2 <> + col0 + - + col2
----
-8
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT - ( - COUNT( * ) ) col1 FROM tab1 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-4918
SELECT - ( - COUNT ( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4919
SELECT ALL * FROM tab0 WHERE col0 < col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4919
SELECT ALL * FROM tab0 WHERE col0 < col1 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4920
SELECT DISTINCT 58 / + col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT 58 / + col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT ALL col1 * CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL col1 * CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4922
SELECT DISTINCT - 62, CAST( + 36 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4922
SELECT DISTINCT - 62, CAST ( + 36 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 54, 91 col1 FROM tab0 AS cor0
----
54
91
54
91
54
91

query I rowsort
SELECT DISTINCT col1 - 58 AS col2 FROM tab1 AS cor0
----
-11
-44
-53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - 32 - - col2 - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 72 - + - 74 col2 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4927
SELECT + 12 DIV + ( + + COUNT( * ) ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4927
SELECT + 12 / + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT 37 * - col1 AS col0 FROM tab2
----
-1887
-2479
-2849

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - col1 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT col0 * - - 61 + col1 * - + col2 AS col2, col2 * 49 * 57, col1 FROM tab0
----
9 values hashing to 13ee9476af5e6e3ab11c07e26d7f50a5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4931
SELECT + ( - + col1 ) * ( + CAST( NULL AS SIGNED ) ) + + col0 AS col2, 95 AS col1 FROM tab0
----
NULL
95
NULL
95
NULL
95

skipif mysql # not compatible
query II rowsort label-4931
SELECT + ( - + col1 ) * ( + CAST ( NULL AS INTEGER ) ) + + col0 AS col2, 95 AS col1 FROM tab0
----
NULL
95
NULL
95
NULL
95

query III rowsort
SELECT * FROM tab0 WHERE 58 / + ( + - col1 ) NOT BETWEEN ( + col0 ) AND ( 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT - CAST( + 60 AS SIGNED ) * - col2 FROM tab0
----
2820
5940
600

skipif mysql # not compatible
query I rowsort label-4933
SELECT - CAST ( + 60 AS INTEGER ) * - col2 FROM tab0
----
2820
5940
600

query III rowsort
SELECT * FROM tab2 WHERE - 35 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 27 * + - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 27 * + - col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 - + - 11 + + 57 FROM tab1
----
115
73
82

query I rowsort
SELECT ALL - 49 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT - 10 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4940
SELECT CAST( NULL AS DECIMAL ) * - + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT CAST ( NULL AS REAL ) * - + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT SUM( DISTINCT - - col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT SUM ( DISTINCT - - col2 ) FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + - 20 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4942
SELECT + - 20 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT - CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT - CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT + CAST( NULL AS SIGNED ) * + ( + col1 ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT + CAST ( NULL AS INTEGER ) * + ( + col1 ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 50 * - col0 AS col1 FROM tab0 AS cor0
----
4350
4850
750

query I rowsort
SELECT + col1 * - + col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 * col1 * + col2 < - 25
----

query II rowsort
SELECT + col1 AS col2, col1 + col1 + + ( + ( + col2 ) ) FROM tab0 AS cor0
----
1
101
21
52
81
209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT DISTINCT + col1 + col0 AS col1 FROM tab0 AS cor0 WHERE CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) * - 58 + ( + + col0 ) * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT + col1 + col0 AS col1 FROM tab0 AS cor0 WHERE CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) * - 58 + ( + + col0 ) * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT + CAST( 7 AS SIGNED ) * + 61 FROM tab2 WHERE NOT + 9 + ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
427
427
427

skipif mysql # not compatible
query I rowsort label-4950
SELECT + CAST ( 7 AS INTEGER ) * + 61 FROM tab2 WHERE NOT + 9 + ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
427
427
427

query III rowsort
SELECT * FROM tab2 WHERE NOT - 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT ALL - col2 * + - col1 + - + 74 * + 45 AS col0 FROM tab2 WHERE NOT + col0 > + CAST( + 16 AS SIGNED ) + - CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL - col2 * + - col1 + - + 74 * + 45 AS col0 FROM tab2 WHERE NOT + col0 > + CAST ( + 16 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 * - col1 + - - ( + 71 ) col1 FROM tab2
----
1754
2282
2612

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + col1 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab1 WHERE - + col1 + + col0 = + - 14
----

query I rowsort
SELECT 18 * + col2 FROM tab2
----
1044
414
720

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT DISTINCT + COUNT( DISTINCT + 37 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT + COUNT ( DISTINCT + 37 ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT col2 DIV - 19 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4958
SELECT col2 / - 19 FROM tab2
----
-1
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT + col1 col2 FROM tab1 AS cor0 WHERE ( NULL ) <= + CAST( col0 AS SIGNED ) - + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4959
SELECT + col1 col2 FROM tab1 AS cor0 WHERE ( NULL ) <= + CAST ( col0 AS INTEGER ) - + col0
----

query I rowsort
SELECT ( - 53 ) + - col1 FROM tab0 AS cor0
----
-134
-54
-74

query I rowsort
SELECT - - 29 + - col0 FROM tab1 WHERE + col2 * - 8 IS NOT NULL
----
-22
-56
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 44 * + - 62 + + col2 + col1 col2 FROM tab1 AS cor0
----
-2613
-2618
-2664

query I rowsort
SELECT ALL + - 45 - - col1 AS col0 FROM tab2 AS cor0
----
22
32
6

query I rowsort
SELECT DISTINCT 49 * + + ( + col2 ) * + + col1 * + col0 - + col1 AS col2 FROM tab1 cor0
----
1228670
14250917
3358642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 - col2 col0 FROM tab2 AS cor0
----
-117
-134
-152

query I rowsort
SELECT - 33 + + col1 FROM tab2
----
18
34
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - COUNT( * ) * - 94 * - ( - COUNT( * ) ) FROM tab1
----
846

skipif mysql # not compatible
query I rowsort label-4967
SELECT - COUNT ( * ) * - 94 * - ( - COUNT ( * ) ) FROM tab1
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT - MAX( ALL + + col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT - MAX ( ALL + + col1 ) AS col2 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT + COUNT( * ) * + 72 col2 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4969
SELECT + COUNT ( * ) * + 72 col2 FROM tab2 AS cor0
----
216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - - 75 > NULL
----

query I rowsort
SELECT ALL + + 87 AS col1 FROM tab2 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT + MIN( ALL 76 ), 59 AS col0 FROM tab0 AS cor0
----
76
59

skipif mysql # not compatible
query II rowsort label-4972
SELECT + MIN ( ALL 76 ), 59 AS col0 FROM tab0 AS cor0
----
76
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL COUNT( * ) * 72 AS col0 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL COUNT ( * ) * 72 AS col0 FROM tab2 AS cor0
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT ALL - col0 * 70 / + 52 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - col0 * 70 / + 52 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT COUNT( * ) + 87 AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-4975
SELECT COUNT ( * ) + 87 AS col1 FROM tab2
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * + col0 + - col0 col0 FROM tab0
----
1566
1746
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4977
SELECT DISTINCT col1 * - - 53 + CAST( col2 AS SIGNED ) FROM tab0
----
1123
152
4340

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT col1 * - - 53 + CAST ( col2 AS INTEGER ) FROM tab0
----
1123
152
4340

query I rowsort
SELECT - col2 + + - col1 AS col2 FROM tab1
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4979
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + col1 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT DISTINCT col0 FROM tab2 WHERE - 19 NOT IN ( - CAST( - - col2 AS SIGNED ) + - - CAST( + - col1 AS SIGNED ) / + col0 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT col0 FROM tab2 WHERE - 19 NOT IN ( - CAST ( - - col2 AS INTEGER ) + - - CAST ( + - col1 AS INTEGER ) / + col0 )
----
46
64
75

query I rowsort
SELECT DISTINCT - col2 + - 86 AS col1 FROM tab0
----
-133
-185
-96

query III rowsort
SELECT * FROM tab2 WHERE col0 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT COUNT( 92 ) AS col0 FROM tab1 WHERE - 42 > - + col0
----
3

skipif mysql # not compatible
query I rowsort label-4983
SELECT COUNT ( 92 ) AS col0 FROM tab1 WHERE - 42 > - + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT DISTINCT - COUNT( * ) * ( - - COUNT( * ) ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4984
SELECT DISTINCT - COUNT ( * ) * ( - - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT + COUNT( * ) * - 2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4985
SELECT + COUNT ( * ) * - 2 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL + COUNT( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL + COUNT ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT col0, + 21 FROM tab0 AS cor0
----
15
21
87
21
97
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT DISTINCT - + ( 8 ) DIV + + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - + ( 8 ) / + + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL + + 12 * COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
972

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL + + 12 * COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
972

query I rowsort
SELECT ALL ( + col2 ) + col1 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT col1 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + col1 + + col0 + 82 + - + ( - 10 ) AS col1 FROM tab2 AS cor0
----
189
233
234

query I rowsort
SELECT ALL col1 * - 33 + + 62 FROM tab1 AS cor0
----
-103
-1489
-400

query I rowsort
SELECT - + col2 + + + col0 AS col1 FROM tab2 cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT ( + col1 ) * + + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT ( + col1 ) * + + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4996
SELECT ALL * FROM tab2 AS cor0 WHERE col2 < + col2 * - - col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4996
SELECT ALL * FROM tab2 AS cor0 WHERE col2 < + col2 * - - col0 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 - + col1 * + col1 * + col0 + + ( col2 ) - + 75 AS col0 FROM tab2 AS cor0
----
-119721
-336750
-379531

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 >= - ( - 55 ) + + col1 + col0 / - col1 - - 9 + - col0
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT ALL - MAX( ALL - col0 ), COUNT( * ) AS col1 FROM tab2
----
46
3

skipif mysql # not compatible
query II rowsort label-5000
SELECT ALL - MAX ( ALL - col0 ), COUNT ( * ) AS col1 FROM tab2
----
46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT COUNT( * ) * - 61 AS col1 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-5001
SELECT COUNT ( * ) * - 61 AS col1 FROM tab0
----
-183

query I rowsort
SELECT ALL - ( + - col0 ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN + col1 AND 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5003
SELECT ALL + col0 * - col2 AS col2, - CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
-4896
14
-5015
5
-6188
47

skipif mysql # not compatible
query II rowsort label-5003
SELECT ALL + col0 * - col2 AS col2, - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
-4896
14
-5015
5
-6188
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 * + 75 col1 FROM tab0 AS cor0
----
1875

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= col1 * + + 17
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT ALL 29 DIV - col2 + + + 65 * - col1 FROM tab0 AS cor0
----
-1367
-5265
-65

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL 29 / - col2 + + + 65 * - col1 FROM tab0 AS cor0
----
-1367
-5265
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT - AVG ( ( + ( + - CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT - AVG ( ( + ( + - CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5008
SELECT - COUNT( * ) DIV - + 42 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5008
SELECT - COUNT ( * ) / - + 42 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 78 * - col0 * + - col0 * - - 36 AS col1 FROM tab2 AS cor0
----
11501568
15795000
5941728

query I rowsort
SELECT - 74 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 * + col1 - + col1, col1 * - + col1 AS col0 FROM tab1 AS cor0
----
1330
-196
290
-25
3149
-2209

query I rowsort
SELECT DISTINCT - col1 + - + 19 * - col1 FROM tab2
----
1206
1386
918

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL MAX( + - 13 ) AS col2 FROM tab0, tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL MAX ( + - 13 ) AS col2 FROM tab0, tab1 AS cor0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT DISTINCT + 91 * CAST( NULL AS SIGNED ) + + + 41 / COUNT( DISTINCT col0 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT + 91 * CAST ( NULL AS INTEGER ) + + + 41 / COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - 20 AS col1 FROM tab0
----
-10
27
79

query I rowsort
SELECT ALL col1 + - + col1 * + 38 AS col2 FROM tab1
----
-1739
-185
-518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * col2 col0 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT DISTINCT - + col1 * + col1 / + CAST( NULL AS SIGNED ) * + 20 - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT - + col1 * + col1 / + CAST ( NULL AS INTEGER ) * + 20 - col0 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT DISTINCT - 91 * - COUNT( * ) + - + COUNT( * ) * + - COUNT( * ) col1 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5019
SELECT DISTINCT - 91 * - COUNT ( * ) + - + COUNT ( * ) * + - COUNT ( * ) col1 FROM tab1 AS cor0
----
282

query I rowsort
SELECT ALL + 57 * + + col0 - - col0 FROM tab0 AS cor0
----
5046
5626
870

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1, - 22, + 70, - + ( - + ( + col0 ) ) + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT + - ( - + COUNT( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5022
SELECT + - ( - + COUNT ( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL + ( + col1 ) + + 74 * + 96 * - + 64 FROM tab0
----
-454575
-454635
-454655

query I rowsort
SELECT - 53 - + 16 AS col2 FROM tab2
----
-69
-69
-69

query I rowsort
SELECT col2 - col2 * - col1 FROM tab1
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) + - col2 * - 17 / - 37 + - col2 / + 8 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) + - col2 * - 17 / - 37 + - col2 / + 8 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5027
SELECT DISTINCT col1, + 2 * + - 80 DIV + + 25 + - col1 FROM tab1 AS cor0
----
14
-20
47
-53
5
-11

skipif mysql # not compatible
query II rowsort label-5027
SELECT DISTINCT col1, + 2 * + - 80 / + + 25 + - col1 FROM tab1 AS cor0
----
14
-20
47
-53
5
-11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT - col0 / - col1 <> NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT - col0 / - col1 <> NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL - MAX( - - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL - MAX ( - - col2 ) FROM tab2 AS cor0
----
-58

query II rowsort
SELECT ALL + 85 + - col0 * 76 AS col0, + col0 + - 49 AS col2 FROM tab1 AS cor0 WHERE + col1 + - col1 IS NOT NULL
----
-3791
2
-6375
36
-6831
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL MIN( 64 ) col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5032
SELECT ALL MIN ( 64 ) col1 FROM tab0 AS cor0
----
64

query I rowsort
SELECT ALL - 25 * col1 FROM tab1
----
-1175
-125
-350

query I rowsort
SELECT + 87 * 58 AS col0 FROM tab1
----
5046
5046
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ( - COUNT( col2 ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5035
SELECT ( - COUNT ( col2 ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT - 53 * + 6 * - + col1 FROM tab1
----
14946
1590
4452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN 26 + + col1 AND NULL
----

query I rowsort
SELECT col0 * - + col0 * + - 6 FROM tab1
----
15606
43350
49686

query I rowsort
SELECT ALL 41 * + 98 FROM tab0
----
4018
4018
4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5040
SELECT + 20 * + + ( - CAST( - + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5040
SELECT + 20 * + + ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2
----
60

query I rowsort
SELECT ( + + col0 ) * + 6 AS col1 FROM tab0
----
522
582
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT ALL col2 DIV - + col2 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL col2 / - + col2 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5043
SELECT 89 * ( ( - - col1 ) ), col0 * - CAST( NULL AS SIGNED ) col2 FROM tab1
----
1246
NULL
4183
NULL
445
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5043
SELECT 89 * ( ( - - col1 ) ), col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
1246
NULL
4183
NULL
445
NULL

query II rowsort
SELECT DISTINCT col2, + col0 + + ( + 66 ) + - col0 AS col2 FROM tab1
----
59
66
68
66
96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT DISTINCT - ( - + ( - + ( + col1 ) ) ) DIV + + ( + - col1 ) col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5045
SELECT DISTINCT - ( - + ( - + ( + col1 ) ) ) / + + ( + - col1 ) col2 FROM tab1 AS cor0
----
1

query II rowsort
SELECT + col1, 27 FROM tab0 AS cor0
----
1
27
21
27
81
27

query I rowsort
SELECT + - 35 * - col0 - + col2 / - col0 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT 69 + - 64 NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL - COUNT( + col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - COUNT ( + col2 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND - col0
----

query I rowsort
SELECT ALL + ( + - ( 90 ) ) AS col0 FROM tab1 cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5052
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NULL BETWEEN 37 * - col0 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NULL BETWEEN 37 * - col0 AND + col2
----
NULL

query I rowsort
SELECT col0 + 58 AS col1 FROM tab0
----
145
155
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - ( - + 95 ) * - ( - + COUNT( * ) ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - ( - + 95 ) * - ( - + COUNT ( * ) ) FROM tab1
----
285

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN NULL AND - - col2
----

query I rowsort
SELECT DISTINCT col2 + 47 FROM tab2
----
105
70
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT - 50 + - + MIN( DISTINCT - col0 ) * ( + COUNT( * ) ) col2 FROM tab2 WHERE + col1 IS NOT NULL
----
175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT DISTINCT - 50 + - + MIN ( DISTINCT - col0 ) * ( + COUNT ( * ) ) col2 FROM tab2 WHERE + col1 IS NOT NULL
----
175

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT MAX( ALL - 14 ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-5059
SELECT MAX ( ALL - 14 ) FROM tab2
----
-14

query I rowsort
SELECT DISTINCT col0 - - + col1 + + col1 + + 39 - + col0 AS col0 FROM tab1 AS cor0
----
133
49
67

query I rowsort
SELECT 7 - - col2 + col2 FROM tab2 cor0
----
123
53
87

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT NULL >= - - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5063
SELECT + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE ( - - col2 + - + col0 + 75 + col0 * 44 * col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL + COUNT( DISTINCT - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + COUNT ( DISTINCT - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT + MIN( - 46 ) AS col2 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5066
SELECT + MIN ( - 46 ) AS col2 FROM tab1 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT DISTINCT + col1 * - col0 DIV - col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT + col1 * - col0 / - col0 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL ( + + col0 ) AS col0 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 12 ) * - 66 col2 FROM tab2
----
792
792
792

query I rowsort
SELECT DISTINCT + 97 FROM tab1, tab0 AS cor0 WHERE 34 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( ( 93 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NOT ( NULL ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab0, tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5076
SELECT + 69 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT + 69 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 38 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( ( + + col2 ) ) * - col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5079
SELECT ALL + - col2 * - - ( + col2 ) * + CAST( NULL AS SIGNED ) - + col2, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5079
SELECT ALL + - col2 * - - ( + col2 ) * + CAST ( NULL AS INTEGER ) - + col2, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( + - col1 ) * - col0 * - + 24 + + col0 * + col0 * - + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT ALL COUNT( * ) * + SUM( 98 ) + - 56 AS col1 FROM tab1 cor0
----
826

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL COUNT ( * ) * + SUM ( 98 ) + - 56 AS col1 FROM tab1 cor0
----
826

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT DISTINCT - 41 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT - 41 / + col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5083
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( DISTINCT - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT - col0 ) FROM tab0
----
NULL

query I rowsort
SELECT 47 + 21 AS col2 FROM tab1
----
68
68
68

query II rowsort
SELECT DISTINCT + 98, - ( col0 ) AS col2 FROM tab0
----
98
-15
98
-87
98
-97

query I rowsort
SELECT + 2 * + - 21 * 70 FROM tab0
----
-2940
-2940
-2940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col2, col2 + - 6 AS col2 FROM tab0 cor0
----
1
93
21
4
81
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT - 57 * + MAX( - + 2 ) + 17 FROM tab2 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - 57 * + MAX ( - + 2 ) + 17 FROM tab2 AS cor0
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT + - 53 * col0 + + - 9 - + col2 * + + col1 DIV - + col1 FROM tab1 AS cor0
----
-2616
-4455
-4764

skipif mysql # not compatible
query I rowsort label-5089
SELECT + - 53 * col0 + + - 9 - + col2 * + + col1 / - + col1 FROM tab1 AS cor0
----
-2616
-4455
-4764

onlyif mysql # DIV for integer division: 
query II rowsort label-5090
SELECT DISTINCT col0 AS col1, col2 DIV + col1 col1 FROM tab1 AS cor0
----
51
6
85
11
91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5090
SELECT DISTINCT col0 AS col1, col2 / + col1 col1 FROM tab1 AS cor0
----
51
6
85
11
91
1

query I rowsort
SELECT DISTINCT 10 * + 0 AS col0 FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT DISTINCT + col1 DIV + col1 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT + col1 / + col1 AS col1 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT - 55 + 8 * + CAST( 64 AS SIGNED ) * + - 59 FROM tab1
----
-30263
-30263
-30263

skipif mysql # not compatible
query I rowsort label-5093
SELECT - 55 + 8 * + CAST ( 64 AS INTEGER ) * + - 59 FROM tab1
----
-30263
-30263
-30263

query I rowsort
SELECT col0 * + col0 + + col0 + 84 FROM tab1
----
2736
7394
8456

query I rowsort
SELECT DISTINCT - col0 * + + col1 + + - col2 FROM tab2
----
-2369
-4968
-5083

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT ALL + col1 DIV + col0 + - + col2 AS col2 FROM tab2
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL + col1 / + col0 + - + col2 AS col2 FROM tab2
----
-22
-39
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT COUNT( * ) + + MAX( ALL - + 91 ) + - 92 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-5097
SELECT COUNT ( * ) + + MAX ( ALL - + 91 ) + - 92 FROM tab2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE ( col0 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE ( col0 ) BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 - - + col1 col2 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT - col2 + + + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > 24 - col0
----

query I rowsort
SELECT DISTINCT + ( - col2 ) - - 60 * + - col2 FROM tab1 cor0
----
-3599
-4148
-5856

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - - 15 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT ALL COUNT( ALL + col0 ) * + 94, + ( - 52 ) + - + 74 AS col1 FROM tab0
----
282
-126

skipif mysql # not compatible
query II rowsort label-5104
SELECT ALL COUNT ( ALL + col0 ) * + 94, + ( - 52 ) + - + 74 AS col1 FROM tab0
----
282
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT + SUM( + col0 ) col2 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5105
SELECT DISTINCT + SUM ( + col0 ) col2 FROM tab1
----
227

query II rowsort
SELECT DISTINCT + col0 AS col0, + 89 * 93 AS col1 FROM tab1 AS cor0
----
51
8277
85
8277
91
8277

query I rowsort
SELECT DISTINCT col0 * - 61 AS col0 FROM tab0 AS cor0
----
-5307
-5917
-915

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT DISTINCT col1 + + col2 + + - 47 DIV + col2 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
116
125
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5108
SELECT DISTINCT col1 + + col2 + + - 47 / + col2 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
116
125
72

query I rowsort
SELECT - col1 * + col0 * 29 FROM tab0
----
-2813
-35235
-52983

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL SUM( DISTINCT + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL SUM ( DISTINCT + col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT + col2 * 63 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT DISTINCT ( + - 28 ) + - ( - col1 ) AS col2 FROM tab2
----
23
39
49

query I rowsort
SELECT ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 77 AND + 81 * - + col1 + col1 + - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col2 FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5115
SELECT - 45 FROM tab0 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) - 46 - - col0 - + + 91 >= col1
----
-45

skipif mysql # not compatible
query I rowsort label-5115
SELECT - 45 FROM tab0 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) - 46 - - col0 - + + 91 >= col1
----
-45

query I rowsort
SELECT ALL + + 12 FROM tab1 WHERE NULL > - 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT DISTINCT col0 + ( - - CAST( col2 AS SIGNED ) ) - - 79 AS col2 FROM tab1 AS cor0
----
223
226
238

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT col0 + ( - - CAST ( col2 AS INTEGER ) ) - - 79 AS col2 FROM tab1 AS cor0
----
223
226
238

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5118
SELECT DISTINCT - CAST( - col0 AS SIGNED ) DIV + col2 AS col0 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) / + col2 AS col0 FROM tab0 AS cor0
----
0
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col1 <> + + col2 * col1 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ALL + COUNT( * ) + - + ( 85 ) FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL + COUNT ( * ) + - + ( 85 ) FROM tab0 AS cor0
----
-82

query I rowsort
SELECT ( - col0 ) + + 94 FROM tab0 AS cor0
----
-3
7
79

query I rowsort
SELECT - col1 * + + col2 AS col2 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query II rowsort label-5123
SELECT - col1 DIV + - col1, 60 AS col1 FROM tab1
----
1
60
1
60
1
60

skipif mysql # not compatible
query II rowsort label-5123
SELECT - col1 / + - col1, 60 AS col1 FROM tab1
----
1
60
1
60
1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL ( ( - - ( - MIN( + col2 ) ) ) ) + + 51 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL ( ( - - ( - MIN ( + col2 ) ) ) ) + + 51 FROM tab0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5125
SELECT 96 DIV + + COUNT( * ) - + COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-5125
SELECT 96 / + + COUNT ( * ) - + COUNT ( * ) FROM tab1
----
29

query II rowsort
SELECT + col1 AS col2, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT ALL + + 23 DIV - - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL + + 23 / - - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + 0 * - - 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # DIV for integer division: 
query I rowsort label-5129
SELECT ALL - + col0 DIV + ( - ( - - col1 ) ) + - col0 + 36 * - + col0 AS col1 FROM tab2 AS cor0
----
-1702
-2368
-2774

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL - + col0 / + ( - ( - - col1 ) ) + - col0 + 36 * - + col0 AS col1 FROM tab2 AS cor0
----
-1702
-2368
-2774

query I rowsort
SELECT DISTINCT 82 * - - ( ( - col2 ) ) - - col1 FROM tab0 AS cor0
----
-3773
-799
-8117

query I rowsort
SELECT - + 57 * + - col1 AS col1 FROM tab0 AS cor0
----
1197
4617
57

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL 61 - - SUM( + + 77 ) FROM tab2 WHERE NULL IS NULL
----
292

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL 61 - - SUM ( + + 77 ) FROM tab2 WHERE NULL IS NULL
----
292

query II rowsort
SELECT DISTINCT col1, col2 - - col0 FROM tab1
----
14
147
47
159
5
144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - 37 * + - 4 AND - - 16
----

query I rowsort
SELECT + 16 + - - 30 + + 33 AS col0 FROM tab1 WHERE NOT + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ALL COUNT( ALL - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL COUNT ( ALL - col2 ) FROM tab1
----
3

query I rowsort
SELECT + - 26 * - - col2 * col0 FROM tab1 AS cor0
----
-127296
-130390
-160888

query I rowsort
SELECT - 43 + + col1 FROM tab0 AS cor0
----
-22
-42
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT 36 + + + COUNT( * ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5140
SELECT 36 + + + COUNT ( * ) FROM tab2 AS cor0
----
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 84 * - col0 * - col2 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5142
SELECT ALL - - 36 AS col1 FROM tab1 AS cor0 WHERE NOT col2 = + col2 + col0 - + CAST( + + col0 AS DECIMAL ) + col0 + + + col2 * col1
----
36
36
36

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - - 36 AS col1 FROM tab1 AS cor0 WHERE NOT col2 = + col2 + col0 - + CAST ( + + col0 AS REAL ) + col0 + + + col2 * col1
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT 6 + + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5143
SELECT 6 + + + COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL + COUNT( ALL - - 20 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL + COUNT ( ALL - - 20 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 52 FROM tab0 AS cor0 WHERE col0 / + 38 BETWEEN NULL AND + 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT DISTINCT 79 * + col2 + - 65 * col1 DIV - + col2 - + 76 FROM tab1 AS cor0
----
4590
5340
7517

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT 79 * + col2 + - 65 * col1 / - + col2 - + 76 FROM tab1 AS cor0
----
4590
5340
7517

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 80 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5149
SELECT DISTINCT + ( + COUNT( ALL + col1 ) ), 1 AS col0 FROM tab1
----
3
1

skipif mysql # not compatible
query II rowsort label-5149
SELECT DISTINCT + ( + COUNT ( ALL + col1 ) ), 1 AS col0 FROM tab1
----
3
1

query I rowsort
SELECT 75 + - - col2 AS col1 FROM tab2
----
115
133
98

query I rowsort
SELECT - 90 FROM tab0 WHERE NULL <> + col1
----

query I rowsort
SELECT ALL + ( col0 ) + + col2 - col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL 34 + - + col0 * - col0 FROM tab1
----
2635
7259
8315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 16 ) * - col0 + - 32 col1 FROM tab2
----
1168
704
992

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT col1 DIV + + 8 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5155
SELECT col1 / + + 8 FROM tab1
----
0
1
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5156
SELECT ALL + COUNT( * ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5156
SELECT ALL + COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT 97 * - 29 AS col2 FROM tab2
----
-2813
-2813
-2813

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 >= 97 + + 75 + - - 93 * + col2 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 76 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT 34 FROM tab0 WHERE NOT col0 <> col2 * 94
----

query I rowsort
SELECT - 96 FROM tab1 WHERE NOT + + 46 + - col0 IS NULL
----
-96
-96
-96

query II rowsort
SELECT - 37, col1 FROM tab0 cor0
----
-37
1
-37
21
-37
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5163
SELECT ALL - - col1 / col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL - - col1 / col0 + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> 78 - - col1 - - + col1 + + col0
----

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT 66 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT - CAST( NULL AS SIGNED ) * + AVG ( + + col2 ) * + 59 + + 46 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT - CAST ( NULL AS INTEGER ) * + AVG ( + + col2 ) * + 59 + + 46 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 88 + + col2 AS col1, col1 FROM tab1
----
147
5
156
47
184
14

query I rowsort
SELECT - 6 + + + col2 * - col0 FROM tab0
----
-711
-876
-9609

query I rowsort
SELECT - col1 + + col1 + + 29 - col0 AS col0 FROM tab1
----
-22
-56
-62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - + col1 + - 63 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5172
SELECT DISTINCT 7 DIV - col0 AS col1, - col2 FROM tab1
----
0
-59
0
-68
0
-96

skipif mysql # not compatible
query II rowsort label-5172
SELECT DISTINCT 7 / - col0 AS col1, - col2 FROM tab1
----
0
-59
0
-68
0
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5173
SELECT col0 + CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 + + col2 AS col1, col2 FROM tab2
----
117
40
125
58
74
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT DISTINCT col0 * 81 + col0 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT col0 * 81 + col0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + - + col1 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL = col2 * + + 18
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5178
SELECT ALL 40 + MAX( - col0 ) AS col2, + SUM( - 1 ) FROM tab0
----
25
-3

skipif mysql # not compatible
query II rowsort label-5178
SELECT ALL 40 + MAX ( - col0 ) AS col2, + SUM ( - 1 ) FROM tab0
----
25
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + col0 col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - ( + - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL - 1 + + + col2 + + col0 AS col2 FROM tab2
----
103
132
68

query I rowsort
SELECT ALL col2 * - + col0 AS col2 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 96 < - - 98 + + 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + ( - MIN( ALL - 92 ) ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-5184
SELECT + ( - MIN ( ALL - 92 ) ) FROM tab0 AS cor0
----
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 3 * + col0 FROM tab0
----
-261
-291
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT DISTINCT + + col1 DIV 71 col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5187
SELECT DISTINCT + + col1 / 71 col1 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + - col1 + - col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-162
-2
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT 12 DIV 1 AS col2 FROM tab2 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-5189
SELECT 12 / 1 AS col2 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT + ( 52 ) FROM tab2 AS cor0
----
52

query II rowsort
SELECT ALL - col2, col2 + + - col2 AS col0 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

query I rowsort
SELECT ALL 39 * - + col1 * + - col2 FROM tab2 AS cor0
----
120120
151554
45747

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT + SUM( - + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + SUM ( - + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL + 44 + col2 AS col1 FROM tab1 AS cor0
----
103
112
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL 69 * - ( COUNT( * ) ) + + - 88 FROM tab2
----
-295

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL 69 * - ( COUNT ( * ) ) + + - 88 FROM tab2
----
-295

query I rowsort
SELECT 60 FROM tab1 WHERE + - col1 BETWEEN 41 AND - col1
----

query I rowsort
SELECT DISTINCT 31 + 87 FROM tab2
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT DISTINCT + 79 AS col1, ( - SUM( + col0 ) ) AS col0 FROM tab0 AS cor0
----
79
-199

skipif mysql # not compatible
query II rowsort label-5198
SELECT DISTINCT + 79 AS col1, ( - SUM ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
79
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT 95 + - - COUNT( * ) FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT 95 + - - COUNT ( * ) FROM tab1 AS cor0
----
98

query I rowsort
SELECT DISTINCT col1 + 25 + 4 FROM tab1
----
34
43
76

query II rowsort
SELECT - 11 - 0 AS col0, + 86 AS col2 FROM tab1 AS cor0
----
-11
86
-11
86
-11
86

query II rowsort
SELECT + col1 - col1 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

query II rowsort
SELECT ALL - 94 - 11 AS col0, col2 - + 61 FROM tab0 AS cor0
----
-105
-14
-105
-51
-105
38

query I rowsort
SELECT - col2 * - + 49 * + col2 - col0 FROM tab0 cor0
----
108226
480152
4813

query II rowsort
SELECT DISTINCT + col1 + + 16 AS col0, col0 AS col0 FROM tab0 AS cor0
----
17
97
37
87
97
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT + 16 * - COUNT( * ) * - + 89 FROM tab2 AS cor0
----
4272

skipif mysql # not compatible
query I rowsort label-5206
SELECT + 16 * - COUNT ( * ) * - + 89 FROM tab2 AS cor0
----
4272

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - 53
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5208
SELECT + 3 DIV - + MAX( col0 ) AS col1, - COUNT( - - ( - col1 ) ) col0 FROM tab2
----
0
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5208
SELECT + 3 / - + MAX ( col0 ) AS col1, - COUNT ( - - ( - col1 ) ) col0 FROM tab2
----
0
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 * - col1 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 7 AS col0 FROM tab0 WHERE NOT + - col2 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5211
SELECT ALL + COUNT( * ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5211
SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5212
SELECT AVG ( - + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT AVG ( - + CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT ALL - 33, col0 FROM tab0
----
-33
15
-33
87
-33
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 28 col2, - 84 + + col1 + + - col0 * - + col0 + + col2 FROM tab2 AS cor0
----
28
2106
28
4129
28
5666

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT MIN( - 35 ) AS col1 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT MIN ( - 35 ) AS col1 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT ALL - 31 * - - col1 AS col1 FROM tab2 AS cor0
----
-1581
-2077
-2387

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col0 * col0 AND - 87
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 * + 21 ) IN ( col2 * 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 + - 77 AS col0 FROM tab0
----
-62
10
20

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + col2 BETWEEN - 97 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT - COUNT( * ) + ( 35 ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
32

skipif mysql # not compatible
query I rowsort label-5221
SELECT - COUNT ( * ) + ( 35 ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
32

query I rowsort
SELECT + col0 * + 16 + + 54 FROM tab0
----
1446
1606
294

query I rowsort
SELECT ALL - col2 * + 10 AS col0 FROM tab0
----
-100
-470
-990

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - 38 NOT IN ( - ( 22 ) * + col2 + col2 )
----

query I rowsort
SELECT - 68 + + col0 * col0 AS col1 FROM tab0
----
157
7501
9341

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * 4 > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT ( 43 ) <> ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT ( 43 ) <> ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT + MIN( ALL col1 ) + 58 FROM tab2
----
109

skipif mysql # not compatible
query I rowsort label-5228
SELECT + MIN ( ALL col1 ) + 58 FROM tab2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + SUM( + ( col0 ) ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5229
SELECT + SUM ( + ( col0 ) ) AS col2 FROM tab1
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col1 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5231
SELECT * FROM tab2 WHERE ( col2 * CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5231
SELECT * FROM tab2 WHERE ( col2 * CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * 96 AS col0 FROM tab2
----
2208
3840
5568

query I rowsort
SELECT + 55 + 91 * - 73 FROM tab0
----
-6588
-6588
-6588

query I rowsort
SELECT DISTINCT - 92 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 11 - + col0 FROM tab1
----
-40
-74
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL - COUNT( 25 ) * + 29 FROM tab1 WHERE ( - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - COUNT ( 25 ) * + 29 FROM tab1 WHERE ( - col1 ) IS NULL
----
0

query I rowsort
SELECT ALL - 2 + + 58 AS col0 FROM tab0 WHERE ( - col2 ) >= NULL
----

query I rowsort
SELECT - 41 FROM tab2 WHERE 5 + col2 = ( NULL )
----

query I rowsort
SELECT ALL 1 + col2 FROM tab0
----
100
11
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT ALL CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5241
SELECT + 90 + - CAST( NULL AS SIGNED ) * COUNT( DISTINCT - ( + 99 ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5241
SELECT + 90 + - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - ( + 99 ) ) col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT col1 + - col1 DIV 48 AS col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5242
SELECT col1 + - col1 / 48 AS col1 FROM tab2
----
50
66
76

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 <= ( NULL )
----

query I rowsort
SELECT ALL - 75 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-75
-75
-75

query I rowsort
SELECT DISTINCT - col1 + col2 * - col0 AS col1 FROM tab0
----
-786
-891
-9604

query III rowsort
SELECT * FROM tab1 WHERE NULL > + 49
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 + col1 < col0 + col2
----

query I rowsort
SELECT col1 / col2 FROM tab2 WHERE NOT NULL >= - col1
----

query III rowsort
SELECT * FROM tab1 WHERE + 44 * + 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT DISTINCT + MAX( ALL + 20 ) + - 46 AS col1 FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT + MAX ( ALL + 20 ) + - 46 AS col1 FROM tab1 cor0
----
-26

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 ) >= ( col0 )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5253
SELECT ALL + COUNT( * ) DIV + 96 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + COUNT ( * ) / + 96 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT - col0 - - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-5254
SELECT - col0 - - col2 / col0 AS col0 FROM tab1 AS cor0
----
-50
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT ( - 9 + + 1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT ( - 9 + + 1 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + 59 + 24 FROM tab0 WHERE - col0 BETWEEN ( col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 10 + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 < + col0 * 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 4 * 80 + col1 FROM tab2 AS cor0
----
-243
-253
-269

query I rowsort
SELECT - col0 * - ( col1 ) FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - 89 * col2 FROM tab0 cor0
----
-4183
-8811
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT DISTINCT - 22 * COUNT( * ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT - 22 * COUNT ( * ) FROM tab1 cor0
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5264
SELECT CAST( NULL AS DECIMAL ) * 42 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5264
SELECT CAST ( NULL AS REAL ) * 42 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 69 AS col1 FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT - CAST( - 82 AS SIGNED ) FROM tab0 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-5266
SELECT - CAST ( - 82 AS INTEGER ) FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT 80 + 12 AS col1 FROM tab1 WHERE NOT + 45 / 24 IS NULL
----
92
92
92

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT ( - ( + col2 ) ) + 60 NOT BETWEEN NULL AND + col0 / - col1 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL MAX( ALL col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL MAX ( ALL col1 ) AS col1 FROM tab1
----
47

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 16 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT DISTINCT - 4 * COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT - 4 * COUNT ( * ) FROM tab1
----
-12

query I rowsort
SELECT ALL + col1 / - col0 AS col0 FROM tab2 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5274
SELECT DISTINCT + 8 + - col0 * - col0 FROM tab0 WHERE NOT ( + col0 ) BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT + 8 + - col0 * - col0 FROM tab0 WHERE NOT ( + col0 ) BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5275
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 >= - CAST( col1 AS DECIMAL ) * - col1
----
3

skipif mysql # not compatible
query I rowsort label-5275
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 >= - CAST ( col1 AS REAL ) * - col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT + ( - COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5276
SELECT + ( - COUNT ( * ) ) col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - + 12 * + col0 * col0 - + col1 FROM tab2 AS cor0
----
-25443
-49229
-67567

query I rowsort
SELECT DISTINCT - 13 * - col2 AS col0 FROM tab1 AS cor0
----
1248
767
884

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col1 - + col2 ) NOT IN ( + col0 / 22 )
----

query I rowsort
SELECT 30 + + col0 AS col0 FROM tab1
----
115
121
81

query I rowsort
SELECT ( + col0 ) + - col1 + col1 FROM tab1
----
51
85
91

query I rowsort
SELECT col2 * - 21 FROM tab2
----
-1218
-483
-840

query I rowsort
SELECT ALL + col2 * col0 * 4 FROM tab1
----
19584
20060
24752

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5285
SELECT * FROM tab2 WHERE ( + 5 ) < + CAST( - col2 AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-5285
SELECT * FROM tab2 WHERE ( + 5 ) < + CAST ( - col2 AS INTEGER ) * col2
----

query II rowsort
SELECT ALL + + col0 AS col2, 6 FROM tab1 AS cor0
----
51
6
85
6
91
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5287
SELECT + 6 AS col1, - ( - + COUNT( * ) ) FROM tab0 AS cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-5287
SELECT + 6 AS col1, - ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
6
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT + 93 DIV - + 85 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5288
SELECT + 93 / - + 85 AS col2 FROM tab2 cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 * - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - + 36 FROM tab2 AS cor0
----
10
28
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT DISTINCT CAST( col2 AS SIGNED ) * + 20 FROM tab1
----
1180
1360
1920

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + 20 FROM tab1
----
1180
1360
1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5292
SELECT - COUNT( * ) - - CAST( NULL AS SIGNED ) + + 57 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) + + 57 FROM tab2
----
NULL

query I rowsort
SELECT + col2 * + + 14 + - col2 FROM tab0
----
1287
130
611

query II rowsort
SELECT - col0 + col1, - col0 * 40 AS col1 FROM tab2
----
-8
-3000
13
-2560
5
-1840

query I rowsort
SELECT col0 + col2 * - - 40 AS col0 FROM tab0
----
1895
4057
487

onlyif mysql # DIV for integer division: 
query I rowsort label-5296
SELECT ALL - 67 DIV + - 50 + + 26 AS col2 FROM tab1
----
27
27
27

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL - 67 / + - 50 + + 26 AS col2 FROM tab1
----
27
27
27

query I rowsort
SELECT + 26 + + + 87 * - 85 FROM tab2 AS cor0
----
-7369
-7369
-7369

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT DISTINCT - COUNT( * ) - - 53 - - ( - 26 ) * 90 AS col1 FROM tab2 AS cor0
----
-2290

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT - COUNT ( * ) - - 53 - - ( - 26 ) * 90 AS col1 FROM tab2 AS cor0
----
-2290

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
25

query I rowsort
SELECT + col0 * + 81 FROM tab0
----
1215
7047
7857

query I rowsort
SELECT ALL 75 * - + col1 - - col0 FROM tab0 AS cor0
----
-1488
-6060
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT DISTINCT + 54 DIV col0 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT + 54 / col0 FROM tab0 AS cor0
----
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5304
SELECT ALL - COUNT( * ) DIV 81 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL - COUNT ( * ) / 81 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5305
SELECT DISTINCT - col2 DIV 57 * col0 FROM tab0 cor0
----
-97
0

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - col2 / 57 * col0 FROM tab0 cor0
----
-97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 65 col0 FROM tab2 AS cor0 WHERE NOT 26 / + ( col0 ) * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT DISTINCT SUM( DISTINCT col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-5308
SELECT + COUNT( * ) AS col1, ( + 64 ) AS col1 FROM tab1
----
3
64

skipif mysql # not compatible
query II rowsort label-5308
SELECT + COUNT ( * ) AS col1, ( + 64 ) AS col1 FROM tab1
----
3
64

query II rowsort
SELECT ALL - 23 AS col0, + col1 AS col2 FROM tab2
----
-23
51
-23
67
-23
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5310
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) + + ( + col1 ) * + col0 * - col0 + - col2 NOT BETWEEN col1 AND col0 * 66
----

skipif mysql # not compatible
query III rowsort label-5310
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) + + ( + col1 ) * + col0 * - col0 + - col2 NOT BETWEEN col1 AND col0 * 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - 48 AS col0, col1 col2 FROM tab0
----
-1008
21
-3888
81
-48
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col2 ) col1 FROM tab1
----
59
68
96

query I rowsort
SELECT 74 * + col1 FROM tab1
----
1036
3478
370

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 82 + - 70 FROM tab1 AS cor0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT DISTINCT + - MIN( DISTINCT + ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT + - MIN ( DISTINCT + ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + + col0 - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 59 + - - col2 * - col0 FROM tab2
----
-1117
-2619
-4409

query I rowsort
SELECT DISTINCT - ( col2 ) + - + col2 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT COUNT( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5320
SELECT COUNT ( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1 WHERE + col0 * - col1 IN ( - + col0 + - + 41 )
----

query II rowsort
SELECT + - 86 + - col0 AS col2, - col1 FROM tab2 AS cor0
----
-132
-51
-150
-77
-161
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT DISTINCT + 71 * + + MAX( - col2 ) AS col1 FROM tab1 cor0
----
-4189

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT + 71 * + + MAX ( - col2 ) AS col1 FROM tab1 cor0
----
-4189

query I rowsort
SELECT ALL + - 94 * + col2 FROM tab1 AS cor0
----
-5546
-6392
-9024

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 >= col1
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT 15 * CAST( NULL AS SIGNED ) + - col0 / - - 44 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT 15 * CAST ( NULL AS INTEGER ) + - col0 / - - 44 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 44 FROM tab2 WHERE NOT - col2 * + + col1 + + 30 > NULL
----

query I rowsort
SELECT ALL + 36 + - + col2 + col1 * - col1 FROM tab0
----
-415
-64
-6572

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT 6 + - - COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5329
SELECT DISTINCT 6 + - - COUNT ( * ) col2 FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE 90 - - 24 > + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 - + + col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT ALL - 6 DIV + 28 + + - 94 - - - col2 FROM tab2 AS cor0
----
-117
-134
-152

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL - 6 / + 28 + + - 94 - - - col2 FROM tab2 AS cor0
----
-117
-134
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 84 - + 26 + + + 68, ( - 62 ) col0 FROM tab0 AS cor0
----
126
-62
126
-62
126
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT + MAX( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + MAX ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( NOT NULL NOT IN ( 13 * + + col2 ) )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( - 12 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - MIN( ALL 55 ) * - COUNT( * ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-5337
SELECT - MIN ( ALL 55 ) * - COUNT ( * ) FROM tab1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT COUNT( * ) - + - 85 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
85

skipif mysql # not compatible
query I rowsort label-5338
SELECT COUNT ( * ) - + - 85 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
85

query I rowsort
SELECT col2 - - + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5340
SELECT ALL - MIN( - 21 ) * - CAST( NULL AS DECIMAL ) * AVG ( ALL + 24 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL - MIN ( - 21 ) * - CAST ( NULL AS REAL ) * AVG ( ALL + 24 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT ALL CAST( + + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL CAST ( + + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT ALL + col0 DIV + - 30 + - - col1 AS col0 FROM tab1 AS cor0
----
13
3
44

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL + col0 / + - 30 + - - col1 AS col0 FROM tab1 AS cor0
----
13
3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT + 23 * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5343
SELECT + 23 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

query I rowsort
SELECT DISTINCT + + 41 AS col0 FROM tab1 cor0 WHERE - col2 * - col1 + + col1 IS NOT NULL
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5345
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5345
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5346
SELECT DISTINCT 58 AS col1, + COUNT( * ) FROM tab1
----
58
3

skipif mysql # not compatible
query II rowsort label-5346
SELECT DISTINCT 58 AS col1, + COUNT ( * ) FROM tab1
----
58
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5347
SELECT ALL * FROM tab2 WHERE NOT - 69 >= + CAST( - col1 AS DECIMAL )
----
46
51
23
75
67
58

skipif mysql # not compatible
query III rowsort label-5347
SELECT ALL * FROM tab2 WHERE NOT - 69 >= + CAST ( - col1 AS REAL )
----
46
51
23
75
67
58

query I rowsort
SELECT ALL - col0 * 20 AS col2 FROM tab0
----
-1740
-1940
-300

query III rowsort
SELECT * FROM tab1 WHERE NOT 27 + - 99 + + 30 <> + 99 * + - 8 / - 28
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5350
SELECT + COUNT( * ) AS col0, COUNT( - - col2 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5350
SELECT + COUNT ( * ) AS col0, COUNT ( - - col2 ) FROM tab2
----
3
3

query I rowsort
SELECT ALL + + ( 95 ) * + + col0 FROM tab0 WHERE NOT + 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5352
SELECT + col1 * col2 * 32 + CAST( NULL AS SIGNED ) + col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5352
SELECT + col1 * col2 * 32 + CAST ( NULL AS INTEGER ) + col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT - 28 AS col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NULL IN ( + col2 / col2 )
----

query II rowsort
SELECT - + col1 AS col1, 42 + + + ( + - 48 ) * + 19 * - 71 FROM tab1 cor0
----
-14
64794
-47
64794
-5
64794

query I rowsort
SELECT DISTINCT - 6 + - 85 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-91

query I rowsort
SELECT - col1 * + + col0 * + col0 AS col2 FROM tab2 AS cor0
----
-107916
-315392
-376875

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5359
SELECT - 17 + - 55 + + - COUNT( * ) col0, + COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab1
----
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5359
SELECT - 17 + - 55 + + - COUNT ( * ) col0, + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab1
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT - SUM( ALL + col2 ) + COUNT( * ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-5360
SELECT - SUM ( ALL + col2 ) + COUNT ( * ) FROM tab2
----
-118

query I rowsort
SELECT + col1 * - - 37 + 51 * + col1 + - col1 FROM tab2
----
4437
5829
6699

query III rowsort
SELECT * FROM tab2 WHERE - - col1 <= NULL
----

query I rowsort
SELECT DISTINCT col1 + + + ( col0 ) AS col0 FROM tab0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( col0 - + - col2 / - 70 ) AND ( 82 / - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT DISTINCT - 11 + - 17 + + - 95 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT - 11 + - 17 + + - 95 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - col2 + - col0 * col1 FROM tab2
----
-2369
-4968
-5083

query II rowsort
SELECT DISTINCT col0 - - col2 * - 93, 92 AS col1 FROM tab1 AS cor0
----
-5402
92
-6233
92
-8877
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 20 col0 FROM tab0 AS cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col1 * 65 * + col2 * - - col1 )
----

query I rowsort
SELECT + - 0 * + + 41 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, - 90 - 47 col2 FROM tab2 AS cor0
----
-46
-137
-64
-137
-75
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL - MIN( DISTINCT 37 ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - MIN ( DISTINCT 37 ) FROM tab2 AS cor0
----
-37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 6 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT COUNT( * ) + - + ( ( - 38 ) ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-5375
SELECT COUNT ( * ) + - + ( ( - 38 ) ) FROM tab0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 63 col2 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT - 22 + - - col2 + - - col1 AS col2 FROM tab2
----
103
52
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT - SUM( ALL + col2 ) + - COUNT( * ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-5378
SELECT - SUM ( ALL + col2 ) + - COUNT ( * ) FROM tab0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - 84 + + + MAX( 79 ) AS col0 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-5379
SELECT - 84 + + + MAX ( 79 ) AS col0 FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT + COUNT( DISTINCT - col2 ) + + 61 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-5380
SELECT + COUNT ( DISTINCT - col2 ) + + 61 FROM tab0
----
64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5381
SELECT ALL + CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 + 40 - + col2 col2 FROM tab2
----
-18
0
17

query II rowsort
SELECT ALL - + col0 * col1 AS col0, 97 FROM tab2 AS cor0
----
-2346
97
-4928
97
-5025
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <= + - 91 * - - ( - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5385
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE CAST( NULL AS SIGNED ) * 94 IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5385
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE CAST ( NULL AS INTEGER ) * 94 IS NOT NULL
----

query I rowsort
SELECT - col1 + ( col0 ) * - 65 AS col0 FROM tab0
----
-1056
-5676
-6306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + 36 * - ( col1 ) + + + col2 AS col2, col1 * + 22 col0 FROM tab1
----
-1692
1034
-180
110
-504
308

query I rowsort
SELECT DISTINCT + col1 - - col0 AS col2 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT col1 + - col2 + col0 * + - 97 AS col2 FROM tab0 AS cor0
----
-1421
-8428
-9507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col1 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL + - COUNT( - + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL + - COUNT ( - + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + COUNT( * ) * - + 79 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-5393
SELECT + COUNT ( * ) * - + 79 FROM tab2
----
-237

query III rowsort
SELECT * FROM tab1 WHERE - - 70 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + col2 = + - col2 * - 92 + + - col1
----
-15
-87
-97

query II rowsort
SELECT DISTINCT - col2, + col1 FROM tab0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT ALL - 47 AS col1, col2 FROM tab0
----
-47
10
-47
47
-47
99

query I rowsort
SELECT - col1 * - 17 AS col2 FROM tab0 AS cor0
----
1377
17
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT - col0 * + - 51 AS col2 FROM tab1 cor0
----
2601
4335
4641

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 37 * + + 22 IS NOT NULL
----

query I rowsort
SELECT + col1 * - col2 - - - 0 - + 5 AS col2 FROM tab2 AS cor0
----
-1178
-3085
-3891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT - CAST( 60 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-5403
SELECT - CAST ( 60 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5404
SELECT DISTINCT + ( - - 63 ) * + CAST( - - 92 AS SIGNED ) / CAST( NULL AS DECIMAL ) + + col2 - - 57 * + - 11 - - col2 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5404
SELECT DISTINCT + ( - - 63 ) * + CAST ( - - 92 AS INTEGER ) / CAST ( NULL AS REAL ) + + col2 - - 57 * + - 11 - - col2 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT + + MIN( - + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5405
SELECT + + MIN ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - col2 col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT - col2 + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT - ( - CAST( + col0 AS SIGNED ) ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5408
SELECT - ( - CAST ( + col0 AS INTEGER ) ) FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT - col2 / 52 + - - col1 FROM tab1 WHERE NOT + 89 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL + 63 + - + COUNT( * ) AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL + 63 + - + COUNT ( * ) AS col0 FROM tab1
----
60

query I rowsort
SELECT DISTINCT col1 * - 95 AS col1 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT DISTINCT 48 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 83 + col0 col0, 66 + + col1 AS col0 FROM tab1
----
134
80
168
71
174
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - MIN( DISTINCT - - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5415
SELECT - MIN ( DISTINCT - - col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL - + 4 - - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - + 4 - - COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL - COUNT( * ) * 32 AS col1 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - COUNT ( * ) * 32 AS col1 FROM tab2 AS cor0
----
-96

query I rowsort
SELECT + + 64 - - col1 FROM tab2 AS cor0
----
115
131
141

query I rowsort
SELECT + - 64 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN 14 AND NULL
----

query II rowsort
SELECT col0 - + 42, col1 FROM tab0 AS cor0
----
-27
81
45
21
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT SUM( DISTINCT + col0 ) - - COUNT( * ) FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-5421
SELECT SUM ( DISTINCT + col0 ) - - COUNT ( * ) FROM tab1 AS cor0
----
230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT CAST( + col1 AS SIGNED ) - ( + ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT CAST ( + col1 AS INTEGER ) - ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT SUM( + 66 ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT SUM ( + 66 ) FROM tab0 AS cor0
----
198

query I rowsort
SELECT - 77 + + + col1 - col2 AS col0 FROM tab1 AS cor0
----
-131
-159
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + 81 * + + col0 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 9 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5427
SELECT + CAST( - 29 AS DECIMAL ) FROM tab1 WHERE + 51 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5427
SELECT + CAST ( - 29 AS REAL ) FROM tab1 WHERE + 51 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5428
SELECT ( + - ( SUM( + ( 15 ) ) ) ) DIV + 61 + + MAX( DISTINCT - ( - col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5428
SELECT ( + - ( SUM ( + ( 15 ) ) ) ) / + 61 + + MAX ( DISTINCT - ( - col0 ) ) FROM tab1
----
91

query I rowsort
SELECT - 7 * - + 66 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
462
462
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5430
SELECT ALL + CAST( NULL AS SIGNED ), - COUNT( * ) AS col1 FROM tab1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5430
SELECT ALL + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1 FROM tab1
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) * + 88 AS col2 FROM tab2
----
792

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) * + 88 AS col2 FROM tab2
----
792

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT - col2 DIV + ( 30 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT - col2 / + ( 30 ) FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5433
SELECT 6 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT 6 / - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 95 * - - 11 AS col1 FROM tab2 WHERE NOT NULL >= + col2
----

query II rowsort
SELECT 82, - 1 * 7 FROM tab1 WHERE NOT + - col0 BETWEEN ( + - col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-5436
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 DIV 36 * 22 * col0 <= col1 - - col1 + - col2
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-5436
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 / 36 * 22 * col0 <= col1 - - col1 + - col2
----
64
77
40
75
67
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 BETWEEN ( ( - col0 ) ) AND col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / + col2 * - - 58 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT - MAX( + col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT - MAX ( + col2 ) AS col1 FROM tab2
----
-58

query II rowsort
SELECT col0 * + col0 AS col0, - ( + - col1 ) FROM tab0
----
225
81
7569
21
9409
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 37 <= - col0 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT - - MIN( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT - - MIN ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
51

query II rowsort
SELECT col0 * col0, col1 AS col1 FROM tab1 cor0
----
2601
14
7225
5
8281
47

query I rowsort
SELECT - 44 + + ( - 55 ) + col0 AS col1 FROM tab1 AS cor0
----
-14
-48
-8

query II rowsort
SELECT ALL col0 + 13, + col2 AS col2 FROM tab1
----
104
68
64
96
98
59

query I rowsort
SELECT DISTINCT ( + 87 ) + - col0 + + col2 FROM tab0
----
10
119
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5447
SELECT ALL + ( COUNT( * ) ) + + CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5447
SELECT ALL + ( COUNT ( * ) ) + + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - COUNT( * ) + + 82 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-5448
SELECT - COUNT ( * ) + + 82 FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT COUNT( * ) + + + SUM( - + col1 ) AS col0 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT COUNT ( * ) + + + SUM ( - + col1 ) AS col0 FROM tab1
----
-63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT + 13 * + MAX( col0 ) + + + ( + 29 ) FROM tab2 AS cor0
----
1004

skipif mysql # not compatible
query I rowsort label-5451
SELECT + 13 * + MAX ( col0 ) + + + ( + 29 ) FROM tab2 AS cor0
----
1004

query I rowsort
SELECT + 22 AS col1 FROM tab1 cor0
----
22
22
22

query I rowsort
SELECT DISTINCT col1 - - - col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL - col2 * col0 + col1 * + col1 - + col2 FROM tab1 AS cor0
----
-4047
-4796
-5049

query I rowsort
SELECT + col1 + + 79 FROM tab0 cor0
----
100
160
80

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5456
SELECT - 26 AS col0, CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
-26
NULL
-26
NULL
-26
NULL

skipif mysql # not compatible
query II rowsort label-5456
SELECT - 26 AS col0, CAST ( NULL AS REAL ) FROM tab1 cor0
----
-26
NULL
-26
NULL
-26
NULL

query I rowsort
SELECT ALL - - 33 + + + ( + 50 ) * + + 32 AS col1 FROM tab1 cor0
----
1633
1633
1633

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col1 * 37 AS col2 FROM tab0 AS cor0
----
2997
37
777

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT ALL + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + col2 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - - col1, - 20 AS col2 FROM tab1 AS cor0
----
14
-20
47
-20
5
-20

query I rowsort
SELECT DISTINCT + 15 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15

query I rowsort
SELECT - 84 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + col1 + - col1 IS NULL
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 WHERE NOT + 62 / + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 62 / + - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col1 * + 37 AS col0 FROM tab1
----
-1739
-185
-518

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5466
SELECT + 88 * + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT + 88 * + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 85 * + col2 - + ( + col0 ) + col2 AS col1 FROM tab2 AS cor0
----
1932
3376
4913

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL - SUM( DISTINCT - col1 ) col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5469
SELECT ALL - SUM ( DISTINCT - col1 ) col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT 70 * + col0 AS col0 FROM tab1 AS cor0
----
3570
5950
6370

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT col0 DIV - 74 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5472
SELECT col0 / - 74 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + col2 * - - 64 AS col0 FROM tab2 AS cor0
----
1472
2560
3712

query I rowsort
SELECT DISTINCT + - 36 FROM tab0 cor0
----
-36

query I rowsort
SELECT DISTINCT 44 + col1 AS col0 FROM tab2 AS cor0
----
111
121
95

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) + - col0 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL col2 + 67 AS col1 FROM tab2
----
107
125
90

query I rowsort
SELECT - col0 + - 53 FROM tab1
----
-104
-138
-144

query I rowsort
SELECT DISTINCT - col2 + + - col2 * col2 FROM tab2
----
-1640
-3422
-552

query I rowsort
SELECT + col2 + + 89 FROM tab2
----
112
129
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT - SUM( ALL - 94 ) - - 48 - - + 27 FROM tab2 AS cor0
----
357

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - SUM ( ALL - 94 ) - - 48 - - + 27 FROM tab2 AS cor0
----
357

query I rowsort
SELECT ALL + col1 + + 57 + col2 AS col2 FROM tab2
----
131
174
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ALL 44 * COUNT( * ) col0 FROM tab2
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5484
SELECT ALL 44 * COUNT ( * ) col0 FROM tab2
----
132

query I rowsort
SELECT 62 * 63 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 75fd4bd07a2ae3bb4f9e35c99c6f2a23

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT + 24 - - + COUNT( * ) * - 54 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-5486
SELECT + 24 - - + COUNT ( * ) * - 54 FROM tab2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT + MIN( col1 ) * + 59 FROM tab2 AS cor0
----
3009

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + MIN ( col1 ) * + 59 FROM tab2 AS cor0
----
3009

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT + COUNT( DISTINCT + 15 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5488
SELECT + COUNT ( DISTINCT + 15 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5489
SELECT ALL + + 62 DIV + ( + CAST( - 63 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + + 62 / + ( + CAST ( - 63 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + + col1 AS col2, - 98 FROM tab2 AS cor0 WHERE col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5491
SELECT MAX( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT DISTINCT + COUNT( - col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5492
SELECT DISTINCT + COUNT ( - col0 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT DISTINCT + CAST( ( + 69 ) AS SIGNED ) * + col0 * - + 27 FROM tab2
----
-119232
-139725
-85698

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT + CAST ( ( + 69 ) AS INTEGER ) * + col0 * - + 27 FROM tab2
----
-119232
-139725
-85698

query I rowsort
SELECT - 63 * + 26 AS col2 FROM tab2
----
-1638
-1638
-1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT ALL CAST( NULL AS SIGNED ) * - - col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5495
SELECT ALL CAST ( NULL AS INTEGER ) * - - col2 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT ALL 78 DIV - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL 78 / - col0 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5497
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5497
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col2 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 98 * col1 AS col2 FROM tab1
----
1372
4606
490

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT - ( + - SUM( DISTINCT - 45 ) ) col2 FROM tab2
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5500
SELECT DISTINCT - ( + - SUM ( DISTINCT - 45 ) ) col2 FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL 17 + - MAX( - + col0 ) col1 FROM tab2
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5501
SELECT ALL 17 + - MAX ( - + col0 ) col1 FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5502
SELECT ALL - col1 DIV CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - col1 / CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT - 63 * - COUNT( * ) * + COUNT( * ) FROM tab2
----
567

skipif mysql # not compatible
query I rowsort label-5503
SELECT - 63 * - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
567

query I rowsort
SELECT ALL 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT 30 + + + CAST( NULL AS SIGNED ) * - 33 / - 92 + + COUNT( + + col2 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT 30 + + + CAST ( NULL AS INTEGER ) * - 33 / - 92 + + COUNT ( + + col2 ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - + MAX( - + col1 ) + 44 AS col1 FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-5506
SELECT - + MAX ( - + col1 ) + 44 AS col1 FROM tab0 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL SUM( ALL + + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL SUM ( ALL + + col2 ) AS col0 FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT 48 DIV + - 89 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5508
SELECT 48 / + - 89 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 + + col2 FROM tab0 WHERE NULL IN ( col2 / + + col0 * - col1 * + 10, + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - 40 * + col2 * + col2 + - + 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5511
SELECT DISTINCT 69 + + + CAST( + COUNT( * ) AS SIGNED ) - + - 95 AS col0 FROM tab1
----
167

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT 69 + + + CAST ( + COUNT ( * ) AS INTEGER ) - + - 95 AS col0 FROM tab1
----
167

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5512
SELECT ALL - COUNT( ALL - - CAST( col0 AS DECIMAL ) ) * 5 FROM tab1 WHERE ( NOT col0 + - col2 < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - COUNT ( ALL - - CAST ( col0 AS REAL ) ) * 5 FROM tab1 WHERE ( NOT col0 + - col2 < NULL )
----
0

query I rowsort
SELECT DISTINCT 49 + - col0 FROM tab0
----
-38
-48
34

query I rowsort
SELECT DISTINCT + - col2 * col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + - col0 - - 1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT + - MAX( - col1 ) * - - 23 - + COUNT( * ) FROM tab1 cor0
----
112

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT + - MAX ( - col1 ) * - - 23 - + COUNT ( * ) FROM tab1 cor0
----
112

query I rowsort
SELECT - col1 - - 26 FROM tab2 AS cor0
----
-25
-41
-51

query I rowsort
SELECT - 69 + + 89 AS col2 FROM tab2
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT ALL col0 * - - CAST( - ( + - col0 ) AS SIGNED ) col2 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5519
SELECT ALL col0 * - - CAST ( - ( + - col0 ) AS INTEGER ) col2 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT + COUNT( * ) - - COUNT( * ) + - 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5520
SELECT + COUNT ( * ) - - COUNT ( * ) + - 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + 66 ) IS NOT NULL
----

query II rowsort
SELECT ALL - 69, col1 + - col1 AS col0 FROM tab2 AS cor0
----
-69
0
-69
0
-69
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT + - COUNT( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5523
SELECT + - COUNT ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + - col2 AS col1, col2 - + - col2 FROM tab0 AS cor0
----
-10
20
-47
94
-99
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, + ( - col2 ) * col2 AS col2 FROM tab2 AS cor0
----
51
-529
67
-3364
77
-1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5526
SELECT + MAX( ALL - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT + MAX ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5527
SELECT + - COUNT( * ), 19 AS col0 FROM tab0 AS cor0
----
-3
19

skipif mysql # not compatible
query II rowsort label-5527
SELECT + - COUNT ( * ), 19 AS col0 FROM tab0 AS cor0
----
-3
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT MIN( + + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5528
SELECT MIN ( + + col0 ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5529
SELECT ALL + ( - col1 ) col0, 7 + + + col1 * CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5529
SELECT ALL + ( - col1 ) col0, 7 + + + col1 * CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT + col1 * - 75 * + + col2 * + col2 + + 53 AS col1 FROM tab0 AS cor0
----
-13419622
-157447
-735022

query II rowsort
SELECT DISTINCT - col1, + ( col1 ) AS col2 FROM tab0 cor0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 35 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5533
SELECT - - 91 AS col0, + MAX( + + col2 ) * + COUNT( * ) * + 10 - - COUNT( DISTINCT + + col2 ) FROM tab1 cor0
----
91
2883

skipif mysql # not compatible
query II rowsort label-5533
SELECT - - 91 AS col0, + MAX ( + + col2 ) * + COUNT ( * ) * + 10 - - COUNT ( DISTINCT + + col2 ) FROM tab1 cor0
----
91
2883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL + col0 * + CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + col0 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT DISTINCT - col0 * - col2, 63 AS col1 FROM tab1
----
4896
63
5015
63
6188
63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= + col1
----

query I rowsort
SELECT + 40 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 95 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-95
-95
-95

query I rowsort
SELECT - col0 * col0 + + col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-144
-7548
-9408

query I rowsort
SELECT col2 * + 32 FROM tab1
----
1888
2176
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + COUNT( * ) * - - 85 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-5542
SELECT + COUNT ( * ) * - - 85 FROM tab1 AS cor0
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT DISTINCT CAST( - - col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5543
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT 61 * col0 FROM tab0
----
5307
5917
915

query I rowsort
SELECT DISTINCT - 4 AS col2 FROM tab0, tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT + SUM( ALL + col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-5546
SELECT + SUM ( ALL + col2 ) AS col2 FROM tab0 cor0
----
156

query I rowsort
SELECT ALL + + col2 * - 17 + - col0 * col2 * + 68 * - + 14 + + col1 AS col2 FROM tab2 AS cor0
----
1006876
2436517
4140281

query I rowsort
SELECT ALL - 15 * + 76 * + col2 + - col2 - + col0 AS col2 FROM tab1 AS cor0
----
-109587
-67404
-77679

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT DISTINCT SUM( + col0 ) * COUNT( * ) + 38 + - 4 FROM tab2 AS cor0
----
589

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT SUM ( + col0 ) * COUNT ( * ) + 38 + - 4 FROM tab2 AS cor0
----
589

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT - COUNT( * ) * - 3 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT - COUNT ( * ) * - 3 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5551
SELECT ALL 75 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL 75 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT COUNT( * ) - + COUNT( * ) * - + COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5552
SELECT COUNT ( * ) - + COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
12

query II rowsort
SELECT 10 + col0 AS col1, ( + + col1 ) AS col1 FROM tab0
----
107
1
25
81
97
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT MIN( DISTINCT + col1 ) + + 18 AS col0 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-5554
SELECT MIN ( DISTINCT + col1 ) + + 18 AS col0 FROM tab0
----
19

query I rowsort
SELECT DISTINCT + col2 + + 78 FROM tab2
----
101
118
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT COUNT( ALL col2 ) + + SUM( - - col2 ) col1 FROM tab1
----
226

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5556
SELECT COUNT ( ALL col2 ) + + SUM ( - - col2 ) col1 FROM tab1
----
226

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5557
SELECT col1 FROM tab2 WHERE + - CAST( NULL AS DECIMAL ) + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5557
SELECT col1 FROM tab2 WHERE + - CAST ( NULL AS REAL ) + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 - 20 * + 43 col0 FROM tab1
----
-829
-829
-829

query I rowsort
SELECT 40 + + - 19 AS col1 FROM tab0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5560
SELECT ALL col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT - col1 + - 29 + + + col0 DIV + ( + col0 ) AS col2 FROM tab0
----
-109
-29
-49

skipif mysql # not compatible
query I rowsort label-5561
SELECT - col1 + - 29 + + + col0 / + ( + col0 ) AS col2 FROM tab0
----
-109
-29
-49

query II rowsort
SELECT ( - ( + + 95 ) ) + + col0 AS col2, col0 FROM tab1 AS cor0
----
-10
85
-4
91
-44
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT - 42 - - COUNT( * ) AS col0 FROM tab1 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT - 42 - - COUNT ( * ) AS col0 FROM tab1 cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5564
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5564
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + CAST ( + col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5565
SELECT * FROM tab2 WHERE NOT col0 BETWEEN - 10 * + 54 + + - col1 - 76 - CAST( + + col2 AS SIGNED ) + + 46 * - ( + col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5565
SELECT * FROM tab2 WHERE NOT col0 BETWEEN - 10 * + 54 + + - col1 - 76 - CAST ( + + col2 AS INTEGER ) + + 46 * - ( + col1 ) AND NULL
----

query I rowsort
SELECT - col1 * - 47 AS col1 FROM tab2
----
2397
3149
3619

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 <> 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT - - MIN( + 29 ) AS col0 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5568
SELECT - - MIN ( + 29 ) AS col0 FROM tab1 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL MIN( DISTINCT 11 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL MIN ( DISTINCT 11 ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT DISTINCT - 76 FROM tab2 AS cor0 WHERE + col2 + - col0 IS NOT NULL
----
-76

query I rowsort
SELECT ALL ( 7 ) AS col1 FROM tab2 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL + + 73 * 34 * - 47 + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-116651

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + + 73 * 34 * - 47 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-116651

query III rowsort
SELECT * FROM tab2 WHERE NOT - 94 + col1 + - 57 IS NOT NULL
----

query I rowsort
SELECT + 85 * ( col1 ) AS col1 FROM tab2
----
4335
5695
6545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, 32 + - + ( + col0 ) AS col2 FROM tab0
----
10
-55
47
17
99
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 49 col1 FROM tab2
----
-1127
-1960
-2842

query I rowsort
SELECT 47 * - col0 * - + 13 * - col0 FROM tab0
----
-137475
-4624659
-5748899

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL - COUNT( DISTINCT - col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5579
SELECT DISTINCT col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT col1 + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col1 * - 29 FROM tab0 AS cor0
----
-2349
-29
-609

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 84 IS NULL
----

query I rowsort
SELECT + 84 FROM tab1 AS cor0 WHERE - 19 * - - col0 NOT BETWEEN NULL AND - ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5583
SELECT DISTINCT COUNT( * ) * - - CAST( AVG ( DISTINCT - ( + + 92 ) ) AS SIGNED ) FROM tab2 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT COUNT ( * ) * - - CAST ( AVG ( DISTINCT - ( + + 92 ) ) AS INTEGER ) FROM tab2 cor0
----
-276

query I rowsort
SELECT - col0 + + 31 AS col0 FROM tab2 AS cor0
----
-15
-33
-44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 4 >= - - col1 )
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 96 / 84 + + 47 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col0 FROM tab0
----
51

query III rowsort
SELECT * FROM tab1 WHERE - 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 AS col0 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL - - 4 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - col0 + - + col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT ALL 28 + - col1 * + col2 - - 74 AS col0 FROM tab0
----
-108
-3705
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT - 35 DIV + + col2 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT - 35 / + + col2 AS col0 FROM tab2 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT - - 85 DIV + - col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5594
SELECT - - 85 / + - col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col0 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT DISTINCT + 50 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT ALL - - 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + - col0 AND + col1
----

query I rowsort
SELECT DISTINCT - 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT ALL - 51 + - - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-51

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL - 51 + - - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT - 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT MAX( DISTINCT - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5603
SELECT MAX ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT ( + COUNT( col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5604
SELECT ( + COUNT ( col2 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - - ( + 29 ) AS col2 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 1 * - - ( + + 81 ) + + ( col0 ) FROM tab2 AS cor0
----
127
145
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - SUM( + - 95 ) col1 FROM tab0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5608
SELECT - SUM ( + - 95 ) col1 FROM tab0
----
285

query I rowsort
SELECT + + 83 + col2 FROM tab2 WHERE NOT - col0 + - col1 IS NULL
----
106
123
141

query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL MIN( ALL + 9 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL MIN ( ALL + 9 ) AS col0 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT + - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT + 70 > - ( + 63 ) - - col0 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT + - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT + 70 > - ( + 63 ) - - col0 + + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT DISTINCT - col0 * col2 DIV + col0 + + 91 FROM tab2
----
33
51
68

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT - col0 * col2 / + col0 + + 91 FROM tab2
----
33
51
68

query I rowsort
SELECT ALL 46 * col1 AS col2 FROM tab1
----
2162
230
644

query I rowsort
SELECT DISTINCT col0 * 35 + - col1 * + col0 FROM tab0 AS cor0
----
-690
1218
3298

query I rowsort
SELECT ALL - col2 * + 98 AS col1 FROM tab0 AS cor0
----
-4606
-9702
-980

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NULL < + col1 * col0 ) )
----

query I rowsort
SELECT ALL - col1 * - + ( + - 81 ) FROM tab1 cor0
----
-1134
-3807
-405

query I rowsort
SELECT ALL col0 * col2 * - col2 + - + col2 FROM tab2
----
-102440
-24357
-252358

query II rowsort
SELECT + 5 AS col0, - 77 FROM tab2
----
5
-77
5
-77
5
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT DISTINCT col1 - col1 DIV - 49 + - 33 * + col2 + - ( - col2 ) AS col1 FROM tab2
----
-1202
-1788
-684

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT col1 - col1 / - 49 + - 33 * + col2 + - ( - col2 ) AS col1 FROM tab2
----
-1202
-1788
-684

query II rowsort
SELECT col0 AS col1, + col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 23 > + col1
----
51
14
96
85
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5624
SELECT 87, CAST( - + COUNT( * ) AS SIGNED ) col0 FROM tab0 AS cor0
----
87
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5624
SELECT 87, CAST ( - + COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0
----
87
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col2 * col1 col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT - 21 - - + COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT - 21 - - + COUNT ( * ) FROM tab0 AS cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5627
SELECT ALL col1 DIV - col0 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL col1 / - col0 FROM tab0 cor0
----
-5
0
0

query I rowsort
SELECT DISTINCT - 51 - + col1 FROM tab0 AS cor0
----
-132
-52
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5629
SELECT DISTINCT + COUNT( * ) AS col0, + SUM( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5629
SELECT DISTINCT + COUNT ( * ) AS col0, + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT - 84 * - + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( + col2 ) - + col2 + - + 40 + - ( col2 ) * + - col1 * - + 59 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 51 * + 20 + + 72 * + - col0 AS col2 FROM tab1
----
-2652
-5100
-5532

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT 99 + - COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-5633
SELECT 99 + - COUNT ( * ) FROM tab2
----
96

query I rowsort
SELECT - col0 + - 31 FROM tab1
----
-116
-122
-82

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 49 / - - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5636
SELECT ALL COUNT( * ) DIV + 55 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL COUNT ( * ) / + 55 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 86 * + col1 FROM tab0
----
1806
6966
86

query I rowsort
SELECT + + 48 * 49 FROM tab0 AS cor0
----
2352
2352
2352

query II rowsort
SELECT col2 * + col1 * - + col0 AS col2, col2 FROM tab1
----
-25075
59
-290836
68
-68544
96

query I rowsort
SELECT + 22 FROM tab0 WHERE NOT + col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 6 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT + 38 DIV col2 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5642
SELECT + 38 / col2 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + COUNT( * ) + - - 28 AS col2 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5643
SELECT + COUNT ( * ) + - - 28 AS col2 FROM tab2 AS cor0
----
31

query I rowsort
SELECT 90 + + + 3 * + col0 FROM tab2
----
228
282
315

query I rowsort
SELECT + 77 + + - col2 AS col0 FROM tab1
----
-19
18
9

query I rowsort
SELECT DISTINCT ( 48 ) + 58 * col0 + - 94 AS col0 FROM tab1
----
2912
4884
5232

query I rowsort
SELECT ALL + col2 * - 59 + + col0 * - + col2 AS col1 FROM tab2
----
-2415
-4920
-7772

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + col0 * 23 * - ( col1 ), + col2 + - + col2, - col2, col1 )
----

query I rowsort
SELECT ALL - col0 * + col2 * - - 84 - + 70 + - + col0 * + col0 FROM tab1 AS cor0
----
-413935
-428555
-528143

query I rowsort
SELECT + - 62 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 41 AS col1 FROM tab0 cor0
----
-26
46
56

query I rowsort
SELECT ALL 15 + - + 9 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT COUNT( ALL + col1 ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5653
SELECT COUNT ( ALL + col1 ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + ( + col2 ) * - 38 - + col0 AS col2 FROM tab2 AS cor0
----
-1584
-2279
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT COUNT( * ) * - + 45 AS col1 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-5655
SELECT COUNT ( * ) * - + 45 AS col1 FROM tab2 AS cor0
----
-135

query I rowsort
SELECT + ( + 35 ) FROM tab1 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE col2 * - - 29 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 * - - 29 > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5658
SELECT + col0 DIV + - 11 FROM tab0 AS cor0
----
-1
-7
-8

skipif mysql # not compatible
query I rowsort label-5658
SELECT + col0 / + - 11 FROM tab0 AS cor0
----
-1
-7
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT 89 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT 89 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT DISTINCT col1 * col2 * + + CAST( 50 AS SIGNED ) * + col2 FROM tab1
----
10866400
6451200
870250

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT col1 * col2 * + + CAST ( 50 AS INTEGER ) * + col2 FROM tab1
----
10866400
6451200
870250

query I rowsort
SELECT ALL + 55 * + col2 FROM tab0
----
2585
5445
550

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + + col2 - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5663
SELECT - - MAX( - 95 ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
-95
3

skipif mysql # not compatible
query II rowsort label-5663
SELECT - - MAX ( - 95 ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-95
3

query II rowsort
SELECT + + 68 AS col0, + 56 * - col1 FROM tab1 AS cor0
----
68
-2632
68
-280
68
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL - MIN( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - MIN ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - col2 * + col0 + - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT + COUNT( * ) * MAX( - + col1 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT + COUNT ( * ) * MAX ( - + col1 ) AS col1 FROM tab0 cor0
----
-3

query II rowsort
SELECT ALL - col1 * col2, col0 AS col0 FROM tab2
----
-1173
46
-3080
64
-3886
75

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL MAX( + - 58 ) FROM tab1 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL MAX ( + - 58 ) FROM tab1 cor0
----
-58

query I rowsort
SELECT - col1 * + 41 * + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
-17425
-175357
-29274

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + col1 <= + col0 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT DISTINCT + + MIN( DISTINCT + - col1 ) * MIN( ALL 24 ) FROM tab1 AS cor0
----
-1128

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT + + MIN ( DISTINCT + - col1 ) * MIN ( ALL 24 ) FROM tab1 AS cor0
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT DISTINCT + SUM( col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT + SUM ( col2 ) AS col0 FROM tab1
----
223

query III rowsort
SELECT * FROM tab1 WHERE + + 75 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT - 71 * + - ( - + CAST( 47 AS SIGNED ) ) + + 0 AS col2 FROM tab0
----
-3337
-3337
-3337

skipif mysql # not compatible
query I rowsort label-5676
SELECT - 71 * + - ( - + CAST ( 47 AS INTEGER ) ) + + 0 AS col2 FROM tab0
----
-3337
-3337
-3337

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT + 29 * - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT + 29 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - - col2 + - - 61 * 52 FROM tab0 AS cor0
----
3182
3219
3271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col2, col2 FROM tab0 cor0
----
10
10
47
47
99
99

query II rowsort
SELECT DISTINCT - col1, - col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT - 59 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5683
SELECT - 59 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 74 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
74
74
74

query I rowsort
SELECT DISTINCT + col1 * ( 19 ) AS col1 FROM tab1
----
266
893
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - 3 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> 82
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + ( + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 73 NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL col0 * - 28 AS col2 FROM tab2
----
-1288
-1792
-2100

query I rowsort
SELECT ALL col2 FROM tab1 WHERE 25 NOT IN ( + col1 + + 81 )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5694
SELECT DISTINCT col2 DIV 18 AS col2 FROM tab0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT col2 / 18 AS col2 FROM tab0
----
0
2
5

query I rowsort
SELECT ALL ( - col0 ) FROM tab2 WHERE col1 IS NOT NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5696
SELECT ALL + col0 + + 40 DIV + col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + col0 + + 40 / + col1 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) BETWEEN col1 * col0 AND 63
----

query I rowsort
SELECT + col2 * + col0 + - 30 AS col1 FROM tab0
----
675
840
9573

query III rowsort
SELECT * FROM tab2 WHERE 53 + col2 IS NULL
----

query I rowsort
SELECT ALL col2 * col2 + 64 AS col1 FROM tab0
----
164
2273
9865

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 + + col1 ) NOT IN ( - col1 * + col2 + 43 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 19 + col2 AS col0 FROM tab2
----
42
59
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 87 * 34 + 16 * 58 ) BETWEEN ( col1 + + col1 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT DISTINCT ( CAST( 33 AS SIGNED ) ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT ( CAST ( 33 AS INTEGER ) ) AS col2 FROM tab1
----
33

query I rowsort
SELECT ( 30 ) AS col2 FROM tab2
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT MIN( DISTINCT + 45 ) AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-5707
SELECT MIN ( DISTINCT + 45 ) AS col0 FROM tab1
----
45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5709
SELECT + CAST( NULL AS SIGNED ) + COUNT( - 73 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( - 73 ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + - ( + col2 + - col2 ) >= - col1
----

query I rowsort
SELECT ALL col1 * 22 AS col1 FROM tab0 AS cor0
----
1782
22
462

query I rowsort
SELECT ALL 77 * + col2 FROM tab2 AS cor0
----
1771
3080
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT COUNT( - col0 ) * 93 col1 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5713
SELECT COUNT ( - col0 ) * 93 col1 FROM tab1 AS cor0
----
279

query III rowsort
SELECT * FROM tab1 WHERE NOT - 13 < col2 * 1
----

query I rowsort
SELECT + col0 - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + 93 + col0 FROM tab0
----
108
180
190

query III rowsort
SELECT * FROM tab0 WHERE NOT + 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT SUM( DISTINCT 67 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
67

skipif mysql # not compatible
query I rowsort label-5718
SELECT SUM ( DISTINCT 67 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5719
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT - CAST( 91 AS SIGNED ) >= 76 * col2
----
3

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - CAST ( 91 AS INTEGER ) >= 76 * col2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col1 )
----

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 ) WHERE ( NULL ) = 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT + COUNT( * ) + 44 col2 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5722
SELECT DISTINCT + COUNT ( * ) + 44 col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT DISTINCT COUNT( * ) + COUNT( * ) * - 9 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - 33 * col2 IS NULL
----
-24

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * - 9 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - 33 * col2 IS NULL
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT + - CAST( NULL AS SIGNED ) + + col1 / col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT + - CAST ( NULL AS INTEGER ) + + col1 / col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 98 AS col1 FROM tab2 AS cor0
----
-98
-98
-98

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= - ( col1 )
----

query I rowsort
SELECT - + 49 + + 22 FROM tab2 cor0
----
-27
-27
-27

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 < - col1 / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT ALL + - CAST( NULL AS SIGNED ) + - ( - col0 - col2 * 98 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + - CAST ( NULL AS INTEGER ) + - ( - col0 - col2 * 98 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 95 + col1 FROM tab2 AS cor0
----
146
162
172

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 47 * col2 > ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 13 + 74 - - 79 * col0 AS col1 FROM tab0
----
1272
6960
7750

query III rowsort
SELECT * FROM tab2 WHERE ( + 23 - 34 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - - 62 ) + 52 FROM tab0
----
114
114
114

skipif postgresql # PostgreSQL requires AS