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 when renaming output columns
query I rowsort
SELECT + col2 * col0 col2 FROM tab2 WHERE - 3 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT 6 * 48 + + SUM( DISTINCT 79 ) FROM tab1 AS cor0
----
367

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT 6 * 48 + + SUM ( DISTINCT 79 ) FROM tab1 AS cor0
----
367

query I rowsort
SELECT DISTINCT - col0 * 33 - + col1 AS col1 FROM tab0 AS cor0
----
-2892
-3202
-576

query I rowsort
SELECT DISTINCT - 39 FROM tab0 AS cor0 WHERE NOT col2 >= ( + col2 + - col2 * col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL - 35 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL - 35 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
105

query I rowsort
SELECT - col2 * + col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 + + + ( + 64 ) AS col1 FROM tab0 AS cor0
----
145
65
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5745
SELECT DISTINCT - col2 DIV - - col2 * + 1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT - col2 / - - col2 * + 1 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5746
SELECT - col2 FROM tab0 WHERE CAST( 75 AS DECIMAL ) IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-5746
SELECT - col2 FROM tab0 WHERE CAST ( 75 AS REAL ) IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + + col1 col0 FROM tab2
----
136
152
162

query I rowsort
SELECT DISTINCT col2 + + 24 * - col2 FROM tab1
----
-1357
-1564
-2208

query I rowsort
SELECT ALL 16 AS col2 FROM tab0, tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - - col2 AS col0 FROM tab0
----
100
128
31

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

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

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

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

query II rowsort
SELECT DISTINCT - col0 AS col2, + col1 + + - ( - 2 ) FROM tab0 AS cor0
----
-15
83
-87
23
-97
3

query I rowsort
SELECT col0 + col2 FROM tab1 AS cor0 WHERE + col0 <> NULL OR ( - col0 * - col1 ) NOT IN ( - col1 * + 24 )
----
144
147
159

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( - - 96 * ( col1 ) * - col2 - 30 ) AND ( 65 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT COUNT( * ) * - + 26 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-78

skipif mysql # not compatible
query I rowsort label-5765
SELECT COUNT ( * ) * - + 26 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-78

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( 15 + col1 )
----

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

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

query I rowsort
SELECT ALL - 19 * col0 FROM tab1 WHERE NOT ( + + 12 ) >= ( - col1 * + 26 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5770
SELECT 61 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5770
SELECT 61 / - col1 FROM tab2
----
-1
0
0

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

query I rowsort
SELECT ALL - - col2 * - col2 * + - 41 FROM tab2 AS cor0
----
137924
21689
65600

query I rowsort
SELECT col1 * - col0 * - 13 * - - 12 + + col1 + 43 FROM tab0
----
15176
189664
285076

query I rowsort
SELECT DISTINCT + col2 + + 21 + - - ( + - 8 ) AS col2 FROM tab1
----
109
72
81

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

skipif mysql # not compatible
query I rowsort label-5775
SELECT CAST ( + 86 AS INTEGER ) FROM tab1
----
86
86
86

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5777
SELECT DISTINCT + col1 + - col2 + 2, col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
-19
1
-52
1
-80
1

skipif mysql # not compatible
query II rowsort label-5777
SELECT DISTINCT + col1 + - col2 + 2, col2 / + col2 AS col2 FROM tab1 AS cor0
----
-19
1
-52
1
-80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT + MIN( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE ( 87 + + + col2 ) <= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT + MIN ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE ( 87 + + + col2 ) <= col1
----
NULL

query I rowsort
SELECT + + 1 * - 81 + col1 FROM tab0 cor0
----
-60
-80
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - 79
----

query II rowsort
SELECT + col1, + col2 * + - ( - - col2 ) + - - 85 + - 87 * - col0 FROM tab1 cor0
----
14
-4694
47
3378
5
3999

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

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

query I rowsort
SELECT - 60 * - 61 FROM tab1 AS cor0
----
3660
3660
3660

query I rowsort
SELECT ALL + col0 * + col1 * col2 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5787
SELECT ALL 37 DIV - + SUM( - col0 ) * + - CAST( ( 64 ) AS SIGNED ) DIV 51 - - 63 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL 37 / - + SUM ( - col0 ) * + - CAST ( ( 64 ) AS INTEGER ) / 51 - - 63 FROM tab1 AS cor0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) + 37 / SUM( DISTINCT 48 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 37 / SUM ( DISTINCT 48 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT DISTINCT - 12 * - 35 * + MAX( ALL col1 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
97020

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT - 12 * - 35 * + MAX ( ALL col1 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
97020

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 >= + col0
----
15
81
47

query II rowsort
SELECT 91 + - - col1 AS col0, - 50 AS col1 FROM tab0 WHERE NULL IS NULL
----
112
-50
172
-50
92
-50

query I rowsort
SELECT ALL - 60 + + col0 FROM tab2
----
-14
15
4

query III rowsort
SELECT ALL * FROM tab1 WHERE - 72 / + + 5 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5795
SELECT col2 DIV + CAST( col1 AS SIGNED ) col2 FROM tab1 WHERE + 76 + + 63 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - ( col1 ) IS NULL
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5795
SELECT col2 / + CAST ( col1 AS INTEGER ) col2 FROM tab1 WHERE + 76 + + 63 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - ( col1 ) IS NULL
----
1
11
6

query I rowsort
SELECT - ( - col0 ) + + + 5 AS col1 FROM tab0
----
102
20
92

query I rowsort
SELECT ALL 60 * + 71 - - 71 + - - col2 FROM tab2
----
4354
4371
4389

onlyif mysql # DIV for integer division: 
query I rowsort label-5798
SELECT - - 76 + + 6 + + - ( - + col1 ) DIV + - 24 + col0 AS col2 FROM tab2 AS cor0
----
126
143
155

skipif mysql # not compatible
query I rowsort label-5798
SELECT - - 76 + + 6 + + - ( - + col1 ) / + - 24 + col0 AS col2 FROM tab2 AS cor0
----
126
143
155

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - 8 = col2 + + 55 * col1 * col1 + + ( col0 ) / 65
----

query II rowsort
SELECT 72 AS col0, col0 * - col2 - - + col2 AS col1 FROM tab2 AS cor0
----
72
-1035
72
-2520
72
-4292

query I rowsort
SELECT ALL - 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ALL + 48 * - 32 FROM tab1
----
-1536
-1536
-1536

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 59 + - col2 + + col1 * - 26 ) NOT IN ( 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 55 * + - col2 FROM tab1
----
-3245
-3740
-5280

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5807
SELECT DISTINCT + MAX( + col2 ), - 38 * 90 AS col0 FROM tab2 AS cor0
----
58
-3420

skipif mysql # not compatible
query II rowsort label-5807
SELECT DISTINCT + MAX ( + col2 ), - 38 * 90 AS col0 FROM tab2 AS cor0
----
58
-3420

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5811
SELECT * FROM tab0 cor0 WHERE NOT - col1 / col0 IN ( CAST( col2 AS DECIMAL ) / col0 * ( + 79 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5811
SELECT * FROM tab0 cor0 WHERE NOT - col1 / col0 IN ( CAST ( col2 AS REAL ) / col0 * ( + 79 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT col0 * - + 46 * - + col1 AS col2 FROM tab1
----
19550
196742
32844

query I rowsort
SELECT ALL - ( + + 33 ) FROM tab2
----
-33
-33
-33

query II rowsort
SELECT ALL - col0, ( 25 ) + - + 43 AS col2 FROM tab1
----
-51
-18
-85
-18
-91
-18

query II rowsort
SELECT + col0 AS col2, - 11 * - col2 * + - 73 FROM tab0
----
15
-37741
87
-8030
97
-79497

query I rowsort
SELECT col0 * 67 AS col1 FROM tab1
----
3417
5695
6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5818
SELECT + ( MIN( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT MAX( ALL - + 74 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT MAX ( ALL - + 74 ) FROM tab2
----
-74

query I rowsort
SELECT ALL + ( + + 45 ) AS col1 FROM tab1
----
45
45
45

query I rowsort
SELECT + + 2 * + 14 AS col1 FROM tab2 AS cor0
----
28
28
28

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

skipif mysql # not compatible
query I rowsort label-5822
SELECT - 84 * - - COUNT ( * ) FROM tab2 AS cor0
----
-252

query I rowsort
SELECT - - 50 AS col1 FROM tab2 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT DISTINCT MIN( DISTINCT + 99 ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT MIN ( DISTINCT + 99 ) FROM tab1 cor0
----
99

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + 99 ) * - 34 col2 FROM tab1 cor0
----
3366
3366
3366

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + MIN( ALL 25 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-5832
SELECT + MIN ( ALL 25 ) FROM tab0
----
25

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

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

query I rowsort
SELECT 21 * + 83 AS col1 FROM tab0
----
1743
1743
1743

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - - 20 / 44 AND + 29 / 7 * - col0 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5836
SELECT ALL - CAST( col1 AS SIGNED ) + col1 * + - 33 - - 49 AS col0, col2 AS col2 FROM tab1
----
-121
59
-1549
68
-427
96

skipif mysql # not compatible
query II rowsort label-5836
SELECT ALL - CAST ( col1 AS INTEGER ) + col1 * + - 33 - - 49 AS col0, col2 AS col2 FROM tab1
----
-121
59
-1549
68
-427
96

query I rowsort
SELECT + col0 * col0 - - col1 AS col0 FROM tab2 AS cor0
----
2167
4173
5692

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 9 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * - 97 + 62 + + 2 col0 FROM tab1 cor0
----
-5950
-5950
-5950

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

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

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

query I rowsort
SELECT ALL + col1 * + ( + col0 ) * + col0 + col1 AS col0 FROM tab0 AS cor0
----
158970
18306
9410

query II rowsort
SELECT DISTINCT - col0 AS col2, - 72 * + col2 FROM tab2 AS cor0 WHERE 59 NOT IN ( + 38 / + + 9, + 38, + col1 )
----
-46
-1656
-64
-2880
-75
-4176

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

skipif mysql # not compatible
query I rowsort label-5847
SELECT - ( - MIN ( DISTINCT + + 82 ) ) FROM tab0 AS cor0
----
82

query I rowsort
SELECT DISTINCT + col1 * - + col0 + + + col2 + + col1 * 15 FROM tab1 AS cor0
----
-291
-3504
-408

query II rowsort
SELECT - - col0 AS col1, col1 + + - 86 - - + col2 FROM tab1 AS cor0
----
51
24
85
-22
91
29

query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab0 WHERE - 65 NOT IN ( 47, col1 )
----
-20

query I rowsort
SELECT + 58 FROM tab0 WHERE NOT NULL = ( - - col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL 35 + + SUM( + 76 ) FROM tab1
----
263

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL 35 + + SUM ( + 76 ) FROM tab1
----
263

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT col1 BETWEEN ( + col1 * - - col0 * col1 ) AND 54
----
15
87
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT - 74 - - col2 - - - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - + 30 * 28 AND - col0
----

skipif mysql # not compatible
query I rowsort label-5857
SELECT - 74 - - col2 - - - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - + 30 * 28 AND - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5858
SELECT 21 + 3, - col0 DIV 10 AS col0 FROM tab1 AS cor0
----
24
-5
24
-8
24
-9

skipif mysql # not compatible
query II rowsort label-5858
SELECT 21 + 3, - col0 / 10 AS col0 FROM tab1 AS cor0
----
24
-5
24
-8
24
-9

query I rowsort
SELECT + + 72 + + ( + + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-9
51
71

query I rowsort
SELECT DISTINCT + ( - - 29 ) FROM tab2
----
29

query I rowsort
SELECT ALL col1 + 21 FROM tab1
----
26
35
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT DISTINCT 55 + 85 DIV + COUNT( + 26 ) AS col2 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT 55 + 85 / + COUNT ( + 26 ) AS col2 FROM tab1
----
83

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

query I rowsort
SELECT + col1 * - 69 + + col0 AS col1 FROM tab0 cor0
----
-1362
-5574
28

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

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

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

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

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

query I rowsort
SELECT ALL + - AVG ( + 27 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col1 col0 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT - - 12 - - col0 AS col1 FROM tab1 AS cor0
----
103
63
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - col0 ) * - 43 = + 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 * + col2 AS col2 FROM tab1 AS cor0 WHERE - col0 <> - - 51
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5873
SELECT DISTINCT col2, col0 * - + col2 / + CAST( NULL AS SIGNED ) * col2 col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5873
SELECT DISTINCT col2, col0 * - + col2 / + CAST ( NULL AS INTEGER ) * col2 col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT + SUM( + col1 ) AS col2 FROM tab1 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT + SUM ( + col1 ) AS col2 FROM tab1 WHERE NULL <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + - 93 col0 FROM tab1
----
-86
-86
-86

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

skipif mysql # not compatible
query I rowsort label-5877
SELECT - COUNT ( * ) + + 3 FROM tab1
----
0

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

query I rowsort
SELECT - col1 + 2 AS col2 FROM tab0
----
-19
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL - 82 + COUNT( * ) AS col2 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - 82 + COUNT ( * ) AS col2 FROM tab2
----
-79

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5882
SELECT DISTINCT MIN( ALL + 98 ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT MIN ( ALL + 98 ) + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

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

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

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

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

skipif mysql # not compatible
query II rowsort label-5885
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ), + 56 AS col2 FROM tab2 cor0
----
NULL
56

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT DISTINCT 14 DIV + col2 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT 14 / + col2 FROM tab0 cor0
----
0
1

query I rowsort
SELECT DISTINCT + col2 - col0 FROM tab1 AS cor0 WHERE NOT 72 BETWEEN NULL AND + col1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL MAX( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL MAX ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT - + COUNT( * ) + + 30 col2 FROM tab1 cor0
----
27

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

query I rowsort
SELECT ALL 82 * 7 FROM tab2 cor0
----
574
574
574

query I rowsort
SELECT - + col2 + - 74 FROM tab0 AS cor0
----
-121
-173
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT 75 col1 FROM tab1 WHERE NOT + CAST( + + 69 AS SIGNED ) NOT BETWEEN NULL AND col2 + + col2 + + CAST( NULL AS SIGNED ) + - - 36 * + + col1 * - col2 * + 28 * col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5893
SELECT 75 col1 FROM tab1 WHERE NOT + CAST ( + + 69 AS INTEGER ) NOT BETWEEN NULL AND col2 + + col2 + + CAST ( NULL AS INTEGER ) + - - 36 * + + col1 * - col2 * + 28 * col0
----

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

query I rowsort
SELECT ALL - col1 + - col1 - + col0 AS col0 FROM tab1
----
-185
-79
-95

query I rowsort
SELECT + col2 + 70 + - 56 FROM tab1
----
110
73
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5897
SELECT COUNT( * ) + + + COUNT( * ), 10 * 54 AS col1 FROM tab0
----
6
540

skipif mysql # not compatible
query II rowsort label-5897
SELECT COUNT ( * ) + + + COUNT ( * ), 10 * 54 AS col1 FROM tab0
----
6
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT 73 + COUNT( * ) AS col2 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-5898
SELECT 73 + COUNT ( * ) AS col2 FROM tab1
----
76

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 45 FROM tab2
----
23
45
40
45
58
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5902
SELECT ALL - 49 DIV - 43 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - 49 / - 43 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col0 FROM tab1 WHERE NOT + col2 <= 84
----
-4

query II rowsort
SELECT 76 AS col2, col2 AS col0 FROM tab1
----
76
59
76
68
76
96

query I rowsort
SELECT ALL - ( + + 89 ) + - col0 FROM tab1
----
-140
-174
-180

query I rowsort
SELECT ALL + + 52 FROM tab2 AS cor0 WHERE NOT + 61 IS NULL
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT DISTINCT - ( MIN( DISTINCT 23 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT - ( MIN ( DISTINCT 23 ) ) FROM tab2 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-5908
SELECT + 1, + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
0
1
0
1
8

skipif mysql # not compatible
query II rowsort label-5908
SELECT + 1, + col0 / + col2 AS col1 FROM tab0 AS cor0
----
1
0
1
0
1
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5910
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 49 AS col2, - COUNT( * ) FROM tab1 WHERE + 59 = NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5910
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 49 AS col2, - COUNT ( * ) FROM tab1 WHERE + 59 = NULL
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT - col2 + + col0 DIV - 98 AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5911
SELECT - col2 + + col0 / - 98 AS col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + - col0 / + col1 BETWEEN - col1 * + col0 AND - - col0
----

query I rowsort
SELECT DISTINCT - + 98 AS col2 FROM tab2 cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5914
SELECT + - CAST( 73 AS SIGNED ) DIV 40 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5914
SELECT + - CAST ( 73 AS INTEGER ) / 40 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 * 67 FROM tab2 AS cor0
----
-3082
-4288
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5916
SELECT ALL * FROM tab0 WHERE NOT + - 13 * - + CAST( NULL AS SIGNED ) * + + col2 <= + + col2
----

skipif mysql # not compatible
query III rowsort label-5916
SELECT ALL * FROM tab0 WHERE NOT + - 13 * - + CAST ( NULL AS INTEGER ) * + + col2 <= + + col2
----

query II rowsort
SELECT ALL col0 + - col0 * + 24 AS col0, + 94 AS col1 FROM tab2
----
-1058
94
-1472
94
-1725
94

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT 75 AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
75
75
75

query I rowsort
SELECT - 64 - + - 80 + - 46 FROM tab1
----
-30
-30
-30

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

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT + COUNT ( ALL + 78 ) FROM tab0
----
3

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

skipif mysql # not compatible
query I rowsort label-5922
SELECT - - MAX ( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
47

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

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT - SUM ( DISTINCT - 18 ) FROM tab1 AS cor0
----
18

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

query II rowsort
SELECT - - col0 AS col0, col0 * + col2 AS col2 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

query I rowsort
SELECT DISTINCT - + 20 AS col2 FROM tab0 AS cor0
----
-20

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN ( + 34 ) AND NULL
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT ALL - ( + ( + 58 ) ) * - - MIN( col2 ) AS col2 FROM tab0 WHERE NOT + 74 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL - ( + ( + 58 ) ) * - - MIN ( col2 ) AS col2 FROM tab0 WHERE NOT + 74 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5929
SELECT ALL 50 * - CAST( + 19 AS SIGNED ) AS col1 FROM tab0
----
-950
-950
-950

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL 50 * - CAST ( + 19 AS INTEGER ) AS col1 FROM tab0
----
-950
-950
-950

query I rowsort
SELECT + - col1 * + + col1 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5931
SELECT COUNT( * ), - 26 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( + col0 AS DECIMAL ) / + col2 + - 29 <> col1
----
0
-26

skipif mysql # not compatible
query II rowsort label-5931
SELECT COUNT ( * ), - 26 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( + col0 AS REAL ) / + col2 + - 29 <> col1
----
0
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT - col0 DIV - col0 col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5932
SELECT - col0 / - col0 col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + 66 * ( - 47 ) FROM tab1 AS cor0
----
-3102
-3102
-3102

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

query I rowsort
SELECT DISTINCT 51 * - col2 FROM tab0 AS cor0
----
-2397
-5049
-510

query I rowsort
SELECT DISTINCT + ( - col1 ) + 33 AS col0 FROM tab2
----
-18
-34
-44

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NULL <= 49 * + col1
----

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

query I rowsort
SELECT DISTINCT ( col1 ) + + + col2 + + 67 AS col0 FROM tab1
----
131
177
182

query I rowsort
SELECT ALL 57 + 88 AS col2 FROM tab0
----
145
145
145

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

query II rowsort
SELECT DISTINCT + col0 * + col1 + col1 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
430
59
4324
68
728
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 35 + 19
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5945
SELECT ALL - - 83 * + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL - - 83 * + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL - 66 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT DISTINCT - MAX( ALL + - col0 ) AS col0 FROM tab1 cor0 WHERE - ( + + col0 ) IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT - MAX ( ALL + - col0 ) AS col0 FROM tab1 cor0 WHERE - ( + + col0 ) IS NOT NULL
----
51

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

query I rowsort
SELECT ALL - col2 - - + 13 * 40 AS col1 FROM tab1 AS cor0
----
424
452
461

query I rowsort
SELECT + 37 + - col2 * - - 87 FROM tab0 AS cor0
----
-4052
-833
-8576

query I rowsort
SELECT DISTINCT - + col2 - + ( + 64 ) FROM tab0 cor0
----
-111
-163
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5955
SELECT DISTINCT col0 col2, + CAST( CAST( CAST( ( + col2 ) AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5955
SELECT DISTINCT col0 col2, + CAST ( CAST ( CAST ( ( + col2 ) AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

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

query I rowsort
SELECT col2 * + 0 * - 62 AS col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT DISTINCT + ( 68 ) DIV + - col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT + ( 68 ) / + - col1 FROM tab1
----
-1
-13
-4

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

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

query II rowsort
SELECT ALL + - 58 AS col0, - col1 + 2 + col0 AS col2 FROM tab1 AS cor0
----
-58
39
-58
46
-58
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 49 * + col0 col1 FROM tab2 AS cor0
----
2254
3136
3675

query I rowsort
SELECT col0 + + - col1 - col1 AS col1 FROM tab2 AS cor0
----
-56
-59
-90

query I rowsort
SELECT DISTINCT 66 * col2 AS col0 FROM tab0
----
3102
6534
660

query II rowsort
SELECT + + 14 * col0 AS col0, + col0 AS col1 FROM tab1 AS cor0
----
1190
85
1274
91
714
51

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

skipif mysql # not compatible
query I rowsort label-5972
SELECT - MIN ( - col2 ) * - - COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col1 * + col2 - col1 FROM tab2 AS cor0
----
1122
3003
3819

query I rowsort
SELECT - ( ( - 56 ) ) + + col2 FROM tab2
----
114
79
96

query I rowsort
SELECT - ( col2 ) + - + ( + + col0 ) - - - col1 AS col0 FROM tab2
----
-120
-181
-200

query I rowsort
SELECT DISTINCT col1 - - 75 AS col0 FROM tab1
----
122
80
89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * - - col1 <> - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5978
SELECT DISTINCT - col1 + col2 DIV + col0 DIV 25 * - col0 AS col0, col2 * + 16 AS col2 FROM tab1 cor0
----
-14
1536
-47
1088
-5
944

skipif mysql # not compatible
query II rowsort label-5978
SELECT DISTINCT - col1 + col2 / + col0 / 25 * - col0 AS col0, col2 * + 16 AS col2 FROM tab1 cor0
----
-14
1536
-47
1088
-5
944

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

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

query II rowsort
SELECT - col2 AS col1, + 5 AS col2 FROM tab0 AS cor0
----
-10
5
-47
5
-99
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col1 FROM tab1 cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5982
SELECT ALL + CAST( - - col1 AS SIGNED ) DIV - ( + 85 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + CAST ( - - col1 AS INTEGER ) / - ( + 85 ) AS col2 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5984
SELECT ALL CAST( NULL AS DECIMAL ) col1, - col2 - + 74 * - col2 + - 28 FROM tab0
----
NULL
3403
NULL
702
NULL
7199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5984
SELECT ALL CAST ( NULL AS REAL ) col1, - col2 - + 74 * - col2 + - 28 FROM tab0
----
NULL
3403
NULL
702
NULL
7199

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT MIN( - col1 ) * - ( + + COUNT( + - 73 ) ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-5985
SELECT MIN ( - col1 ) * - ( + + COUNT ( + - 73 ) ) FROM tab0
----
243

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5986
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) + 85 + - col0 + 53 * - col2 * + CAST( NULL AS SIGNED ) * + col0 / + CAST( 17 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5986
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) + 85 + - col0 + 53 * - col2 * + CAST ( NULL AS INTEGER ) * + col0 / + CAST ( 17 AS INTEGER ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5989
SELECT ( + - 52 ), COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
-52
3

skipif mysql # not compatible
query II rowsort label-5989
SELECT ( + - 52 ), COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
-52
3

query I rowsort
SELECT - col0 * 48 + col2 FROM tab0 AS cor0
----
-4166
-4557
-673

query I rowsort
SELECT 65 * col2 - - + col2 FROM tab1 cor0
----
3894
4488
6336

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

query I rowsort
SELECT ALL - 28 + + 33 FROM tab1
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 + + - col2 col0 FROM tab2
----
-16
-34
1

query I rowsort
SELECT ALL + 51 + + 31 FROM tab0
----
82
82
82

query I rowsort
SELECT col1 + + 24 AS col0 FROM tab0
----
105
25
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 33 col1 FROM tab0
----
114
34
54

query I rowsort
SELECT ALL - col0 * - 83 * + 90 - + col2 FROM tab1
----
380874
634891
679702

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5999
SELECT * FROM tab1 WHERE + + col0 - col1 NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) + + + 89 + - col2
----

skipif mysql # not compatible
query III rowsort label-5999
SELECT * FROM tab1 WHERE + + col0 - col1 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) + + + 89 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT + col2 + + CAST( - 45 AS SIGNED ) + + + col0 * - + col2 FROM tab2
----
-1080
-2565
-4337

skipif mysql # not compatible
query I rowsort label-6000
SELECT + col2 + + CAST ( - 45 AS INTEGER ) + + + col0 * - + col2 FROM tab2
----
-1080
-2565
-4337

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6001
SELECT * FROM tab0 WHERE - ( + col1 ) * - CAST( col0 AS SIGNED ) / + + 30 BETWEEN + - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6001
SELECT * FROM tab0 WHERE - ( + col1 ) * - CAST ( col0 AS INTEGER ) / + + 30 BETWEEN + - col0 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 47 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 47 IS NULL
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col2 * 97 NOT IN ( - 99 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 75 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT + col0 - 70 FROM tab2
----
-24
-6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT SUM( - col1 ) - + COUNT( * ) FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-6007
SELECT SUM ( - col1 ) - + COUNT ( * ) FROM tab2
----
-198

query I rowsort
SELECT col0 - + 28 * + + col2 AS col2 FROM tab1
----
-1567
-1813
-2637

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6010
SELECT ALL col2 / - + col1 * - col0 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6011
SELECT DISTINCT - + ( - 62 ) DIV - + col1 FROM tab1 AS cor0
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT - + ( - 62 ) / - + col1 FROM tab1 AS cor0
----
-1
-12
-4

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6015
SELECT col0 / - - col2 AS col1 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT COUNT( * ) * 73 * ( MAX( - + col2 ) ) FROM tab0
----
-2190

skipif mysql # not compatible
query I rowsort label-6016
SELECT COUNT ( * ) * 73 * ( MAX ( - + col2 ) ) FROM tab0
----
-2190

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT ALL 69 DIV - col1 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL 69 / - col1 AS col1 FROM tab2
----
-1
-1
0

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

query I rowsort
SELECT - col2 * 37 AS col2 FROM tab1
----
-2183
-2516
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT 64 * + + 94 * - COUNT( * ) * - ( - MIN( + col0 ) ) AS col2 FROM tab0
----
-270720

skipif mysql # not compatible
query I rowsort label-6020
SELECT 64 * + + 94 * - COUNT ( * ) * - ( - MIN ( + col0 ) ) AS col2 FROM tab0
----
-270720

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT DISTINCT 67 * - - COUNT( * ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT 67 * - - COUNT ( * ) FROM tab0
----
201

query II rowsort
SELECT + col2 AS col2, - 68 AS col1 FROM tab1 WHERE NOT ( NOT NULL NOT IN ( - 54 + + col1 * + - 55, 65 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL COUNT( * ) * + 5 AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL COUNT ( * ) * + 5 AS col0 FROM tab1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 + - col1 col0 FROM tab2 AS cor0
----
-111
-127
-137

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6025
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 5 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 5 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6026
SELECT DISTINCT col1, 30 DIV - - col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-6026
SELECT DISTINCT col1, 30 / - - col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT MIN( - ( col2 ) ) + - - 44 AS col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6027
SELECT MIN ( - ( col2 ) ) + - - 44 AS col1 FROM tab2 AS cor0
----
-14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - SUM( ALL 36 ) AS col2 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-6029
SELECT - SUM ( ALL 36 ) AS col2 FROM tab1 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-6030
SELECT MIN( + + col1 ) AS col1, ( - + MIN( ALL + 20 ) ) AS col2 FROM tab1
----
5
-20

skipif mysql # not compatible
query II rowsort label-6030
SELECT MIN ( + + col1 ) AS col1, ( - + MIN ( ALL + 20 ) ) AS col2 FROM tab1
----
5
-20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ALL 61 + COUNT( * ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL 61 + COUNT ( * ) FROM tab1
----
64

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

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

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

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

query I rowsort
SELECT - + col0 + + 14 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6036
SELECT + COUNT( * ) DIV - 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6036
SELECT + COUNT ( * ) / - 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6037
SELECT ALL - + 1 * + + 11 DIV 16, col0 col2 FROM tab0 AS cor0
----
0
15
0
87
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6037
SELECT ALL - + 1 * + + 11 / 16, col0 col2 FROM tab0 AS cor0
----
0
15
0
87
0
97

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + MIN( + 77 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6040
SELECT + MIN ( + 77 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + ( - ( - col2 ) ) * + + 48 FROM tab1 AS cor0
----
2832
3264
4608

onlyif mysql # DIV for integer division: 
query I rowsort label-6042
SELECT ALL col1 DIV - 53 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL col1 / - 53 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 79 * 23 FROM tab0
----
-1817
-1817
-1817

query I rowsort
SELECT ALL col2 * 16 * - + 31 AS col0 FROM tab0
----
-23312
-49104
-4960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6045
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * - 73 AS col0 FROM tab2
----
-3723
-4891
-5621

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - 73 AS col0 FROM tab2
----
-3723
-4891
-5621

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

query I rowsort
SELECT col1 + - - 60 FROM tab0 AS cor0
----
141
61
81

query I rowsort
SELECT - + col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND 71
----

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

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

query I rowsort
SELECT col1 * + 14 FROM tab2
----
1078
714
938

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6052
SELECT ( + CAST( NULL AS SIGNED ) ) * + 47 AS col2, + COUNT( * ) + - - 89 FROM tab2 AS cor0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-6052
SELECT ( + CAST ( NULL AS INTEGER ) ) * + 47 AS col2, + COUNT ( * ) + - - 89 FROM tab2 AS cor0
----
NULL
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT col1 * CAST( 63 AS SIGNED ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT col1 * CAST ( 63 AS INTEGER ) IS NULL
----
-59
-68
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT + COUNT( DISTINCT + 46 ) AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6055
SELECT + COUNT ( DISTINCT + 46 ) AS col0 FROM tab2 cor0
----
1

query I rowsort
SELECT - 62 * col2 FROM tab0 cor0
----
-2914
-6138
-620

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

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

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

query I rowsort
SELECT + 10 FROM tab0 WHERE NULL > - - 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT DISTINCT + CAST( col2 AS SIGNED ) + 67 AS col2 FROM tab0
----
114
166
77

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + 67 AS col2 FROM tab0
----
114
166
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6061
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT ( NOT - col0 - - CAST( NULL AS DECIMAL ) IS NULL )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT ( NOT - col0 - - CAST ( NULL AS REAL ) IS NULL )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT DISTINCT + 81 * 84 + COUNT( * ) FROM tab1
----
6807

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT + 81 * 84 + COUNT ( * ) FROM tab1
----
6807

query I rowsort
SELECT DISTINCT 56 + + - 24 - - col2 + - - col2 + + col0 * 94 AS col1 FROM tab1
----
5018
8140
8722

query I rowsort
SELECT DISTINCT col0 - + ( + col1 ) AS col2 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6065
SELECT ALL CAST( - - col0 AS SIGNED ) * ( - col1 ) + - 89 * + - 98, - 11 AS col0 FROM tab0 AS cor0
----
6895
-11
7507
-11
8625
-11

skipif mysql # not compatible
query II rowsort label-6065
SELECT ALL CAST ( - - col0 AS INTEGER ) * ( - col1 ) + - 89 * + - 98, - 11 AS col0 FROM tab0 AS cor0
----
6895
-11
7507
-11
8625
-11

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + col2 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
156
165
193

query I rowsort
SELECT ALL - + 18 AS col0 FROM tab0 cor0
----
-18
-18
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT 70 + + MAX( ALL - col2 ) AS col0 FROM tab2 WHERE NOT 24 IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-6071
SELECT 70 + + MAX ( ALL - col2 ) AS col0 FROM tab2 WHERE NOT 24 IS NULL
----
47

query I rowsort
SELECT ALL col1 * + ( - 26 ) FROM tab0
----
-2106
-26
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT ALL CAST( + 28 AS SIGNED ) FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL CAST ( + 28 AS INTEGER ) FROM tab2
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6074
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 / 5 * + CAST( NULL AS SIGNED ) - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6074
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 / 5 * + CAST ( NULL AS INTEGER ) - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT + 66 * MIN( col1 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + 66 * MIN ( col1 ) FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6078
SELECT CAST( NULL AS DECIMAL ), - 50 DIV + col1 AS col2 FROM tab2
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-6078
SELECT CAST ( NULL AS REAL ), - 50 / + col1 AS col2 FROM tab2
----
NULL
0
NULL
0
NULL
0

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

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

query II rowsort
SELECT col2 AS col1, col0 + + col0 - - col1 AS col1 FROM tab1
----
59
175
68
229
96
116

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6081
SELECT DISTINCT col1 AS col2, CAST( NULL AS DECIMAL ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-6081
SELECT DISTINCT col1 AS col2, CAST ( NULL AS REAL ) FROM tab1
----
14
NULL
47
NULL
5
NULL

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

query I rowsort
SELECT - + col1 * - 31 AS col0 FROM tab2 cor0
----
1581
2077
2387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT ALL col2 * - CAST( + col1 AS SIGNED ) * - 75 + + col2 FROM tab2
----
231040
291508
87998

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL col2 * - CAST ( + col1 AS INTEGER ) * - 75 + + col2 FROM tab2
----
231040
291508
87998

query II rowsort
SELECT DISTINCT - ( + - col0 ) AS col2, col1 AS col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6086
SELECT DISTINCT + + col0 - - - col1 FROM tab0 AS cor0 WHERE ( NULL ) < + ( CAST( + - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT + + col0 - - - col1 FROM tab0 AS cor0 WHERE ( NULL ) < + ( CAST ( + - col1 AS INTEGER ) )
----

query I rowsort
SELECT - 92 * - 63 * 31 + - + col0 FROM tab1 AS cor0
----
179585
179591
179625

query I rowsort
SELECT + 65 + + - col0 AS col1 FROM tab1 AS cor0
----
-20
-26
14

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT + col2 * + 11 FROM tab1 cor0
----
1056
649
748

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

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

query I rowsort
SELECT 37 * - 36 AS col1 FROM tab2
----
-1332
-1332
-1332

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

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - CAST ( NULL AS INTEGER ) / - 14 FROM tab2
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT DISTINCT - 23 DIV - col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - 23 / - col1 FROM tab1
----
0
1
4

query I rowsort
SELECT DISTINCT 80 - - col1 AS col2 FROM tab2
----
131
147
157

query I rowsort
SELECT ALL col1 + - 35 FROM tab2
----
16
32
42

onlyif mysql # DIV for integer division: 
query II rowsort label-6100
SELECT 76 AS col0, col0 DIV + col2 FROM tab0 AS cor0
----
76
0
76
0
76
8

skipif mysql # not compatible
query II rowsort label-6100
SELECT 76 AS col0, col0 / + col2 FROM tab0 AS cor0
----
76
0
76
0
76
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6101
SELECT ALL + - SUM( - col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT ( + CAST( NULL AS SIGNED ) IS NULL ) )
----
NULL

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

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

query I rowsort
SELECT + 15 * + 84 + + + col2 FROM tab0 AS cor0
----
1270
1307
1359

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE NOT + 3 + - 44 IS NULL
----
14
47
5

query I rowsort
SELECT ALL + - 99 + + col1 FROM tab0 AS cor0 WHERE NOT NULL < 82 + + + col1 * col1 * col2
----

query I rowsort
SELECT 83 * + col0 AS col2 FROM tab1
----
4233
7055
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ALL - MAX( ALL + 4 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL - MAX ( ALL + 4 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT + MAX( DISTINCT + ( - 56 ) ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-56

skipif mysql # not compatible
query I rowsort label-6108
SELECT + MAX ( DISTINCT + ( - 56 ) ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-6109
SELECT 90, COUNT( * ) col2 FROM tab0 AS cor0
----
90
3

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

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
116
46
80

query I rowsort
SELECT - col0 + - col2 FROM tab0 AS cor0 WHERE NOT col1 + 12 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - 96 AS col0 FROM tab0 WHERE + 70 IS NOT NULL
----
-96
-96
-96

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

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL + ( + - CAST ( - MAX ( DISTINCT - col0 ) AS INTEGER ) ) FROM tab2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6116
SELECT DISTINCT + MAX( CAST( NULL AS SIGNED ) ) AS col0, - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6116
SELECT DISTINCT + MAX ( CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT 13 + - col1 + - 7 AS col1 FROM tab0 AS cor0
----
-15
-75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT + MIN( DISTINCT 27 ) + COUNT( ALL - col1 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6118
SELECT + MIN ( DISTINCT 27 ) + COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT - col0 + col1 * - col1 + + + col2 * - + ( - 68 ) FROM tab1 AS cor0
----
2324
3902
6281

query II rowsort
SELECT ALL + + col0 + 58, col1 + 5 AS col2 FROM tab2 AS cor0
----
104
56
122
82
133
72

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

query I rowsort
SELECT + ( + 36 ) FROM tab1
----
36
36
36

query I rowsort
SELECT - 46 * 78 AS col0 FROM tab0 cor0
----
-3588
-3588
-3588

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT ALL + col0 DIV 24 FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL + col0 / 24 FROM tab0 AS cor0
----
0
3
4

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

query I rowsort
SELECT + - col1 - + + col2 FROM tab0 AS cor0
----
-100
-128
-31

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

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

query I rowsort
SELECT ALL + + col0 + - 30 FROM tab1 cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL col0 AS col2, ( + + col2 ) AS col0 FROM tab1 cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT col2 * - + col0 + - - 25 AS col2 FROM tab2
----
-1033
-2535
-4325

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

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

query I rowsort
SELECT col0 FROM tab0 WHERE + + col2 / + - ( + + col1 ) + - col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6133
SELECT CAST ( NULL AS REAL ) / - col2 * col0 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col0 * + - 69 FROM tab0
----
-1035
-6003
-6693

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6136
SELECT col2 + - CAST( col0 AS SIGNED ) AS col2, + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + col1 - + col0
----

skipif mysql # not compatible
query II rowsort label-6136
SELECT col2 + - CAST ( col0 AS INTEGER ) AS col2, + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + col1 - + col0
----

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

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

skipif mysql # not compatible
query II rowsort label-6138
SELECT ALL - ( - COUNT ( * ) ) AS col1, + 8 AS col1 FROM tab0 AS cor0
----
3
8

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT DISTINCT CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

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

query I rowsort
SELECT 41 * - - 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b3b9b695678a98cf9ed324085c6a2891

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + 90
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT 38 + - 4 AS col2 FROM tab2
----
34
34
34

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

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT COUNT ( + - col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6151
SELECT + col0, + CAST( NULL AS SIGNED ) + - 26 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6151
SELECT + col0, + CAST ( NULL AS INTEGER ) + - 26 FROM tab2
----
46
NULL
64
NULL
75
NULL

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

query II rowsort
SELECT DISTINCT + col0, - col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN col1 AND + col1 - col0 + - col2 + - + ( + 90 )
----

query I rowsort
SELECT DISTINCT col2 + + + 2 AS col1 FROM tab0
----
101
12
49

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 + col0 + 23 + col1 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6157
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 * - col1 / + + ( + col2 ) NOT IN ( col1 * - col1 + + 85 * + - 28 + + col1 - col2 - - - 64 / - - 46 * + CAST( - col1 AS DECIMAL ), - CAST( NULL AS SIGNED ) * + + 55 ) )
----

skipif mysql # not compatible
query III rowsort label-6157
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 * - col1 / + + ( + col2 ) NOT IN ( col1 * - col1 + + 85 * + - 28 + + col1 - col2 - - - 64 / - - 46 * + CAST ( - col1 AS REAL ), - CAST ( NULL AS INTEGER ) * + + 55 ) )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6159
SELECT DISTINCT + - 64, MIN( - col2 ) col1 FROM tab1 AS cor0
----
-64
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6159
SELECT DISTINCT + - 64, MIN ( - col2 ) col1 FROM tab1 AS cor0
----
-64
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 > NULL
----

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

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

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

query II rowsort
SELECT - 20 * col1 AS col2, col0 * + + col1 - - 93 AS col1 FROM tab0 AS cor0
----
-1620
1308
-20
190
-420
1920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6164
SELECT ALL - col2 * + + col1 - - CAST( 35 AS SIGNED ) + + 20 AS col1, - ( + 61 ) AS col0 FROM tab2 AS cor0
----
-1118
-61
-3025
-61
-3831
-61

skipif mysql # not compatible
query II rowsort label-6164
SELECT ALL - col2 * + + col1 - - CAST ( 35 AS INTEGER ) + + 20 AS col1, - ( + 61 ) AS col0 FROM tab2 AS cor0
----
-1118
-61
-3025
-61
-3831
-61

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, col2 * - - col0 col0 FROM tab2
----
51
1058
67
4350
77
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL MAX( - 74 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL MAX ( - 74 ) FROM tab1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6170
SELECT DISTINCT - COUNT( * ) * - CAST( + + 21 AS SIGNED ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT - COUNT ( * ) * - CAST ( + + 21 AS INTEGER ) FROM tab0
----
63

query I rowsort
SELECT ALL + 13 * col2 FROM tab0
----
1287
130
611

query I rowsort
SELECT DISTINCT 41 * + col2 FROM tab0
----
1927
4059
410

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6173
SELECT ALL CAST( + col1 AS SIGNED ) * - - col1 AS col0, + 63 AS col2 FROM tab2
----
2601
63
4489
63
5929
63

skipif mysql # not compatible
query II rowsort label-6173
SELECT ALL CAST ( + col1 AS INTEGER ) * - - col1 AS col0, + 63 AS col2 FROM tab2
----
2601
63
4489
63
5929
63

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

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

query I rowsort
SELECT - col2 * + 3 FROM tab2 WHERE NOT + col1 IS NULL
----
-120
-174
-69

query I rowsort
SELECT col1 * 85 + col1 AS col0 FROM tab0 WHERE + col1 * + 33 + 57 IS NOT NULL
----
1806
6966
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6177
SELECT ALL - 35 DIV SUM( ALL col1 ) - + 34 AS col2 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL - 35 / SUM ( ALL col1 ) - + 34 AS col2 FROM tab1
----
-34

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

skipif mysql # not compatible
query I rowsort label-6178
SELECT - 49 + CAST ( NULL AS REAL ) FROM tab2 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - 30
----

query I rowsort
SELECT 64 + - col0 AS col0 FROM tab2
----
-11
0
18

query I rowsort
SELECT - 58 * - col2 + col1 FROM tab0
----
2807
5743
601

query I rowsort
SELECT ALL col1 * + col1 + col1 FROM tab2
----
2652
4556
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-6184
SELECT + col0 + col0 DIV col0 AS col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-6184
SELECT + col0 + col0 / col0 AS col0 FROM tab1
----
52
86
92

query I rowsort
SELECT + 39 + ( + 24 ) AS col1 FROM tab2
----
63
63
63

query I rowsort
SELECT - 59 * - col2 + 89 FROM tab1
----
3570
4101
5753

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT MAX( ALL col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6187
SELECT MAX ( ALL col0 ) AS col1 FROM tab2
----
75

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

query III rowsort
SELECT * FROM tab0 WHERE NULL > + 99 / + 36
----

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

query I rowsort
SELECT ALL + col0 * + 67 AS col1 FROM tab0
----
1005
5829
6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col0 FROM tab2 WHERE NOT - col0 / col1 >= ( 23 )
----
49
49
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6193
SELECT COUNT( * ) * CAST( + 10 AS SIGNED ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-6193
SELECT COUNT ( * ) * CAST ( + 10 AS INTEGER ) FROM tab2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + col0 - - col2 AS col2 FROM tab2
----
1081
2600
4408

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + col0 - - col2 AS col2 FROM tab2
----
1081
2600
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT COUNT( ALL 25 ) col2 FROM tab2 WHERE + col1 NOT IN ( + col0 * col1 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6195
SELECT COUNT ( ALL 25 ) col2 FROM tab2 WHERE + col1 NOT IN ( + col0 * col1 )
----
3

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

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

query III rowsort
SELECT * FROM tab1 WHERE + 27 IN ( - 40 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 47 + 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6200
SELECT MAX( CAST( + col2 AS SIGNED ) ) - 22 FROM tab0 WHERE + col0 + 1 IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-6200
SELECT MAX ( CAST ( + col2 AS INTEGER ) ) - 22 FROM tab0 WHERE + col0 + 1 IS NOT NULL
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6201
SELECT ALL CAST( + MIN( DISTINCT + col0 ) AS SIGNED ) * - 80 FROM tab0
----
-1200

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL CAST ( + MIN ( DISTINCT + col0 ) AS INTEGER ) * - 80 FROM tab0
----
-1200

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) <> ( col2 )
----

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

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

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

query I rowsort
SELECT + col2 - ( col1 - col0 ) AS col1 FROM tab0
----
-19
195
76

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

query I rowsort
SELECT ALL - + 6 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
2595
7219
8275

query I rowsort
SELECT col1 * col0 - 37 FROM tab2 AS cor0
----
2309
4891
4988

query I rowsort
SELECT DISTINCT - col0 * + col1 + 18 AS col2 FROM tab2 cor0 WHERE NULL < + col0
----

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

skipif mysql # not compatible
query I rowsort label-6211
SELECT - CAST ( - 84 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
84
84
84

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

query I rowsort
SELECT ( - 25 ) AS col0 FROM tab0 WHERE NOT ( + 16 * + 39 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT + MAX( DISTINCT - 47 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6214
SELECT + MAX ( DISTINCT - 47 ) AS col2 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT DISTINCT 70 * - MAX( - col1 ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT 70 * - MAX ( - col1 ) AS col1 FROM tab0
----
70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6217
SELECT + col0 * + CAST( - 41 AS SIGNED ) FROM tab1
----
-2091
-3485
-3731

skipif mysql # not compatible
query I rowsort label-6217
SELECT + col0 * + CAST ( - 41 AS INTEGER ) FROM tab1
----
-2091
-3485
-3731

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT COUNT( * ) + - 39 + 5 AS col0 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6220
SELECT COUNT ( * ) + - 39 + 5 AS col0 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <= ( - col1 * col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT + col1 + ( - - ( + col2 ) ) DIV col2 col1 FROM tab0 cor0
----
2
22
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6223
SELECT + col1 + ( - - ( + col2 ) ) / col2 col1 FROM tab0 cor0
----
2
22
82

query I rowsort
SELECT + col0 + 77 + - col1 FROM tab0 AS cor0
----
11
143
173

query I rowsort
SELECT - + 57 + + col0 AS col0 FROM tab1 AS cor0
----
-6
28
34

query I rowsort
SELECT ALL + 2 + - col2 FROM tab1 AS cor0
----
-57
-66
-94

query II rowsort
SELECT ALL - 78 * 22 AS col2, 41 AS col2 FROM tab2
----
-1716
41
-1716
41
-1716
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT + MIN( col2 ) AS col0 FROM tab2 WHERE - col0 * 31 + - col0 IN ( + col1 * col1 + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT + MIN ( col2 ) AS col0 FROM tab2 WHERE - col0 * 31 + - col0 IN ( + col1 * col1 + 30 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * + col2 / col0 + + 91 ) IN ( + col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL + 51 + + COUNT( * ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL + 51 + + COUNT ( * ) AS col0 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT DISTINCT 43 + COUNT( * ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT 43 + COUNT ( * ) FROM tab0
----
46

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

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

query I rowsort
SELECT + 30 FROM tab2 WHERE ( NULL ) IS NULL
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT DISTINCT - col0 * + 6 FROM tab1 AS cor0 WHERE NOT ( NOT - + col1 >= col1 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT - col0 * + 6 FROM tab1 AS cor0 WHERE NOT ( NOT - + col1 >= col1 + + CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT 73 + - col0 FROM tab2
----
-2
27
9

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

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

query I rowsort
SELECT + - 81 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 35 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6239
SELECT ALL - + 23, CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to f87d68d02927f8c9517192d1d2dde6b3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6239
SELECT ALL - + 23, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to f87d68d02927f8c9517192d1d2dde6b3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6240
SELECT - COUNT( * ) + 8 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 = ( col0 + + CAST( NULL AS SIGNED ) )
----
8

skipif mysql # not compatible
query I rowsort label-6240
SELECT - COUNT ( * ) + 8 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 = ( col0 + + CAST ( NULL AS INTEGER ) )
----
8

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

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

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

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

query I rowsort
SELECT - col2 * + ( - col1 ) + + col0 AS col2 FROM tab2 WHERE NOT - + col2 IS NULL
----
1219
3144
3961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT ALL col1 FROM tab0 WHERE NOT ( col1 / col0 + 87 ) NOT IN ( ( - col0 ) * ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL col1 FROM tab0 WHERE NOT ( col1 / col0 + 87 ) NOT IN ( ( - col0 ) * ( + CAST ( NULL AS INTEGER ) ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT + + col1 * col0 <= col2
----
2

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT + + col1 * col0 <= col2
----
2

query I rowsort
SELECT 35 * + col0 FROM tab2 AS cor0
----
1610
2240
2625

query I rowsort
SELECT DISTINCT - col0 * - 94 FROM tab2 AS cor0 WHERE NOT NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT MIN( - col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6250
SELECT MIN ( - col2 ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT col2 + 9 AS col2 FROM tab0 AS cor0
----
108
19
56

query I rowsort
SELECT + col2 + - 40 * - 33 FROM tab2 AS cor0
----
1343
1360
1378

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + + col2 IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col2 col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT - 93 * 26 FROM tab2 AS cor0
----
-2418

query I rowsort
SELECT + col1 + + col0 AS col2 FROM tab2 AS cor0 WHERE col1 >= + + col1
----
141
142
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 45 NOT IN ( - 69 / - - 77 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6260
SELECT ALL + 44 * COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + 44 * COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * + - 19 + ( col0 ) + - ( - 88 ) AS col2 FROM tab1 AS cor0
----
1072
268
405

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN 79 AND col1 * - col1 + + - col2
----

query I rowsort
SELECT DISTINCT - col0 * - - 20 FROM tab1 AS cor0
----
-1020
-1700
-1820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 20 col0 FROM tab2
----
71
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL 86 * - - 73 + + COUNT( * ) AS col0 FROM tab2 WHERE ( col2 + - col0 ) < NULL
----
6278

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL 86 * - - 73 + + COUNT ( * ) AS col0 FROM tab2 WHERE ( col2 + - col0 ) < NULL
----
6278

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

query I rowsort
SELECT DISTINCT - - AVG ( ALL col0 ) AS col0 FROM tab1 WHERE NULL <> - - 6
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL + COUNT( ( 34 ) ) + + MIN( DISTINCT - 39 ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL + COUNT ( ( 34 ) ) + + MIN ( DISTINCT - 39 ) AS col2 FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT 64 * - - SUM( ALL + 80 ) + - 39 AS col2 FROM tab1
----
15321

skipif mysql # not compatible
query I rowsort label-6270
SELECT 64 * - - SUM ( ALL + 80 ) + - 39 AS col2 FROM tab1
----
15321

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col1 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT - 58 + - + COUNT( * ) FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-6272
SELECT - 58 + - + COUNT ( * ) FROM tab1
----
-61

query I rowsort
SELECT 40 + - col2 FROM tab2
----
-18
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT + COUNT( DISTINCT - ( + 15 ) ) + - 80 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-6274
SELECT + COUNT ( DISTINCT - ( + 15 ) ) + - 80 FROM tab0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6275
SELECT ALL + ( - - 21 ) DIV col2 * - col1 * + 31 - - - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL + ( - - 21 ) / col2 * - col1 * + 31 - - - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

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

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

query I rowsort
SELECT - 79 * + 62 FROM tab2, tab1 AS cor0
----
9 values hashing to 95cd88ce7898782a86732de24c386ead

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6280
SELECT + CAST ( - 80 AS INTEGER ) FROM tab0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL MIN( + 5 ) col0 FROM tab0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6281
SELECT ALL MIN ( + 5 ) col0 FROM tab0
----
5

query I rowsort
SELECT + col2 * - - 99 AS col2 FROM tab0
----
4653
9801
990

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6284
SELECT 21 DIV col0 * - col0, + col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-6284
SELECT 21 / col0 * - col0, + col2 FROM tab2
----
0
23
0
40
0
58

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

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

query II rowsort
SELECT ALL + col2 AS col0, 38 * col2 AS col2 FROM tab1 AS cor0
----
59
2242
68
2584
96
3648

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

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

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

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

query II rowsort
SELECT - col1, col2 / + + col2 AS col0 FROM tab1 cor0 WHERE ( + 76 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT + + COUNT( * ) AS col1, 66 * + MIN( DISTINCT + 87 ) AS col1 FROM tab2 AS cor0
----
3
5742

skipif mysql # not compatible
query II rowsort label-6290
SELECT + + COUNT ( * ) AS col1, 66 * + MIN ( DISTINCT + 87 ) AS col1 FROM tab2 AS cor0
----
3
5742

query I rowsort
SELECT ALL - col2 + - col2 - - 47 + ( + + col2 ) * + - 44 * - col0 FROM tab1
----
215279
220589
272183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT col2 - + 89 AS col0 FROM tab0 WHERE NULL BETWEEN - CAST( + 60 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6292
SELECT col2 - + 89 AS col0 FROM tab0 WHERE NULL BETWEEN - CAST ( + 60 AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 + col2 col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT 14 * col0 AS col0 FROM tab1 AS cor0
----
1190
1274
714

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col0 * 8 / - 34 * + - col1 ) <> col1
----

query I rowsort
SELECT + 59 FROM tab1 AS cor0 WHERE col1 + - + col1 * 70 IS NULL
----

query I rowsort
SELECT ALL col2 * + col2 * 39 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + + 14 col1 FROM tab0
----
-101
-111
-29

query I rowsort
SELECT DISTINCT + + 75 - col0 + + 88 AS col0 FROM tab0 AS cor0
----
148
66
76

query II rowsort
SELECT + 67 - + col2 AS col0, ( col0 ) + - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-32
-9506
20
-690
57
-783

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT DISTINCT 74 + - col0 DIV + + col1 FROM tab2 cor0
----
73
74

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT 74 + - col0 / + + col1 FROM tab2 cor0
----
73
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT 39 + + COUNT( ALL - col2 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6309
SELECT 39 + + COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
42

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

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT - 43 / + - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
14

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

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 / col2 * - col0 - + col1 + col0 IN ( - - 3 )
----
-46
-64
-75

query II rowsort
SELECT + col0, - col0 + - 75 FROM tab0
----
15
-90
87
-162
97
-172

query II rowsort
SELECT col1 AS col0, - 17 FROM tab0 AS cor0
----
1
-17
21
-17
81
-17

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE NOT + ( 22 ) NOT BETWEEN + col1 * 93 / - 44 + + + 55 AND - col1 * col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > + col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6317
SELECT - col0 col1, col2 * - + 89 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT - 6 * - col1 * + + col2 * + 87 AS col0, - col0 * - col1 AS col2, + - col0 FROM tab0 AS cor0
----
9 values hashing to e5a0edb20cc4fa1482d29a0a8e852e58

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6321
SELECT ALL + + SUM( ALL col1 ) AS col2, - COUNT( DISTINCT col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
195
-3

skipif mysql # not compatible
query II rowsort label-6321
SELECT ALL + + SUM ( ALL col1 ) AS col2, - COUNT ( DISTINCT col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
195
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT - col2 * - - col0 AS col0 FROM tab0 WHERE NOT + + col0 + - CAST( + col1 AS SIGNED ) = - 62
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-6322
SELECT - col2 * - - col0 AS col0 FROM tab0 WHERE NOT + + col0 + - CAST ( + col1 AS INTEGER ) = - 62
----
-705
-870
-9603

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT ALL 54 * col2 AS col0 FROM tab0
----
2538
5346
540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6325
SELECT COUNT( * ) DIV - 18 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6325
SELECT COUNT ( * ) / - 18 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 86 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE - 45 NOT IN ( col1 / - 45 )
----
51
67
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6330
SELECT * FROM tab2 WHERE - 27 BETWEEN - col2 + + col1 AND - col1 * + + col1 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6330
SELECT * FROM tab2 WHERE - 27 BETWEEN - col2 + + col1 AND - col1 * + + col1 + - - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6331
SELECT ALL 85 * - MIN( - + col1 ) * 61 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL 85 * - MIN ( - + col1 ) * 61 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT + 97 - + COUNT( * ) + + - 37 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6332
SELECT + 97 - + COUNT ( * ) + + - 37 FROM tab1 AS cor0
----
57

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

query I rowsort
SELECT 58 + + 56 FROM tab1
----
114
114
114

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

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

query I rowsort
SELECT DISTINCT + 40 + + 27 FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ( - + COUNT( * ) ) + 65 AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-6337
SELECT ( - + COUNT ( * ) ) + 65 AS col2 FROM tab1
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + - 61 col2 FROM tab2
----
-16
-16
-16

query I rowsort
SELECT ALL + ( + + ( - 30 ) ) - - 29 + - + col2 FROM tab1
----
-60
-69
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col0 ) NOT IN ( + + 98, col0, col1, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT ALL CAST( + 51 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL >= ( - ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL CAST ( + 51 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL >= ( - ( col0 ) )
----

query I rowsort
SELECT ALL + + 15 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6343
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 9 IN ( - CAST( col1 AS SIGNED ), - 10 + - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6343
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 9 IN ( - CAST ( col1 AS INTEGER ), - 10 + - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT COUNT( * ) * + 96 * - - 6 AS col2 FROM tab2
----
1728

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT COUNT ( * ) * + 96 * - - 6 AS col2 FROM tab2
----
1728

query I rowsort
SELECT ALL ( - col2 ) * 98 FROM tab1
----
-5782
-6664
-9408

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6346
SELECT + 17 DIV - - 14 AS col1, - COUNT( * ) + - - ( - 29 ) AS col1 FROM tab2
----
1
-32

skipif mysql # not compatible
query II rowsort label-6346
SELECT + 17 / - - 14 AS col1, - COUNT ( * ) + - - ( - 29 ) AS col1 FROM tab2
----
1
-32

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

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

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab1 AS cor0
----
-79

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 >= - 24
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT DISTINCT SUM( ALL col0 ) + - - COUNT( * ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT SUM ( ALL col0 ) + - - COUNT ( * ) FROM tab0
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT 72 * COUNT( * ) AS col0 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-6354
SELECT 72 * COUNT ( * ) AS col0 FROM tab2
----
216

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

query I rowsort
SELECT - col1 * - 4 AS col2 FROM tab2
----
204
268
308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT ALL + col0 + CAST( col2 AS SIGNED ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + col0 + CAST ( col2 AS INTEGER ) FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT DISTINCT CAST( - 99 AS SIGNED ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT CAST ( - 99 AS INTEGER ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6359
SELECT - 24 AS col2, COUNT( * ) + 78 AS col2 FROM tab2
----
-24
81

skipif mysql # not compatible
query II rowsort label-6359
SELECT - 24 AS col2, COUNT ( * ) + 78 AS col2 FROM tab2
----
-24
81

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

skipif mysql # not compatible
query I rowsort label-6360
SELECT + MAX ( + + ( + 67 ) ) AS col2 FROM tab0 AS cor0
----
67

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6362
SELECT DISTINCT COUNT( * ) AS col2, + 18 FROM tab2 cor0
----
3
18

skipif mysql # not compatible
query II rowsort label-6362
SELECT DISTINCT COUNT ( * ) AS col2, + 18 FROM tab2 cor0
----
3
18

query I rowsort
SELECT - col1 / + - 54 + + + col2 FROM tab2 AS cor0 WHERE NULL < 54 + - + ( - col2 )
----

query I rowsort
SELECT ALL + 8 * - 5 * + 86 + + - col0 FROM tab0 AS cor0
----
-3455
-3527
-3537

query I rowsort
SELECT DISTINCT - - 33 + - col1 AS col0 FROM tab2 AS cor0
----
-18
-34
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT - 0 + - MAX( DISTINCT + col0 ) col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6366
SELECT - 0 + - MAX ( DISTINCT + col0 ) col1 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6367
SELECT MAX( col0 ) * + 23 - - - CAST( - 52 AS SIGNED ) + + 39 AS col2 FROM tab0
----
2322

skipif mysql # not compatible
query I rowsort label-6367
SELECT MAX ( col0 ) * + 23 - - - CAST ( - 52 AS INTEGER ) + + 39 AS col2 FROM tab0
----
2322

query I rowsort
SELECT + col0 + - 44 FROM tab2
----
2
20
31

query I rowsort
SELECT ALL 38 * - - col2 - - col0 AS col2 FROM tab2
----
1584
2279
920

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

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

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

skipif mysql # not compatible
query I rowsort label-6372
SELECT - COUNT ( * ) / + + 42 AS col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT DISTINCT + + 36 - COUNT( * ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT + + 36 - COUNT ( * ) FROM tab2 AS cor0
----
33

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6377
SELECT ( - COUNT( * ) ) AS col2, + 26 AS col1 FROM tab2 WHERE NULL IN ( + col2 )
----
0
26

skipif mysql # not compatible
query II rowsort label-6377
SELECT ( - COUNT ( * ) ) AS col2, + 26 AS col1 FROM tab2 WHERE NULL IN ( + col2 )
----
0
26

query I rowsort
SELECT + 21 - + 72 FROM tab2
----
-51
-51
-51

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6382
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) + + + col1 + - col0 * CAST( + 7 AS DECIMAL ) = - - col2
----

skipif mysql # not compatible
query III rowsort label-6382
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS REAL ) + + + col1 + - col0 * CAST ( + 7 AS REAL ) = - - col2
----

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

skipif mysql # not compatible
query I rowsort label-6383
SELECT + MIN ( 46 ) AS col2 FROM tab2
----
46

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

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

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

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE NOT + 26 * + + 14 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6387
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 51 + + col2 BETWEEN - col2 * - + col1 AND 40
----
0

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 51 + + col2 BETWEEN - col2 * - + col1 AND 40
----
0

query I rowsort
SELECT DISTINCT - col2 * - 20 + 51 + + col2 AS col2 FROM tab1 AS cor0
----
1290
1479
2067

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 * col2 col0 FROM tab0
----
3525
7425
750

query I rowsort
SELECT - + ( 29 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT DISTINCT - 55 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT - 55 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

query I rowsort
SELECT col0 * + col2 + ( + + 78 ) AS col0 FROM tab2 AS cor0
----
1136
2638
4428

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

query I rowsort
SELECT ALL + 54 * + + col1 AS col0 FROM tab1 AS cor0
----
2538
270
756

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN + - col1 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT + SUM( + col1 ) FROM tab2 WHERE col0 IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-6396
SELECT + SUM ( + col1 ) FROM tab2 WHERE col0 IS NOT NULL
----
195

query I rowsort
SELECT col2 + + col1 + 73 + 42 FROM tab0 cor0
----
146
215
243

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

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

query II rowsort
SELECT ALL + col1, + 42 FROM tab0
----
1
42
21
42
81
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL 33 + + COUNT( * ) col1 FROM tab2
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6400
SELECT ALL 33 + + COUNT ( * ) col1 FROM tab2
----
36

query II rowsort
SELECT + col2, 90 FROM tab2
----
23
90
40
90
58
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT ALL - col0 DIV + col2 + + - col2 + 20 + - col0 FROM tab1
----
-125
-127
-140

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL - col0 / + col2 + + - col2 + 20 + - col0 FROM tab1
----
-125
-127
-140

query I rowsort
SELECT 79 - - - 94 AS col0 FROM tab2 AS cor0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 8 / - - col1 AND - 9
----

query I rowsort
SELECT DISTINCT + + col1 - - 29 AS col2 FROM tab1 AS cor0
----
34
43
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT DISTINCT - MIN( col0 ) - - 67 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT - MIN ( col0 ) - - 67 FROM tab1 AS cor0
----
16

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

query I rowsort
SELECT col1 + - 80 FROM tab2 cor0
----
-13
-29
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + 34 ) col2, - col2 * + 23 AS col2 FROM tab0
----
34
-1081
34
-2277
34
-230

query I rowsort
SELECT + col0 * 47 AS col1 FROM tab1
----
2397
3995
4277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6413
SELECT MAX( DISTINCT CAST( - col2 AS SIGNED ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6413
SELECT MAX ( DISTINCT CAST ( - col2 AS INTEGER ) ) FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6414
SELECT DISTINCT - CAST( + SUM( col0 ) AS SIGNED ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT - CAST ( + SUM ( col0 ) AS INTEGER ) FROM tab0
----
-199

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6416
SELECT DISTINCT SUM( + ( - + CAST( + col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT SUM ( + ( - + CAST ( + col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT col0 * + 67 FROM tab1 cor0
----
3417
5695
6097

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6420
SELECT DISTINCT - 37 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - 37 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ALL + COUNT( * ) * - 95 AS col0 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL + COUNT ( * ) * - 95 AS col0 FROM tab2 AS cor0
----
-285

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

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

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

query II rowsort
SELECT col2, ( 46 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
46
47
46
99
46

query II rowsort
SELECT + 38 AS col0, col0 + + + col0 AS col1 FROM tab0
----
38
174
38
194
38
30

query I rowsort
SELECT DISTINCT col0 + + col1 - - - col0 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6427
SELECT ALL col1 * + - col0, col0 - - col1 DIV + col0 AS col0 FROM tab0
----
-1215
20
-1827
87
-97
97

skipif mysql # not compatible
query II rowsort label-6427
SELECT ALL col1 * + - col0, col0 - - col1 / + col0 AS col0 FROM tab0
----
-1215
20
-1827
87
-97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + - col0 + col0 col2 FROM tab1
----
51
85
91

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

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

query II rowsort
SELECT DISTINCT + col0 + - + col1, col2 + + 9 AS col0 FROM tab2
----
-13
49
-5
32
8
67

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 = - col2
----

query I rowsort
SELECT ( 41 ) AS col0 FROM tab1
----
41
41
41

query I rowsort
SELECT + AVG ( DISTINCT - col0 ) FROM tab2 WHERE NULL < + + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6434
SELECT ALL - CAST( - + col2 AS SIGNED ) AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL col2 * - - 51 FROM tab2
----
1173
2040
2958

query II rowsort
SELECT DISTINCT - + 74 - col0, col0 FROM tab1 AS cor0
----
-125
51
-159
85
-165
91

query I rowsort
SELECT 46 - - + col0 AS col2 FROM tab0 AS cor0
----
133
143
61

query I rowsort
SELECT ALL - + col2 + + col0 + + 38 + - - col1 FROM tab2 AS cor0
----
112
122
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT - COUNT( * ) - - - ( - 95 ) AS col2 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT - COUNT ( * ) - - - ( - 95 ) AS col2 FROM tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT - 16 + - 29 FROM tab1 AS cor0 WHERE - ( 25 ) / col2 + - col0 / - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col0 * - - col2 FROM tab2 AS cor0
----
1058
2560
4350

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

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

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

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

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

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

query I rowsort
SELECT - 62 * - - 7 * 64 AS col2 FROM tab2
----
-27776
-27776
-27776

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL COUNT( * ) * + 24 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL COUNT ( * ) * + 24 FROM tab2
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6451
SELECT - ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-6451
SELECT - ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT DISTINCT - 36 AS col2, + 84 FROM tab2 AS cor0
----
-36
84

query II rowsort
SELECT col2, + col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE NULL IN ( - col2 + ( - - col0 ), - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE NULL IN ( - col2 + ( - - col0 ), - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT + - MIN( - 37 ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-6455
SELECT + - MIN ( - 37 ) FROM tab2 AS cor0
----
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 67 + 78 NOT BETWEEN NULL AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT MAX( - col0 ) FROM tab2 AS cor0 WHERE ( col2 ) * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT MAX ( - col0 ) FROM tab2 AS cor0 WHERE ( col2 ) * + col1 IS NULL
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE + + col2 IS NOT NULL
----
10
47
99

query II rowsort
SELECT ALL 41 + + - ( + - col2 ), 78 + - - col0 - col1 AS col1 FROM tab0
----
140
174
51
144
88
12

query I rowsort
SELECT - col1 * 96 + + col1 AS col0 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT col1 + + 51 FROM tab0
----
132
52
72

query I rowsort
SELECT DISTINCT - + col2 * - 39 * + - ( + col2 ) FROM tab0 AS cor0
----
-382239
-3900
-86151

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6468
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST( - + ( - + col0 ) AS SIGNED ) AND ( + - col0 ) + - col2
----

skipif mysql # not compatible
query III rowsort label-6468
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST ( - + ( - + col0 ) AS INTEGER ) AND ( + - col0 ) + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6469
SELECT + - 67 DIV MIN( ALL - + 44 ) + ( + - 30 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-29

skipif mysql # not compatible
query I rowsort label-6469
SELECT + - 67 / MIN ( ALL - + 44 ) + ( + - 30 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-29

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

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

query II rowsort
SELECT ALL + - 13, + 76 AS col0 FROM tab1 AS cor0
----
-13
76
-13
76
-13
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6473
SELECT COUNT( * ) AS col1, + 31 AS col2 FROM tab1 AS cor0
----
3
31

skipif mysql # not compatible
query II rowsort label-6473
SELECT COUNT ( * ) AS col1, + 31 AS col2 FROM tab1 AS cor0
----
3
31

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 > - col1 + - - col1
----

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

skipif mysql # not compatible
query II rowsort label-6476
SELECT 58 AS col1, COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
58
3

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / + 61 <= NULL
----

query II rowsort
SELECT col0 * + - col0, col2 FROM tab2
----
-2116
23
-4096
40
-5625
58

query I rowsort
SELECT DISTINCT 32 * + 84 * - - 52 AS col0 FROM tab2
----
139776

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT ALL 59 * col2 DIV - ( - col2 ) FROM tab1
----
59
59
59

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL 59 * col2 / - ( - col2 ) FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT 4 * SUM( + col1 ) FROM tab0
----
412

skipif mysql # not compatible
query I rowsort label-6482
SELECT 4 * SUM ( + col1 ) FROM tab0
----
412

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT + 99 DIV 1 FROM tab1
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6483
SELECT + 99 / 1 FROM tab1
----
99
99
99

query I rowsort
SELECT ALL - - 40 AS col1 FROM tab1 WHERE NOT - 49 IS NOT NULL
----

query I rowsort
SELECT ALL + + 35 FROM tab2 cor0
----
35
35
35

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6487
SELECT + + col1 DIV col2 AS col1, + 59 FROM tab2 AS cor0
----
1
59
1
59
2
59

skipif mysql # not compatible
query II rowsort label-6487
SELECT + + col1 / col2 AS col1, + 59 FROM tab2 AS cor0
----
1
59
1
59
2
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT COUNT( - 45 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6488
SELECT COUNT ( - 45 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 13 * + - 79 * - + 28 + - + col0 AS col0 FROM tab1 AS cor0
----
-28807
-28841
-28847

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6492
SELECT col2 AS col1, - 17 DIV - col2 + 43 FROM tab2
----
23
43
40
43
58
43

skipif mysql # not compatible
query II rowsort label-6492
SELECT col2 AS col1, - 17 / - col2 + 43 FROM tab2
----
23
43
40
43
58
43

query I rowsort
SELECT - 45 + 73 AS col2 FROM tab0
----
28
28
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL SUM( col1 ) + + ( + SUM( - col2 ) ) AS col2 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL SUM ( col1 ) + + ( + SUM ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
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-6497
SELECT - + MIN ( - ( + col1 ) ) col0 FROM tab1 cor0
----
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT DISTINCT + col2 * - ( - 54 ) AS col1 FROM tab0 cor0 WHERE NOT 36 + - 44 + - ( + + col2 ) * + col2 + + 15 <> + col0 + + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT + col2 * - ( - 54 ) AS col1 FROM tab0 cor0 WHERE NOT 36 + - 44 + - ( + + col2 ) * + col2 + + 15 <> + col0 + + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT ALL CAST( - 25 AS SIGNED ) + + COUNT( DISTINCT + col2 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL CAST ( - 25 AS INTEGER ) + + COUNT ( DISTINCT + col2 ) FROM tab1
----
-22

query I rowsort
SELECT + 70 * 73 FROM tab1
----
5110
5110
5110

query I rowsort
SELECT DISTINCT - + 85 FROM tab1 WHERE + 10 + - 75 IS NOT NULL
----
-85

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

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

query I rowsort
SELECT DISTINCT 50 + col1 AS col1 FROM tab0
----
131
51
71

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

query I rowsort
SELECT ALL ( - + col1 ) FROM tab1 AS cor0 WHERE col2 / 95 + - - 32 + - 88 IS NULL
----

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

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

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

query II rowsort
SELECT ALL + 95 - - col2, col1 AS col0 FROM tab1 AS cor0
----
154
5
163
47
191
14

query I rowsort
SELECT + col1 + + 56 AS col1 FROM tab2 cor0
----
107
123
133

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

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

skipif mysql # not compatible
query I rowsort label-6512
SELECT SUM ( ALL + col2 ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT - col2 * - - 27 FROM tab1
----
-1593
-1836
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col2 FROM tab0
----
NULL

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

query I rowsort
SELECT ALL ( - - 31 ) * col1 AS col1 FROM tab0 AS cor0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT DISTINCT - 28, MIN( DISTINCT + - col0 ) AS col0 FROM tab1 cor0
----
-28
-91

skipif mysql # not compatible
query II rowsort label-6516
SELECT DISTINCT - 28, MIN ( DISTINCT + - col0 ) AS col0 FROM tab1 cor0
----
-28
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6517
SELECT + CAST( + + ( + 35 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
35
35
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6517
SELECT + CAST ( + + ( + 35 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
35
35
35

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

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

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

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

query I rowsort
SELECT DISTINCT - ( col1 ) * - col1 - col2 AS col1 FROM tab2 AS cor0
----
2578
4431
5889

query III rowsort
SELECT * FROM tab1 WHERE NOT - 76 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6523
SELECT * FROM tab1 WHERE NOT ( NOT + col0 / + col2 <= - CAST( NULL AS SIGNED ) * + col0 * - col1 + - ( - 5 ) )
----

skipif mysql # not compatible
query III rowsort label-6523
SELECT * FROM tab1 WHERE NOT ( NOT + col0 / + col2 <= - CAST ( NULL AS INTEGER ) * + col0 * - col1 + - ( - 5 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT COUNT( * ) * - 43 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-6524
SELECT COUNT ( * ) * - 43 FROM tab1
----
-129

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

query I rowsort
SELECT DISTINCT - ( 65 ) FROM tab0, tab2 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT - + COUNT( * ) + - ( - 29 ) * - 65 AS col1 FROM tab0 AS cor0
----
-1888

skipif mysql # not compatible
query I rowsort label-6527
SELECT - + COUNT ( * ) + - ( - 29 ) * - 65 AS col1 FROM tab0 AS cor0
----
-1888

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6529
SELECT + 25 + col0 * + col2 + - col2 AS col2, col0 DIV 67 FROM tab2 AS cor0
----
1060
0
2545
0
4317
1

skipif mysql # not compatible
query II rowsort label-6529
SELECT + 25 + col0 * + col2 + - col2 AS col2, col0 / 67 FROM tab2 AS cor0
----
1060
0
2545
0
4317
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6530
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0 * + 16, - ( + ( - CAST( NULL AS DECIMAL ) ) ), - col2, + + col0, 44, col1 * 56 )
----

skipif mysql # not compatible
query III rowsort label-6530
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0 * + 16, - ( + ( - CAST ( NULL AS REAL ) ) ), - col2, + + col0, 44, col1 * 56 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT col0 + - 64 DIV + col2 + + col2 * + 42 AS col2 FROM tab0 AS cor0
----
1988
4255
501

skipif mysql # not compatible
query I rowsort label-6532
SELECT col0 + - 64 / + col2 + + col2 * + 42 AS col2 FROM tab0 AS cor0
----
1988
4255
501

query I rowsort
SELECT DISTINCT + 48 * + ( + 80 ) FROM tab1 WHERE NOT - - 3 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6535
SELECT DISTINCT + 98, MIN( - col0 ) AS col1 FROM tab0
----
98
-97

skipif mysql # not compatible
query II rowsort label-6535
SELECT DISTINCT + 98, MIN ( - col0 ) AS col1 FROM tab0
----
98
-97

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * + col1 ) < + 10 * + 48
----
85
5
59

query I rowsort
SELECT ALL + col2 * + 92 + + + col2 * - 8 FROM tab2
----
1932
3360
4872

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= + 63
----

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

query II rowsort
SELECT + col0 * - - 12 + + col1, - col0 AS col2 FROM tab1
----
1025
-85
1139
-91
626
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL + - MAX( ALL + 6 ) * - COUNT( * ) FROM tab1 WHERE NOT + + 55 / - col2 * + col1 IN ( 87, + 86, + - col0 + + col2 + col1, 27 * - 37 + + 8 / + col1 )
----
18

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + - MAX ( ALL + 6 ) * - COUNT ( * ) FROM tab1 WHERE NOT + + 55 / - col2 * + col1 IN ( 87, + 86, + - col0 + + col2 + col1, 27 * - 37 + + 8 / + col1 )
----
18

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

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

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

query I rowsort
SELECT - col1 * - 77 FROM tab1
----
1078
3619
385

query I rowsort
SELECT DISTINCT - 82 + + col1 + + 47 FROM tab0
----
-14
-34
46

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 + 27 IS NULL
----

query I rowsort
SELECT ALL + - col2 - + 80 FROM tab2 AS cor0
----
-103
-120
-138

query I rowsort
SELECT - - col2 * + 5 - col1 + - col1 AS col0 FROM tab2 AS cor0
----
13
156
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 >= 92
----
3

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 >= 92
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT ALL 69 AS col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
69
69
69

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL 69 AS col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
69
69
69

onlyif mysql # DIV for integer division: 
query II rowsort label-6551
SELECT col2 DIV - - 17, 95 col1 FROM tab2
----
1
95
2
95
3
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6551
SELECT col2 / - - 17, 95 col1 FROM tab2
----
1
95
2
95
3
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT - SUM( 87 ) col0 FROM tab2
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6552
SELECT - SUM ( 87 ) col0 FROM tab2
----
-261

query I rowsort
SELECT 66 * 6 FROM tab0
----
396
396
396

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 1 < ( col1 * col1 + 5 )
----

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

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

query II rowsort
SELECT DISTINCT 6 - + col0 AS col2, 36 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6559
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 64 + + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-6559
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 64 + + CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT + 84 * + 11 * - - col2 AS col2 FROM tab0
----
43428
91476
9240

query I rowsort
SELECT ALL 20 + - + 64 FROM tab1
----
-44
-44
-44

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

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

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

query II rowsort
SELECT DISTINCT col1 + - ( + col0 ) AS col1, + 27 FROM tab1
----
-37
27
-44
27
-80
27

query I rowsort
SELECT ALL + 53 + + - col0 + + 7 * - + col0 FROM tab2 AS cor0
----
-315
-459
-547

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

query I rowsort
SELECT - col0 + + - col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 + - 87 * - ( + col1 ) * + 95 AND + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 60 + + - ( + col0 ) * - 35 col2, col1 + + col0 FROM tab2 AS cor0
----
1670
97
2300
141
2685
142

query I rowsort
SELECT DISTINCT - col0 - - 6 AS col0 FROM tab1 cor0
----
-45
-79
-85

query I rowsort
SELECT DISTINCT + ( - 62 ) * col2 FROM tab0 AS cor0
----
-2914
-6138
-620

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT col2 * ( - 8 ) DIV 43 AS col1 FROM tab2 AS cor0
----
-10
-4
-7

skipif mysql # not compatible
query I rowsort label-6572
SELECT col2 * ( - 8 ) / 43 AS col1 FROM tab2 AS cor0
----
-10
-4
-7

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

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

query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-25

query I rowsort
SELECT DISTINCT + col2 * 24 * col0 FROM tab0 AS cor0
----
16920
20880
230472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6576
SELECT DISTINCT + MIN( DISTINCT + - 21 ) DIV 37 * - COUNT( * ) * 79 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT + MIN ( DISTINCT + - 21 ) / 37 * - COUNT ( * ) * 79 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 + + 4 AS col2 FROM tab1
----
18
51
9

query I rowsort
SELECT + 24 - - + 11 FROM tab2
----
35
35
35

query II rowsort
SELECT col0 - - col0 AS col0, col1 + + + col1 AS col0 FROM tab2
----
128
154
150
134
92
102

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT - 79 * - col2 - + 84 + - 13 DIV + + ( - - 76 ) * 90 FROM tab1
----
4577
5288
7500

skipif mysql # not compatible
query I rowsort label-6580
SELECT - 79 * - col2 - + 84 + - 13 / + + ( - - 76 ) * 90 FROM tab1
----
4577
5288
7500

query I rowsort
SELECT ALL col0 * - 43 * - + col2 AS col1 FROM tab1 AS cor0
----
210528
215645
266084

query I rowsort
SELECT ALL + 13 * - - 4 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 70 AND + 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT + COUNT( * ) + + - 29 col0 FROM tab1 AS cor0 WHERE + 16 IS NULL
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6583
SELECT DISTINCT + COUNT ( * ) + + - 29 col0 FROM tab1 AS cor0 WHERE + 16 IS NULL
----
-29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 31 - 74 < - col1
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6585
SELECT DISTINCT * FROM tab1 WHERE NOT + 91 + - col0 IN ( 7 - - col2, - col0, - col2, col0 * 64 + - + CAST( NULL AS DECIMAL ), ( - + col1 ), + col2 )
----

skipif mysql # not compatible
query III rowsort label-6585
SELECT DISTINCT * FROM tab1 WHERE NOT + 91 + - col0 IN ( 7 - - col2, - col0, - col2, col0 * 64 + - + CAST ( NULL AS REAL ), ( - + col1 ), + col2 )
----

query I rowsort
SELECT + + 76 * 6 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cf4dccd74afeb1a295d889ddbf6f21bf

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT MAX( + 16 ) AS col2 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6588
SELECT MAX ( + 16 ) AS col2 FROM tab1 AS cor0
----
16

query I rowsort
SELECT ALL + - col0 * - ( - col0 ) FROM tab1 AS cor0
----
-2601
-7225
-8281

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 0 * 63 col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col1 * - col2 + - ( - - col2 ) FROM tab2 AS cor0
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT MAX( - 58 ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6594
SELECT MAX ( - 58 ) FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT DISTINCT + COUNT( * ) * + - 53 * SUM( ALL col1 ) AS col0 FROM tab1
----
-10494

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT + COUNT ( * ) * + - 53 * SUM ( ALL col1 ) AS col0 FROM tab1
----
-10494

query I rowsort
SELECT ALL + 15 + col1 FROM tab0
----
16
36
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT COUNT( DISTINCT 3 ) + + + 61 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT COUNT ( DISTINCT 3 ) + + + 61 FROM tab0
----
62

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT 40 > NULL
----

query I rowsort
SELECT ALL + 22 FROM tab0 WHERE NOT + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT ALL - - 79 * - col0 DIV - col0 FROM tab2 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL - - 79 * - col0 / - col0 FROM tab2 AS cor0
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 25 BETWEEN 5 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 31 + + 6 * col0 AS col1 FROM tab0 cor0
----
121
553
613

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

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

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL COUNT ( * ) + - - 39 FROM tab0
----
42

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

query I rowsort
SELECT DISTINCT + col0 + col1 + 73 FROM tab2
----
170
214
215

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6609
SELECT DISTINCT - MAX( + 38 ) DIV 75 - - 47 AS col1 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT - MAX ( + 38 ) / 75 - - 47 AS col1 FROM tab0 AS cor0
----
47

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

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

query I rowsort
SELECT DISTINCT - 2 * - col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6612
SELECT ALL + + 48 + CAST( + col1 AS SIGNED ) AS col2, col1 FROM tab0 AS cor0
----
129
81
49
1
69
21

skipif mysql # not compatible
query II rowsort label-6612
SELECT ALL + + 48 + CAST ( + col1 AS INTEGER ) AS col2, col1 FROM tab0 AS cor0
----
129
81
49
1
69
21

query I rowsort
SELECT ( - ( - - col1 ) ) * + 26 FROM tab0 AS cor0 WHERE + col2 NOT IN ( - 45 + 36 / - + col0 )
----
-2106
-26
-546

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6616
SELECT - 82, - COUNT( * ) AS col0 FROM tab1
----
-82
-3

skipif mysql # not compatible
query II rowsort label-6616
SELECT - 82, - COUNT ( * ) AS col0 FROM tab1
----
-82
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6618
SELECT 51 AS col0, COUNT( * ) FROM tab0
----
51
3

skipif mysql # not compatible
query II rowsort label-6618
SELECT 51 AS col0, COUNT ( * ) FROM tab0
----
51
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 * col0 * 46 / + col2 >= NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * 66 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * 66 FROM tab2 AS cor0
----
-198

query I rowsort
SELECT + 68 * + + col0 AS col0 FROM tab1 AS cor0
----
3468
5780
6188

query II rowsort
SELECT ALL + ( + 38 ) AS col1, + 18 + 76 FROM tab0 AS cor0
----
38
94
38
94
38
94

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

query II rowsort
SELECT ALL + col2, + col2 AS col1 FROM tab1 WHERE NULL IN ( + col0 + - - col1, 76, + - col2, - + 87 )
----

query I rowsort
SELECT ALL + 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 - - 50 < - 15
----
3

skipif mysql # not compatible
query I rowsort label-6627
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 - - 50 < - 15
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ALL MAX( col0 ) FROM tab1 WHERE NOT ( col2 * - 7 + - col0 ) NOT BETWEEN NULL AND - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL MAX ( col0 ) FROM tab1 WHERE NOT ( col2 * - 7 + - col0 ) NOT BETWEEN NULL AND - 46
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - col2 col1, + 94 FROM tab0 AS cor0
----
-198
94
-20
94
-94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT + col0 * col0 * - col0 + - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-3376
-658504
-912674

skipif mysql # not compatible
query I rowsort label-6631
SELECT + col0 * col0 * - col0 + - col0 / col0 AS col2 FROM tab0 AS cor0
----
-3376
-658504
-912674

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

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

query I rowsort
SELECT DISTINCT - 5 + + 62 AS col1 FROM tab2
----
57

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + 52 * - - 75 FROM tab0
----
3910
3947
3999

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - - 77 + + 65
----

query I rowsort
SELECT ALL col0 + + + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL col1 + - 82 FROM tab2
----
-15
-31
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT + COUNT( * ) + + - ( 82 ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-6642
SELECT + COUNT ( * ) + + - ( 82 ) FROM tab2 AS cor0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6643
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE + 6 DIV 61 NOT IN ( col2 DIV 59 )
----
1

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE + 6 / 61 NOT IN ( col2 / 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT - COUNT( * ) * + 7 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-6644
SELECT - COUNT ( * ) * + 7 FROM tab2
----
-21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT + COUNT( * ) * + 64 AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT + COUNT ( * ) * + 64 AS col0 FROM tab1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT + SUM( ( col2 ) ) * 79 AS col1 FROM tab1
----
17617

skipif mysql # not compatible
query I rowsort label-6647
SELECT + SUM ( ( col2 ) ) * 79 AS col1 FROM tab1
----
17617

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT + COUNT( * ) FROM tab2 WHERE NOT 90 * col1 + - col1 * + ( col2 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6648
SELECT + COUNT ( * ) FROM tab2 WHERE NOT 90 * col1 + - col1 * + ( col2 ) = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT DISTINCT + col1 DIV - 34 col1 FROM tab0
----
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6649
SELECT DISTINCT + col1 / - 34 col1 FROM tab0
----
-2
0

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

query I rowsort
SELECT 57 + col1 AS col2 FROM tab2
----
108
124
134

query I rowsort
SELECT ( - col0 ) + 56 * - col0 AS col2 FROM tab0
----
-4959
-5529
-855

query I rowsort
SELECT ( + col2 ) + + 67 AS col1 FROM tab1
----
126
135
163

query I rowsort
SELECT DISTINCT + col1 * 12 AS col1 FROM tab2
----
612
804
924

query I rowsort
SELECT ( col0 ) AS col0 FROM tab2 WHERE NOT ( 6 * + 43 ) NOT IN ( + ( col2 ) * col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL + COUNT( * ) * - 75 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL + COUNT ( * ) * - 75 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + ( ( col1 ) ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT + col2 + + col0 * + col0 AS col0 FROM tab1
----
2697
7284
8349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6660
SELECT + 33 + - COUNT( * ) DIV - SUM( DISTINCT + col1 - - 83 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-6660
SELECT + 33 + - COUNT ( * ) / - SUM ( DISTINCT + col1 - - 83 ) FROM tab2
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6661
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) NOT BETWEEN - 95 + - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6661
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) NOT BETWEEN - 95 + - CAST ( NULL AS REAL ) AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 * 97 col1 FROM tab0
----
4640
9604
991

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6664
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE - col1 / + col1 IN ( - col1 * + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE - col1 / + col1 IN ( - col1 * + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT DISTINCT + COUNT( - col0 ) + + 82 AS col2 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT + COUNT ( - col0 ) + + 82 AS col2 FROM tab0
----
85

query III rowsort
SELECT * FROM tab0 WHERE + 14 - - col2 = ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT DISTINCT + MAX( DISTINCT + 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT + MAX ( DISTINCT + 84 ) FROM tab1
----
84

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

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

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

query I rowsort
SELECT + 70 * col0 FROM tab2 AS cor0 WHERE NOT - col0 * + col0 > - col1
----
3220
4480
5250

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 ) WHERE NULL > ( NULL )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 / - col2 ) IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6676
SELECT ALL SUM( col0 ) DIV - CAST( - 6 AS SIGNED ) col2 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6676
SELECT ALL SUM ( col0 ) / - CAST ( - 6 AS INTEGER ) col2 FROM tab1 AS cor0
----
37

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

skipif mysql # not compatible
query I rowsort label-6677
SELECT + + 10 / COUNT ( * ) FROM tab2 AS cor0
----
3

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

query I rowsort
SELECT col0 * 83 FROM tab1 AS cor0
----
4233
7055
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL + COUNT( * ) + - COUNT( * ) * MAX( col0 + 70 ) FROM tab2 AS cor0 WHERE NOT 36 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * MAX ( col0 + 70 ) FROM tab2 AS cor0 WHERE NOT 36 <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6681
SELECT - + 37 DIV - 9 AS col0 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-6681
SELECT - + 37 / - 9 AS col0 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + 64 + + col1 FROM tab2
----
115
131
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL + SUM( col2 ) * 92 FROM tab0
----
14352

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL + SUM ( col2 ) * 92 FROM tab0
----
14352

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT ALL - 37 + + CAST( 26 AS SIGNED ) AS col1 FROM tab1
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL - 37 + + CAST ( 26 AS INTEGER ) AS col1 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT 17 + + + col2 FROM tab0
----
116
27
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col0 FROM tab0 WHERE ( - col0 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT COUNT( * ) + + 98 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT COUNT ( * ) + + 98 FROM tab0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT - col0 + CAST( col1 AS SIGNED ) * 39 AS col1 FROM tab2
----
1943
2538
2939

skipif mysql # not compatible
query I rowsort label-6689
SELECT - col0 + CAST ( col1 AS INTEGER ) * 39 AS col1 FROM tab2
----
1943
2538
2939

query I rowsort
SELECT - col0 * - - 24 + - col1 * + col0 FROM tab2
----
-3450
-6464
-6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 81 ) + + col1 * + 67 col2 FROM tab2
----
3498
4570
5240

query I rowsort
SELECT + ( - - col1 ) * - col2 + 96 AS col0 FROM tab0 AS cor0
----
-114
-3
-3711

query I rowsort
SELECT 93 AS col1 FROM tab0 AS cor0 WHERE - 64 IS NOT NULL
----
93
93
93

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

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

query I rowsort
SELECT - 14 * col2 AS col2 FROM tab1 AS cor0
----
-1344
-826
-952

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 90 < 90 / col2
----
0

skipif mysql # not compatible
query I rowsort label-6697
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 90 < 90 / col2
----
0

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

query I rowsort
SELECT 21 FROM tab0 AS cor0 WHERE + col1 + - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 - 88 AS col1 FROM tab1
----
-3
-37
3

query I rowsort
SELECT + col1 * ( col0 ) - + col1 FROM tab0
----
1134
1806
96

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

query I rowsort
SELECT - - col2 * 81 * - col0 AS col1 FROM tab0 AS cor0
----
-57105
-70470
-777843

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 50 * - col1 IS NOT NULL
----

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

query II rowsort
SELECT ALL + 74 AS col1, + col1 AS col2 FROM tab2 AS cor0
----
74
51
74
67
74
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT + SUM( - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6709
SELECT + SUM ( - col2 ) FROM tab1 AS cor0
----
-223

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 AS cor0 WHERE NOT - 7 > - 54 * 11
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL <= col0 * + ( + col2 ) / - col0 - col1
----

query I rowsort
SELECT ALL col1 * col0 * - 70 * 7 AS col0 FROM tab1
----
-208250
-2095730
-349860

query I rowsort
SELECT ALL 4 + + 62 / col0 FROM tab0 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * + col0 * - 39 FROM tab0
----
-3783
-47385
-71253

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

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL + COUNT ( * ) * - 44 * + - COUNT ( * ) FROM tab0
----
396

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT DISTINCT - 10 DIV + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT - 10 / + col1 FROM tab2
----
0

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 >= + col2 * + col0
----
51
85
91

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

query I rowsort
SELECT ALL - - col1 + - ( - col1 ) * col2 AS col2 FROM tab0 AS cor0
----
100
231
3888

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 9 + - col2 * + - col0 * + col2 NOT BETWEEN NULL AND + 20 / 32
----

query I rowsort
SELECT 64 + - col2 * col2 AS col1 FROM tab2 cor0
----
-1536
-3300
-465

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - 58 * - col0 NOT BETWEEN 34 * + 80 AND ( 19 )
----

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + + - col0 IN ( - + col2 )
----
46
51
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT - 20 DIV + col1 * + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6729
SELECT - 20 / + col1 * + col1 AS col1 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6730
SELECT + MAX ( ALL - 77 ) AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL + COUNT( * ) + + MAX( DISTINCT 43 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + COUNT ( * ) + + MAX ( DISTINCT 43 ) FROM tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT - 79 * + COUNT( ALL - col0 ) AS col2 FROM tab2 WHERE - ( - - ( + col2 ) ) NOT BETWEEN col1 AND - 91 * 52
----
-237

skipif mysql # not compatible
query I rowsort label-6732
SELECT - 79 * + COUNT ( ALL - col0 ) AS col2 FROM tab2 WHERE - ( - - ( + col2 ) ) NOT BETWEEN col1 AND - 91 * 52
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6733
SELECT DISTINCT - 9 * - CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6733
SELECT DISTINCT - 9 * - CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6734
SELECT DISTINCT col1 DIV - col2 + col2 + col0 * - 8 FROM tab0
----
-677
-688
-74

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT col1 / - col2 + col2 + col0 * - 8 FROM tab0
----
-677
-688
-74

query I rowsort
SELECT DISTINCT col0 + + 4 AS col1 FROM tab2
----
50
68
79

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

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

query I rowsort
SELECT DISTINCT 67 * - - col1 + - col0 + 93 AS col1 FROM tab2
----
3464
4507
5188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL MAX( DISTINCT - col1 ) FROM tab1 WHERE ( ( + col2 - + col0 ) IS NOT NULL )
----
-5

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL MAX ( DISTINCT - col1 ) FROM tab1 WHERE ( ( + col2 - + col0 ) IS NOT NULL )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT ALL col2 DIV 95 * + col2 DIV 88 - - col1 FROM tab0 cor0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL col2 / 95 * + col2 / 88 - - col1 FROM tab0 cor0
----
2
21
81

query I rowsort
SELECT ALL - col1 * + col0 * - - col0 * - col0 - + 56 AS col0 FROM tab2 AS cor0
----
20185032
28265569
4964080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT - CAST( + - col0 AS SIGNED ) + col1 + + col1 * + col2 AS col1 FROM tab2
----
1270
3221
4028

skipif mysql # not compatible
query I rowsort label-6742
SELECT - CAST ( + - col0 AS INTEGER ) + col1 + + col1 * + col2 AS col1 FROM tab2
----
1270
3221
4028

onlyif mysql # aggregate syntax: 
query II rowsort label-6743
SELECT - + COUNT( DISTINCT col1 ) AS col1, - MIN( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 <= col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6743
SELECT - + COUNT ( DISTINCT col1 ) AS col1, - MIN ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 <= col2
----
0
NULL

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

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

query I rowsort
SELECT - ( - col2 ) * - 34 FROM tab0 cor0
----
-1598
-3366
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - 24 * + MAX( - col1 ) col1 FROM tab0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6747
SELECT - 24 * + MAX ( - col1 ) col1 FROM tab0
----
24

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

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

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

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

query II rowsort
SELECT ALL col2, + col0 * + + col1 * 98 * + - col0 FROM tab0
----
10
-15577002
47
-1786050
99
-922082

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6752
SELECT DISTINCT col1 AS col1, + col0 DIV col1 * + - CAST( - 14 AS SIGNED ) - - col2 FROM tab1
----
14
138
47
82
5
297

skipif mysql # not compatible
query II rowsort label-6752
SELECT DISTINCT col1 AS col1, + col0 / col1 * + - CAST ( - 14 AS INTEGER ) - - col2 FROM tab1
----
14
138
47
82
5
297

query I rowsort
SELECT + 77 * + - col1 * - ( + 55 ) AS col0 FROM tab0
----
343035
4235
88935

query I rowsort
SELECT + 63 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
63
63
63

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

query I rowsort
SELECT - + 70 * col1 AS col2 FROM tab0 AS cor0
----
-1470
-5670
-70

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

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

query I rowsort
SELECT ALL - col0 * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
10575
75690
931491

query I rowsort
SELECT - 87 + col0 - + col2 * + + col0 FROM tab1 AS cor0
----
-4932
-5017
-6184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 + + col0 col0 FROM tab0 AS cor0
----
-4
-76
6

query I rowsort
SELECT - 58 + - + col2 FROM tab1 AS cor0
----
-117
-126
-154

query I rowsort
SELECT ALL col1 * - 91 + - 24 + + col0 AS col2 FROM tab2
----
-4619
-6046
-6967

query I rowsort
SELECT ALL + + ( ( - col1 ) ) + + 10 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-420
-4314
-718

query I rowsort
SELECT 37 * + col0 * + col0 FROM tab1 cor0
----
267325
306397
96237

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

query I rowsort
SELECT + ( - col2 ) * - + ( - col1 ) FROM tab0 AS cor0 WHERE - 60 IN ( - col1 * + 77 )
----

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

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

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

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

query I rowsort
SELECT ALL + col0 * col2 + ( - col1 ) + + 34 + + + col2 * + 21 FROM tab0 AS cor0
----
1093
11715
1645

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

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

query I rowsort
SELECT col1 + 51 FROM tab2
----
102
118
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL SUM( DISTINCT - col2 ) * + - COUNT( * ) * - COUNT( * ) + 47 + + ( + - 62 ) FROM tab2
----
-1104

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL SUM ( DISTINCT - col2 ) * + - COUNT ( * ) * - COUNT ( * ) + 47 + + ( + - 62 ) FROM tab2
----
-1104

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

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

query I rowsort
SELECT col1 + - col1 * + 71 * + - 61 FROM tab2
----
220932
290244
333564

query I rowsort
SELECT 48 FROM tab1 AS cor0 WHERE col2 <> NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 46 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6779
SELECT ALL col1 DIV col2 DIV - 55 * - CAST( + 81 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL col1 / col2 / - 55 * - CAST ( + 81 AS INTEGER ) FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6780
SELECT + - 47 DIV + + 68 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6780
SELECT + - 47 / + + 68 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * - ( 14 ) AS col2 FROM tab1 AS cor0
----
-1190
-1274
-714

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, 6 col0 FROM tab0 cor0
----
10
6
47
6
99
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 97 BETWEEN NULL AND ( - 75 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 10 col0, - 56 FROM tab2 AS cor0
----
10
-56

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 37 BETWEEN - 23 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 46 IS NOT NULL
----

query II rowsort
SELECT ALL ( + col2 ), - 31 FROM tab0
----
10
-31
47
-31
99
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6790
SELECT - COUNT( + - CAST( NULL AS SIGNED ) ) col2, COUNT( * ) FROM tab1
----
0
3

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

query II rowsort
SELECT col2 * - col0 AS col2, col2 AS col0 FROM tab2
----
-1058
23
-2560
40
-4350
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT ALL ( MAX( - - col0 ) ) col1, 6 AS col0 FROM tab1
----
91
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6792
SELECT ALL ( MAX ( - - col0 ) ) col1, 6 AS col0 FROM tab1
----
91
6

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

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

query I rowsort
SELECT + col0 * - + col2 * + 17 AS col0 FROM tab2
----
-17986
-43520
-73950

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT + 34 * ( - + 28 ) * - + COUNT( * ) col1 FROM tab2
----
2856

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6795
SELECT + 34 * ( - + 28 ) * - + COUNT ( * ) col1 FROM tab2
----
2856

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

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

query I rowsort
SELECT ALL + - col2 + 64 FROM tab0 cor0
----
-35
17
54

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

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

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

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - MAX ( - col1 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT - col0 + + 49 FROM tab0
----
-38
-48
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 * + - col1 * + col0 col2 FROM tab2
----
-128128
-130650
-60996

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT + 6 * + COUNT( * ) + - 88 + - + SUM( - col2 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6804
SELECT + 6 * + COUNT ( * ) + - 88 + - + SUM ( - col2 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 6 + - col1 * + 90 > NULL )
----

query I rowsort
SELECT - col1 * col2 + - + 70 + - - col1 FROM tab2 cor0
----
-1192
-3073
-3889

query I rowsort
SELECT + col0 * + 50 AS col0 FROM tab0
----
4350
4850
750

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

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

query II rowsort
SELECT col1, + 83 FROM tab0 WHERE col2 IS NOT NULL
----
1
83
21
83
81
83

query I rowsort
SELECT - 40 * 1 FROM tab1
----
-40
-40
-40

query I rowsort
SELECT col2 * 53 - + + 91 AS col0 FROM tab1
----
3036
3513
4997

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

query I rowsort
SELECT ALL 45 + - - 99 * col2 FROM tab2
----
2322
4005
5787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 16 AS col0, col0 col2 FROM tab0 WHERE col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6816
SELECT col0, col0 / + col0 + col2 + - - col2 / + + 5 FROM tab1 WHERE CAST( - ( + col0 ) AS SIGNED ) BETWEEN + - col0 / col0 AND 66
----

skipif mysql # not compatible
query II rowsort label-6816
SELECT col0, col0 / + col0 + col2 + - - col2 / + + 5 FROM tab1 WHERE CAST ( - ( + col0 ) AS INTEGER ) BETWEEN + - col0 / col0 AND 66
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6818
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6818
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

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

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

query II rowsort
SELECT col0 * 74 * 69, col2 FROM tab0
----
444222
10
495282
99
76590
47

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

query I rowsort
SELECT DISTINCT col0 * - - col0 FROM tab0 AS cor0
----
225
7569
9409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT + MAX( ALL col1 ) col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6825
SELECT DISTINCT + MAX ( ALL col1 ) col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
47

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

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

query I rowsort
SELECT + + 92 AS col0 FROM tab1 AS cor0
----
92
92
92

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

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

skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT - COUNT ( + - ( 36 ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL - col0 + col2 + ( + 41 ) AS col2 FROM tab2
----
17
18
24

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

query II rowsort
SELECT ALL - col0 * col0 + - col2 * col0 AS col2, col2 * ( + col2 ) FROM tab0 AS cor0
----
-19012
9801
-8439
100
-930
2209

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 63 + 96 col0, col0 AS col1 FROM tab2
----
159
46
159
64
159
75

query I rowsort
SELECT DISTINCT col1 * col0 * 21 + + 10 + col1 AS col1 FROM tab2
----
103575
105602
49327

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 - 94 * 53 * - 4 FROM tab2 cor0
----
19853
19864
19882

query I rowsort
SELECT - + col2 + - - col1 - + col2 AS col0 FROM tab0 AS cor0
----
-13
-197
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL + - ( 68 ) * MIN( ( + col1 ) ) - + COUNT( 45 ) FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + - ( 68 ) * MIN ( ( + col1 ) ) - + COUNT ( 45 ) FROM tab0 AS cor0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6843
SELECT ALL - - MAX( ALL + 18 ) AS col2, CAST( NULL AS SIGNED ) + + MIN( ALL - ( col0 ) ) FROM tab2 AS cor0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-6843
SELECT ALL - - MAX ( ALL + 18 ) AS col2, CAST ( NULL AS INTEGER ) + + MIN ( ALL - ( col0 ) ) FROM tab2 AS cor0
----
18
NULL

query II rowsort
SELECT + col0 + + col0 * - col0, 62 AS col0 FROM tab2 AS cor0
----
-2070
62
-4032
62
-5550
62

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

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

query III rowsort
SELECT * FROM tab0 WHERE NULL > - - 17
----

query I rowsort
SELECT ALL - col0 + - col1 AS col0 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT ALL - - AVG ( + + CAST( - - col0 AS SIGNED ) ) * + 62 AS col0 FROM tab1 WHERE - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL - - AVG ( + + CAST ( - - col0 AS INTEGER ) ) * + 62 AS col0 FROM tab1 WHERE - - col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + ( + 87 ) <= NULL
----

query I rowsort
SELECT ALL ( - col2 ) * 54 AS col2 FROM tab1
----
-3186
-3672
-5184

query III rowsort
SELECT + col0 AS col1, 42 * 66 * - - col2 * - col0 * 13 AS col0, col0 AS col1 FROM tab1
----
9 values hashing to 20cbb1f6baf5b16a0b767e594e60b17d

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6859
SELECT ALL 86 DIV 19 col2, CAST( NULL AS SIGNED ) * 97 AS col0 FROM tab1 AS cor0
----
4
NULL
4
NULL
4
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6859
SELECT ALL 86 / 19 col2, CAST ( NULL AS INTEGER ) * 97 AS col0 FROM tab1 AS cor0
----
4
NULL
4
NULL
4
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6862
SELECT + + COUNT( * ), 51 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= + 25 + + 54 + - CAST( NULL AS SIGNED ) / - col2 * + + col0
----
0
51

skipif mysql # not compatible
query II rowsort label-6862
SELECT + + COUNT ( * ), 51 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= + 25 + + 54 + - CAST ( NULL AS INTEGER ) / - col2 * + + col0
----
0
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 - - 0 * - col1 IS NULL
----

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

query I rowsort
SELECT - - col0 * + col2 + + col0 FROM tab1 WHERE NOT + 60 IN ( + 38, - col0 )
----
4947
5100
6279

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

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

query I rowsort
SELECT ALL + ( - - 65 ) * - 1 + col2 FROM tab1
----
-6
3
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT COUNT( DISTINCT + 76 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6868
SELECT COUNT ( DISTINCT + 76 ) AS col0 FROM tab0
----
1

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

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

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

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

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

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

query I rowsort
SELECT ALL + ( + 42 ) * + col2 + col2 AS col2 FROM tab1 AS cor0
----
2537
2924
4128

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6877
SELECT DISTINCT - + col0 - + - col2 DIV col0 * - col1 * - col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT - + col0 - + - col2 / col0 * - col1 * - col1 FROM tab2 AS cor0
----
-46
-64
-75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 46 * - - col0 col1, + col1 + col1 * + ( col0 ) FROM tab2 AS cor0
----
-2116
2397
-2944
5005
-3450
5092

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT DISTINCT CAST( - 21 AS SIGNED ) AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT CAST ( - 21 AS INTEGER ) AS col2 FROM tab2
----
-21

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

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

query I rowsort
SELECT ALL 67 * - col0 * + col1 FROM tab1
----
-28475
-286559
-47838

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6884
SELECT ALL col0 FROM tab1 WHERE NOT NULL NOT IN ( + - ( 91 ) * + CAST( NULL AS DECIMAL ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL col0 FROM tab1 WHERE NOT NULL NOT IN ( + - ( 91 ) * + CAST ( NULL AS REAL ) * col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6885
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 - col1 NOT BETWEEN - 65 + + - col2 AND CAST( - - 22 AS DECIMAL ) * - - ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6885
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 - col1 NOT BETWEEN - 65 + + - col2 AND CAST ( - - 22 AS REAL ) * - - ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT DISTINCT COUNT( * ) * - 49 col0 FROM tab1
----
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6888
SELECT DISTINCT COUNT ( * ) * - 49 col0 FROM tab1
----
-147

query I rowsort
SELECT - col0 * - 95 FROM tab2
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query II rowsort label-6890
SELECT + COUNT( * ) AS col2, + 40 FROM tab0 AS cor0
----
3
40

skipif mysql # not compatible
query II rowsort label-6890
SELECT + COUNT ( * ) AS col2, + 40 FROM tab0 AS cor0
----
3
40

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 25 * + - col2 - - col2 * - col1 FROM tab1 AS cor0
----
-1770
-3744
-4896

query I rowsort
SELECT DISTINCT + 98 * 24 + - col1 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
2271
2331
2351

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT + 38 * - MAX( + - col1 ) AS col1 FROM tab1 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-6894
SELECT + 38 * - MAX ( + - col1 ) AS col1 FROM tab1 AS cor0
----
190

query II rowsort
SELECT + 28 AS col2, + 76 AS col0 FROM tab0 AS cor0
----
28
76
28
76
28
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6896
SELECT ALL COUNT( * ) * + COUNT( * ) + 32 AS col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
41
3

skipif mysql # not compatible
query II rowsort label-6896
SELECT ALL COUNT ( * ) * + COUNT ( * ) + 32 AS col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
41
3

query II rowsort
SELECT DISTINCT + 93 * - col2 * - + 86 AS col0, 60 + + col0 AS col1 FROM tab2 AS cor0
----
183954
106
319920
124
463884
135

query I rowsort
SELECT ALL col0 * - 3 FROM tab2
----
-138
-192
-225

query I rowsort
SELECT 51 + - - col1 FROM tab1
----
56
65
98

query I rowsort
SELECT DISTINCT - col0 + 35 AS col0 FROM tab0
----
-52
-62
20

query I rowsort
SELECT ALL 25 + + + 3 * + - ( + col2 ) + + - 66 FROM tab0
----
-182
-338
-71

query I rowsort
SELECT col2 + - 67 + ( + - col2 ) FROM tab1
----
-67
-67
-67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - 17 = NULL
----

query I rowsort
SELECT + ( col2 ) * - col1 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
308367
4410
99

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6908
SELECT ALL + ( + ( - col0 ) ) - col2 - - CAST( NULL AS DECIMAL ) / ( + - 88 ) - - 70 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL + ( + ( - col0 ) ) - col2 - - CAST ( NULL AS REAL ) / ( + - 88 ) - - 70 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL - col1, col0 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-14
2601
-47
8281
-5
7225

query II rowsort
SELECT DISTINCT - col2 AS col1, - 32 * col1 * 73 FROM tab1 AS cor0
----
-59
-11680
-68
-109792
-96
-32704

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL MAX( ALL col2 ) AS col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL MAX ( ALL col2 ) AS col0 FROM tab1 cor0
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT COUNT( ALL - col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT COUNT ( ALL - col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT + col2 AS col1, - 61 * + col1 FROM tab0
----
10
-1281
47
-4941
99
-61

query II rowsort
SELECT ALL - col0, col2 AS col0 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6917
SELECT + col2, col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6917
SELECT + col2, col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6918
SELECT DISTINCT - 80, - 93 - + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab0
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-6918
SELECT DISTINCT - 80, - 93 - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab0
----
-80
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE col0 <= + + col2 + - col2
----

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

query I rowsort
SELECT DISTINCT + col0 * + + 19 FROM tab0 AS cor0
----
1653
1843
285

query I rowsort
SELECT col1 / - - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

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

query I rowsort
SELECT + col1 + + 66 + - - 55 AS col2 FROM tab0 AS cor0
----
122
142
202

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

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL 87 * col2 / + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT DISTINCT - 78 DIV + - col1 AS col2 FROM tab0
----
0
3
78

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT - 78 / + - col1 AS col2 FROM tab0
----
0
3
78

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE + 69 IN ( - + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE + 69 IN ( - + 73 )
----
0

query I rowsort
SELECT DISTINCT 47 + - 25 AS col2 FROM tab0
----
22

query I rowsort
SELECT DISTINCT 66 * - 24 * - + 20 FROM tab1 AS cor0
----
31680

query I rowsort
SELECT - - 11 + - - col0 FROM tab0 AS cor0
----
108
26
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 23 col0 FROM tab2 AS cor0
----
1173
1541
1771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT ALL 6 * - 29 * - - col2 + col1 + 62 + + + ( + CAST( - col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-17260
-1744
-8050

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL 6 * - 29 * - - col2 + col1 + 62 + + + ( + CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-17260
-1744
-8050

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6938
SELECT - MIN ( col0 ) col2 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT DISTINCT - 89 - - col2 DIV - - col1 FROM tab0
----
-89
10

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT - 89 - - col2 / - - col1 FROM tab0
----
-89
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT DISTINCT MIN( DISTINCT - 88 ) AS col0 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT MIN ( DISTINCT - 88 ) AS col0 FROM tab0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT DISTINCT + 1 DIV - 95 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + 1 / - 95 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + + col1 NOT BETWEEN col1 + + + col1 + col2 AND + col0
----

query I rowsort
SELECT ALL + col0 * + + col1 FROM tab1 AS cor0 WHERE - col2 = NULL
----

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 19 * 25 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6950
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 61 + - COUNT( * ) AS col0 FROM tab0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-6950
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 61 + - COUNT ( * ) AS col0 FROM tab0
----
NULL
58

query I rowsort
SELECT + col0 * 89 AS col1 FROM tab1
----
4539
7565
8099

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

query I rowsort
SELECT DISTINCT + 32 * + col0 FROM tab1 WHERE - - col2 * 11 = NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT ALL - 17 DIV - col0 * + ( + col0 ) col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6955
SELECT ALL - 17 / - col0 * + ( + col0 ) col2 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT DISTINCT MAX( + 46 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT MAX ( + 46 ) FROM tab0
----
46

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

skipif mysql # not compatible
query II rowsort label-6958
SELECT DISTINCT COUNT ( * ), + COUNT ( ALL - + col0 ) AS col1 FROM tab2
----
3
3

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

query II rowsort
SELECT DISTINCT col2, + 70 * + col0 FROM tab0 AS cor0
----
10
6090
47
1050
99
6790

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6967
SELECT DISTINCT - 19 DIV 86 - col1 col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6967
SELECT DISTINCT - 19 / 86 - col1 col2 FROM tab0
----
-1
-21
-81

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

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

query I rowsort
SELECT ALL - 99 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT col0 DIV + - col0 col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6970
SELECT col0 / + - col0 col2 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * - col0 col0 FROM tab2
----
-2346
-3264
-3825

query I rowsort
SELECT - - 63 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 / - col0 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col2 FROM tab1 cor0
----
51
96
85
59
91
68

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

query I rowsort
SELECT ALL - 61 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-61
-61
-61

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

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

skipif mysql # not compatible
query I rowsort label-6980
SELECT - MAX ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + 3 * 2 AS col2 FROM tab1
----
6
6
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT DISTINCT SUM( ALL + 65 ) * COUNT( * ) FROM tab1
----
585

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT SUM ( ALL + 65 ) * COUNT ( * ) FROM tab1
----
585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6984
SELECT MIN( + col1 ) / CAST( NULL AS SIGNED ) + 45 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT MIN ( + col1 ) / CAST ( NULL AS INTEGER ) + 45 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + col1 col1, ( + 77 ) AS col2 FROM tab2
----
2346
77
4928
77
5025
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT DISTINCT MIN( ALL 41 ) - 29 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT MIN ( ALL 41 ) - 29 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12

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

query III rowsort
SELECT * FROM tab0 WHERE - - col0 BETWEEN - 80 AND NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6991
SELECT + CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) FROM tab2 AS cor0 WHERE col0 + col2 - + col1 * + col2 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6991
SELECT + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 + col2 - + col1 * + col2 IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT COUNT( * ) AS col2, 95 FROM tab1
----
3
95

skipif mysql # not compatible
query II rowsort label-6992
SELECT COUNT ( * ) AS col2, 95 FROM tab1
----
3
95

onlyif mysql # aggregate syntax: 
query III rowsort label-6993
SELECT ALL - 53 AS col0, - COUNT( * ) AS col1, - + COUNT( * ) FROM tab2
----
-53
-3
-3

skipif mysql # not compatible
query III rowsort label-6993
SELECT ALL - 53 AS col0, - COUNT ( * ) AS col1, - + COUNT ( * ) FROM tab2
----
-53
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT MAX( - col1 ) + + 45 AS col1 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT MAX ( - col1 ) + + 45 AS col1 FROM tab0
----
44

query I rowsort
SELECT - ( - - col1 ) - - - 91 * + + col0 AS col0 FROM tab0
----
-1446
-7938
-8828

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

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

query I rowsort
SELECT 12 - + + col1 AS col0 FROM tab1
----
-2
-35
7

query I rowsort
SELECT - 75 - - 42 AS col0 FROM tab2
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT 21 * 64 + - + CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6999
SELECT 21 * 64 + - + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7001
SELECT ALL - - col0 AS col0, - col0 * + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7001
SELECT ALL - - col0 AS col0, - col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT col0 * - - col0 * + col0, + col2 * - - 63 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 94 + + 83 * - col0 FROM tab0 AS cor0
----
-1151
-7127
-7957

query I rowsort
SELECT - 97 * 23 * + col2 FROM tab2 AS cor0
----
-129398
-51313
-89240

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col2 FROM tab1 cor0 WHERE ( NULL ) BETWEEN + 27 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN - 95 AND + + 62
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - + 52 + + + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7008
SELECT - + 52 + + + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

query I rowsort
SELECT 99 AS col1 FROM tab1 WHERE NOT - 26 * - col2 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - - 86 AS col0 FROM tab0 WHERE + col0 * - - 11 * + col0 * - 82 IS NOT NULL
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 col0, - 44 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
41
-44
41
-44
41
-44

query I rowsort
SELECT ALL - 34 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-34
-34
-34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7014
SELECT - MAX( - col1 ) AS col2, - SUM( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-7014
SELECT - MAX ( - col1 ) AS col2, - SUM ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
51
NULL

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

query I rowsort
SELECT ALL - col1 * 38 AS col2 FROM tab0
----
-3078
-38
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT DISTINCT 66 + MIN( 6 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT 66 + MIN ( 6 ) FROM tab2
----
72

query I rowsort
SELECT - - col0 + - col0 FROM tab2 WHERE NULL <= + ( + 16 ) OR NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + - - col0 + - - col2 + col2 * - col2 FROM tab0 AS cor0
----
-2228
-24
-9606

query I rowsort
SELECT 8 + 16 + - - col2 * + 9 AS col2 FROM tab2 cor0
----
231
384
546

query II rowsort
SELECT ALL + 78 AS col2, - col0 * 80 AS col0 FROM tab1 AS cor0
----
78
-4080
78
-6800
78
-7280

query II rowsort
SELECT DISTINCT col0, col1 + 28 AS col1 FROM tab0 cor0
----
15
109
87
49
97
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT 40 * - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-360

skipif mysql # not compatible
query I rowsort label-7024
SELECT 40 * - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-360

query I rowsort
SELECT - 18 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 <= NULL
----

query I rowsort
SELECT - 29 - - col0 + + + col1 FROM tab1 AS cor0
----
109
36
61

query I rowsort
SELECT ( + 20 ) + + col2 FROM tab2 AS cor0
----
43
60
78

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col1 FROM tab0 WHERE + 73 IS NULL
----

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

query II rowsort
SELECT DISTINCT - col1 / - col0, + 60 FROM tab1 cor0 WHERE NULL BETWEEN col2 AND + col2
----

query I rowsort
SELECT DISTINCT col1 * - 79 - + - 47 FROM tab1 AS cor0
----
-1059
-348
-3666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * - ( - 50 ) + 8 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4873ae30beee5871d36266b7818ade6a

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT COUNT( col0 ) * 60 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-7037
SELECT COUNT ( col0 ) * 60 FROM tab1
----
180

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 66 / + + col0 < - ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 * + col0 * - col1 * - - col0 * + col1 FROM tab0 AS cor0
----
1
-931491
21
-33379290
81
-69382575

query I rowsort
SELECT DISTINCT col1 * 2 + - col0 AS col0 FROM tab2 AS cor0
----
56
59
90

query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query II rowsort
SELECT col1, - 16 AS col1 FROM tab0 AS cor0
----
1
-16
21
-16
81
-16

query I rowsort
SELECT ALL ( + col1 ) * 69 AS col2 FROM tab2
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + + SUM( ALL col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT + + SUM ( ALL col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - col0 AND + + 58 / + col2 * + col2 - ( - col2 )
----

query I rowsort
SELECT DISTINCT - col1 + - + col1 + + 56 * - - col0 * 97 FROM tab0
----
472542
526902
81318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7047
SELECT ALL + 90 * + 39 * + + COUNT( - - CAST( + 80 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL + 90 * + 39 * + + COUNT ( - - CAST ( + 80 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7048
SELECT ALL - MAX( + CAST( 14 AS SIGNED ) ) col2, COUNT( * ) FROM tab1 AS cor0
----
-14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7048
SELECT ALL - MAX ( + CAST ( 14 AS INTEGER ) ) col2, COUNT ( * ) FROM tab1 AS cor0
----
-14
3

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT IN ( - 30, 25 + - col1, + col0 - - - 32, + col2 + + col1 * 31 / ( + + col1 ) * - col1 * + 85 * + ( + col0 ) * 1, - 59, 29, col0 / - 19 * - col1, + 38 * + col2 * - - 46 + - 48, + col0, + - ( col0 ), col1 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7050
SELECT 56 + - CAST( + - 95 AS SIGNED ) AS col1 FROM tab1
----
151
151
151

skipif mysql # not compatible
query I rowsort label-7050
SELECT 56 + - CAST ( + - 95 AS INTEGER ) AS col1 FROM tab1
----
151
151
151

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT DISTINCT 27 * + + COUNT( * ) AS col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT 27 * + + COUNT ( * ) AS col0 FROM tab0 cor0
----
81

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

query I rowsort
SELECT ALL + ( + 88 ) * - col2 AS col1 FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT COUNT( * ) AS col1, 72 FROM tab1 AS cor0
----
3
72

skipif mysql # not compatible
query II rowsort label-7055
SELECT COUNT ( * ) AS col1, 72 FROM tab1 AS cor0
----
3
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT + MAX( DISTINCT - 53 ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT + MAX ( DISTINCT - 53 ) FROM tab1 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT COUNT( * ) * + COUNT( * ) - - - 67 AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7057
SELECT COUNT ( * ) * + COUNT ( * ) - - - 67 AS col1 FROM tab2
----
-58

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

skipif mysql # not compatible
query I rowsort label-7058
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT col0 * - col1 - - + col2 DIV - + col1 * 98 + col2 * - col0 col2 FROM tab2
----
-3404
-7488
-9375

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7059
SELECT col0 * - col1 - - + col2 / - + col1 * 98 + col2 * - col0 col2 FROM tab2
----
-3404
-7488
-9375

query I rowsort
SELECT + 41 AS col2 FROM tab2 WHERE NOT - col1 + - col1 >= + 1
----
41
41
41

query I rowsort
SELECT col0 + - col0 + - col0 * + col2 / - col1 / - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 84 + - col2 <> 24 + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT MIN( ALL + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-7062
SELECT MIN ( ALL + col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT + + 13 * col2 AS col0 FROM tab2 AS cor0
----
299
520
754

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

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

query I rowsort
SELECT + + 0 AS col1 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT MIN( DISTINCT 59 ) * 0 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7067
SELECT MIN ( DISTINCT 59 ) * 0 col0 FROM tab2 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7069
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / + + 89 BETWEEN + col2 - + - col0 AND - 79
----

skipif mysql # not compatible
query III rowsort label-7069
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / + + 89 BETWEEN + col2 - + - col0 AND - 79
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT 26, + MIN( - 58 ) + - + 89 AS col0 FROM tab2
----
26
-147

skipif mysql # not compatible
query II rowsort label-7070
SELECT 26, + MIN ( - 58 ) + - + 89 AS col0 FROM tab2
----
26
-147

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

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT + 4 + - COUNT ( * ) FROM tab2
----
1

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

query I rowsort
SELECT DISTINCT - 78 + + col1 FROM tab1
----
-31
-64
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT DISTINCT SUM( - - col2 ) + + COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT SUM ( - - col2 ) + + COUNT ( * ) FROM tab0
----
159

query I rowsort
SELECT 49 + - 54 AS col2 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT col1 + - 86 * + - col0 AS col2 FROM tab2 AS cor0
----
4007
5581
6517

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT - 90 * + COUNT( * ) + + - COUNT( ALL + 86 ) FROM tab2 WHERE NULL IS NULL
----
-273

skipif mysql # not compatible
query I rowsort label-7078
SELECT - 90 * + COUNT ( * ) + + - COUNT ( ALL + 86 ) FROM tab2 WHERE NULL IS NULL
----
-273

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT - col1 FROM tab2 WHERE + 36 = - col1 * - 27 + + + CAST( col1 AS SIGNED ) / - 35 * + ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-7082
SELECT - col1 FROM tab2 WHERE + 36 = - col1 * - 27 + + + CAST ( col1 AS INTEGER ) / - 35 * + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7083
SELECT 18 - + - 96 AS col0, COUNT( * ) col0 FROM tab2
----
114
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7083
SELECT 18 - + - 96 AS col0, COUNT ( * ) col0 FROM tab2
----
114
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT - + 18 - - - MAX( col2 ) * COUNT( * ) * + 31 FROM tab1 AS cor0
----
-8946

skipif mysql # not compatible
query I rowsort label-7084
SELECT - + 18 - - - MAX ( col2 ) * COUNT ( * ) * + 31 FROM tab1 AS cor0
----
-8946

query I rowsort
SELECT ALL + col1 * + col2 - 63 AS col0 FROM tab0 AS cor0
----
147
36
3744

query I rowsort
SELECT 45 + col1 AS col2 FROM tab1 AS cor0
----
50
59
92

query I rowsort
SELECT DISTINCT 91 * - col0 * - col2 AS col1 FROM tab2 AS cor0
----
232960
395850
96278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT col2 * 20 + + 26 + + ( - col0 ) / + + col0 * col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 / + CAST( - 12 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7088
SELECT col2 * 20 + + 26 + + ( - col0 ) / + + col0 * col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 / + CAST ( - 12 AS INTEGER )
----

query I rowsort
SELECT - col1 + - col1 - + - 42 + + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
139
210
3687

query I rowsort
SELECT 60 + - 6 AS col0 FROM tab1 AS cor0
----
54
54
54

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7093
SELECT DISTINCT 53, CAST( - col1 AS SIGNED ) DIV - 82 * + col0 AS col2 FROM tab1
----
53
0

skipif mysql # not compatible
query II rowsort label-7093
SELECT DISTINCT 53, CAST ( - col1 AS INTEGER ) / - 82 * + col0 AS col2 FROM tab1
----
53
0

query II rowsort
SELECT + 9 AS col2, + col1 - - - col1 * - - col1 AS col1 FROM tab2
----
9
-2550
9
-4422
9
-5852

onlyif mysql # aggregate syntax: 
query II rowsort label-7095
SELECT 60 AS col1, - COUNT( * ) + 77 * + - 16 AS col2 FROM tab2
----
60
-1235

skipif mysql # not compatible
query II rowsort label-7095
SELECT 60 AS col1, - COUNT ( * ) + 77 * + - 16 AS col2 FROM tab2
----
60
-1235

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT - 22 col1, + SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
-22
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7096
SELECT - 22 col1, + SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
-22
103

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + - 78 IS NULL
----

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 * 27 ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 75 ) <> + col2 / col0
----

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

query I rowsort
SELECT DISTINCT + col2 * - 22 FROM tab2
----
-1276
-506
-880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL 81 - - col1 AS col1 FROM tab1 WHERE ( + col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 79 * col2 IS NULL
----

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

query I rowsort
SELECT - 24 AS col2 FROM tab2 WHERE NOT NULL IN ( - col1 / col0 - 7 * - col2 )
----

query I rowsort
SELECT ALL 82 * + col2 FROM tab0
----
3854
8118
820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT - COUNT( * ) * 81 FROM tab0 WHERE NULL IS NULL
----
-243

skipif mysql # not compatible
query I rowsort label-7114
SELECT - COUNT ( * ) * 81 FROM tab0 WHERE NULL IS NULL
----
-243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7115
SELECT ALL COUNT( * ) + - COUNT( col0 ) FROM tab1 WHERE NOT - col2 + + 0 > ( col2 ) + - CAST( NULL AS SIGNED ) * + 81
----
0

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL COUNT ( * ) + - COUNT ( col0 ) FROM tab1 WHERE NOT - col2 + + 0 > ( col2 ) + - CAST ( NULL AS INTEGER ) * + 81
----
0

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT col0 * col2 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col1 + + 65 AS col2 FROM tab1 AS cor0
----
112
70
79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7119
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + 10 * 59 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7119
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 10 * 59 IS NOT NULL
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7121
SELECT col0 DIV - 18 + - col1 FROM tab2 AS cor0
----
-53
-71
-80

skipif mysql # not compatible
query I rowsort label-7121
SELECT col0 / - 18 + - col1 FROM tab2 AS cor0
----
-53
-71
-80

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

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

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE 20 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) IN ( col0 * 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL + + COUNT( * ) - - 67 AS col2 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + + COUNT ( * ) - - 67 AS col2 FROM tab1 AS cor0
----
70

query I rowsort
SELECT ALL 52 - - col2 AS col2 FROM tab1 cor0
----
111
120
148

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 73 <= + 17
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7131
SELECT - CAST( - 9 AS SIGNED ) DIV + 87 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7131
SELECT - CAST ( - 9 AS INTEGER ) / + 87 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT - 92 * 95 AS col0 FROM tab0 AS cor0
----
-8740
-8740
-8740

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE ( + col0 ) NOT IN ( col2 + - ( + col0 ) )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 51 col2 FROM tab1 AS cor0
----
2601
4335
4641

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT SUM( - 38 ) FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-7137
SELECT SUM ( - 38 ) FROM tab1 AS cor0
----
-114

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NOT col0 <> col0
----
59
68
96

query I rowsort
SELECT col2 * 72 * 24 AS col2 FROM tab2
----
100224
39744
69120

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 * col1 col1 FROM tab2
----
-1428
-1876
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT + SUM( 50 ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-7143
SELECT + SUM ( 50 ) FROM tab1
----
150

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

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( - col2 ) >= col1
----
-51
-85
-91

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

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

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL - COUNT ( * ) / - 21 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL + - SUM( DISTINCT + + 59 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL + - SUM ( DISTINCT + + 59 ) AS col1 FROM tab1 AS cor0
----
-59

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

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

query I rowsort
SELECT - 11 FROM tab0 WHERE NOT ( + ( + 8 ) ) <> ( col1 + + col2 / - col1 )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > ( NULL )
----

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

query I rowsort
SELECT DISTINCT + 91 * - col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 58 col2, - col0 * - ( - col2 ) col1 FROM tab0
----
58
-705
58
-870
58
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT + COUNT( ALL + 16 ) * + 89 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
801

skipif mysql # not compatible
query I rowsort label-7155
SELECT + COUNT ( ALL + 16 ) * + 89 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
801

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT DISTINCT - + 51, COUNT( * ) col2 FROM tab1 AS cor0
----
-51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7156
SELECT DISTINCT - + 51, COUNT ( * ) col2 FROM tab1 AS cor0
----
-51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( + col2 ) * 12 IN ( - col0 + 37 )
----
3

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( + col2 ) * 12 IN ( - col0 + 37 )
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT + + 69 * MAX( ALL + + 93 ) FROM tab0 AS cor0
----
6417

skipif mysql # not compatible
query I rowsort label-7161
SELECT + + 69 * MAX ( ALL + + 93 ) FROM tab0 AS cor0
----
6417

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7162
SELECT - 43 * CAST( NULL AS DECIMAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7162
SELECT - 43 * CAST ( NULL AS REAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT ( + ( - col0 ) ) DIV + 78 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7163
SELECT ( + ( - col0 ) ) / + 78 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 97 * - - col0 <> col0 / col0
----

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

query I rowsort
SELECT - col2 * 36 + + - 81 + - col1 FROM tab1
----
-2210
-2576
-3551

query I rowsort
SELECT DISTINCT + col2 + + col1 * col1 AS col0 FROM tab1
----
2277
292
84

query III rowsort
SELECT * FROM tab1 WHERE + 49 - - 20 + col1 < col0
----
85
5
59

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - 95 / col1 + col2 * col0 IS NULL
----

query I rowsort
SELECT col1 * + col1 + - 5 AS col2 FROM tab0
----
-4
436
6556

query I rowsort
SELECT DISTINCT - 78 + - col2 FROM tab2 AS cor0
----
-101
-118
-136

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

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

query I rowsort
SELECT - 41 AS col1 FROM tab1 AS cor0 WHERE ( NOT + + ( ( + col1 ) ) IN ( + 13 ) )
----
-41
-41
-41

query I rowsort
SELECT ALL 90 - col2 AS col1 FROM tab0 AS cor0
----
-9
43
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7177
SELECT DISTINCT * FROM tab0 WHERE ( CAST( + - 14 AS DECIMAL ) + + col0 * - 51 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7177
SELECT DISTINCT * FROM tab0 WHERE ( CAST ( + - 14 AS REAL ) + + col0 * - 51 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL + col1 * 33 AS col2 FROM tab0 AS cor0
----
2673
33
693

query I rowsort
SELECT 18 * + + col2 AS col0 FROM tab0 AS cor0
----
1782
180
846

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7181
SELECT DISTINCT - col0, CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7181
SELECT DISTINCT - col0, CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT - COUNT( * ) * + 7 FROM tab0 cor0
----
-21

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + 88 = ( NULL ) )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT - 46 + + 2 + + col2 * - + 72 NOT BETWEEN NULL AND ( + 13 + + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 59 * + + 11 * + col1 <= - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 38 AS col2, col1 AS col0 FROM tab2
----
-38
51
-38
67
-38
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7188
SELECT + CAST( - col1 AS SIGNED ) DIV - + col0 AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7188
SELECT + CAST ( - col1 AS INTEGER ) / - + col0 AS col0 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT COUNT( * ) * 95 AS col2 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-7189
SELECT COUNT ( * ) * 95 AS col2 FROM tab2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT ALL MAX( - col1 ) * - 83 FROM tab2
----
4233

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL MAX ( - col1 ) * - 83 FROM tab2
----
4233

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( - - col2 ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL - COUNT( * ) * - COUNT( + col2 ) col1 FROM tab1
----
9

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7193
SELECT ALL CAST( NULL AS DECIMAL ) * - 93 * + + col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL CAST ( NULL AS REAL ) * - 93 * + + col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT col2 + + ( col2 ) AS col0 FROM tab1
----
118
136
192

query I rowsort
SELECT 91 * + col0 FROM tab0
----
1365
7917
8827

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - 72 - - ( 23 ) AND NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7201
SELECT ALL COUNT ( * ) col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

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

query I rowsort
SELECT ALL - - 75 * - + 32 AS col2 FROM tab2 AS cor0
----
-2400
-2400
-2400

query I rowsort
SELECT + - col2 * + + 6 * col0 AS col0 FROM tab1 AS cor0
----
-29376
-30090
-37128

query I rowsort
SELECT col1 * col1 AS col2 FROM tab0 cor0 WHERE col2 BETWEEN - - ( - 14 ) AND ( + col0 )
----
441

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT - 13 DIV + - col1 FROM tab0 AS cor0
----
0
0
13

skipif mysql # not compatible
query I rowsort label-7206
SELECT - 13 / + - col1 FROM tab0 AS cor0
----
0
0
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT ALL - + CAST( - + col1 AS SIGNED ) * - - 9 AS col0 FROM tab2 AS cor0
----
459
603
693

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - + CAST ( - + col1 AS INTEGER ) * - - 9 AS col0 FROM tab2 AS cor0
----
459
603
693

query II rowsort
SELECT col0, 59 - + col0 AS col0 FROM tab0
----
15
44
87
-28
97
-38

query I rowsort
SELECT ALL - col2 + + col2 * + col2 * - col1 FROM tab2
----
-123240
-225446
-27002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT col2 AS col0 FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN 64 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7210
SELECT col2 AS col0 FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN 64 AND ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL 29 + COUNT( ALL - 51 ) AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL 29 + COUNT ( ALL - 51 ) AS col1 FROM tab2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 WHERE 78 + + ( - 47 ) + col0 - + 68 IN ( - - 78 )
----

skipif mysql # not compatible
query I rowsort label-7213
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE 78 + + ( - 47 ) + col0 - + 68 IN ( - - 78 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 * - + col0 - col1 + - col2 col1 FROM tab0
----
1147
7364
8145

query I rowsort
SELECT DISTINCT - + 99 FROM tab0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT - col1 + - + ( - 13 ) AS col0 FROM tab1 AS cor0
----
-1
-34
8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + 69 col0 FROM tab1 AS cor0
----
154
154
154

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7219
SELECT CAST( NULL AS DECIMAL ) + - - 62 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT CAST ( NULL AS REAL ) + - - 62 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7220
SELECT ALL - ( + MAX( col2 ) ) * - - COUNT( * ), MIN( - col2 ) * 54 AS col1 FROM tab0 WHERE NULL <= - - col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7220
SELECT ALL - ( + MAX ( col2 ) ) * - - COUNT ( * ), MIN ( - col2 ) * 54 AS col1 FROM tab0 WHERE NULL <= - - col0
----
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col1 col1 FROM tab1 AS cor0
----
425
4277
714

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT + col0 + + 24 - + col1 - + col2 + + - 47 + + col2 * - - CAST( NULL AS SIGNED ) * 36 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= + col2
----

skipif mysql # not compatible
query I rowsort label-7224
SELECT + col0 + + 24 - + col1 - + col2 + + - 47 + + col2 * - - CAST ( NULL AS INTEGER ) * 36 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= + col2
----

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

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

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

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

query I rowsort
SELECT ALL ( - - col0 ) * - 39 + 40 * - col0 FROM tab0
----
-1185
-6873
-7663

query I rowsort
SELECT ALL + ( + 11 ) * col0 + + ( + ( - 51 ) ) * - col2 * - col1 * + col2 - - col2 FROM tab2
----
-11493905
-1375400
-6282456

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - ( - col0 ) * + col1 >= + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * col1 col1 FROM tab2
----
102
134
154

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + 72 <= NULL
----

query I rowsort
SELECT - col0 - col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-144
-147
-159

query I rowsort
SELECT ALL ( + + 18 ) FROM tab2 WHERE NOT + col1 <= col1
----

query I rowsort
SELECT ALL ( + - 9 ) AS col0 FROM tab1
----
-9
-9
-9

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

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

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

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

query I rowsort
SELECT - ( - + 16 ) FROM tab0 cor0 WHERE NOT - col0 * - col1 / + col2 NOT IN ( 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT - 94 * COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 + - + 83 NOT BETWEEN NULL AND - - col1 / - 16 - + col1 + + + col0 / col1 + col0
----
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT - 94 * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 + - + 83 NOT BETWEEN NULL AND - - col1 / - 16 - + col1 + + + col0 / col1 + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 16 * col0 * 55 col1 FROM tab2
----
40531
56397
66067

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7242
SELECT - 21 AS col2, - col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-21
NULL
-21
NULL
-21
NULL

skipif mysql # not compatible
query II rowsort label-7242
SELECT - 21 AS col2, - col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-21
NULL
-21
NULL
-21
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 56 * + col0 >= ( + 31 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7245
SELECT DISTINCT + + col2 * CAST( NULL AS SIGNED ), - ( - col0 ) AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7245
SELECT DISTINCT + + col2 * CAST ( NULL AS INTEGER ), - ( - col0 ) AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT + - col2 + - col2 AS col0 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7247
SELECT - MAX( - 14 ) + + + CAST( - 86 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7247
SELECT - MAX ( - 14 ) + + + CAST ( - 86 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-72

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7248
SELECT ALL - col2 / 60 col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 67 ) NOT IN ( 60, - col2 + - 47 * + col2 * + col2 + - col1, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL - MAX( ALL col1 ) FROM tab0 WHERE + - col0 * col2 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL - MAX ( ALL col1 ) FROM tab0 WHERE + - col0 * col2 < ( NULL )
----
NULL

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

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

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

query I rowsort
SELECT ALL + - col2 - - 19 FROM tab1 AS cor0
----
-40
-49
-77

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

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

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

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

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT - col1 IN ( + ( - col0 ) + - ( 10 ) - - 92 - - + col2 )
----
1
21
81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT ALL - MIN( - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL - MIN ( - col2 ) FROM tab2
----
58

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

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

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

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

query I rowsort
SELECT col1 * + 60 * - - 70 + - 48 + + col1 FROM tab2 AS cor0 WHERE NOT + col0 * col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col1 ) >= ( - 41 )
----

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

query I rowsort
SELECT - ( + 8 ) AS col1 FROM tab0
----
-8
-8
-8

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7267
SELECT 53 * CAST( NULL AS SIGNED ) AS col2, 5 FROM tab0
----
NULL
5
NULL
5
NULL
5

skipif mysql # not compatible
query II rowsort label-7267
SELECT 53 * CAST ( NULL AS INTEGER ) AS col2, 5 FROM tab0
----
NULL
5
NULL
5
NULL
5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7269
SELECT ALL + - COUNT( * ) * COUNT( * ) col0 FROM tab1 WHERE NOT + col0 DIV - col2 IN ( - ( + 58 ) + col2 * - col2, 73 DIV - col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7269
SELECT ALL + - COUNT ( * ) * COUNT ( * ) col0 FROM tab1 WHERE NOT + col0 / - col2 IN ( - ( + 58 ) + col2 * - col2, 73 / - col2 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 67 > col1
----
15
81
47

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

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

query I rowsort
SELECT DISTINCT - col0 * - col0 + + 59 FROM tab1 AS cor0 WHERE - ( - - col2 ) * 85 > col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT DISTINCT 64 + - COUNT( * ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT 64 + - COUNT ( * ) AS col0 FROM tab2
----
61

query II rowsort
SELECT ALL 51 AS col1, 54 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT - - 30 < + 25 )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT + + 8 + + + 7 AS col0 FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col2 - + - col2 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * 69 IN ( + - 88 + 77 / + - col0, - col1, - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL + 57 * col0 FROM tab0 cor0
----
4959
5529
855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + col0 * - col1 col2 FROM tab2 AS cor0
----
-10857
-4947
-9514

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT ALL + ( - + col2 ) DIV - col1 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL + ( - + col2 ) / - col1 FROM tab1 cor0
----
1
11
6

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

query II rowsort
SELECT - 27 AS col2, - 13 AS col1 FROM tab0
----
-27
-13
-27
-13
-27
-13

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

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

query I rowsort
SELECT 36 - + 37 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT - col1 AS col1 FROM tab0 WHERE NULL <> + CAST( NULL AS SIGNED ) + - col0 - - + col2
----

skipif mysql # not compatible
query I rowsort label-7292
SELECT - col1 AS col1 FROM tab0 WHERE NULL <> + CAST ( NULL AS INTEGER ) + - col0 - - + col2
----

query I rowsort
SELECT 85 - - col2 AS col1 FROM tab0
----
132
184
95

query I rowsort
SELECT DISTINCT col0 - col0 + + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 92 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT ALL + - col2 DIV + + ( + - 6 ) AS col2 FROM tab2 AS cor0
----
3
6
9

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + - col2 / + + ( + - 6 ) AS col2 FROM tab2 AS cor0
----
3
6
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7300
SELECT ALL + col0 DIV - 95 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL + col0 / - 95 FROM tab0
----
-1
0
0

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

query II rowsort
SELECT + ( col0 ), 74 FROM tab0 AS cor0
----
15
74
87
74
97
74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7304
SELECT + + ( + CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7304
SELECT + + ( + CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15
-87
-97

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

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

query II rowsort
SELECT + col0 AS col0, - 52 AS col2 FROM tab2
----
46
-52
64
-52
75
-52

query I rowsort
SELECT DISTINCT - col2 + + 37 FROM tab1
----
-22
-31
-59

query I rowsort
SELECT DISTINCT + col1 * + 92 AS col0 FROM tab1
----
1288
4324
460

query I rowsort
SELECT ALL - 62 * col2 + + ( + - 20 ) AS col1 FROM tab1 WHERE NOT ( NOT col0 * + col1 IS NOT NULL )
----
-3678
-4236
-5972

query I rowsort
SELECT + col0 * + - col1 + + - 17 - - - col0 AS col1 FROM tab0 AS cor0
----
-1247
-1931
-211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * - + 86 + - 92, + col2 col2 FROM tab2 AS cor0
----
-4048
23
-5596
40
-6542
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7313
SELECT 4, + 17 - + MAX( - 90 ) col0 FROM tab1 AS cor0
----
4
107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7313
SELECT 4, + 17 - + MAX ( - 90 ) col0 FROM tab1 AS cor0
----
4
107

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7317
SELECT ALL + AVG ( DISTINCT col1 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL + AVG ( DISTINCT col1 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 3 = - - 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - col1 + - col1 + + - col2 FROM tab0 AS cor0
----
-101
-209
-52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7322
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * col2 * - col2 NOT BETWEEN 99 * + ( - col1 ) - - + CAST( NULL AS SIGNED ) - - col2 AND col1
----

skipif mysql # not compatible
query III rowsort label-7322
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * col2 * - col2 NOT BETWEEN 99 * + ( - col1 ) - - + CAST ( NULL AS INTEGER ) - - col2 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT + 35 + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
102
112
86

skipif mysql # not compatible
query I rowsort label-7323
SELECT + 35 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
102
112
86

query I rowsort
SELECT DISTINCT 40 - - 96 AS col0 FROM tab0 AS cor0
----
136

query I rowsort
SELECT - col2 + + col1 + + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
1086
2597
4359

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT MAX( col1 ) + + + MAX( DISTINCT - - col1 ) * + 69 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
5673

skipif mysql # not compatible
query I rowsort label-7326
SELECT MAX ( col1 ) + + + MAX ( DISTINCT - - col1 ) * + 69 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5673

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

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

query I rowsort
SELECT - 32 FROM tab0 WHERE NULL < col0
----

query I rowsort
SELECT ALL + col0 * - ( col0 ) FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7331
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + COUNT( * ) / MAX( col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) / MAX ( col0 ) AS col2 FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - 16 <= NULL
----

query II rowsort
SELECT - 99 + 73 * - col0, - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 <= + col1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + + col1 * + + 13 col2 FROM tab0 AS cor0
----
12
252
972

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

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

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

query I rowsort
SELECT ALL col0 + - ( - - 38 ) AS col0 FROM tab2
----
26
37
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 37 BETWEEN col1 AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 >= + 43 + - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT + col2 + + 93 * - col0 FROM tab1
----
-4647
-7846
-8395

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT DISTINCT - ( + col2 ) + 77 DIV 4 + col1 FROM tab0
----
-79
30
53

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - ( + col2 ) + 77 / 4 + col1 FROM tab0
----
-79
30
53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND + 29
----

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

skipif mysql # not compatible
query I rowsort label-7347
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) / 23 + - AVG ( DISTINCT + col0 ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7348
SELECT DISTINCT col0 DIV - col2, + 31 DIV + - 54 AS col0 FROM tab2
----
-1
0
-2
0

skipif mysql # not compatible
query II rowsort label-7348
SELECT DISTINCT col0 / - col2, + 31 / + - 54 AS col0 FROM tab2
----
-1
0
-2
0

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

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

query II rowsort
SELECT - - col1 + ( - col2 ) AS col2, ( ( + col1 ) ) FROM tab0 AS cor0
----
-98
1
11
21
34
81

query II rowsort
SELECT - 23 + + 3 * col0, - 11 AS col0 FROM tab2
----
115
-11
169
-11
202
-11

query I rowsort
SELECT col0 + - col0 + - col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + + 72 * col1 + + col0 FROM tab0 AS cor0
----
1599
169
5847

query I rowsort
SELECT DISTINCT + col0 - - ( - col1 ) AS col0 FROM tab2 cor0
----
-13
-5
8

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

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

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

query II rowsort
SELECT ALL - col0 AS col1, + col0 * - - col0 AS col0 FROM tab2 AS cor0
----
-46
2116
-64
4096
-75
5625

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

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT - + COUNT ( * ) + + + 28 AS col1 FROM tab2 AS cor0
----
25

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

query I rowsort
SELECT DISTINCT col0 * + 71 AS col2 FROM tab1
----
3621
6035
6461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + - col0 AS col2, col2 col0 FROM tab0
----
-1215
47
-1827
10
-97
99

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7365
SELECT - + 16 * - 34 - col0 AS col0 FROM tab0 WHERE NOT - - col1 + + + col1 + - col0 + + col0 * + CAST( NULL AS SIGNED ) / - col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7365
SELECT - + 16 * - 34 - col0 AS col0 FROM tab0 WHERE NOT - - col1 + + + col1 + - col0 + + col0 * + CAST ( NULL AS INTEGER ) / - col2 BETWEEN NULL AND NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + + 29 AS col2 FROM tab1 AS cor0
----
29

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 35 + 99 AS col1 FROM tab2 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, + ( - 47 ) AS col2 FROM tab1
----
59
-47
68
-47
96
-47

query I rowsort
SELECT DISTINCT col2 + col2 + + col0 FROM tab0
----
107
109
295

onlyif mysql # aggregate syntax: 
query II rowsort label-7376
SELECT DISTINCT COUNT( * ) + + ( ( - - 73 ) ) AS col0, 1 AS col0 FROM tab2
----
76
1

skipif mysql # not compatible
query II rowsort label-7376
SELECT DISTINCT COUNT ( * ) + + ( ( - - 73 ) ) AS col0, 1 AS col0 FROM tab2
----
76
1

query I rowsort
SELECT ALL - col0 * + + col0 + + 41 AS col1 FROM tab1
----
-2560
-7184
-8240

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

query I rowsort
SELECT col0 * - 34 + + + 27 AS col2 FROM tab1
----
-1707
-2863
-3067

query II rowsort
SELECT + - 45 AS col1, + ( - col2 ) FROM tab1 AS cor0
----
-45
-59
-45
-68
-45
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT + - MIN( - col0 ) * + 38 FROM tab2 AS cor0
----
2850

skipif mysql # not compatible
query I rowsort label-7382
SELECT + - MIN ( - col0 ) * + 38 FROM tab2 AS cor0
----
2850

query II rowsort
SELECT + 8 AS col1, 45 FROM tab1 WHERE + 10 NOT BETWEEN NULL AND + + 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7384
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + 9, + CAST( NULL AS SIGNED ), + col2 * - - col2 * - + col0 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-7384
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + 9, + CAST ( NULL AS INTEGER ), + col2 * - - col2 * - + col0 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT + col2 * 57 DIV - 26 + - col2 AS col2 FROM tab0 cor0
----
-150
-31
-316

skipif mysql # not compatible
query I rowsort label-7385
SELECT + col2 * 57 / - 26 + - col2 AS col2 FROM tab0 cor0
----
-150
-31
-316

query I rowsort
SELECT + + col1 + + ( - - 82 ) + + ( - col0 ) FROM tab1 AS cor0
----
2
38
45

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7388
SELECT - COUNT( * ) DIV - + 90 + MAX( DISTINCT 54 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7388
SELECT - COUNT ( * ) / - + 90 + MAX ( DISTINCT 54 ) FROM tab2 AS cor0
----
54

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( + col2 ) * col1 - 71 IN ( 55 )
----
0

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( + col2 ) * col1 - 71 IN ( 55 )
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7398
SELECT - CAST ( NULL AS INTEGER ) + + col2 col2, - ( + col0 ) AS col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT ALL - 17 FROM tab2 AS cor0 WHERE NOT - col1 <= - + col0 + + 4
----
-17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT - col1 AS col1 FROM tab1 cor0 WHERE 9 >= + 68 + - + CAST( NULL AS SIGNED ) * - col2 * ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-7401
SELECT - col1 AS col1 FROM tab1 cor0 WHERE 9 >= + 68 + - + CAST ( NULL AS INTEGER ) * - col2 * ( + col2 )
----

query I rowsort
SELECT - - 59 + - 84 AS col2 FROM tab0 AS cor0 WHERE col2 <> + + col2
----

query I rowsort
SELECT ALL + 18 * col1 * - 53 * - + 59 + - col1 AS col2 FROM tab1
----
2645395
281425
787990

query I rowsort
SELECT DISTINCT + col1 + - + col0 + + - col0 FROM tab2
----
-41
-51
-83

query I rowsort
SELECT col1 + + ( + 7 ) + + col1 * - 42 * - col2 FROM tab0 cor0
----
159982
4166
8848

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT COUNT( * ) * - - 92 AS col0 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-7406
SELECT COUNT ( * ) * - - 92 AS col0 FROM tab1
----
276

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT DISTINCT MAX( ALL - - col2 ) * + 41 FROM tab2 cor0
----
2378

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT MAX ( ALL - - col2 ) * + 41 FROM tab2 cor0
----
2378

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - col1 * 53 + + col0 AS col1 FROM tab0 AS cor0
----
-1026
-4278
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - 7 + - + MAX( - 28 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT - 7 + - + MAX ( - 28 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL BETWEEN NULL AND NULL )
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 AS col1, col1 + - ( 21 ) + - - col2 col0 FROM tab1 AS cor0
----
-51
89
-85
43
-91
94

query I rowsort
SELECT - 64 * + - col1 * - col1 AS col2 FROM tab1
----
-12544
-141376
-1600

query I rowsort
SELECT - col0 + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL - - COUNT( * ) * - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-9

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

skipif mysql # not compatible
query I rowsort label-7422
SELECT COUNT ( 63 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT col0 * - + 7 AS col1 FROM tab2
----
-322
-448
-525

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 WHERE NOT - 39 > + + 38
----
1
21
81

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

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

query II rowsort
SELECT + + ( - col2 ) AS col0, 68 AS col0 FROM tab0 AS cor0
----
-10
68
-47
68
-99
68

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 20 IS NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7432
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 70 * 82 * + 92 col0 FROM tab2 AS cor0
----
-528080
-528080
-528080

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7434
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * 9 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - 50 + - SUM( - col0 ) * COUNT( * ) FROM tab0 AS cor0
----
547

skipif mysql # not compatible
query I rowsort label-7438
SELECT - 50 + - SUM ( - col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
547

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

query I rowsort
SELECT ALL - col0 + - - col1 + col1 AS col0 FROM tab0
----
-45
-95
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 32 col1 FROM tab2
----
109
83
99

query I rowsort
SELECT ( - col1 ) + - col2 AS col2 FROM tab1
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT col1 DIV - col1 + + - col2 AS col2 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-7443
SELECT col1 / - col1 + + - col2 AS col2 FROM tab2
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT DISTINCT + 92 - - 87 - + - COUNT( DISTINCT col2 ) AS col1 FROM tab0
----
182

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + 92 - - 87 - + - COUNT ( DISTINCT col2 ) AS col1 FROM tab0
----
182

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( + - 55 )
----

query I rowsort
SELECT ALL 50 * - col2 + + col0 FROM tab0
----
-2335
-413
-4853

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL 8 - + MAX( col1 ) + - 58 FROM tab2
----
-127

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL 8 - + MAX ( col1 ) + - 58 FROM tab2
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-7448
SELECT 6 AS col0, - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----
6
0

skipif mysql # not compatible
query II rowsort label-7448
SELECT 6 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----
6
0

query I rowsort
SELECT + col2 * 69 + 71 * 27 FROM tab2 AS cor0
----
3504
4677
5919

query I rowsort
SELECT ALL - 62 FROM tab0 cor0 WHERE NOT col2 - col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7452
SELECT - 28 * COUNT( * ) DIV 58 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7452
SELECT - 28 * COUNT ( * ) / 58 FROM tab2
----
-1

query I rowsort
SELECT + 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7454
SELECT ALL COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT - col2 DIV + col0 * - 71 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT - col2 / + col0 * - 71 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + 64 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3008
320
896

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT - MIN( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-7457
SELECT - MIN ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT ( - ( COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT ( - ( COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7459
SELECT 31 * + + CAST( NULL AS SIGNED ) AS col1, - col2 * + col1 col1 FROM tab1
----
NULL
-1344
NULL
-295
NULL
-3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7459
SELECT 31 * + + CAST ( NULL AS INTEGER ) AS col1, - col2 * + col1 col1 FROM tab1
----
NULL
-1344
NULL
-295
NULL
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT col0 * - + col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT col0 * - + col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 79 * + col0 FROM tab2
----
3634
5056
5925

query III rowsort
SELECT * FROM tab0 WHERE NOT - 7 > - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT ALL 2 DIV - - ( - 70 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL 2 / - - ( - 70 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * + + 99 + - col1 AS col2 FROM tab1 cor0
----
5035
8410
8962

query I rowsort
SELECT + - ( - 39 ) FROM tab2 AS cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 33 AS col1, + col1 col2 FROM tab0 AS cor0
----
-33
1
-33
21
-33
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 68 AS col0 FROM tab2 cor0
----
68
68
68

query I rowsort
SELECT - 33 + + col1 + 91 AS col1 FROM tab0
----
139
59
79

query I rowsort
SELECT - col1 + - 2 AS col2 FROM tab2
----
-53
-69
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT ALL col1 * + + CAST( NULL AS SIGNED ) + 60 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL col1 * + + CAST ( NULL AS INTEGER ) + 60 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 2 FROM tab0
----
-19
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT + + 51 * COUNT( * ) AS col1 FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT + + 51 * COUNT ( * ) AS col1 FROM tab2 cor0
----
153

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 49 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7475
SELECT - SUM( DISTINCT + col0 ) AS col2, + ( + CAST( + - MIN( ALL + col0 ) AS SIGNED ) ) FROM tab1 cor0
----
-227
-51

skipif mysql # not compatible
query II rowsort label-7475
SELECT - SUM ( DISTINCT + col0 ) AS col2, + ( + CAST ( + - MIN ( ALL + col0 ) AS INTEGER ) ) FROM tab1 cor0
----
-227
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE col0 + - - 28 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7476
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE col0 + - - 28 IS NULL
----
0

query I rowsort
SELECT ALL + - 47 AS col1 FROM tab2 AS cor0
----
-47
-47
-47

query II rowsort
SELECT + + ( + - col0 ), - col0 AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT - col1 * ( + - 49 ) FROM tab1
----
2303
245
686

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7480
SELECT + col0 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7480
SELECT + col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT SUM( ALL col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7481
SELECT SUM ( ALL col1 ) FROM tab1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7482
SELECT + MIN( CAST( NULL AS SIGNED ) ) * - + 63, 31 col0 FROM tab1
----
NULL
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7482
SELECT + MIN ( CAST ( NULL AS INTEGER ) ) * - + 63, 31 col0 FROM tab1
----
NULL
31

query I rowsort
SELECT col0 - - - 47 AS col1 FROM tab1
----
38
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT COUNT( * ) + - - 12 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT COUNT ( * ) + - - 12 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7485
SELECT ALL - col2 AS col2, ( - 79 ) * - ( - 7 ) * - CAST( NULL AS SIGNED ) + - col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-7485
SELECT ALL - col2 AS col2, ( - 79 ) * - ( - 7 ) * - CAST ( NULL AS INTEGER ) + - col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN + col1 * col1 * - - col0 AND - 86
----

query I rowsort
SELECT col1 - + col0 + + 37 FROM tab1
----
-43
-7
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col1 FROM tab2 WHERE + 74 + + - col1 + - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT ALL - col1 * - + col0 * + + col2 * + col0 - - 6 * + 43 * - CAST( + + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
1584072
835677
931233

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL - col1 * - + col0 * + + col2 * + col0 - - 6 * + 43 * - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
1584072
835677
931233

query II rowsort
SELECT DISTINCT - col2 AS col0, 32 * + col0 AS col2 FROM tab1 cor0
----
-59
2720
-68
2912
-96
1632

query I rowsort
SELECT DISTINCT + col2 * + 20 AS col1 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL - col1 * + - 60 AS col2 FROM tab0
----
1260
4860
60

query I rowsort
SELECT DISTINCT - 52 * + 87 FROM tab2
----
-4524

query I rowsort
SELECT DISTINCT 85 * - col1 * - - ( col1 ) * + 12 * - col0 AS col1 FROM tab2
----
122038920
343408500
387045120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT DISTINCT - COUNT( + 16 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7496
SELECT DISTINCT - COUNT ( + 16 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7497
SELECT col1 DIV - - col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7497
SELECT col1 / - - col2 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT ( MIN( - col1 ) ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT ( MIN ( - col1 ) ) AS col0 FROM tab0 cor0
----
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 89 / + - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT - MAX( DISTINCT col2 ) * - COUNT( * ) * - + SUM( ALL - col2 ) AS col2 FROM tab1 cor0
----
64224

skipif mysql # not compatible
query I rowsort label-7500
SELECT - MAX ( DISTINCT col2 ) * - COUNT ( * ) * - + SUM ( ALL - col2 ) AS col2 FROM tab1 cor0
----
64224

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT - SUM( DISTINCT + + col2 ) * - + MIN( 85 ) * COUNT( * ) * SUM( ALL + + col2 ) * + - ( - + 69 ) AS col0 FROM tab0
----
428191920

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT - SUM ( DISTINCT + + col2 ) * - + MIN ( 85 ) * COUNT ( * ) * SUM ( ALL + + col2 ) * + - ( - + 69 ) AS col0 FROM tab0
----
428191920

query II rowsort
SELECT DISTINCT + col0 AS col1, 1 FROM tab0 WHERE + - 99 <= - col2
----
15
1
87
1
97
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 2 > - col0 - + + col0 * + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 < col1
----

query II rowsort
SELECT + col2 + col2 + + col0 AS col0, + 53 AS col0 FROM tab1
----
203
53
227
53
243
53

query III rowsort
SELECT DISTINCT - col1 * + 0 + col0 AS col1, 59, + + col0 + + + col1 AS col0 FROM tab0 cor0 WHERE NULL <= + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7507
SELECT DISTINCT col2 DIV - 30 + - col2 FROM tab2 AS cor0
----
-23
-41
-59

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT col2 / - 30 + - col2 FROM tab2 AS cor0
----
-23
-41
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT + + col2 DIV 4 AS col2 FROM tab2 AS cor0
----
10
14
5

skipif mysql # not compatible
query I rowsort label-7509
SELECT + + col2 / 4 AS col2 FROM tab2 AS cor0
----
10
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT + 85 - MAX( + col1 ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT + 85 - MAX ( + col1 ) FROM tab1 AS cor0
----
38

query I rowsort
SELECT ALL + ( + 53 ) AS col2 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT + col1 + - ( - 91 ) AS col1 FROM tab0 AS cor0
----
112
172
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 2 + + + ( 78 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 2 + + + ( 78 ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col1 * col2 * - + 1 + - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT DISTINCT col1 + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT col1 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT ALL 16 - - + col1 * + col0 AS col2 FROM tab2
----
2362
4944
5041

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + SUM( - col2 ) col2 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7517
SELECT + SUM ( - col2 ) col2 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT ALL CAST( NULL AS SIGNED ) * col1 + + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7519
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE NOT - - 24 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7519
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NOT - - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT ( + MAX( DISTINCT - col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT ( + MAX ( DISTINCT - col2 ) ) FROM tab0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7521
SELECT ALL CAST( COUNT( DISTINCT col2 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7521
SELECT ALL CAST ( COUNT ( DISTINCT col2 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7522
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col0 + - col1 + - col2 / col0 / ( + 77 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7522
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 + - col1 + - col2 / col0 / ( + 77 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7523
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 48 * + col0 - - - CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7523
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 48 * + col0 - - - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 24 AS col2 FROM tab0 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL - SUM( + col1 ) AS col0 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL - SUM ( + col1 ) AS col0 FROM tab1 cor0
----
-66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND + 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT + ( - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT + ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT 73 - - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7528
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT 73 - - + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 + - 36 FROM tab0
----
-15
-35
45

query I rowsort
SELECT + 86 * 24 AS col2 FROM tab2
----
2064
2064
2064

query I rowsort
SELECT - 35 * - col1 * + col1 FROM tab0
----
15435
229635
35

query II rowsort
SELECT DISTINCT - + col2 * + 44, - col1 AS col2 FROM tab2 AS cor0
----
-1012
-51
-1760
-77
-2552
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT COUNT( * ) + + - COUNT( * ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7533
SELECT COUNT ( * ) + + - COUNT ( * ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - 45 + - col1 FROM tab2 AS cor0
----
-22
-32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + SUM( + col0 ) AS col1 FROM tab1 WHERE ( NOT ( - 84 * + - col0 IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT + SUM ( + col0 ) AS col1 FROM tab1 WHERE ( NOT ( - 84 * + - col0 IS NOT NULL ) )
----
NULL

query I rowsort
SELECT ALL ( col0 ) + col1 + - 82 FROM tab1
----
-17
56
8

query II rowsort
SELECT + 92, + 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 72ea6f23a53413e3060cfa72d9726d69

query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL - MIN( DISTINCT 62 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7539
SELECT ALL - MIN ( DISTINCT 62 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT + col1 * CAST( NULL AS SIGNED ) + + + 91 * + ( 84 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT + col1 * CAST ( NULL AS INTEGER ) + + + 91 * + ( 84 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 - - + col0 + - col2 * - col0 FROM tab2 AS cor0
----
1150
2688
4500

query I rowsort
SELECT DISTINCT - col1 * + 1 * + + 54 FROM tab1 AS cor0
----
-2538
-270
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 AS cor0 WHERE - col0 * + col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 24 * - + col1 >= - + 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 49 * + + ( - - col0 ) FROM tab0 AS cor0
----
-4263
-4753
-735

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + - col1 = - col0 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT 53 * + CAST( col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
4611
5141
795

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7547
SELECT 53 * + CAST ( col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
4611
5141
795

query I rowsort
SELECT DISTINCT + ( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - - col0 - col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 79 * + 67 - col0 = - 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, col2 * + 83 col2 FROM tab1
----
59
4897
68
5644
96
7968

query I rowsort
SELECT + 5 - col2 + - col1 + col1 * - - 81 * 45 FROM tab0
----
295122
3550
76519

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT ALL - 95 DIV + col1 AS col1 FROM tab0
----
-1
-4
-95

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL - 95 / + col1 AS col1 FROM tab0
----
-1
-4
-95

query I rowsort
SELECT ALL col1 + - 27 AS col2 FROM tab2
----
24
40
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT + COUNT( * ) - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7555
SELECT + COUNT ( * ) - - COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT - 77 * - + 57 - - col2 * ( 34 ) FROM tab2
----
5171
5749
6361

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT DISTINCT MIN( + 63 ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT MIN ( + 63 ) AS col2 FROM tab1
----
63

query II rowsort
SELECT + col0 * + - col1, col1 * + + col1 AS col2 FROM tab1
----
-425
25
-4277
2209
-714
196

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL COUNT( 12 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL COUNT ( 12 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 57 + + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-7561
SELECT + col0, col2 * - + col1 + + - 37 + + col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
15
-3845
87
-248
97
-137

skipif mysql # not compatible
query II rowsort label-7561
SELECT + col0, col2 * - + col1 + + - 37 + + col1 / - col1 AS col1 FROM tab0 AS cor0
----
15
-3845
87
-248
97
-137

query I rowsort
SELECT 92 * - col1 + 39 AS col1 FROM tab1 AS cor0
----
-1249
-421
-4285

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT DISTINCT - MIN( ALL 60 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - MIN ( ALL 60 ) FROM tab2
----
-60

query I rowsort
SELECT - ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * + ( - - col2 ) / - col1 / + col2 <= - 2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT - 62 DIV + + 11 FROM tab0 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-7565
SELECT - 62 / + + 11 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + - col0 * col0 * - col0 - ( col1 ) AS col2 FROM tab2 AS cor0
----
262067
421808
97285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7567
SELECT - CAST( NULL AS SIGNED ) * - AVG ( + ( - - col1 ) ) / ( - + 3 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( + ( - - col1 ) ) / ( - + 3 ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col0 * col1, col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + col0 + - ( + col1 ) + 62
----

query I rowsort
SELECT DISTINCT + - col0 * 95 + - + col1 FROM tab0 AS cor0
----
-1506
-8286
-9216

query I rowsort
SELECT DISTINCT + + 20 AS col1 FROM tab2 AS cor0 WHERE - col1 * col0 IS NULL
----

query I rowsort
SELECT - 45 + - col2 + col0 + - 7 + - col0 FROM tab0
----
-151
-62
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * col1 >= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col2 ) NOT BETWEEN - 2 + col0 AND NULL
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT DISTINCT + col2 - 85 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT + col2 - 85 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) = - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7576
SELECT + 41 DIV + col1 col1 FROM tab1
----
0
2
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7576
SELECT + 41 / + col1 col1 FROM tab1
----
0
2
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL + COUNT( * ) - + 14 AS col1 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + COUNT ( * ) - + 14 AS col1 FROM tab2
----
-11

query I rowsort
SELECT ALL + col1 + ( col2 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7579
SELECT DISTINCT - col2 * - CAST( 63 AS SIGNED ) AS col1 FROM tab2
----
1449
2520
3654

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT - col2 * - CAST ( 63 AS INTEGER ) AS col1 FROM tab2
----
1449
2520
3654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7580
SELECT - 31 DIV COUNT( * ) AS col0 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-7580
SELECT - 31 / COUNT ( * ) AS col0 FROM tab1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL 37 + + COUNT( * ) AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL 37 + + COUNT ( * ) AS col0 FROM tab0
----
40

query I rowsort
SELECT + 73 FROM tab1 WHERE NOT + col2 * - col2 IS NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT COUNT( * ) * - COUNT( * ) - 57 AS col0 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) - 57 AS col0 FROM tab0
----
-66

query I rowsort
SELECT ( - col1 ) * - ( 78 ) FROM tab0
----
1638
6318
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT CAST( NULL AS SIGNED ) * 69 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT CAST ( NULL AS INTEGER ) * 69 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT 88 - + COUNT( + col2 ) FROM tab1 WHERE - col0 IS NULL
----
88

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT 88 - + COUNT ( + col2 ) FROM tab1 WHERE - col0 IS NULL
----
88

query I rowsort
SELECT DISTINCT 45 + 4 FROM tab0
----
49

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT - col1 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT + SUM( DISTINCT 53 ) AS col1 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-7589
SELECT + SUM ( DISTINCT 53 ) AS col1 FROM tab2
----
53

query I rowsort
SELECT DISTINCT + col1 * - 21 - - col2 FROM tab1
----
-198
-46
-919

query I rowsort
SELECT ALL 49 - col2 * col0 AS col2 FROM tab1
----
-4847
-4966
-6139

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT DISTINCT + 18 DIV - 12 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT + 18 / - 12 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT col2 + 18 FROM tab1 cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * 80 NOT BETWEEN ( - 40 / + col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) * 35 + col2 col2 FROM tab1
----
-1689
-2916
-3117

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ALL + - MAX( 61 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL + - MAX ( 61 ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT + ( - ( 30 ) ) * ( + col2 ) + col1 FROM tab1 AS cor0
----
-1765
-1993
-2866

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( ( + 99 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> ( col1 * 58 - 99 / - col1 )
----

query I rowsort
SELECT - + col0 + + col0 * 94 AS col1 FROM tab2 cor0
----
4278
5952
6975

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7603
SELECT DISTINCT + + col1 * - CAST( + col0 DIV 64 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
0

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT + + col1 * - CAST ( + col0 / 64 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 48 ) col1 FROM tab2 AS cor0
----
48

query I rowsort
SELECT + - 4 * + 57 AS col0 FROM tab2 AS cor0
----
-228
-228
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-7606
SELECT DISTINCT col0 * + col1 + - col1 DIV 1 AS col2 FROM tab1 AS cor0
----
420
4230
700

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT col0 * + col1 + - col1 / 1 AS col2 FROM tab1 AS cor0
----
420
4230
700

query I rowsort
SELECT 77 - + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 73 * 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7609
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 + + CAST( NULL AS DECIMAL ) * col0 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 + + CAST ( NULL AS REAL ) * col0 < ( NULL )
----
0

query I rowsort
SELECT ALL + 40 + col1 FROM tab0 cor0
----
121
41
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT - MIN( - + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7611
SELECT - MIN ( - + col2 ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7612
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-7612
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND CAST ( NULL AS INTEGER ) + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 57 col2 FROM tab0
----
104
156
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 + col0 + - 12 col1 FROM tab0
----
104
22
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT + SUM( ALL + col0 ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7615
SELECT + SUM ( ALL + col0 ) col0 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col1 * + 67 col1 FROM tab2
----
3468
4556
5236

query I rowsort
SELECT DISTINCT + col2 * + col2 + 65 FROM tab1
----
3546
4689
9281

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 64 * 67 + col0 AS col0 FROM tab1
----
-4197
-4203
-4237

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col1 FROM tab1 AS cor0 WHERE - col1 / col2 IS NOT NULL
----
2601
7225
8281

query I rowsort
SELECT ALL + col1 - - col1 FROM tab0 AS cor0 WHERE NOT col1 > col2 + - col1
----
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + col1 IS NOT NULL AND NOT 65 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + 27 * COUNT( * ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7624
SELECT + 27 * COUNT ( * ) AS col1 FROM tab1
----
81

query I rowsort
SELECT - col0 + - col1 AS col0 FROM tab1 WHERE NULL <= ( 75 ) * 77
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + + 14 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7628
SELECT col1 FROM tab2 AS cor0 WHERE + CAST( + col1 AS DECIMAL ) NOT BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-7628
SELECT col1 FROM tab2 AS cor0 WHERE + CAST ( + col1 AS REAL ) NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 20 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 80 * + col2 FROM tab2 AS cor0 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - COUNT( * ) * - MAX( + - col2 ) FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7631
SELECT - COUNT ( * ) * - MAX ( + - col2 ) FROM tab0 cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT - - ( - ( MAX( DISTINCT + col1 ) ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7632
SELECT - - ( - ( MAX ( DISTINCT + col1 ) ) ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + 49 * - col2 AS col0 FROM tab0 cor0
----
-2303
-4851
-490

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + 55 / - - 30 - col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT col0 DIV + + col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7635
SELECT col0 / + + col0 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT 33 * - + 26 FROM tab2
----
-858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( - col1 ) + + col0 col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT 1 DIV col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7638
SELECT 1 / col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * ( col2 ) * - col0 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT + ( - col1 ) FROM tab2 AS cor0 WHERE NOT + col0 * - + col0 - CAST( col0 AS SIGNED ) IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7640
SELECT + ( - col1 ) FROM tab2 AS cor0 WHERE NOT + col0 * - + col0 - CAST ( col0 AS INTEGER ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL + MIN( 87 ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + MIN ( 87 ) FROM tab0 AS cor0
----
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + ( + col2 ) ) BETWEEN + col1 AND 73 + 20
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( DISTINCT col0 ) col1 FROM tab1 WHERE NOT NULL <= + col1
----
NULL

query II rowsort
SELECT 80, col2 FROM tab1
----
80
59
80
68
80
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL COUNT( * ) - + 25 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-16

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL COUNT ( * ) - + 25 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT MAX( DISTINCT 99 ) AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7646
SELECT MAX ( DISTINCT 99 ) AS col2 FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + MAX( + + 53 ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + MAX ( + + 53 ) FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL - MAX( - 11 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - MAX ( - 11 ) FROM tab1 AS cor0
----
11

query II rowsort
SELECT + 35, + col1 AS col0 FROM tab2 cor0
----
35
51
35
67
35
77

query I rowsort
SELECT 83 * ( - + col2 ) * + - col1 AS col2 FROM tab2 cor0
----
255640
322538
97359

query I rowsort
SELECT - col1 + + - col1 + + 98 * - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-207470
-401562
-551384

query I rowsort
SELECT + 20 + - - col2 - - col1 FROM tab0 AS cor0
----
120
148
51

query I rowsort
SELECT DISTINCT col2 * + col0 + - col2 AS col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT + 44 FROM tab1 WHERE ( col2 ) BETWEEN ( col2 ) AND ( + 64 + + col2 * 4 )
----
44
44
44

query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab0 WHERE 68 * + - 46 = ( + col2 * 30 )
----

query I rowsort
SELECT ALL col1 - + - 17 AS col0 FROM tab2
----
68
84
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN - + col1 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN - + col1 AND - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + 78 col1 FROM tab1 WHERE NULL BETWEEN + - 92 AND + 17
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7659
SELECT + col1 * + 36 * + - col1 + - 24 * 33 DIV + col0 AS col0 FROM tab0 cor0
----
-15885
-236248
-44

skipif mysql # not compatible
query I rowsort label-7659
SELECT + col1 * + 36 * + - col1 + - 24 * 33 / + col0 AS col0 FROM tab0 cor0
----
-15885
-236248
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT col0 * - - col2 + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT col0 * - - col2 + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7661
SELECT * FROM tab2 WHERE NULL < ( - + col2 * - CAST( - + 36 AS SIGNED ) * - - ( - col2 ) + col0 - 6 )
----

skipif mysql # not compatible
query III rowsort label-7661
SELECT * FROM tab2 WHERE NULL < ( - + col2 * - CAST ( - + 36 AS INTEGER ) * - - ( - col2 ) + col0 - 6 )
----

query I rowsort
SELECT 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT + col2 + + col2 + - col2 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7664
SELECT DISTINCT + col1 DIV + 9 FROM tab2
----
5
7
8

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT + col1 / + 9 FROM tab2
----
5
7
8

query I rowsort
SELECT ( + - 73 ) FROM tab0 AS cor0
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( + + 24 ) FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7668
SELECT - SUM( ALL + 88 ) AS col1, 41 * 57 AS col2 FROM tab1 AS cor0
----
-264
2337

skipif mysql # not compatible
query II rowsort label-7668
SELECT - SUM ( ALL + 88 ) AS col1, 41 * 57 AS col2 FROM tab1 AS cor0
----
-264
2337

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE 22 >= + - col0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT ALL SUM( ALL ( + col1 ) ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL SUM ( ALL ( + col1 ) ) AS col2 FROM tab2 cor0
----
195

query I rowsort
SELECT ALL 61 * + + col1 AS col0 FROM tab2
----
3111
4087
4697

query I rowsort
SELECT + col0 * - + col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT 78 * + 57 FROM tab2
----
4446
4446
4446

query I rowsort
SELECT ALL + 25 * + + 9 AS col1 FROM tab1
----
225
225
225

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 ALL - 36 FROM tab2 cor0 WHERE NOT ( + 61 - - col2 ) = + 58 + + - ( + - ( + col1 ) )
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT SUM( - 87 ) FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT SUM ( - 87 ) FROM tab2 AS cor0
----
-261

query I rowsort
SELECT + 23 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 / + - col2 + - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 57 + 36 FROM tab1
----
93
93
93

query I rowsort
SELECT + - col0 + + col2 FROM tab2 AS cor0 WHERE + 94 IS NOT NULL
----
-17
-23
-24

query I rowsort
SELECT ALL - col1 * 19 * + 69 FROM tab2 AS cor0
----
-100947
-66861
-87837

query II rowsort
SELECT - 80 * + + ( - 0 ) + + col2 AS col1, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT + COUNT( * ) + 40 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT + COUNT ( * ) + 40 FROM tab0 AS cor0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT 54 DIV col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7685
SELECT 54 / col2 FROM tab2
----
0
1
2

query I rowsort
SELECT col2 + col2 FROM tab0 WHERE - 34 > - col1 - col0 - + col1
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL + 24 * + COUNT( * ) col1 FROM tab2
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7687
SELECT ALL + 24 * + COUNT ( * ) col1 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE - col2 BETWEEN + col1 AND + 78
----
0

skipif mysql # not compatible
query I rowsort label-7688
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE - col2 BETWEEN + col1 AND + 78
----
0

query I rowsort
SELECT DISTINCT 34 + + 87 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ( - ( - + 93 ) ) * + COUNT( * ) - - + 12 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-7690
SELECT ( - ( - + 93 ) ) * + COUNT ( * ) - - + 12 FROM tab2
----
291

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + ( - 56 ) * 57 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 - + - col1 * ( - - 32 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 - - 64 AS col2 FROM tab1 AS cor0
----
123
132
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT - CAST( 6 AS SIGNED ) + - + col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT - CAST ( 6 AS INTEGER ) + - + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * + 42 IS NULL
----

query II rowsort
SELECT 11, 51 AS col2 FROM tab2 AS cor0
----
11
51
11
51
11
51

query I rowsort
SELECT ALL 17 AS col2 FROM tab0 cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, col2 col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT DISTINCT + ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * 22 FROM tab0 AS cor0
----
1914
2134
330

query I rowsort
SELECT + - col2 * + 96 + 90 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 >= + 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT DISTINCT col1 / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT col1 / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0 AS col1, col0 col1 FROM tab0
----
-225
15
-7569
87
-9409
97

query I rowsort
SELECT DISTINCT 88 * + col1 FROM tab1 WHERE NOT + 67 * + col1 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7707
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab0, tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + SUM( + - 73 ) FROM tab0, tab2 AS cor0 WHERE NOT 14 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT + SUM ( + - 73 ) FROM tab0, tab2 AS cor0 WHERE NOT 14 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL + COUNT( * ) AS col1 FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL + COUNT ( * ) AS col1 FROM tab2, tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT + COUNT( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7710
SELECT + COUNT ( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT + 96 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - 72 <= NULL
----

query II rowsort
SELECT ALL + ( col0 ) AS col1, 10 AS col0 FROM tab2 AS cor0
----
46
10
64
10
75
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 94 >= + - 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7715
SELECT ALL * FROM tab0 AS cor0 WHERE 73 <= - + col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7715
SELECT ALL * FROM tab0 AS cor0 WHERE 73 <= - + col1 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 39 * col0 + ( + 44 ) AS col0 FROM tab1 AS cor0
----
2033
3359
3593

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7717
SELECT - ( - CAST( NULL AS DECIMAL ) ) / - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT - ( - CAST ( NULL AS REAL ) ) / - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT - 57 DIV + 68 + + + MAX( + + col0 ) * COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-7718
SELECT - 57 / + 68 + + + MAX ( + + col0 ) * COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
270

query I rowsort
SELECT ALL + + 58 * - - col2 FROM tab1 AS cor0
----
3422
3944
5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT DISTINCT - 77 * - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * col1 + - col2 - - - col1 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT - 77 * - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * col1 + - col2 - - - col1 AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT DISTINCT + 37 * + - MAX( DISTINCT + 40 ) FROM tab1 AS cor0
----
-1480

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + 37 * + - MAX ( DISTINCT + 40 ) FROM tab1 AS cor0
----
-1480

query I rowsort
SELECT - 99 + + col1 FROM tab2 AS cor0
----
-22
-32
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7723
SELECT + col0 + + col1 + + - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT + col0 + + col1 + + - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT DISTINCT + + ( - + COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT + + ( - + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT 30 + + 46 * + col2 * - 17 FROM tab2
----
-17956
-31250
-45326

onlyif mysql # aggregate syntax: 
query II rowsort label-7726
SELECT DISTINCT + 58 + - - COUNT( * ) AS col1, MIN( ALL + col2 ) FROM tab1
----
61
59

skipif mysql # not compatible
query II rowsort label-7726
SELECT DISTINCT + 58 + - - COUNT ( * ) AS col1, MIN ( ALL + col2 ) FROM tab1
----
61
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + - col2 col0, + col1 FROM tab0
----
-2
1
-32
81
77
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT ALL CAST( NULL AS SIGNED ) - - col1 + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL CAST ( NULL AS INTEGER ) - - col1 + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 61 - + + 15 FROM tab2 AS cor0 WHERE ( NULL ) > - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col0 col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT - - 23 - 4 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - - 33 AS col1 FROM tab1 AS cor0 WHERE - col1 * col1 IS NOT NULL AND NOT col1 / col0 + - - col1 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT ALL 12 DIV + 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL 12 / + 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL CAST( + - 11 AS SIGNED ) FROM tab0 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL CAST ( + - 11 AS INTEGER ) FROM tab0 AS cor0
----
-11
-11
-11

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL + COUNT( * ) * 68 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL + COUNT ( * ) * 68 FROM tab2 AS cor0
----
204

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7738
SELECT col2 FROM tab2 AS cor0 WHERE NOT - 51 * - + CAST( - col2 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7738
SELECT col2 FROM tab2 AS cor0 WHERE NOT - 51 * - + CAST ( - col2 AS REAL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * - col1 + + - 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT SUM( DISTINCT - - 17 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-7740
SELECT SUM ( DISTINCT - - 17 ) FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT + 56 * + COUNT( * ) + + MAX( ALL col2 ) FROM tab1 WHERE 66 + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + 56 * + COUNT ( * ) + + MAX ( ALL col2 ) FROM tab1 WHERE 66 + - col0 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col2, col0 FROM tab2 WHERE NOT NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT + ( - ( - + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7743
SELECT + ( - ( - + COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7744
SELECT + CAST( NULL AS DECIMAL ) * - 44 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT + CAST ( NULL AS REAL ) * - 44 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 / - + col2 <= 75
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) * - + col0 + - 33 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - col1 < col0 * - col0 + - col0
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7748
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( CAST( NULL AS SIGNED ) / - ( - + col1 ) + - + col2 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7748
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( CAST ( NULL AS INTEGER ) / - ( - + col1 ) + - + col2 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 60 + - ( - + col0 ) FROM tab0
----
-45
27
37

query III rowsort
SELECT * FROM tab2 WHERE NULL = - 59
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT + - MIN( + + col2 ) AS col2, + 1 FROM tab0 cor0
----
-10
1

skipif mysql # not compatible
query II rowsort label-7751
SELECT + - MIN ( + + col2 ) AS col2, + 1 FROM tab0 cor0
----
-10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT ALL + - MIN( ALL - - 69 ) * + MAX( + col1 ) * - COUNT( - col0 ) FROM tab0 AS cor0
----
16767

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL + - MIN ( ALL - - 69 ) * + MAX ( + col1 ) * - COUNT ( - col0 ) FROM tab0 AS cor0
----
16767

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 94 * - - col0 + - col1 + + col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7754
SELECT ALL - + col2 + + + col0 DIV + col0 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL - + col2 + + + col0 / + col0 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT COUNT( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7755
SELECT COUNT ( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + col2 - + + col0 * + 79 * + 1 + col0 FROM tab0 cor0
----
-1123
-6776
-7467

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - + col0 = NULL
----

query II rowsort
SELECT + col2 * - col2, - col1 * col1 AS col1 FROM tab2 cor0
----
-1600
-5929
-3364
-4489
-529
-2601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT + + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT + + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 53 + 82 + - col2 * col1 * + - col1 AS col2 FROM tab2 AS cor0
----
237295
260497
59958

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7761
SELECT DISTINCT + ( + - COUNT( * ) ) + + ( - CAST( NULL AS DECIMAL ) ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7761
SELECT DISTINCT + ( + - COUNT ( * ) ) + + ( - CAST ( NULL AS REAL ) ) col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 53 + col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 87 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 34 ) - + col1 AS col0 FROM tab2
----
-101
-111
-85

query I rowsort
SELECT DISTINCT ( - 35 ) AS col0 FROM tab1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7766
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 71 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 71 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7767
SELECT * FROM tab2 AS cor0 WHERE NOT + 51 - + CAST( col1 AS SIGNED ) > - col0 - + - 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7767
SELECT * FROM tab2 AS cor0 WHERE NOT + 51 - + CAST ( col1 AS INTEGER ) > - col0 - + - 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - - 32 ) AS col1 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT ( 65 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= + col1 )
----

query II rowsort
SELECT - - col2 * col1, - 65 AS col1 FROM tab2 AS cor0
----
1173
-65
3080
-65
3886
-65

query I rowsort
SELECT + 17 AS col0 FROM tab0 cor0
----
17
17
17

query I rowsort
SELECT ALL col0 * 17 + + + col1 + + + col1 FROM tab1 AS cor0
----
1455
1641
895

query I rowsort
SELECT ALL + col0 + - + 55 * - col1 + 68 FROM tab1
----
2744
428
889

query I rowsort
SELECT - col1 + + 58 AS col1 FROM tab2
----
-19
-9
7

query I rowsort
SELECT ALL + 6 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT DISTINCT - 21 * + - MIN( ALL col0 ) FROM tab1
----
1071

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT - 21 * + - MIN ( ALL col0 ) FROM tab1
----
1071

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT ALL COUNT( ALL - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL COUNT ( ALL - - col1 ) FROM tab1
----
3

query I rowsort
SELECT + ( - 4 ) + col0 FROM tab1
----
47
81
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT COUNT( * ) + - 58 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7781
SELECT COUNT ( * ) + - 58 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT - col1 + + - col2 AS col1 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT - 11 DIV + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7783
SELECT - 11 / + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= + col2
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * - col1 * - 98 AND - 9
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 34 col0 FROM tab2 AS cor0
----
-1734
-2278
-2618

query I rowsort
SELECT - - col1 + + col2 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT col1 * - - col0 * + - ( 84 ) AS col0 FROM tab2 AS cor0
----
-197064
-413952
-422100

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT COUNT( * ) + ( + COUNT( * ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT COUNT ( * ) + ( + COUNT ( * ) ) FROM tab2
----
6

query I rowsort
SELECT 27 * + 2 + + 21 * col2 FROM tab1 WHERE + 77 < NULL
----

query I rowsort
SELECT DISTINCT 5 + - col1 FROM tab0
----
-16
-76
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ALL - COUNT( * ) - + 62 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL - COUNT ( * ) - + 62 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT - + col1 + - 90 AS col1 FROM tab1 AS cor0
----
-104
-137
-95

query I rowsort
SELECT + 12 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
12
12
12

query I rowsort
SELECT - col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 = - 27 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col1 AND NULL
----

query II rowsort
SELECT - 24 * col0 AS col0, 91 FROM tab1
----
-1224
91
-2040
91
-2184
91

query I rowsort
SELECT DISTINCT + ( + - col0 ) * - col0 AS col0 FROM tab0
----
225
7569
9409

query II rowsort
SELECT DISTINCT col1 * + + col2 AS col0, col0 + + ( - - col2 ) AS col0 FROM tab0
----
210
97
3807
62
99
196

query I rowsort
SELECT - col0 * 39 AS col2 FROM tab1
----
-1989
-3315
-3549

query I rowsort
SELECT ALL - 97 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 96 * + + ( - col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7805
SELECT - col0 AS col2, 78 DIV col2 + 2 FROM tab0
----
-15
3
-87
9
-97
2

skipif mysql # not compatible
query II rowsort label-7805
SELECT - col0 AS col2, 78 / col2 + 2 FROM tab0
----
-15
3
-87
9
-97
2

query I rowsort
SELECT ALL - col1 * - + 69 FROM tab0
----
1449
5589
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7807
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7809
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) * - 42 FROM tab1 AS cor0
----
-3
-126

skipif mysql # not compatible
query II rowsort label-7809
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) * - 42 FROM tab1 AS cor0
----
-3
-126

query I rowsort
SELECT DISTINCT - ( 39 ) FROM tab2 AS cor0
----
-39

query I rowsort
SELECT - - col1 + col0 * + + col2 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT ALL + - 13 AS col0 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col1 * 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT DISTINCT + MIN( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE col2 + + col0 + 24 < + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT + MIN ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE col2 + + col0 + 24 < + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL - MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL - MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT ALL - CAST( - col2 AS SIGNED ) + + col2 * - col1 AS col2 FROM tab1
----
-1248
-236
-3128

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL - CAST ( - col2 AS INTEGER ) + + col2 * - col1 AS col2 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT + 97 * col0 FROM tab1
----
4947
8245
8827

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT ALL col1 DIV - 38 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL col1 / - 38 AS col0 FROM tab0
----
-2
0
0

query I rowsort
SELECT DISTINCT + ( + ( col2 ) ) + + - 5 FROM tab0
----
42
5
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 cor0 WHERE - 14 IS NULL
----

query I rowsort
SELECT ALL + 91 + - 72 * + + 3 AS col1 FROM tab1 AS cor0
----
-125
-125
-125

query I rowsort
SELECT col1 * - 88 + 67 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1781
-21
-7061

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7824
SELECT DISTINCT col0 AS col2, 94 + - CAST( + + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
80
85
89
91
47

skipif mysql # not compatible
query II rowsort label-7824
SELECT DISTINCT col0 AS col2, 94 + - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
80
85
89
91
47

query I rowsort
SELECT DISTINCT + ( + 14 ) - + 9 AS col1 FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT + col0, col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL + - CAST( NULL AS SIGNED ) * + 67 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 67 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT ALL ( + - CAST( - col0 AS SIGNED ) ) * 26 * + col1 * + - col0 AS col2 FROM tab1
----
-10119382
-939250
-946764

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL ( + - CAST ( - col0 AS INTEGER ) ) * 26 * + col1 * + - col0 AS col2 FROM tab1
----
-10119382
-939250
-946764

query I rowsort
SELECT col1 * + - 8 AS col1 FROM tab0
----
-168
-648
-8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 8 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + 54 IS NOT NULL
----

query I rowsort
SELECT col1 * - + col0 AS col1 FROM tab1
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 33, - ( col2 ) col1 FROM tab1
----
-33
-59
-33
-68
-33
-96

query I rowsort
SELECT DISTINCT + col1 * + 4 * - + col1 AS col1 FROM tab1
----
-100
-784
-8836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT DISTINCT - + col1 FROM tab0 WHERE NULL < + + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT - + col1 FROM tab0 WHERE NULL < + + CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 80 NOT BETWEEN - 64 AND ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7837
SELECT col0 FROM tab2 AS cor0 WHERE NOT - 6 / - CAST( NULL AS SIGNED ) * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7837
SELECT col0 FROM tab2 AS cor0 WHERE NOT - 6 / - CAST ( NULL AS INTEGER ) * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT ALL 44 DIV + 53 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL 44 / + 53 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT + SUM( - - col1 ) AS col0, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
66
3

skipif mysql # not compatible
query II rowsort label-7839
SELECT + SUM ( - - col1 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
66
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 43 * - + 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col0 AS col2 FROM tab2 WHERE NOT col2 * + - col0 BETWEEN + 35 AND - + col0
----
46
64
75

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT + 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT 67 * MIN( - 89 ) FROM tab2
----
-5963

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT 67 * MIN ( - 89 ) FROM tab2
----
-5963

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT DISTINCT + MAX( + 99 ) col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7847
SELECT DISTINCT + MAX ( + 99 ) col0 FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT 97 * - - 91 AS col1 FROM tab0 AS cor0
----
8827

query I rowsort
SELECT DISTINCT + 97 * - 29 AS col2 FROM tab2 AS cor0
----
-2813

query I rowsort
SELECT 73 + - col1 - - + col2 AS col0 FROM tab2 AS cor0
----
36
45
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7851
SELECT DISTINCT 11 AS col1, + COUNT( * ) FROM tab1
----
11
3

skipif mysql # not compatible
query II rowsort label-7851
SELECT DISTINCT 11 AS col1, + COUNT ( * ) FROM tab1
----
11
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + + col2 col1 FROM tab0
----
139
50
87

query I rowsort
SELECT DISTINCT + 53 + - 39 FROM tab2
----
14

query I rowsort
SELECT ALL col0 * col2 + + - 82 FROM tab2
----
2478
4268
976

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NULL NOT IN ( - + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT + col1 DIV - 63 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7856
SELECT + col1 / - 63 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL - 14 + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL - 14 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7858
SELECT ALL - col1 * + col2 + + ( CAST( + - 46 AS SIGNED ) ) DIV 85 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - col1 * + col2 + + ( CAST ( + - 46 AS INTEGER ) ) / 85 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7859
SELECT DISTINCT + + MIN( CAST( 23 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT + + MIN ( CAST ( 23 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / 62 - + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * col1 + + col1 - - 86 - + 76 * - col1 * + col0 AS col2 FROM tab1 AS cor0
----
32816
329462
55078

query I rowsort
SELECT ALL - ( 21 ) FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab2 WHERE NOT ( NOT - 16 + col1 <= + + col0 )
----
13

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 60 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 97 ) * + col1 - - 64 FROM tab1
----
-1294
-421
-4495

query I rowsort
SELECT + 12 * col2 * + + col1 FROM tab2
----
14076
36960
46632

query II rowsort
SELECT + col1, col1 * - - ( - col1 ) AS col0 FROM tab1
----
14
-196
47
-2209
5
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * + - ( col2 ) col2 FROM tab0
----
-4277
-9009
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT COUNT( * ) * 12 * + + COUNT( * ) AS col2 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-7869
SELECT COUNT ( * ) * 12 * + + COUNT ( * ) AS col2 FROM tab2
----
108

onlyif mysql # DIV for integer division: 
query II rowsort label-7870
SELECT + 43 AS col1, col2 DIV - 97 FROM tab1
----
43
0
43
0
43
0

skipif mysql # not compatible
query II rowsort label-7870
SELECT + 43 AS col1, col2 / - 97 FROM tab1
----
43
0
43
0
43
0

query I rowsort
SELECT ALL 26 + 88 - col0 * + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 * + 26 AS col2 FROM tab1 AS cor0
----
-1326
-2210
-2366

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - col1 NOT IN ( - col1, 68 + + + 75 - col0 / 64, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7874
SELECT DISTINCT - 21 + 39 - + col2 DIV col2 AS col0 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT - 21 + 39 - + col2 / col2 AS col0 FROM tab0
----
17

query I rowsort
SELECT ( - col0 ) * + - 19 + + + 19 AS col2 FROM tab0
----
1672
1862
304

query II rowsort
SELECT ALL + col1, 13 * - ( col0 ) FROM tab1
----
14
-663
47
-1183
5
-1105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT ALL + + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT MIN( ALL + ( - col0 ) ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7878
SELECT MIN ( ALL + ( - col0 ) ) FROM tab1 cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-7879
SELECT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 * - 38 * col0 col1 FROM tab0 AS cor0
----
-185136
-206416
-31920

query I rowsort
SELECT DISTINCT col1 * - 14 * 14 AS col2 FROM tab2
----
-13132
-15092
-9996

query I rowsort
SELECT ALL + col0 + 54 AS col0 FROM tab1
----
105
139
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7883
SELECT - 49 DIV + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-7883
SELECT - 49 / + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
-16

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) * + col1 + 64 IN ( - 54 )
----

query I rowsort
SELECT ALL col1 - + col1 + + - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT + 30 - + 22 + - CAST( NULL AS SIGNED ) + - col0 * col1 * + + 32 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT + 30 - + 22 + - CAST ( NULL AS INTEGER ) + - col0 * col1 * + + 32 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - - col0 - - col0 AS col0 FROM tab0
----
184
293
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT DISTINCT - 5 * - 96 + + MAX( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
429

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - 5 * - 96 + + MAX ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 + - col1 col2 FROM tab1 AS cor0
----
-32
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT - ( + CAST( - col1 AS SIGNED ) ) + col0 AS col2 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-7890
SELECT - ( + CAST ( - col1 AS INTEGER ) ) + col0 AS col2 FROM tab2 AS cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * - col0 + - - 83 + + 31 - - ( + 73 ) * - col2 col2 FROM tab2 cor0
----
-4371
-6710
-8695

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT + COUNT( DISTINCT - - col0 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7892
SELECT + COUNT ( DISTINCT - - col0 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + - - ( + col0 ) col1, col2 * + ( col1 ) AS col1 FROM tab0
----
174
210
194
99
30
3807

query II rowsort
SELECT - 28 AS col2, col1 AS col1 FROM tab2
----
-28
51
-28
67
-28
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT COUNT( * ) * 1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7895
SELECT COUNT ( * ) * 1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - + 51 AS col1 FROM tab2 cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 78 = ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + 68 - + col0, + col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( col1, col0 )
----
-7
67
22
51
4
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT SUM( ALL - + 97 ) FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-7899
SELECT SUM ( ALL - + 97 ) FROM tab2 AS cor0
----
-291

onlyif mysql # DIV for integer division: 
query II rowsort label-7900
SELECT DISTINCT - 36 AS col1, col2 DIV ( 74 ) + - col0 AS col0 FROM tab2 AS cor0
----
-36
-46
-36
-64
-36
-75

skipif mysql # not compatible
query II rowsort label-7900
SELECT DISTINCT - 36 AS col1, col2 / ( 74 ) + - col0 AS col0 FROM tab2 AS cor0
----
-36
-46
-36
-64
-36
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7901
SELECT ALL - COUNT( 48 ) DIV - MAX( DISTINCT + + col0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL - COUNT ( 48 ) / - MAX ( DISTINCT + + col0 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * - + col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 10 * + ( + + col2 ) IN ( - col1, col0, - 75 )
----

query I rowsort
SELECT + 60 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + ( 77 ), - 43 AS col0 FROM tab1
----
77
-43
77
-43
77
-43

query III rowsort
SELECT * FROM tab0 WHERE NOT + 49 * col0 * - col2 + + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 2 + + col0 AS col1 FROM tab2 AS cor0
----
44
62
73

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7908
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-7908
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7909
SELECT ( - ( + 86 ) ) * col0 - - 0, col2 + - + col0 DIV + 74 AS col0 FROM tab2
----
-3956
23
-5504
40
-6450
57

skipif mysql # not compatible
query II rowsort label-7909
SELECT ( - ( + 86 ) ) * col0 - - 0, col2 + - + col0 / + 74 AS col0 FROM tab2
----
-3956
23
-5504
40
-6450
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT + 82 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT + 82 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7911
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( CAST( NULL AS SIGNED ) - + - col2 )
----

skipif mysql # not compatible
query III rowsort label-7911
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( CAST ( NULL AS INTEGER ) - + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT + + ( - + 46 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7912
SELECT + + ( - + 46 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT DISTINCT - - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT - - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7914
SELECT DISTINCT + 28 + CAST( NULL AS SIGNED ) * col2 - + col0 * 22 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT + 28 + CAST ( NULL AS INTEGER ) * col2 - + col0 * 22 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 73 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL + + MAX( DISTINCT col2 ) FROM tab2 WHERE + col1 + + 45 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + + MAX ( DISTINCT col2 ) FROM tab2 WHERE + col1 + + 45 IS NULL
----
NULL

query I rowsort
SELECT - col1 + - - col1 * - col1 AS col2 FROM tab1
----
-210
-2256
-30

query I rowsort
SELECT ALL - 49 + - col1 + - col2 AS col1 FROM tab2
----
-123
-166
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT DISTINCT 46 + - + COUNT( * ) AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT 46 + - + COUNT ( * ) AS col0 FROM tab1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT + CAST( - - 54 AS SIGNED ) AS col0 FROM tab1
----
54
54
54

skipif mysql # not compatible
query I rowsort label-7920
SELECT + CAST ( - - 54 AS INTEGER ) AS col0 FROM tab1
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7921
SELECT DISTINCT ( - 36 ) + col0 + - col1 - + 9 DIV + - 82 * - - 33 AS col0 FROM tab2
----
-28
-41
-49

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT ( - 36 ) + col0 + - col1 - + 9 / + - 82 * - - 33 AS col0 FROM tab2
----
-28
-41
-49

query II rowsort
SELECT + col1 AS col1, + 39 AS col1 FROM tab1 AS cor0
----
14
39
47
39
5
39

query II rowsort
SELECT - col2 AS col2, col1 + + 75 FROM tab1 cor0
----
-59
80
-68
122
-96
89

query II rowsort
SELECT DISTINCT - + col0, + col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT ALL ( - ( + COUNT( DISTINCT - col2 ) ) ) * - + SUM( + + ( col2 ) ) AS col2, MIN( - 24 ) * + MAX( 7 ) FROM tab2
----
363
-168

skipif mysql # not compatible
query II rowsort label-7927
SELECT ALL ( - ( + COUNT ( DISTINCT - col2 ) ) ) * - + SUM ( + + ( col2 ) ) AS col2, MIN ( - 24 ) * + MAX ( 7 ) FROM tab2
----
363
-168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7928
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + - col1 * 43 NOT BETWEEN - - col2 + - CAST( NULL AS SIGNED ) AND + col2 - + 34 * - - 74
----

skipif mysql # not compatible
query III rowsort label-7928
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + - col1 * 43 NOT BETWEEN - - col2 + - CAST ( NULL AS INTEGER ) AND + col2 - + 34 * - - 74
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT + COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + ( - + ( + - 81 ) ) + - col1 + - 40 * + + 9 ) AND - 52
----
0

skipif mysql # not compatible
query I rowsort label-7929
SELECT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + ( - + ( + - 81 ) ) + - col1 + - 40 * + + 9 ) AND - 52
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7930
SELECT ALL - 84 * col1 * - 9 AS col0, col0 * - - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
38556
46
50652
75
58212
64

skipif mysql # not compatible
query II rowsort label-7930
SELECT ALL - 84 * col1 * - 9 AS col0, col0 * - - col0 / + col0 AS col2 FROM tab2 AS cor0
----
38556
46
50652
75
58212
64

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab1 AS cor0 WHERE - 98 - - + col2 + + 82 <= - 58
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT 42 NOT BETWEEN col2 AND 51 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7933
SELECT ALL - 54 DIV - COUNT( DISTINCT + col1 ) col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7933
SELECT ALL - 54 / - COUNT ( DISTINCT + col1 ) col2 FROM tab1 AS cor0
----
18

query II rowsort
SELECT 38 AS col2, ( + col1 ) FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * - + 16 AS col1 FROM tab0
----
1296
16
336

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL + MIN( DISTINCT + + 75 ) AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL + MIN ( DISTINCT + + 75 ) AS col0 FROM tab0
----
75

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7938
SELECT CAST( NULL AS SIGNED ) / - + COUNT( * ) * - 9 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * - 9 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT DISTINCT - COUNT( * ) * + 13 AS col1 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT - COUNT ( * ) * + 13 AS col1 FROM tab1 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT DISTINCT - col1 * col1 + col1 FROM tab0 WHERE - col1 IN ( CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT - col1 * col1 + col1 FROM tab0 WHERE - col1 IN ( CAST ( + col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL - 65 + + col2 FROM tab2 AS cor0
----
-25
-42
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT - COUNT( * ) * - COUNT( * ) * ( 66 ) col2 FROM tab2 cor0
----
594

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7942
SELECT - COUNT ( * ) * - COUNT ( * ) * ( 66 ) col2 FROM tab2 cor0
----
594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( - 85 ) + - 70 col0 FROM tab0 AS cor0
----
15
1715
6815

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ALL - ( + 67 ) * + + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - ( + 67 ) * + + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-204

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7945
SELECT + 90 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7945
SELECT + 90 / - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col2 + col1
----

query I rowsort
SELECT - col1 - - 62 AS col2 FROM tab2
----
-15
-5
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7948
SELECT - CAST( NULL AS DECIMAL ) - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT - CAST ( NULL AS REAL ) - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 43 - + + col0 FROM tab1
----
-128
-134
-94

query II rowsort
SELECT col2 - + col0 * col0 AS col0, - col0 FROM tab0
----
-178
-15
-7559
-87
-9310
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT 67 + - COUNT( * ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-7951
SELECT 67 + - COUNT ( * ) FROM tab0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT DISTINCT + COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7953
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST( + 48 AS DECIMAL ) + + 34 - + - col0 < + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7953
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST ( + 48 AS REAL ) + + 34 - + - col0 < + CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 58 < NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT + COUNT( + + col0 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7956
SELECT + COUNT ( + + col0 ) col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL col1 AS col1, - 12 FROM tab0 cor0
----
1
-12
21
-12
81
-12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, 16 * - col0 * + 88 col2 FROM tab0 cor0
----
-1
-136576
-21
-122496
-81
-21120

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT + ( + MAX( DISTINCT 49 ) ) * - - 13 * COUNT( * ) AS col1 FROM tab2 cor0
----
1911

skipif mysql # not compatible
query I rowsort label-7960
SELECT + ( + MAX ( DISTINCT 49 ) ) * - - 13 * COUNT ( * ) AS col1 FROM tab2 cor0
----
1911

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7961
SELECT DISTINCT + 14 * col1 AS col2, CAST( NULL AS DECIMAL ) FROM tab2
----
1078
NULL
714
NULL
938
NULL

skipif mysql # not compatible
query II rowsort label-7961
SELECT DISTINCT + 14 * col1 AS col2, CAST ( NULL AS REAL ) FROM tab2
----
1078
NULL
714
NULL
938
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT 90 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - col0 * + col0 + - col2 FROM tab0
----
-191
-7558
-9507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT COUNT( * ) * - CAST( - 94 AS SIGNED ) FROM tab2 WHERE NOT ( col2 * - - 82 IS NULL )
----
282

skipif mysql # not compatible
query I rowsort label-7964
SELECT COUNT ( * ) * - CAST ( - 94 AS INTEGER ) FROM tab2 WHERE NOT ( col2 * - - 82 IS NULL )
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT + CAST( NULL AS SIGNED ) + - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT + CAST ( NULL AS INTEGER ) + - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 cor0 WHERE - col2 * + + col0 - - 46 * - 78 + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7966
SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - col2 * + + col0 - - 46 * - 78 + + col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7967
SELECT - 60 DIV + ( col2 ) FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-7967
SELECT - 60 / + ( col2 ) FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT - - 2 AS col1 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE + + ( + 26 ) IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + col2 * + ( 61 ) col2 FROM tab0 AS cor0 WHERE + ( + col1 ) + + - 2 + - 79 * col1 * - 90 IS NOT NULL
----
15
2867
87
610
97
6039

query I rowsort
SELECT ALL ( + 40 ) AS col0 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT + col0 + - 24 FROM tab2 AS cor0
----
22
40
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT DISTINCT + + col1 DIV - + col2 + + - col2 AS col0 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT + + col1 / - + col2 + + - col2 AS col0 FROM tab2 AS cor0
----
-25
-41
-59

query I rowsort
SELECT ALL + col2 * - 39 + col0 AS col1 FROM tab1
----
-2216
-2561
-3693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT 39 + + col1 FROM tab0 WHERE NULL < CAST( 61 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7976
SELECT 39 + + col1 FROM tab0 WHERE NULL < CAST ( 61 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 81 + - col2 FROM tab1
----
-15
13
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7978
SELECT COUNT( + - 44 ) AS col0, - COUNT( - CAST( NULL AS DECIMAL ) ) FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-7978
SELECT COUNT ( + - 44 ) AS col0, - COUNT ( - CAST ( NULL AS REAL ) ) FROM tab0
----
3
0

query I rowsort
SELECT - ( + col1 ) * - + 99 * + + col2 AS col1 FROM tab0 AS cor0
----
20790
376893
9801

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * - col0 <> + 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL COUNT( * ) * MIN( ( + 42 ) ) AS col0 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL COUNT ( * ) * MIN ( ( + 42 ) ) AS col0 FROM tab0
----
126

query I rowsort
SELECT - 26 * ( - col0 ) AS col2 FROM tab1
----
1326
2210
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT + 50 * + COUNT( * ) AS col0 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + 50 * + COUNT ( * ) AS col0 FROM tab2
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + 19 ) col0 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT DISTINCT - + SUM( ALL + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT - + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 = col2 / + col1 + + CAST( NULL AS SIGNED ) + - col0
----
0

skipif mysql # not compatible
query I rowsort label-7986
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 = col2 / + col1 + + CAST ( NULL AS INTEGER ) + - col0
----
0

query I rowsort
SELECT DISTINCT 12 + + - col1 + + col2 + - col2 FROM tab0
----
-69
-9
11

query I rowsort
SELECT col2 * + 49 FROM tab1
----
2891
3332
4704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7989
SELECT ALL 59 DIV 71 + - COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL 59 / 71 + - COUNT ( * ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT COUNT( * ) * + 16 * - COUNT( * ) * - COUNT( * ) FROM tab0
----
432

skipif mysql # not compatible
query I rowsort label-7990
SELECT COUNT ( * ) * + 16 * - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
432

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 99 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT 27 * ( - SUM( + col2 ) ) * - + ( + 23 ) AS col0 FROM tab1
----
138483

skipif mysql # not compatible
query I rowsort label-7992
SELECT 27 * ( - SUM ( + col2 ) ) * - + ( + 23 ) AS col0 FROM tab1
----
138483

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT - 37 * - COUNT( * ) + 13 AS col0 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT - 37 * - COUNT ( * ) + 13 AS col0 FROM tab2
----
124

query III rowsort
SELECT * FROM tab2 WHERE + - col2 NOT IN ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * + col1 col2 FROM tab2 AS cor0
----
2856
3752
4312

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND + 58
----

query I rowsort
SELECT + + col1 + col1 AS col1 FROM tab1 AS cor0 WHERE - 84 BETWEEN - col1 AND + col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - col2 - col1 col2 FROM tab2
----
-5
3
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7999
SELECT DISTINCT * FROM tab1 WHERE + col2 * CAST( + + 50 AS SIGNED ) + + + 52 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7999
SELECT DISTINCT * FROM tab1 WHERE + col2 * CAST ( + + 50 AS INTEGER ) + + + 52 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = - 69
----

query I rowsort
SELECT ALL col0 - - col2 - + 53 AS col0 FROM tab1 AS cor0
----
106
91
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT + 16 - - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT + 16 - - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT ALL + CAST( NULL AS SIGNED ) - + col0 * col2 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + CAST ( NULL AS INTEGER ) - + col0 * col2 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - + col2 * - 54 AS col2 FROM tab1 AS cor0
----
3101
3581
5133

query I rowsort
SELECT ALL 84 * ( col1 ) + + col0 FROM tab2
----
4330
5703
6532

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 45 + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT ( + - 85 ) DIV col0 * col0 - + ( col1 ) AS col0 FROM tab0
----
-1
-156
-21

skipif mysql # not compatible
query I rowsort label-8008
SELECT ( + - 85 ) / col0 * col0 - + ( col1 ) AS col0 FROM tab0
----
-1
-156
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT - COUNT( DISTINCT + + 31 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT - COUNT ( DISTINCT + + 31 ) AS col1 FROM tab1
----
-1

query II rowsort
SELECT ALL + col1 AS col2, - 78 FROM tab2
----
51
-78
67
-78
77
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8011
SELECT + 5, CAST( 59 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
5
59
5
59
5
59

skipif mysql # not compatible
query II rowsort label-8011
SELECT + 5, CAST ( 59 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
5
59
5
59
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT DISTINCT - col0 * - col1 * - 38 * + col0 + + col0 + col0 DIV - col1 FROM tab1 AS cor0
----
-1372682
-1383684
-14789776

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT - col0 * - col1 * - 38 * + col0 + + col0 + col0 / - col1 FROM tab1 AS cor0
----
-1372682
-1383684
-14789776

query I rowsort
SELECT col1 * + col0 FROM tab2 WHERE - col1 + col2 IS NULL
----

query I rowsort
SELECT ALL + col1 + + 4 * col0 AS col2 FROM tab1
----
218
345
411

query III rowsort
SELECT * FROM tab2 WHERE NOT 55 / - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT - 68 * + 0 + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8017
SELECT - 68 * + 0 + COUNT ( * ) AS col2 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT + ( SUM( + col2 ) ) col2 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8019
SELECT + ( SUM ( + col2 ) ) col2 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT - ( - ( + COUNT( * ) ) ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8020
SELECT - ( - ( + COUNT ( * ) ) ) + + COUNT ( * ) FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col0 FROM tab2
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT DISTINCT COUNT( ALL 48 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT COUNT ( ALL 48 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL 48 * + COUNT( * ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL 48 * + COUNT ( * ) FROM tab0
----
144

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = ( col2 ) * 66
----

query I rowsort
SELECT - 35 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND col1 * col2
----

query III rowsort
SELECT * FROM tab2 WHERE 33 * 92 + 19 * - 82 NOT BETWEEN + col1 * col0 AND ( - col1 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 76 * 14 + + col0 * + 72 FROM tab2
----
4376
5672
6464

query I rowsort
SELECT + col2 - - ( - 8 + col1 * + 7 ) FROM tab2 WHERE NOT + col0 * - col0 + col1 >= ( - col0 )
----
372
519
571

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * + 43 > + col0
----

query I rowsort
SELECT ALL ( + ( + col1 ) ) - 20 FROM tab1
----
-15
-6
27

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) NOT IN ( 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 1 * - col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - 35 * col2 AS col1 FROM tab1
----
-2065
-2380
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 20 col0 FROM tab2
----
71
87
97

query I rowsort
SELECT - 91 * ( - col1 ) FROM tab2
----
4641
6097
7007

query I rowsort
SELECT ALL col0 + 32 * + 84 FROM tab0
----
2703
2775
2785

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT - COUNT( * ) + + COUNT( - 14 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8038
SELECT - COUNT ( * ) + + COUNT ( - 14 ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8039
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 44 * + CAST( NULL AS DECIMAL ) BETWEEN col0 * 20 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 44 * + CAST ( NULL AS REAL ) BETWEEN col0 * 20 AND ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT - 54 DIV - col1 FROM tab0 AS cor0
----
0
2
54

skipif mysql # not compatible
query I rowsort label-8040
SELECT - 54 / - col1 FROM tab0 AS cor0
----
0
2
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT DISTINCT + 77 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT + 77 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT ALL 42 DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL 42 / + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT + 21 * COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8043
SELECT + 21 * COUNT ( * ) FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8044
SELECT - COUNT( * ) DIV - 6 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8044
SELECT - COUNT ( * ) / - 6 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ALL + COUNT( + ( col1 ) ) + 12 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL + COUNT ( + ( col1 ) ) + 12 FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT 40 * + 82 FROM tab0
----
3280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT - col2 AS col1 FROM tab2 WHERE 68 NOT IN ( CAST( col0 AS SIGNED ) + - col2 * col2 )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8047
SELECT - col2 AS col1 FROM tab2 WHERE 68 NOT IN ( CAST ( col0 AS INTEGER ) + - col2 * col2 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT COUNT( * ) - 68 col2 FROM tab1
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8048
SELECT COUNT ( * ) - 68 col2 FROM tab1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT DISTINCT + MAX( + col0 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT + MAX ( + col0 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - - ( COUNT( * ) ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8050
SELECT - - ( COUNT ( * ) ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - - 40 - 78 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT + + 49 + + col2 FROM tab2 AS cor0
----
107
72
89

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - 3 BETWEEN ( col1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 BETWEEN + col2 - + col1 AND ( NULL )
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT ALL + col2 DIV - 93 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL + col2 / - 93 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - 38 + + 12 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + ( col2 ) FROM tab0 cor0 WHERE ( NULL ) = ( + 66 + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT col1 + + 10 * - 96 FROM tab1 AS cor0
----
-913
-946
-955

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8060
SELECT DISTINCT - + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT - + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 ) < col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL - MAX( ALL - col1 ) col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8062
SELECT ALL - MAX ( ALL - col1 ) col2 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IS NULL OR - col1 < ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT DISTINCT ( - COUNT( * ) ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT ( - COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT - col1 DIV + ( 43 ) col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8065
SELECT - col1 / + ( 43 ) col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT COUNT( + col2 ) AS col2 FROM tab0 WHERE NOT ( col1 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8066
SELECT COUNT ( + col2 ) AS col2 FROM tab0 WHERE NOT ( col1 ) < NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 31 + col2 NOT BETWEEN + col2 AND col0 / col2
----

query I rowsort
SELECT + 75 * - 28 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT DISTINCT - MIN( ALL + 35 ) FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT - MIN ( ALL + 35 ) FROM tab1 AS cor0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * 5 col0 FROM tab0 cor0
----
435
485
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT ALL MIN( ALL 80 ) AS col1 FROM tab0 WHERE NOT ( - - col2 ) NOT IN ( + col2 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL MIN ( ALL 80 ) AS col1 FROM tab0 WHERE NOT ( - - col2 ) NOT IN ( + col2 + col1 )
----
NULL

query I rowsort
SELECT col0 + + 58 FROM tab1 AS cor0
----
109
143
149

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8075
SELECT col1 * + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-8075
SELECT col1 * + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8076
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8076
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( + CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col2 * 20 < - col0
----

query I rowsort
SELECT 22 FROM tab2 AS cor0 WHERE ( col1 ) NOT IN ( - col2 / + 48 )
----
22
22
22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 72 + 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + col0 - + col1 * - col2 >= ( ( + col2 ) / col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 2 * - + col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT ALL + ( - col0 ) + col0 * 16 FROM tab0 cor0
----
1305
1455
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 91 ) col2 FROM tab1 cor0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8085
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE - col2 + CAST( - 65 AS SIGNED ) NOT BETWEEN ( col2 ) AND NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE - col2 + CAST ( - 65 AS INTEGER ) NOT BETWEEN ( col2 ) AND NULL
----
59
68
96

query I rowsort
SELECT col0 - - col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT 51 + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT 51 + COUNT ( * ) FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT + SUM( + col2 ) AS col2, SUM( + + col2 ) AS col1 FROM tab2
----
121
121

skipif mysql # not compatible
query II rowsort label-8088
SELECT + SUM ( + col2 ) AS col2, SUM ( + + col2 ) AS col1 FROM tab2
----
121
121

query I rowsort
SELECT - 64 + - 82 * - col2 FROM tab0
----
3790
756
8054

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + col0 col1, 39 AS col1 FROM tab2
----
-2346
39
-4928
39
-5025
39

query I rowsort
SELECT DISTINCT - + col1 * ( - - col1 ) FROM tab2 cor0
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 82 ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8093
SELECT ALL + + COUNT( * ), COUNT( * ) + + 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
27

skipif mysql # not compatible
query II rowsort label-8093
SELECT ALL + + COUNT ( * ), COUNT ( * ) + + 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
27

query I rowsort
SELECT ( - 77 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT ALL 36 + + - 13 AS col2 FROM tab1
----
23
23
23

query I rowsort
SELECT DISTINCT 82 + col2 AS col1 FROM tab2 AS cor0 WHERE NULL <= - col1 / + col1 * 45 * + col0 + - col1 / - 12
----

query I rowsort
SELECT col0 * - 58 FROM tab1 AS cor0
----
-2958
-4930
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT COUNT( ALL + + col2 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8098
SELECT COUNT ( ALL + + col2 ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 74 FROM tab2 WHERE - 43 IS NOT NULL
----
74

query II rowsort
SELECT ALL col1, 66 AS col1 FROM tab2 WHERE NOT col1 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT + col1 DIV - 53 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT + col1 / - 53 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8103
SELECT ALL CAST( NULL AS SIGNED ) * - 18 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL CAST ( NULL AS INTEGER ) * - 18 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 63 AS col2 FROM tab1 WHERE NOT - ( - col1 ) + - col0 - + - col2 IN ( - col1 )
----
-63
-63
-63

query I rowsort
SELECT - - ( - + 31 ) * - col2 FROM tab2 AS cor0
----
1240
1798
713

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 44 * col0 )
----

query II rowsort
SELECT col2 AS col2, 28 FROM tab2 AS cor0
----
23
28
40
28
58
28

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 cor0 WHERE NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT - + ( - MIN( + 61 ) ) + - + SUM( - col1 ) FROM tab0 AS cor0
----
164

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT - + ( - MIN ( + 61 ) ) + - + SUM ( - col1 ) FROM tab0 AS cor0
----
164

query I rowsort
SELECT ALL + ( - 94 ) FROM tab0
----
-94
-94
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - ( - + col2 ) * - col2 ) IN ( + col1 * + col2 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 25 AS col1 FROM tab2 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT DISTINCT + + MAX( ALL col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT + + MAX ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT 16 + col0 DIV + + col2 AS col0 FROM tab2 AS cor0
----
17
17
18

skipif mysql # not compatible
query I rowsort label-8114
SELECT 16 + col0 / + + col2 AS col0 FROM tab2 AS cor0
----
17
17
18

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col1 > - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT col2 DIV + col2 + - col1 + + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-4909
-5019
-6234

skipif mysql # not compatible
query I rowsort label-8116
SELECT col2 / + col2 + - col1 + + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-4909
-5019
-6234

query III rowsort
SELECT * FROM tab0 WHERE - 13 >= ( - col2 )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8118
SELECT DISTINCT - ( SUM( ALL + col1 ) ) + - 85 AS col1, - 1 AS col0 FROM tab1
----
-151
-1

skipif mysql # not compatible
query II rowsort label-8118
SELECT DISTINCT - ( SUM ( ALL + col1 ) ) + - 85 AS col1, - 1 AS col0 FROM tab1
----
-151
-1

query I rowsort
SELECT DISTINCT + 79 FROM tab2 WHERE 89 IS NOT NULL
----
79

query I rowsort
SELECT DISTINCT col1 + - 96 FROM tab0
----
-15
-75
-95

query I rowsort
SELECT DISTINCT col0 + 78 AS col0 FROM tab2
----
124
142
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT DISTINCT + + col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) * - 34 * col1 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT + + col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * - 34 * col1 IS NULL
----
51
85
91

query I rowsort
SELECT 83 FROM tab2 WHERE NOT NULL IS NOT NULL
----
83
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8125
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8126
SELECT DISTINCT CAST( - + ( + 69 ) AS SIGNED ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT CAST ( - + ( + 69 ) AS INTEGER ) FROM tab0 AS cor0
----
-69

query I rowsort
SELECT ALL + + 47 * + col0 FROM tab0 AS cor0
----
4089
4559
705

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 - - - col1 - CAST( NULL AS SIGNED ) * - + col1 <= col2
----

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 - - - col1 - CAST ( NULL AS INTEGER ) * - + col1 <= col2
----

query I rowsort
SELECT DISTINCT col1 * + 97 AS col0 FROM tab0 AS cor0
----
2037
7857
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT DISTINCT + 96 * 39 + MAX( + - col1 ) + + COUNT( * ) + - + MAX( + - 61 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3757

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT + 96 * 39 + MAX ( + - col1 ) + + COUNT ( * ) + - + MAX ( + - 61 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3757

query I rowsort
SELECT ALL 53 * - 50 AS col1 FROM tab2
----
-2650
-2650
-2650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT DISTINCT + ( - CAST( - col1 AS SIGNED ) ) * - col1 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT + ( - CAST ( - col1 AS INTEGER ) ) * - col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8134
SELECT DISTINCT * FROM tab1 WHERE NOT + 71 * - - CAST( col2 AS SIGNED ) * + + 77 * - col0 * - ( - col1 ) + - - col2 + - 33 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8134
SELECT DISTINCT * FROM tab1 WHERE NOT + 71 * - - CAST ( col2 AS INTEGER ) * + + 77 * - col0 * - ( - col1 ) + - - col2 + - 33 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8135
SELECT CAST( NULL AS DECIMAL ) * + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT CAST ( NULL AS REAL ) * + + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT + COUNT( * ) DIV + 63 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT + COUNT ( * ) / + 63 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - - col1 ) col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8138
SELECT - 43 * - ( col1 ) - CAST( NULL AS DECIMAL ) 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-8138
SELECT - 43 * - ( col1 ) - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 * - 22 AS col2 FROM tab2 AS cor0
----
-1012
-1408
-1650

query I rowsort
SELECT + ( + 43 ) FROM tab2 AS cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT col1 + - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8141
SELECT col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT DISTINCT - COUNT( ALL col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT - COUNT ( ALL col1 ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT col1, - 43 AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
14
-43
47
-43
5
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8144
SELECT + - 88 * + - col0 + - 97 + - 40 * + ( + CAST( - - 64 AS SIGNED ) ) FROM tab0 AS cor0
----
-1337
4999
5879

skipif mysql # not compatible
query I rowsort label-8144
SELECT + - 88 * + - col0 + - 97 + - 40 * + ( + CAST ( - - 64 AS INTEGER ) ) FROM tab0 AS cor0
----
-1337
4999
5879

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8145
SELECT + MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL 94 + - COUNT( * ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL 94 + - COUNT ( * ) FROM tab0 AS cor0
----
91

query I rowsort
SELECT ALL - - 4 AS col2 FROM tab2 cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT - MIN( DISTINCT + - 57 ) AS col1 FROM tab1 cor0
----
57

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT - MIN ( DISTINCT + - 57 ) AS col1 FROM tab1 cor0
----
57

query I rowsort
SELECT ALL - col2 * col2 * col1 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query II rowsort label-8150
SELECT ALL + 61 * - 68 + + + SUM( ALL - col0 ) + + COUNT( * ) - + COUNT( * ) + COUNT( * ) AS col2, COUNT( * ) FROM tab2
----
-4330
3

skipif mysql # not compatible
query II rowsort label-8150
SELECT ALL + 61 * - 68 + + + SUM ( ALL - col0 ) + + COUNT ( * ) - + COUNT ( * ) + COUNT ( * ) AS col2, COUNT ( * ) FROM tab2
----
-4330
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT MAX( - 5 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8151
SELECT MAX ( - 5 ) FROM tab1
----
-5

query I rowsort
SELECT 9 - + col1 AS col0 FROM tab1
----
-38
-5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + + ( + COUNT( * ) ) * + COUNT( * ) FROM tab1 WHERE + + ( 84 ) * - col0 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8153
SELECT + + ( + COUNT ( * ) ) * + COUNT ( * ) FROM tab1 WHERE + + ( 84 ) * - col0 IS NOT NULL
----
9

query I rowsort
SELECT ALL 71 + - ( col0 ) - - - 91 * - col1 FROM tab0
----
1895
65
7427

query I rowsort
SELECT + 35 * - + 49 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3342df93cb12bcf6b9ddc5296bdbf89b

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8156
SELECT ALL * FROM tab0 WHERE + - CAST( + 11 AS DECIMAL ) BETWEEN col2 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8156
SELECT ALL * FROM tab0 WHERE + - CAST ( + 11 AS REAL ) BETWEEN col2 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT COUNT( * ) + + 57 AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT COUNT ( * ) + + 57 AS col0 FROM tab1
----
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 23 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT SUM( - col2 ) + - 64 FROM tab0
----
-220

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT SUM ( - col2 ) + - 64 FROM tab0
----
-220

query I rowsort
SELECT - col0 + + col0 + - - 1 + 14 FROM tab0
----
15
15
15

query I rowsort
SELECT 92 * + col0 + - col1 * + 95 FROM tab2
----
-1427
-613
535

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT - MAX( ALL + ( col2 ) ) * - ( - 52 ) col0 FROM tab2
----
-3016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8162
SELECT - MAX ( ALL + ( col2 ) ) * - ( - 52 ) col0 FROM tab2
----
-3016

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8163
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + + col2 * + CAST( - ( + 83 ) AS SIGNED ) NOT IN ( col0 * ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-8163
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + + col2 * + CAST ( - ( + 83 ) AS INTEGER ) NOT IN ( col0 * ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 99 ) col2 FROM tab2 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL + - MIN( ALL + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL + - MIN ( ALL + col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL - COUNT( * ) * + - 42 * - + 20 + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 cor0
----
-2511

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL - COUNT ( * ) * + - 42 * - + 20 + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 cor0
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT - + MIN( DISTINCT ( - col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8167
SELECT - + MIN ( DISTINCT ( - col2 ) ) FROM tab2 AS cor0
----
58

query II rowsort
SELECT col0, col1 + - 34 FROM tab0 AS cor0
----
15
47
87
-13
97
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 * + col1 + 26, col0 col2 FROM tab1 AS cor0
----
-234
85
-2418
91
-702
51

query I rowsort
SELECT DISTINCT col0 * - col1 * + 63 AS col2 FROM tab0
----
-115101
-6111
-76545

onlyif mysql # DIV for integer division: 
query I rowsort label-8171
SELECT ALL - col2 DIV - 81 * 33 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL - col2 / - 81 * 33 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - 64 FROM tab1 WHERE NOT NULL IS NOT NULL
----
64

query I rowsort
SELECT 85 + col2 - + - col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL + col0 + + + col2 AS col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL - col1 + 20 AS col1 FROM tab1
----
-27
15
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8177
SELECT DISTINCT + CAST( + 82 AS SIGNED ) + + - MAX( DISTINCT col2 ) + - + 5 + + CAST( NULL AS SIGNED ) - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT + CAST ( + 82 AS INTEGER ) + + - MAX ( DISTINCT col2 ) + - + 5 + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT + 17 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT + 60 AS col2 FROM tab0 cor0 WHERE col2 <= 35
----
60

query I rowsort
SELECT + 63 + col0 FROM tab0 AS cor0
----
150
160
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT DISTINCT + + 24 col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + - col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8182
SELECT DISTINCT + + 24 col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - col2 IS NULL
----

query I rowsort
SELECT ALL - + 68 AS col0 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT + ( COUNT( * ) ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8184
SELECT + ( COUNT ( * ) ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 93 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + col2 * + 28 AS col1 FROM tab2 AS cor0
----
1120
1624
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT ALL - 58 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL - 58 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-58
-58
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8188
SELECT DISTINCT - 86 DIV + 73 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT - 86 / + 73 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL COUNT( * ) * + 46 - + + 13 AS col0 FROM tab2 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL COUNT ( * ) * + 46 - + + 13 AS col0 FROM tab2 AS cor0
----
125

query I rowsort
SELECT DISTINCT + col1 * - 20 FROM tab1
----
-100
-280
-940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - ( - col1 ) * col1 FROM tab0 WHERE ( - col0 ) BETWEEN + col2 * ( + ( + 16 ) ) AND - - col2 * + - col2 + - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT ALL + col0 DIV col1 + - - 88 FROM tab2
----
88
88
89

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL + col0 / col1 + - - 88 FROM tab2
----
88
88
89

query I rowsort
SELECT ALL - col2 * col1 - + + 91 AS col0 FROM tab1
----
-1435
-3287
-386

onlyif mysql # DIV for integer division: 
query I rowsort label-8195
SELECT DISTINCT 56 - - - col0 * col1 DIV + col1 AS col0 FROM tab0
----
-31
-41
41

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT 56 - - - col0 * col1 / + col1 AS col0 FROM tab0
----
-31
-41
41

query III rowsort
SELECT * FROM tab2 WHERE + + col0 + col1 + + col1 - - - col1 / - 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 - + - col1 + 37 + col1 AS col1 FROM tab0
----
-60
152
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT + COUNT( ALL + 76 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8198
SELECT + COUNT ( ALL + 76 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> ( + col0 )
----

query I rowsort
SELECT - col1 - 26 FROM tab0 AS cor0
----
-107
-27
-47

query I rowsort
SELECT - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + + 77 <> - col1
----

query II rowsort
SELECT + 61, + col1 AS col1 FROM tab2 AS cor0
----
61
51
61
67
61
77

query I rowsort
SELECT DISTINCT 61 FROM tab2 cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL <> + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + + 59 / + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 60 AS col2 FROM tab2 cor0 WHERE ( + col0 / - - col0 * - 47 ) IS NULL
----

query I rowsort
SELECT DISTINCT + + ( - 28 ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT + COUNT( + col2 ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8209
SELECT + COUNT ( + col2 ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 36 * col0 * - - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT + SUM( + col1 ) - - 43 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT + SUM ( + col1 ) - - 43 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT - 49 + COUNT( DISTINCT 78 ) - COUNT( * ) FROM tab2 WHERE NOT + 59 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-8215
SELECT - 49 + COUNT ( DISTINCT 78 ) - COUNT ( * ) FROM tab2 WHERE NOT + 59 IS NULL
----
-51

query I rowsort
SELECT + ( + - col0 ) AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col1 FROM tab0 WHERE NOT NULL < + col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT + COUNT( * ) * + 6 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-8218
SELECT + COUNT ( * ) * + 6 FROM tab0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, col0 col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT - 74 * - + MAX( ALL 99 ) FROM tab1
----
7326

skipif mysql # not compatible
query I rowsort label-8220
SELECT - 74 * - + MAX ( ALL 99 ) FROM tab1
----
7326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT - AVG ( - col1 ) col0 FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) * + col0 >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8221
SELECT - AVG ( - col1 ) col0 FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) * + col0 >= NULL
----
NULL

query I rowsort
SELECT 67 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + + col1 * + col1 FROM tab0 cor0
----
1
441
6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT DISTINCT + ( - + 63 ) DIV + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-7

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + ( - + 63 ) / + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-7

query I rowsort
SELECT ALL col1 + - 35 FROM tab0
----
-14
-34
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT DISTINCT MIN( - col1 ) * + - 46 + 77 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
2393

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT MIN ( - col1 ) * + - 46 + 77 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
2393

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL + COUNT( * ) - + 47 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL + COUNT ( * ) - + 47 FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + + COUNT( * ) col1 FROM tab1 AS cor0 WHERE + 52 * - + col0 / - col0 NOT BETWEEN NULL AND - col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8228
SELECT + + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE + 52 * - + col0 / - col0 NOT BETWEEN NULL AND - col2
----
3

query I rowsort
SELECT ( col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT ALL - col0 DIV - - 49 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - col0 / - - 49 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8231
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + col1 col2, - col2 col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8231
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + col1 col2, - col2 col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

query II rowsort
SELECT DISTINCT - col0 * + col2 * - col2, - 60 - col0 AS col1 FROM tab1
----
295885
-145
420784
-151
470016
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT MIN( DISTINCT - 89 ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-8233
SELECT MIN ( DISTINCT - 89 ) FROM tab1
----
-89

query I rowsort
SELECT DISTINCT 66 * - 7 FROM tab1
----
-462

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - 7 ) IS NOT NULL
----

query I rowsort
SELECT col2 * - - ( - + ( - + col2 ) ) FROM tab2
----
1600
3364
529

query I rowsort
SELECT ALL - 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + ( - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + ( - - col0 )
----
0

query II rowsort
SELECT ALL + + col2 AS col1, 43 AS col1 FROM tab1 AS cor0
----
59
43
68
43
96
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE 63 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE 63 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8241
SELECT - col2 AS col0, + col1 DIV col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-8241
SELECT - col2 AS col0, + col1 / col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT 23 * + COUNT( * ) FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-8242
SELECT 23 * + COUNT ( * ) FROM tab1 cor0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8243
SELECT DISTINCT - 24 AS col0, MAX( - 13 ) FROM tab2 AS cor0
----
-24
-13

skipif mysql # not compatible
query II rowsort label-8243
SELECT DISTINCT - 24 AS col0, MAX ( - 13 ) FROM tab2 AS cor0
----
-24
-13

query I rowsort
SELECT DISTINCT + col2 + - 52 * + col2 FROM tab1 AS cor0
----
-3009
-3468
-4896

query I rowsort
SELECT - 47 * - ( col0 ) * 41 + - + col2 - + - 38 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 90 + + ( + col2 ) AS col0 FROM tab0
----
100
137
189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 70 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 + + 83, col1 AS col2 FROM tab2
----
25
67
43
77
60
51

query I rowsort
SELECT ALL - 6 AS col0 FROM tab0 WHERE NOT NULL IN ( + 79, - col0, col0 * 40 + + - 12, + + col0 * - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT - 6 * + COUNT( * ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8250
SELECT - 6 * + COUNT ( * ) FROM tab1 AS cor0
----
-18

query II rowsort
SELECT + col1 * + col2, col1 AS col2 FROM tab1 AS cor0
----
1344
14
295
5
3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL - + MAX( + 78 ) - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-87

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - + MAX ( + 78 ) - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-87

query I rowsort
SELECT ALL - 59 + + 95 AS col1 FROM tab1 AS cor0
----
36
36
36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 34 IS NOT NULL AND - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - - 27 AS col1, - col1 FROM tab2 AS cor0
----
27
-51
27
-67
27
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + + 24 col2 FROM tab2 cor0 WHERE - col0 / - + col1 NOT BETWEEN ( + + col0 - + - col2 * + + 8 ) AND + ( + 67 )
----
39
39
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0, col2, - + col1, - + 39 )
----

query I rowsort
SELECT - - 71 * + 86 AS col2 FROM tab0 cor0
----
6106
6106
6106

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - + 2 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8260
SELECT - + 2 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 WHERE NOT + 46 BETWEEN - - 58 AND 22
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - 63 >= NULL
----

query I rowsort
SELECT 18 AS col1 FROM tab1 WHERE NOT + col0 BETWEEN col1 * col2 + + col0 + + - col0 + - 71 * + col1 * 46 AND NULL
----

query I rowsort
SELECT col1 * + col0 * + + col0 * + 86 FROM tab0
----
13669614
1567350
809174

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT - COUNT( * ) + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8265
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT COUNT( * ) + - 24 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-8266
SELECT COUNT ( * ) + - 24 FROM tab0
----
-21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 39 NOT IN ( - + col1 / + 99 * - - col1, + col1 * - 9, - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL - SUM( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL - SUM ( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab0 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT ALL + + 59 - - 56 FROM tab2 AS cor0 WHERE - col2 + + 23 * + 84 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 52, ( + 0 ) col1 FROM tab2
----
52
0

query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab1 WHERE NULL BETWEEN + + col2 AND - 84
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 65 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8274
SELECT SUM( ALL - ( CAST( - 28 AS SIGNED ) ) ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-8274
SELECT SUM ( ALL - ( CAST ( - 28 AS INTEGER ) ) ) AS col1 FROM tab1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col0 ) col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT + 0 * COUNT( * ) + + 78 + ( + SUM( + - col2 ) ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + 0 * COUNT ( * ) + + 78 + ( + SUM ( + - col2 ) ) FROM tab0
----
-78

query I rowsort
SELECT ALL - col0 + - 13 - + col1 FROM tab0
----
-109
-111
-121

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 * - 59 - - + 88 * + 55 * + + 63 * col0 / + 22 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT DISTINCT COUNT( DISTINCT + 93 ) + - 5 AS col0 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT COUNT ( DISTINCT + 93 ) + - 5 AS col0 FROM tab0
----
-4

query I rowsort
SELECT ( - + ( - 71 ) ) AS col0 FROM tab2
----
71
71
71

query II rowsort
SELECT 16, + col1 AS col1 FROM tab0
----
16
1
16
21
16
81

query I rowsort
SELECT DISTINCT - + ( + - 36 ) FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8283
SELECT ALL 19 AS col1, + COUNT( * ) FROM tab2 cor0
----
19
3

skipif mysql # not compatible
query II rowsort label-8283
SELECT ALL 19 AS col1, + COUNT ( * ) FROM tab2 cor0
----
19
3

query I rowsort
SELECT - col1 * col2 * - + col0 + + + col0 FROM tab2 cor0
----
197184
291525
54004

query I rowsort
SELECT - 7 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT - 28 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col2 * - + col0 AS col1 FROM tab0 AS cor0 WHERE + 14 - col0 * + col2 IS NOT NULL
----
705
870
9603

query I rowsort
SELECT - + 95 * - col0 FROM tab1 AS cor0
----
4845
8075
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT COUNT( * ) * 69 FROM tab1 AS cor0 WHERE NOT NULL = ( + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT COUNT ( * ) * 69 FROM tab1 AS cor0 WHERE NOT NULL = ( + 67 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT col0 DIV - ( + 32 ) AS col0 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-8291
SELECT col0 / - ( + 32 ) AS col0 FROM tab0
----
-2
-3
0

query I rowsort
SELECT DISTINCT - col1 * + - 75 AS col1 FROM tab2
----
3825
5025
5775

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT ALL COUNT( * ) AS col1, MIN( 33 ) FROM tab1
----
3
33

skipif mysql # not compatible
query II rowsort label-8293
SELECT ALL COUNT ( * ) AS col1, MIN ( 33 ) FROM tab1
----
3
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL - 17 * CAST( - + 2 AS SIGNED ) * - col0 * col1 AS col0 FROM tab2
----
-167552
-170850
-79764

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL - 17 * CAST ( - + 2 AS INTEGER ) * - col0 * col1 AS col0 FROM tab2
----
-167552
-170850
-79764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT DISTINCT AVG ( DISTINCT - col1 ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT AVG ( DISTINCT - col1 ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 8 FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT + 34 * + ( + + col0 ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - + col2 / + + 67 AND + - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 10 * 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * + 35 * - + col2 AS col0 FROM tab2
----
-107800
-136010
-41055

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8304
SELECT DISTINCT + 38 DIV COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT + 38 / COUNT ( * ) FROM tab2
----
12

query I rowsort
SELECT ALL + ( - ( - ( + col1 ) ) ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + col0 * + + col1 - + - col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + 73 * - COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-8307
SELECT + 73 * - COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
-219

query I rowsort
SELECT + + 90 + - col1 AS col2 FROM tab1 AS cor0
----
43
76
85

query I rowsort
SELECT - col2 + - + col0 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT - col2 + ( - col0 ) * col1 AS col2 FROM tab2 cor0
----
-2369
-4968
-5083

query I rowsort
SELECT + 10 + + col1 AS col0 FROM tab2
----
61
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT 16 + MIN( + ( 30 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT 16 + MIN ( + ( 30 ) ) AS col1 FROM tab2
----
46

query I rowsort
SELECT - col1 + 59 * + col1 AS col2 FROM tab0
----
1218
4698
58

query I rowsort
SELECT col1 * - col1 + + col0 + 21 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8315
SELECT + col2 * - + CAST( ( + col2 ) AS SIGNED ) + - CAST( - - 99 AS SIGNED ) - - 26 * - + CAST( - 97 AS SIGNED ) AS col0 FROM tab2
----
-941
1894
823

skipif mysql # not compatible
query I rowsort label-8315
SELECT + col2 * - + CAST ( ( + col2 ) AS INTEGER ) + - CAST ( - - 99 AS INTEGER ) - - 26 * - + CAST ( - 97 AS INTEGER ) AS col0 FROM tab2
----
-941
1894
823

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 NOT BETWEEN NULL AND - ( + + ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 94 FROM tab2 WHERE NOT - col1 + ( col2 ) * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - 17 * + col2 FROM tab0
----
-149
-1682
-718

query I rowsort
SELECT - col1 * ( + 86 ) + 82 FROM tab2 AS cor0
----
-4304
-5680
-6540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8321
SELECT - COUNT( * ) DIV + ( - - CAST( MIN( 51 ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8321
SELECT - COUNT ( * ) / + ( - - CAST ( MIN ( 51 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 41 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 * col1 * + 87 = NULL
----

query I rowsort
SELECT DISTINCT - 85 * + + 62 + + col2 FROM tab1 AS cor0
----
-5174
-5202
-5211

query I rowsort
SELECT DISTINCT - col1 - col2 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1109
-2637
-4417

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8327
SELECT ALL 48 DIV 42 + + COUNT( * ) * + + COUNT( * ) col0 FROM tab2
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8327
SELECT ALL 48 / 42 + + COUNT ( * ) * + + COUNT ( * ) col0 FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL - + COUNT( ALL col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - + COUNT ( ALL col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL + COUNT( * ) * + - 15 - + - 80 FROM tab0 cor0 WHERE - 75 NOT IN ( col1, col2, + col2 )
----
35

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL + COUNT ( * ) * + - 15 - + - 80 FROM tab0 cor0 WHERE - 75 NOT IN ( col1, col2, + col2 )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT ALL + 92 AS col2, - 97 - + - 52 + - COUNT( * ) FROM tab2 AS cor0
----
92
-48

skipif mysql # not compatible
query II rowsort label-8330
SELECT ALL + 92 AS col2, - 97 - + - 52 + - COUNT ( * ) FROM tab2 AS cor0
----
92
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - - MAX( ALL + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8331
SELECT - - MAX ( ALL + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL col2 * 80 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT - + COUNT( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8334
SELECT - + COUNT ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8335
SELECT DISTINCT col2 AS col1, 58 * 32 DIV - - col0 + + col1 FROM tab0 AS cor0
----
10
42
47
204
99
20

skipif mysql # not compatible
query II rowsort label-8335
SELECT DISTINCT col2 AS col1, 58 * 32 / - - col0 + + col1 FROM tab0 AS cor0
----
10
42
47
204
99
20

query III rowsort
SELECT * FROM tab2 WHERE NOT 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 55 * + + 91 AS col0 FROM tab2
----
5005
5005
5005

query I rowsort
SELECT ALL 82 * + 20 AS col1 FROM tab1
----
1640
1640
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT - 22 * COUNT( * ) AS col2 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-8339
SELECT - 22 * COUNT ( * ) AS col2 FROM tab0
----
-66

query I rowsort
SELECT - col1 * - ( + 1 ) * + col1 * - + col2 AS col2 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT + 88 * - + col2 * 73 AS col2 FROM tab0
----
-301928
-635976
-64240

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT + SUM( ALL - - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8342
SELECT + SUM ( ALL - - col2 ) FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col1 FROM tab0 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT - COUNT( ALL - ( + + col0 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8344
SELECT - COUNT ( ALL - ( + + col0 ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + MIN( ALL - + 25 ) FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT + MIN ( ALL - + 25 ) FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8346
SELECT DISTINCT col1, + col0 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8346
SELECT DISTINCT col1, + col0 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8347
SELECT * FROM tab2 AS cor0 WHERE col2 / CAST( NULL AS SIGNED ) + + - 74 = - CAST( col2 AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-8347
SELECT * FROM tab2 AS cor0 WHERE col2 / CAST ( NULL AS INTEGER ) + + - 74 = - CAST ( col2 AS INTEGER ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT 8 + + + MIN( + - col2 ) FROM tab2 cor0 WHERE col0 + col2 <= - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT 8 + + + MIN ( + - col2 ) FROM tab2 cor0 WHERE col0 + col2 <= - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT + MIN( + 13 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8349
SELECT + MIN ( + 13 ) FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8350
SELECT - MIN( - - col0 ), - 44 AS col2 FROM tab2
----
-46
-44

skipif mysql # not compatible
query II rowsort label-8350
SELECT - MIN ( - - col0 ), - 44 AS col2 FROM tab2
----
-46
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 + - col0 col1 FROM tab1
----
-52
-86
-92

query II rowsort
SELECT ALL - col2 + 14 AS col1, col1 AS col2 FROM tab0
----
-33
81
-85
1
4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 + - col1 col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT DISTINCT COUNT( * ) + - - 14 AS col1 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT COUNT ( * ) + - - 14 AS col1 FROM tab2
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 73 + + col1 col2, + 13 FROM tab0
----
154
13
74
13
94
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT + 82 * - col2 - - + 2 - + - col0 + + col2 DIV + col1 + + - col2 + - 16 * + - col2 * - - 42 * + - ( + col1 ) AS col1 FROM tab0
----
-141861
-2562188
-74547

skipif mysql # not compatible
query I rowsort label-8356
SELECT + 82 * - col2 - - + 2 - + - col0 + + col2 / + col1 + + - col2 + - 16 * + - col2 * - - 42 * + - ( + col1 ) AS col1 FROM tab0
----
-141861
-2562188
-74547

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT DISTINCT + SUM( col2 ) + - + SUM( DISTINCT 73 ) AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT + SUM ( col2 ) + - + SUM ( DISTINCT 73 ) AS col2 FROM tab2
----
48

query I rowsort
SELECT + 93 + + 37 FROM tab1
----
130
130
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8359
SELECT - col1 * - col0 + + col1 * CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT - col1 * - col0 + + col1 * CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 92 + + col2 + + col1 AS col2 FROM tab2
----
166
209
217

query I rowsort
SELECT + 4 FROM tab0 AS cor0 WHERE col0 * col1 * - + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8362
SELECT + 20 AS col0, - col0 DIV 93 AS col1 FROM tab1
----
20
0
20
0
20
0

skipif mysql # not compatible
query II rowsort label-8362
SELECT + 20 AS col0, - col0 / 93 AS col1 FROM tab1
----
20
0
20
0
20
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT DISTINCT + + col0 AS col1 FROM tab2 WHERE + - col2 + - col0 / col2 * + 38 NOT BETWEEN + CAST( NULL AS SIGNED ) + 31 * - col0 AND - - col1
----

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT + + col0 AS col1 FROM tab2 WHERE + - col2 + - col0 / col2 * + 38 NOT BETWEEN + CAST ( NULL AS INTEGER ) + 31 * - col0 AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT + 58 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8364
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT + 58 <= + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + - 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 79 AS col1, - col0 + - col0 * col0 + + col0 FROM tab2 cor0
----
79
-2116
79
-4096
79
-5625

onlyif mysql # aggregate syntax: 
query II rowsort label-8367
SELECT DISTINCT - 51 col0, - COUNT( * ) FROM tab1 AS cor0
----
-51
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8367
SELECT DISTINCT - 51 col0, - COUNT ( * ) FROM tab1 AS cor0
----
-51
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8368
SELECT - col1 AS col2, col1 - - + col2 DIV + col0 FROM tab0
----
-1
2
-21
21
-81
84

skipif mysql # not compatible
query II rowsort label-8368
SELECT - col1 AS col2, col1 - - + col2 / + col0 FROM tab0
----
-1
2
-21
21
-81
84

query I rowsort
SELECT ALL 46 * + col0 AS col0 FROM tab0
----
4002
4462
690

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT 42 * + COUNT( * ) FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-8370
SELECT 42 * + COUNT ( * ) FROM tab2
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8371
SELECT * FROM tab0 WHERE NOT ( NOT ( + - col0 NOT IN ( CAST( NULL AS SIGNED ), + 54, + - 25 / + 73 + + + 41 / + 18 * + col0 ) ) )
----

skipif mysql # not compatible
query III rowsort label-8371
SELECT * FROM tab0 WHERE NOT ( NOT ( + - col0 NOT IN ( CAST ( NULL AS INTEGER ), + 54, + - 25 / + 73 + + + 41 / + 18 * + col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL ( - - MAX( 29 ) ) col1 FROM tab1 WHERE NOT - col1 >= col0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8372
SELECT ALL ( - - MAX ( 29 ) ) col1 FROM tab1 WHERE NOT - col1 >= col0
----
29

query I rowsort
SELECT col0 * - + 2 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-8374
SELECT DISTINCT + COUNT( * ) AS col1, + 90 * + - 19 + + + 85 FROM tab0
----
3
-1625

skipif mysql # not compatible
query II rowsort label-8374
SELECT DISTINCT + COUNT ( * ) AS col1, + 90 * + - 19 + + + 85 FROM tab0
----
3
-1625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 12 col0 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT ALL col0 * + - 34 FROM tab0 AS cor0
----
-2958
-3298
-510

query I rowsort
SELECT DISTINCT - col0 * + + col2 + - col0 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT ALL + CAST( NULL AS SIGNED ) + - + col1 * 91 - - col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8378
SELECT ALL + CAST ( NULL AS INTEGER ) + - + col1 * 91 - - col2 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 29 * + - col0 * - col2 * - - 7 FROM tab1
----
-1018045
-1256164
-993888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT + 53 + - 79 + + CAST( - + MAX( - col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8380
SELECT + 53 + - 79 + + CAST ( - + MAX ( - col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col0 FROM tab2 cor0
----
64
64
64

query I rowsort
SELECT col2 + + + col1 * + + 43 AS col1 FROM tab0 AS cor0
----
142
3530
913

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL + MAX( col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT + COUNT( * ) + - 63 + COUNT( * ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8384
SELECT + COUNT ( * ) + - 63 + COUNT ( * ) FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-8385
SELECT - - 51 + 34 AS col2, - COUNT( * ) FROM tab2 cor0
----
85
-3

skipif mysql # not compatible
query II rowsort label-8385
SELECT - - 51 + 34 AS col2, - COUNT ( * ) FROM tab2 cor0
----
85
-3

query I rowsort
SELECT - 11 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT ALL - - col1 + + col1 * + + col1 * + + ( - + CAST( NULL AS SIGNED ) ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - - col1 + + col1 * + + col1 * + + ( - + CAST ( NULL AS INTEGER ) ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0, col0 AS col2 FROM tab1 AS cor0 WHERE - 23 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8389
SELECT ALL CAST( col0 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col0 * - 51 + col2 + col2
----

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL CAST ( col0 AS REAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col0 * - 51 + col2 + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8390
SELECT CAST( NULL AS DECIMAL ) + + 78 * - col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8390
SELECT CAST ( NULL AS REAL ) + + 78 * - col0 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8391
SELECT ALL 38 + - 78 DIV + col2 + + + col0 * + 14 FROM tab2
----
1087
679
933

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL 38 + - 78 / + col2 + + + col0 * + 14 FROM tab2
----
1087
679
933

query I rowsort
SELECT DISTINCT col2 + ( + col2 ) FROM tab1 WHERE NULL IS NULL
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-8393
SELECT DISTINCT col1 DIV + col2 + - 89 col2 FROM tab0
----
-87
-88
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8393
SELECT DISTINCT col1 / + col2 + - 89 col2 FROM tab0
----
-87
-88
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 81 - col0 col0 FROM tab2
----
1817
3176
4623

query II rowsort
SELECT ALL col0 * 25 - - + col1, + 46 + + - col0 * - col1 + + col0 AS col2 FROM tab1
----
1289
811
2130
556
2322
4414

query II rowsort
SELECT + col1 AS col1, 16 FROM tab0 AS cor0
----
1
16
21
16
81
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT ALL CAST( NULL AS SIGNED ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL CAST ( NULL AS INTEGER ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 79 - 43 AS col2 FROM tab1 AS cor0
----
-122
-122
-122

query I rowsort
SELECT - 82 - col0 FROM tab0 AS cor0
----
-169
-179
-97

query I rowsort
SELECT DISTINCT ( ( - 28 ) ) AS col0 FROM tab2 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT col1 - - 26 DIV - col2 - - + col1 AS col0 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-8401
SELECT col1 - - 26 / - col2 - - + col1 AS col0 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - - ( + col0 ) ) + + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT ALL CAST( - + 33 AS SIGNED ) * - col2 * - col2 + col2 col2 FROM tab1
----
-114814
-152524
-304032

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8403
SELECT ALL CAST ( - + 33 AS INTEGER ) * - col2 * - col2 + col2 col2 FROM tab1
----
-114814
-152524
-304032

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 26 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + col0 col0, col2 col1 FROM tab2 AS cor0
----
-1058
23
-2560
40
-4350
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8406
SELECT + CAST( col0 AS SIGNED ) / - col0 * + - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT + CAST ( col0 AS INTEGER ) / - col0 * + - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 33 ) col1 FROM tab2 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8408
SELECT ALL + CAST( NULL AS DECIMAL ) / + col1 + + col1 + + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL + CAST ( NULL AS REAL ) / + col1 + + col1 + + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT DISTINCT + MIN( DISTINCT + + 58 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT + MIN ( DISTINCT + + 58 ) FROM tab0 AS cor0
----
58

query I rowsort
SELECT + 52 AS col1 FROM tab0 AS cor0 WHERE NOT + 42 IS NULL
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT 3 * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8411
SELECT 3 * COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT - col0 + - + 19 FROM tab0
----
-106
-116
-34

query I rowsort
SELECT col0 * - - 10 FROM tab0
----
150
870
970

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT + MAX( + 19 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8414
SELECT + MAX ( + 19 ) FROM tab1
----
19

query I rowsort
SELECT ALL - 12 + + 97 AS col0 FROM tab2
----
85
85
85

query II rowsort
SELECT ALL 26 AS col2, + 96 + col2 FROM tab1
----
26
155
26
164
26
192

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 63 + + 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - ( 22 ) AS col0 FROM tab0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8420
SELECT - CAST( - + col1 AS SIGNED ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8420
SELECT - CAST ( - + col1 AS INTEGER ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL - + 88 * + col2 * col1 - col1 AS col2 FROM tab2 AS cor0
----
-103275
-271117
-342035

query I rowsort
SELECT DISTINCT + ( + - 72 ) FROM tab0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT + ( - 12 ) + + col1 DIV 54 + + col1 FROM tab0
----
-11
70
9

skipif mysql # not compatible
query I rowsort label-8423
SELECT + ( - 12 ) + + col1 / 54 + + col1 FROM tab0
----
-11
70
9

query I rowsort
SELECT DISTINCT ( - 82 ) AS col1 FROM tab1 AS cor0
----
-82

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE - 64 / + + col1 <> NULL
----

query II rowsort
SELECT col2, col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1, col0 - - - 82 FROM tab1 AS cor0
----
14
-31
47
9
5
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT ALL + COUNT( * ) * + 87 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + COUNT ( * ) * + 87 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ( - + COUNT( + - col1 ) ) * 94 - + - COUNT( * ) FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8429
SELECT ( - + COUNT ( + - col1 ) ) * 94 - + - COUNT ( * ) FROM tab1 cor0
----
-279

query I rowsort
SELECT - 47 - + ( - col2 ) AS col0 FROM tab1
----
12
21
49

query III rowsort
SELECT * FROM tab0 WHERE - col1 > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8432
SELECT + col0 - - + col0 AS col0, CAST( NULL AS SIGNED ) * - ( + - col0 ) + + 7 * + col1 AS col1 FROM tab1
----
102
NULL
170
NULL
182
NULL

skipif mysql # not compatible
query II rowsort label-8432
SELECT + col0 - - + col0 AS col0, CAST ( NULL AS INTEGER ) * - ( + - col0 ) + + 7 * + col1 AS col1 FROM tab1
----
102
NULL
170
NULL
182
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT DISTINCT - col2 + + - ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT - col2 + + - ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8434
SELECT ALL 20 - + - COUNT( * ), 14 col0 FROM tab0
----
23
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8434
SELECT ALL 20 - + - COUNT ( * ), 14 col0 FROM tab0
----
23
14

query I rowsort
SELECT - 97 FROM tab0 AS cor0 WHERE NOT 22 + - 89 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * ( + + 73 ) - + col1 AS col0 FROM tab1 AS cor0
----
4302
4917
6994

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 85 * col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT DISTINCT - ( - COUNT( * ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8440
SELECT 78 DIV col0 * + 93, col0 AS col0 FROM tab0
----
0
87
0
97
465
15

skipif mysql # not compatible
query II rowsort label-8440
SELECT 78 / col0 * + 93, col0 AS col0 FROM tab0
----
0
87
0
97
465
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8441
SELECT ALL + col2, 57 + - CAST( NULL AS SIGNED ) - + col0 / + 16 AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8441
SELECT ALL + col2, 57 + - CAST ( NULL AS INTEGER ) - + col0 / + 16 AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT 48 col0, - COUNT( * ) col1 FROM tab0 AS cor0
----
48
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8442
SELECT 48 col0, - COUNT ( * ) col1 FROM tab0 AS cor0
----
48
-3

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE NOT col0 * + col2 BETWEEN col1 AND + col1 * - col0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT 37 DIV - col0 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8444
SELECT 37 / - col0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( 83 BETWEEN - col1 + + - 54 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col0 col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query II rowsort label-8447
SELECT + + 44 AS col1, 82 + + + COUNT( * ) FROM tab0 AS cor0
----
44
85

skipif mysql # not compatible
query II rowsort label-8447
SELECT + + 44 AS col1, 82 + + + COUNT ( * ) FROM tab0 AS cor0
----
44
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL - COUNT( DISTINCT - - 33 ) + - 3 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - COUNT ( DISTINCT - - 33 ) + - 3 FROM tab2
----
-4

query II rowsort
SELECT col2, + col0 FROM tab1 WHERE NOT + + 21 > ( 89 )
----
59
85
68
91
96
51

query I rowsort
SELECT 15 FROM tab1 WHERE NOT - + col1 * col2 * - - 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8451
SELECT - 18 / col2 + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8451
SELECT - 18 / col2 + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT MAX( ALL ( + col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8452
SELECT MAX ( ALL ( + col0 ) ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT - ( - - 34 ) AS col2 FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8454
SELECT + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NULL < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + - col1 col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT - + 70 + + + 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col0 + + - col0 - - col1 col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT + col2 + - col1 + col1 * - 30 + - + col1 AS col1 FROM tab1 AS cor0
----
-101
-1436
-352

query I rowsort
SELECT ALL col1 - 89 FROM tab2 AS cor0
----
-12
-22
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT + ( + - COUNT( * ) ) + - - COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) < - 3
----
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT + ( + - COUNT ( * ) ) + - - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) < - 3
----
0

query I rowsort
SELECT col2 * + 8 * + 37 * + col2 + - col0 + - 89 AS col0 FROM tab0 AS cor0
----
2900910
29424
653760

query I rowsort
SELECT col0 * + + col1 + - 99 AS col1 FROM tab2 AS cor0
----
2247
4829
4926

query I rowsort
SELECT DISTINCT ( 15 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col0 + - - 69 AS col2 FROM tab1 AS cor0
----
-16
-22
18

query I rowsort
SELECT - + 64 * + col0 + + - col0 AS col2 FROM tab2 AS cor0
----
-2990
-4160
-4875

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 col2 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT 91 + + col1 FROM tab0
----
112
172
92

query I rowsort
SELECT ALL - 20 * - col1 * - 22 + ( - - ( - - 3 ) ) FROM tab0
----
-35637
-437
-9237

onlyif mysql # aggregate syntax: 
query II rowsort label-8471
SELECT DISTINCT 57 + - 96 AS col2, + COUNT( * ) - - 16 AS col1 FROM tab0
----
-39
19

skipif mysql # not compatible
query II rowsort label-8471
SELECT DISTINCT 57 + - 96 AS col2, + COUNT ( * ) - - 16 AS col1 FROM tab0
----
-39
19

query I rowsort
SELECT - + col1 FROM tab1 WHERE NULL <= 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL + COUNT( * ) * + 29 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL + COUNT ( * ) * + 29 FROM tab2
----
87

query I rowsort
SELECT ALL 20 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( 98 ) col0 FROM tab1
----
1372
4606
490

query I rowsort
SELECT - 29 * - - col0 FROM tab0
----
-2523
-2813
-435

onlyif mysql # aggregate syntax: 
query II rowsort label-8477
SELECT - SUM( col0 ) AS col0, - 91 FROM tab0
----
-199
-91

skipif mysql # not compatible
query II rowsort label-8477
SELECT - SUM ( col0 ) AS col0, - 91 FROM tab0
----
-199
-91

query II rowsort
SELECT ALL + 97 AS col0, col1 * - col1 * + 16 AS col0 FROM tab1 AS cor0 WHERE col1 + col2 + - col1 = + + col1
----

query II rowsort
SELECT + + col2, + 23 * + col0 FROM tab2 AS cor0
----
23
1058
40
1472
58
1725

query I rowsort
SELECT col1 * + 58 * col2 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
1059660
3312090
556974

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL + - COUNT( * ) * - ( 55 ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + - COUNT ( * ) * - ( 55 ) FROM tab2 AS cor0
----
165

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL ( COUNT( * ) ) * 27 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL ( COUNT ( * ) ) * 27 FROM tab2
----
81

query I rowsort
SELECT + 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL COUNT( ( + col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL COUNT ( ( + col2 ) ) FROM tab1
----
3

query I rowsort
SELECT - ( 87 ) * + col1 * - col2 FROM tab0
----
18270
331209
8613

query I rowsort
SELECT DISTINCT ( + 27 ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT col0 + - col2 * col2 * + - 70 FROM tab1 AS cor0 WHERE NOT + 30 * 43 + - 21 + - 62 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 + + 25 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8490
SELECT + col0 DIV - 5 AS col1, + col1 + + col1 + + - col1 AS col1 FROM tab0 cor0
----
-17
21
-19
1
-3
81

skipif mysql # not compatible
query II rowsort label-8490
SELECT + col0 / - 5 AS col1, + col1 + + col1 + + - col1 AS col1 FROM tab0 cor0
----
-17
21
-19
1
-3
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT DISTINCT - + col1 * - CAST( NULL AS SIGNED ) * + 3 * 81 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - + col1 * - CAST ( NULL AS INTEGER ) * + 3 * 81 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT + 40 + + col2 NOT BETWEEN NULL AND + + col0 + - col0
----

query I rowsort
SELECT ALL + col2 + + 55 AS col1 FROM tab1
----
114
123
151

query I rowsort
SELECT DISTINCT + 85 + - - 8 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8495
SELECT DISTINCT 21, - MAX( DISTINCT - col1 ) AS col2 FROM tab1
----
21
5

skipif mysql # not compatible
query II rowsort label-8495
SELECT DISTINCT 21, - MAX ( DISTINCT - col1 ) AS col2 FROM tab1
----
21
5

query II rowsort
SELECT + col2 AS col2, + col0 AS col1 FROM tab1
----
59
85
68
91
96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8498
SELECT ALL CAST( NULL AS DECIMAL ) + - - ( - - SUM( ALL col0 ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL CAST ( NULL AS REAL ) + - - ( - - SUM ( ALL col0 ) ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT MAX( DISTINCT col0 ) * 88 AS col0 FROM tab1
----
8008

skipif mysql # not compatible
query I rowsort label-8499
SELECT MAX ( DISTINCT col0 ) * 88 AS col0 FROM tab1
----
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT - col1 BETWEEN ( NULL ) AND 77
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col1 BETWEEN ( NULL ) AND 77
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( - 68 + - 2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL 42 + ( - col1 ) FROM tab1
----
-5
28
37

query I rowsort
SELECT ALL + col1 * 35 FROM tab0
----
2835
35
735

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 <= - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 80
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) IN ( col1 * + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1 WHERE NOT + col0 * + 5 + 62 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 * + 5 + 62 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - col2 + - 91 FROM tab1
----
3390
4533
9125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8511
SELECT 13 DIV + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8511
SELECT 13 / + COUNT ( * ) FROM tab0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8512
SELECT COUNT( * ) DIV 75 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8512
SELECT COUNT ( * ) / 75 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8513
SELECT - col0 DIV - 53 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8513
SELECT - col0 / - 53 AS col0 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + col1 * + col0 AS col2 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT DISTINCT - col0 + + col0 * - 62 FROM tab1
----
-3213
-5355
-5733

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * col0 >= NULL
----

query I rowsort
SELECT DISTINCT + 99 + - col0 AS col1 FROM tab0
----
12
2
84

query I rowsort
SELECT ALL 74 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
74
74
74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 70 / 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT - col1 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 67 - - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( col2 ) NOT IN ( 34 * ( 13 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT MIN( 49 ) col1 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8526
SELECT DISTINCT MIN ( 49 ) col1 FROM tab1 AS cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8527
SELECT ALL CAST( NULL AS SIGNED ) - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL CAST ( NULL AS INTEGER ) - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND ( NULL )
----

query I rowsort
SELECT 22 * + ( + col0 ) FROM tab2 AS cor0
----
1012
1408
1650

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 / 73 ) NOT BETWEEN NULL AND ( 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT ALL col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 * - 45 + + col0 <= col0 * col1
----
0

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 * - 45 + + col0 <= col0 * col1
----
0

query I rowsort
SELECT 26 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT + 73 * 92 FROM tab2
----
6716

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT - + col2 DIV - col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-8535
SELECT - + col2 / - col1 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8536
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-8536
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = CAST ( NULL AS INTEGER ) * col1
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN NULL AND - 29 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT + + 16 DIV + 64 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8538
SELECT + + 16 / + 64 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( 74 ) FROM tab1 cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 * col0 ) <= - 91
----
0

skipif mysql # not compatible
query I rowsort label-8540
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 * col0 ) <= - 91
----
0

query I rowsort
SELECT - 48 + - 49 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ALL 99 * - col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL - 82 * 4 FROM tab0 AS cor0
----
-328
-328
-328

query I rowsort
SELECT + col2 + + 85 AS col0 FROM tab1 AS cor0
----
144
153
181

query I rowsort
SELECT 57 + - col2 AS col2 FROM tab1
----
-11
-2
-39

query I rowsort
SELECT + col2 + + - 23 AS col2 FROM tab2
----
0
17
35

query I rowsort
SELECT col0 + + col1 FROM tab0 WHERE - col2 IS NOT NULL
----
108
96
98

query I rowsort
SELECT ALL + col1 + - 18 FROM tab1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - col1 + col0 + + 34 * - col1 FROM tab0
----
-2820
-648
62

query I rowsort
SELECT - col1 * - + 18 * + col0 FROM tab1
----
12852
7650
76986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT ALL col2 / 47 FROM tab1 WHERE NOT NULL IN ( + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL col2 / 47 FROM tab1 WHERE NOT NULL IN ( + CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL - 11 + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - 11 + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-17

query I rowsort
SELECT + 74 + + 72 AS col0 FROM tab1 AS cor0 WHERE NULL <= - col0
----

query I rowsort
SELECT ALL + col0 - + col0 / col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT DISTINCT - - COUNT( col1 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8556
SELECT DISTINCT - - COUNT ( col1 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT + col2 <> - 67 - + col0
----
0

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT + col2 <> - 67 - + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT + + MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8558
SELECT + + MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT + + 17 * + + col2 AS col1 FROM tab1 AS cor0
----
1003
1156
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT + CAST( + + ( - col0 ) AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8560
SELECT + CAST ( + + ( - col0 ) AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - 40 * 88 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - 72 * 74 - - col0 FROM tab2 AS cor0
----
-5253
-5264
-5282

query I rowsort
SELECT DISTINCT col1 * ( - 18 ) * 60 FROM tab0
----
-1080
-22680
-87480

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT + COUNT( * ) - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8564
SELECT + COUNT ( * ) - + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT 66 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL 76 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT - + 66 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 + 91 + + 93 + col2 col0 FROM tab2 cor0
----
259
276
294

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( col1 ) IS NOT NULL
----
0

query I rowsort
SELECT 59 FROM tab0 AS cor0 WHERE NOT + col0 + + col1 IN ( 22 )
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 97 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 61, - 3 AS col1 FROM tab0 AS cor0
----
61
-3
61
-3
61
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 2 NOT BETWEEN NULL AND ( 96 ) * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / - + col2 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT 35 DIV + 84 * + 56 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT 35 / + 84 * + 56 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8577
SELECT + ( - 87 ), - COUNT( * ) * - - COUNT( * ) * 84 AS col1 FROM tab0
----
-87
-756

skipif mysql # not compatible
query II rowsort label-8577
SELECT + ( - 87 ), - COUNT ( * ) * - - COUNT ( * ) * 84 AS col1 FROM tab0
----
-87
-756

query I rowsort
SELECT DISTINCT ( + + 70 ) AS col0 FROM tab2 AS cor0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT + col0 DIV - 87 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT + col0 / - 87 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT DISTINCT - 87 * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT - 87 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8581
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - CAST( NULL AS SIGNED ) + + col0 * - 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8581
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - CAST ( NULL AS INTEGER ) + + col0 * - 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8583
SELECT COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 61 IS NOT NULL
----

query I rowsort
SELECT col0 + + 23 * - 61 FROM tab1 WHERE NOT - - 52 / + - col0 * - col2 IS NULL
----
-1312
-1318
-1352

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
93

query I rowsort
SELECT ALL - col2 + - + col2 + + col1 + - 74 AS col0 FROM tab0
----
-271
-73
-87

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT - - col0 DIV - 98 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8589
SELECT - - col0 / - 98 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 16 IS NULL
----

query I rowsort
SELECT ALL - - col1 * 19 - - + 59 FROM tab2 AS cor0
----
1028
1332
1522

query I rowsort
SELECT ALL col2 + + - col1 FROM tab0 cor0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 82 + - 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL + COUNT( * ) + + MAX( - 3 ) FROM tab0, tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + COUNT ( * ) + + MAX ( - 3 ) FROM tab0, tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT + col0 + + + col0 * - - col2 * - + col2 FROM tab2
----
-102336
-24288
-252225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, col2 col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT DISTINCT AVG ( ALL + 47 ) * 72 col1 FROM tab2 WHERE ( 50 * 53 + - + 18 * + CAST( NULL AS SIGNED ) * 26 ) BETWEEN ( + col0 * col2 ) AND ( col1 / - 40 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8597
SELECT DISTINCT AVG ( ALL + 47 ) * 72 col1 FROM tab2 WHERE ( 50 * 53 + - + 18 * + CAST ( NULL AS INTEGER ) * 26 ) BETWEEN ( + col0 * col2 ) AND ( col1 / - 40 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8598
SELECT + SUM( + col0 ) AS col0, + MIN( ALL 54 ) FROM tab0
----
199
54

skipif mysql # not compatible
query II rowsort label-8598
SELECT + SUM ( + col0 ) AS col0, + MIN ( ALL 54 ) FROM tab0
----
199
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + COUNT( - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8599
SELECT + COUNT ( - + col2 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 + col1 * + col2 * + col1 FROM tab1
----
1480
150259
18830

query I rowsort
SELECT DISTINCT + 1 * + 53 FROM tab2
----
53

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( + + 77 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 * - col1 * + 35 + 14 + - 19 * col0 * 56 - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8604
SELECT CAST( 7 AS SIGNED ) + + col1 AS col1 FROM tab0
----
28
8
88

skipif mysql # not compatible
query I rowsort label-8604
SELECT CAST ( 7 AS INTEGER ) + + col1 AS col1 FROM tab0
----
28
8
88

query I rowsort
SELECT col0 + + 72 AS col2 FROM tab1 AS cor0
----
123
157
163

query I rowsort
SELECT 94 - + + col1 FROM tab2 AS cor0 WHERE ( ( col2 ) ) IS NOT NULL
----
17
27
43

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT + + 76 + - + 46 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL + 73 + - 79 * + + 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cffe2d5adcc29753366ca523c0cbd4cd

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT ALL CAST( NULL AS SIGNED ) * + + AVG ( + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL CAST ( NULL AS INTEGER ) * + + AVG ( + col2 ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col0
----

query I rowsort
SELECT + col2 * + - col1 + col1 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-1330
-290
-3149

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL MAX( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL MAX ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT DISTINCT - COUNT( ALL - 64 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8615
SELECT DISTINCT - COUNT ( ALL - 64 ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8618
SELECT MAX( - col1 ) DIV + COUNT( * ) * - + COUNT( * ) * MAX( col0 ) AS col1, COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8618
SELECT MAX ( - col1 ) / + COUNT ( * ) * - + COUNT ( * ) * MAX ( col0 ) AS col1, COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT 56 DIV + col1 FROM tab0
----
0
2
56

skipif mysql # not compatible
query I rowsort label-8619
SELECT 56 / + col1 FROM tab0
----
0
2
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL MAX( ALL - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL MAX ( ALL - col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL MIN( + col1 ) col0 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8621
SELECT ALL MIN ( + col1 ) col0 FROM tab2
----
51

query II rowsort
SELECT - + 22, - col1 AS col1 FROM tab1 AS cor0
----
-22
-14
-22
-47
-22
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8623
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <= - CAST( col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8623
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <= - CAST ( col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT + - MIN( ALL + 73 ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT + - MIN ( ALL + 73 ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT + + col0, - 42 * + + col0 AS col2 FROM tab0 cor0
----
15
-630
87
-3654
97
-4074

query I rowsort
SELECT - col2 * 46 - - col1 * + + col1 AS col0 FROM tab0 WHERE - - col2 NOT BETWEEN col1 AND - col1
----
-19
-4553
4399

query I rowsort
SELECT - 52 FROM tab1 WHERE NULL BETWEEN + col2 * + + col0 * - 9 * 9 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8629
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col1 + col2 <> - - col1
----

skipif mysql # not compatible
query III rowsort label-8629
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 + col2 <> - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT ALL + MIN( + - 82 ) col0 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8630
SELECT ALL + MIN ( + - 82 ) col0 FROM tab2 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8631
SELECT * FROM tab1 AS cor0 WHERE + col0 / + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8631
SELECT * FROM tab1 AS cor0 WHERE + col0 / + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL - MAX( ALL - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - MAX ( ALL - col2 ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT 54 + - + col1 AS col2 FROM tab1
----
40
49
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT COUNT( * ) AS col2 FROM tab1 WHERE + - col1 < + - col2 - col1
----
0

skipif mysql # not compatible
query I rowsort label-8635
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE + - col1 < + - col2 - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL + 15 * + MAX( - 86 ) + + + COUNT( * ) FROM tab1
----
-1287

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + 15 * + MAX ( - 86 ) + + + COUNT ( * ) FROM tab1
----
-1287

query I rowsort
SELECT ALL + - col1 + - col0 / 53 / - 47 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 - + col1 + 96 FROM tab0
----
162
192
30

query I rowsort
SELECT DISTINCT - ( - 18 ) AS col1 FROM tab2 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col2 FROM tab1 AS cor0 WHERE 9 IS NULL
----

query I rowsort
SELECT ( + col2 ) * - - 33 FROM tab0
----
1551
3267
330

query II rowsort
SELECT ALL - 51, 79 AS col2 FROM tab1
----
-51
79
-51
79
-51
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - ( - + col2 ) - - 69 BETWEEN ( col0 * - - col1 + - 63 + + ( + col1 ) + - col1 + col1 * col1 / + col2 / 80 ) AND NULL
----

query II rowsort
SELECT DISTINCT + 83 AS col2, + col0 * 55 + 48 FROM tab2 AS cor0
----
83
2578
83
3568
83
4173

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT 72, COUNT( * ) AS col0 FROM tab0 AS cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-8645
SELECT 72, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
72
3

query II rowsort
SELECT - 80, col1 FROM tab2 AS cor0
----
-80
51
-80
67
-80
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8647
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE 2 * + + ( 4 ) NOT IN ( - 19 * - col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE 2 * + + ( 4 ) NOT IN ( - 19 * - col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 / + col0 + - 69 FROM tab2 AS cor0 WHERE NOT NULL > + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT - ( - ( + - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8649
SELECT - ( - ( + - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT + + MAX( ALL + 45 ) AS col0 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT + + MAX ( ALL + 45 ) AS col0 FROM tab1 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col1, 21 + - 78 * - ( col0 ) FROM tab0 cor0
----
15
1191
87
6807
97
7587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT ALL - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query II rowsort
SELECT ALL + col2 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query II rowsort
SELECT ALL + 34 * - col0 AS col0, + col2 FROM tab2
----
-1564
23
-2176
40
-2550
58

query I rowsort
SELECT ALL - col2 * - col1 * + 13 AS col1 FROM tab2
----
15249
40040
50518

onlyif mysql # DIV for integer division: 
query II rowsort label-8656
SELECT + 11 DIV col2 AS col0, col0 + col0 FROM tab1
----
0
102
0
170
0
182

skipif mysql # not compatible
query II rowsort label-8656
SELECT + 11 / col2 AS col0, col0 + col0 FROM tab1
----
0
102
0
170
0
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8657
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query I rowsort
SELECT - + 47 FROM tab0 WHERE NOT ( - col2 * 69 <= + 12 / - 57 )
----

query I rowsort
SELECT DISTINCT col1 * + - 20 AS col2 FROM tab1
----
-100
-280
-940

query I rowsort
SELECT + col0 * + - ( + 28 ) FROM tab0
----
-2436
-2716
-420

query I rowsort
SELECT 54 - - - col2 - + col2 + 84 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
-54
2
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT 27 * + CAST( col1 AS SIGNED ) * - 38 FROM tab1
----
-14364
-48222
-5130

skipif mysql # not compatible
query I rowsort label-8662
SELECT 27 * + CAST ( col1 AS INTEGER ) * - 38 FROM tab1
----
-14364
-48222
-5130

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT + SUM( + - col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8663
SELECT + SUM ( + - col0 ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT ALL + + 44 AS col0 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8665
SELECT DISTINCT col1 + 11 DIV - 31 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT col1 + 11 / - 31 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8666
SELECT + + col0 * 55 - - - 7, col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
4778
21
5328
1
818
81

skipif mysql # not compatible
query II rowsort label-8666
SELECT + + col0 * 55 - - - 7, col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
4778
21
5328
1
818
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col2, col1 + col2 FROM tab1 AS cor0
----
59
64
68
115
96
110

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT ALL - - col1 DIV 57 + + - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
-14
-87
-97

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - - col1 / 57 + + - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
-14
-87
-97

query II rowsort
SELECT ALL - col0 AS col0, + col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query II rowsort
SELECT col2 + + + col1, - 18 AS col0 FROM tab2 AS cor0 WHERE - 61 IS NOT NULL
----
117
-18
125
-18
74
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT DISTINCT MIN( - - col0 ) col1 FROM tab0 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8671
SELECT DISTINCT MIN ( - - col0 ) col1 FROM tab0 cor0
----
15

query I rowsort
SELECT col2 - + - 70 + + col0 * - col0 FROM tab0
----
-108
-7489
-9240

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT - COUNT( * ) - 93 AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8673
SELECT - COUNT ( * ) - 93 AS col2 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT 16 * - + 78 + + col1 FROM tab1
----
-1201
-1234
-1243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT DISTINCT + CAST( - col2 AS SIGNED ) - 67 col0 FROM tab0
----
-114
-166
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8675
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) - 67 col0 FROM tab0
----
-114
-166
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT CAST( NULL AS SIGNED ) + + col0 + col0 + + ( + - col1 ) / 99 * + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT CAST ( NULL AS INTEGER ) + + col0 + col0 + + ( + - col1 ) / 99 * + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 82 + ( 10 ) FROM tab2
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT + CAST( NULL AS SIGNED ) + - - 26 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT + CAST ( NULL AS INTEGER ) + - - 26 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 95 + 0 * col2 AS col1 FROM tab2
----
4845
6365
7315

query I rowsort
SELECT DISTINCT - + AVG ( DISTINCT - + col0 ) FROM tab2 WHERE 18 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 44 - + + 85 - col1 AS col1 FROM tab0 cor0
----
-122
-42
-62

query I rowsort
SELECT DISTINCT - - col1 * + + 29 - + col1 FROM tab0 AS cor0
----
2268
28
588

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 20 + col1 * - 76 IN ( 90 + - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 82 > NULL )
----

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8687
SELECT - - COUNT( * ) col1, - 63 AS col0 FROM tab1 AS cor0
----
3
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8687
SELECT - - COUNT ( * ) col1, - 63 AS col0 FROM tab1 AS cor0
----
3
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8689
SELECT ALL - CAST( NULL AS DECIMAL ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8689
SELECT ALL - CAST ( NULL AS REAL ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ALL AVG ( col0 ) FROM tab0 AS cor0 WHERE col1 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT - - MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8691
SELECT - - MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8692
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8692
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * - - 90 AS col0 FROM tab1
----
4590
7650
8190

query II rowsort
SELECT 64 AS col0, + col0 AS col1 FROM tab1
----
64
51
64
85
64
91

query I rowsort
SELECT ALL col2 * - 40 AS col1 FROM tab1
----
-2360
-2720
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT ALL 54 * - col0 DIV + col0 AS col0 FROM tab0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL 54 * - col0 / + col0 AS col0 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT 7 * - col2 AS col1 FROM tab0
----
-329
-693
-70

query I rowsort
SELECT ( - 68 ) AS col1 FROM tab0
----
-68
-68
-68

query I rowsort
SELECT + col0 + - 3 AS col2 FROM tab2
----
43
61
72

query I rowsort
SELECT + ( - col2 ) + + col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL ( + 62 ) * - - col1 + + col0 - - + 97 + col2 + + 78 AS col0 FROM tab0
----
1574
433
5259

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - 15 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col0 FROM tab2 cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT col2 * - + ( + col2 ) FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT - - COUNT( ALL CAST( - col0 AS SIGNED ) ) + - 40 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8706
SELECT - - COUNT ( ALL CAST ( - col0 AS INTEGER ) ) + - 40 FROM tab0 AS cor0
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-8707
SELECT ALL - ( - + 48 ) DIV - col0 - col1 + + - 4 AS col1, - 24 AS col1 FROM tab1 AS cor0
----
-18
-24
-51
-24
-9
-24

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL - ( - + 48 ) / - col0 - col1 + + - 4 AS col1, - 24 AS col1 FROM tab1 AS cor0
----
-18
-24
-51
-24
-9
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT - 99 / - - col1 + col1 + + + 15 + - col1 * CAST( NULL AS SIGNED ) + col2 + + col1 + - + col2 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8708
SELECT - 99 / - - col1 + col1 + + + 15 + - col1 * CAST ( NULL AS INTEGER ) + col2 + + col1 + - + col2 col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 67 + + col0 FROM tab1 AS cor0
----
-16
18
24

query II rowsort
SELECT ALL + 82 AS col1, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - 11 AND col1
----

query II rowsort
SELECT - col2 + 81 AS col0, - col0 FROM tab0 AS cor0
----
-18
-97
34
-15
71
-87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND 42
----
75
67
58

query I rowsort
SELECT - ( - - 63 ) + + col1 FROM tab0 AS cor0
----
-42
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT DISTINCT - 48 * + MAX( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-3696

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT - 48 * + MAX ( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-3696

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8715
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col1 * + + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8715
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col1 * + + CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT ALL - + col0 * col1 + - 46 FROM tab0 AS cor0
----
-1261
-143
-1873

query I rowsort
SELECT DISTINCT + 24 * col1 * - col2 + col0 FROM tab0
----
-2279
-4953
-91353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * + - col0 col2 FROM tab2
----
-2990
-4160
-4875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT ALL + col2 - + - CAST( + 56 AS SIGNED ) AS col1 FROM tab0
----
103
155
66

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL + col2 - + - CAST ( + 56 AS INTEGER ) AS col1 FROM tab0
----
103
155
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8720
SELECT + COUNT( - - 1 ) - + - CAST( ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8720
SELECT + COUNT ( - - 1 ) - + - CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT DISTINCT col2 + - - 79 - col0 DIV + col2 FROM tab0
----
126
178
81

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT col2 + - - 79 - col0 / + col2 FROM tab0
----
126
178
81

query I rowsort
SELECT DISTINCT 45 - - col2 FROM tab2
----
103
68
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT - MAX( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8723
SELECT - MAX ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - col0 IS NOT NULL
----

query I rowsort
SELECT 94 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
33

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT - 59 * COUNT( * ) AS col2, - 97 FROM tab2 AS cor0
----
-177
-97

skipif mysql # not compatible
query II rowsort label-8729
SELECT - 59 * COUNT ( * ) AS col2, - 97 FROM tab2 AS cor0
----
-177
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT + ( - COUNT( * ) ) AS col0, + 91 FROM tab1 AS cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-8730
SELECT + ( - COUNT ( * ) ) AS col0, + 91 FROM tab1 AS cor0
----
-3
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( ( col0 ) ) ) <> - col0 - ( + - col2 ) * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL + SUM( col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + SUM ( col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
223

query I rowsort
SELECT ALL + col0 * + - col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + col2 + - 2 * + 51 FROM tab2
----
-44
-62
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ( + + ( + COUNT( ALL + - col1 ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8735
SELECT ( + + ( + COUNT ( ALL + - col1 ) ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - MAX( col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8737
SELECT - MAX ( col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT 68 * col1 * - 20 FROM tab1
----
-19040
-63920
-6800

query I rowsort
SELECT + 53 AS col1 FROM tab2
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8740
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8741
SELECT DISTINCT + CAST( - 41 AS SIGNED ) FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT + CAST ( - 41 AS INTEGER ) FROM tab2
----
-41

query I rowsort
SELECT - 4 * - - col0 FROM tab0 AS cor0
----
-348
-388
-60

query I rowsort
SELECT ALL - + 25 * col2 * + 30 FROM tab0 cor0
----
-35250
-74250
-7500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8744
SELECT DISTINCT - - COUNT( * ) DIV - COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1
-9

skipif mysql # not compatible
query II rowsort label-8744
SELECT DISTINCT - - COUNT ( * ) / - COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT + COUNT( * ) + MIN( ALL 56 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8745
SELECT + COUNT ( * ) + MIN ( ALL 56 ) AS col1 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8746
SELECT - CAST( - - AVG ( ALL - ( - + CAST( NULL AS SIGNED ) ) ) AS DECIMAL ) FROM tab1, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT - CAST ( - - AVG ( ALL - ( - + CAST ( NULL AS INTEGER ) ) ) AS REAL ) FROM tab1, tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - + 23 ) col1 FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 6 + + + col1 AND NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT ALL - col0 DIV + col2 col2 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8751
SELECT ALL - col0 / + col2 col2 FROM tab2 cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT - - CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT - - CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col1 - + - col2 FROM tab2
----
1196
3120
3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 99 col0 FROM tab1
----
-52
-85
-94

query I rowsort
SELECT ALL col1 + + 84 FROM tab1
----
131
89
98

query III rowsort
SELECT * FROM tab1 WHERE col0 / + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * col0 + col0 col0 FROM tab2
----
2254
3136
3675

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 NOT IN ( col0, + col1 / - col2 * + 88 + - 24, + 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8759
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) * - col2, - col0 * + 94 AS col0 FROM tab2
----
NULL
-4324
NULL
-6016
NULL
-7050

skipif mysql # not compatible
query II rowsort label-8759
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) * - col2, - col0 * + 94 AS col0 FROM tab2
----
NULL
-4324
NULL
-6016
NULL
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 41 + + 16 + + col1 + + col1 + col0 + 0 * + 48 * + col2 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col1 AS col0, - col1 AS col1 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT ALL - ( - ( col2 ) ) FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 10 * + - col2 * - col1 + + col0 col0, - col0 AS col2 FROM tab0 AS cor0 WHERE NULL >= + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT SUM( ALL - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8765
SELECT SUM ( ALL - + col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE + ( ( - 68 ) ) IS NOT NULL
----
59
68
96

query II rowsort
SELECT DISTINCT - - col1 * + col2 * - col2, 99 AS col0 FROM tab2 AS cor0
----
-123200
99
-225388
99
-26979
99

query I rowsort
SELECT ALL - col2 + 1 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT - - col2 + ( - col2 ) + + col1 * + + col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT - COUNT( 17 ) * - 92 + - COUNT( - 56 ) * - 60 * + - MIN( col2 ) AS col2 FROM tab2 AS cor0
----
-3864

skipif mysql # not compatible
query I rowsort label-8770
SELECT - COUNT ( 17 ) * - 92 + - COUNT ( - 56 ) * - 60 * + - MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
-3864

query I rowsort
SELECT ALL + 98 + - + col1 FROM tab0 AS cor0
----
17
77
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT ALL - CAST( NULL AS SIGNED ) + 8 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL - CAST ( NULL AS INTEGER ) + 8 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 WHERE - col0 > + col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT CAST( + + col0 AS SIGNED ) + - + col2 + col1 FROM tab0
----
-1
49
98

skipif mysql # not compatible
query I rowsort label-8774
SELECT CAST ( + + col0 AS INTEGER ) + - + col2 + col1 FROM tab0
----
-1
49
98

query I rowsort
SELECT DISTINCT 15 + + 66 FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-8776
SELECT DISTINCT + 86 * 27 AS col1, - ( col1 ) DIV 98 FROM tab2
----
2322
0

skipif mysql # not compatible
query II rowsort label-8776
SELECT DISTINCT + 86 * 27 AS col1, - ( col1 ) / 98 FROM tab2
----
2322
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 IN ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 40 ) AS col0 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT + + 3 * col0 FROM tab0 AS cor0
----
261
291
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + ( + COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8780
SELECT + ( + COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col1 * col2 * - 1 * 57 IS NULL OR NOT NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NULL AND NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + + - col2 AS col1 FROM tab0
----
-196
-62
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 79 col1 FROM tab2
----
-15
-33
-4

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 53 - - col2 - + 93 AS col1 FROM tab0 AS cor0
----
-30
59
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8787
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 / col1 NOT IN ( + ( - ( + CAST( - - col2 AS SIGNED ) ) ), - col1 - - - 15, + col1, ( + 76 ) )
----

skipif mysql # not compatible
query III rowsort label-8787
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 / col1 NOT IN ( + ( - ( + CAST ( - - col2 AS INTEGER ) ) ), - col1 - - - 15, + col1, ( + 76 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT 78 + + COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8788
SELECT 78 + + COUNT ( * ) FROM tab2 AS cor0
----
81

query I rowsort
SELECT DISTINCT + - col2 * col1 - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT CAST( - + col2 AS SIGNED ) * ( 59 ) FROM tab2 AS cor0
----
-1357
-2360
-3422

skipif mysql # not compatible
query I rowsort label-8790
SELECT CAST ( - + col2 AS INTEGER ) * ( 59 ) FROM tab2 AS cor0
----
-1357
-2360
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT MAX( - - col1 ) * + 15 FROM tab2 AS cor0
----
1155

skipif mysql # not compatible
query I rowsort label-8791
SELECT MAX ( - - col1 ) * + 15 FROM tab2 AS cor0
----
1155

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT + col1 BETWEEN + + col1 AND + col0 * - col1 + - - ( - 69 ) + - col2 * 0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN col1 + + + ( + col0 ) AND 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + + 2 FROM tab0
----
174
194
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT DISTINCT MAX( ALL + + 42 ) AS col1 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT MAX ( ALL + + 42 ) AS col1 FROM tab1
----
42

query I rowsort
SELECT DISTINCT col1 * col2 * 53 FROM tab0
----
11130
201771
5247

onlyif mysql # DIV for integer division: 
query I rowsort label-8798
SELECT DISTINCT col2 DIV + col0 * + col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT col2 / + col0 * + col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT ( + - 71 ) * + COUNT( * ) FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-8799
SELECT ( + - 71 ) * + COUNT ( * ) FROM tab2
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL + COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8801
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8801
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( + 13 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( + 13 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8803
SELECT DISTINCT - - COUNT( * ) AS col2, - COUNT( - col2 ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8803
SELECT DISTINCT - - COUNT ( * ) AS col2, - COUNT ( - col2 ) FROM tab1 AS cor0
----
3
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8804
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8804
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-8805
SELECT - COUNT( * ) + - - 20 * - COUNT( * ), COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-189
9

skipif mysql # not compatible
query II rowsort label-8805
SELECT - COUNT ( * ) + - - 20 * - COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-189
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT ALL - col2 DIV + - col1 * - col1 AS col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL - col2 / + - col1 * - col1 AS col1 FROM tab0
----
-99
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + 62
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + ( - 95 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT - + SUM( DISTINCT 6 ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8809
SELECT - + SUM ( DISTINCT 6 ) FROM tab1 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL COUNT( 90 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL COUNT ( 90 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL + 16 FROM tab0 AS cor0 WHERE + col2 * - col1 <> + + col2 * ( CAST( NULL AS SIGNED ) ) / - col1 - + 10
----

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + 16 FROM tab0 AS cor0 WHERE + col2 * - col1 <> + + col2 * ( CAST ( NULL AS INTEGER ) ) / - col1 - + 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT ALL - CAST( 0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - CAST ( 0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8813
SELECT DISTINCT - col1 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT - col1 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 > - - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > - + 12
----

query II rowsort
SELECT 45 AS col2, 61 FROM tab0
----
45
61
45
61
45
61

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col2 AS col2 FROM tab0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT ALL 43 + col0 + + col2 DIV col2 AS col0 FROM tab1
----
129
135
95

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL 43 + col0 + + col2 / col2 AS col0 FROM tab1
----
129
135
95

query III rowsort
SELECT * FROM tab2 WHERE + + col0 <= col1
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab0 WHERE - col0 <= col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT DISTINCT SUM( - - 87 ) col2 FROM tab2
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8822
SELECT DISTINCT SUM ( - - 87 ) col2 FROM tab2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT + COUNT( * ) + + 45 * 91 FROM tab0
----
4098

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT + COUNT ( * ) + + 45 * 91 FROM tab0
----
4098

query I rowsort
SELECT + 23 * col0 * - col0 FROM tab2
----
-129375
-48668
-94208

query I rowsort
SELECT col1 * + 72 * - 64 * + col1 * - 34 + + + col2 AS col0 FROM tab2
----
407503895
703300666
928908328

query I rowsort
SELECT ALL + col0 * - col2 * - + col0 AS col1 FROM tab1
----
249696
426275
563108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 + - - col1 col1 FROM tab2
----
-13
-23
-39

query I rowsort
SELECT DISTINCT + + col0 + 13 FROM tab1 AS cor0
----
104
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT - COUNT( + + 11 ) FROM tab2 AS cor0 WHERE ( NOT ( col0 IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT - COUNT ( + + 11 ) FROM tab2 AS cor0 WHERE ( NOT ( col0 IS NOT NULL ) )
----
0

query I rowsort
SELECT ALL + 18 * col2 + - - 89 + - col0 FROM tab0 cor0
----
1774
182
920

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT ( - 60 ) col0, + COUNT( * ) AS col0 FROM tab1
----
-60
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8831
SELECT ( - 60 ) col0, + COUNT ( * ) AS col0 FROM tab1
----
-60
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT DISTINCT ( + col1 ) * CAST( NULL AS SIGNED ) + - + col1 * col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT ( + col1 ) * CAST ( NULL AS INTEGER ) + - + col1 * col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8833
SELECT DISTINCT ( MIN( + + CAST( NULL AS SIGNED ) ) ) + - - 4 / - - COUNT( * ) + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT ( MIN ( + + CAST ( NULL AS INTEGER ) ) ) + - - 4 / - - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 - 56 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 - 56 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + + 84 + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL AND ( NULL IS NOT NULL )
----
84

skipif mysql # not compatible
query I rowsort label-8835
SELECT + + 84 + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL AND ( NULL IS NOT NULL )
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8836
SELECT + CAST( - - col0 AS SIGNED ) DIV - col1 col0 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8836
SELECT + CAST ( - - col0 AS INTEGER ) / - col1 col0 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT COUNT( DISTINCT - ( - - col2 ) ) * - - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8837
SELECT COUNT ( DISTINCT - ( - - col2 ) ) * - - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 19 * + 35 * - 14 AS col0 FROM tab2
----
-9310

query I rowsort
SELECT DISTINCT 62 * - 86 FROM tab2
----
-5332

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT col1 * ( col0 ) DIV + + 51 + 58 col0 FROM tab0
----
59
81
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8840
SELECT col1 * ( col0 ) / + + 51 + 58 col0 FROM tab0
----
59
81
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT DISTINCT + 93 DIV 6 AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + 93 / 6 AS col0 FROM tab0
----
15

query I rowsort
SELECT ALL col1 * + + 30 * + - col2 AS col2 FROM tab1
----
-40320
-8850
-95880

query I rowsort
SELECT ALL + 45 FROM tab0, tab1 AS cor0 WHERE NOT + 62 IS NULL
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 * - ( col1 ) col1 FROM tab0
----
-18270
-57105
-9603

query II rowsort
SELECT + - col1 + - col2, col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - 97 + col2 IS NULL
----
-100
1
-128
81
-31
21

query II rowsort
SELECT + col0 AS col2, - col0 * col2 AS col1 FROM tab2 AS cor0
----
46
-1058
64
-2560
75
-4350

query I rowsort
SELECT col0 * + col0 * col0 * 92 FROM tab1
----
12203892
56499500
69328532

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT col0 + + - col2 + + ( - col0 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT col0 + + - col2 + + ( - col0 ) IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 60 + - + 92 + + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + + MAX( + 38 ) AS col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8850
SELECT + + MAX ( + 38 ) AS col1 FROM tab2 AS cor0
----
38

query II rowsort
SELECT DISTINCT + - col2 AS col0, col1 AS col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT - - ( - COUNT( + + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT - - ( - COUNT ( + + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ( col1 ) * - - col1 + 19 FROM tab0 AS cor0
----
20
460
6580

query I rowsort
SELECT - + 53 + - 47 FROM tab2 AS cor0
----
-100
-100
-100

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * col1 / - 87 <= col0 * + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8857
SELECT ALL * FROM tab1 WHERE + - col2 * + 88 * - + col0 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8857
SELECT ALL * FROM tab1 WHERE + - col2 * + 88 * - + col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - 39 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT DISTINCT - 65 + - - COUNT( * ) + MAX( - + col0 ) AS col2 FROM tab1
----
-113

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT - 65 + - - COUNT ( * ) + MAX ( - + col0 ) AS col2 FROM tab1
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8860
SELECT DISTINCT ( + - 91 ) AS col0, + CAST( - - col2 AS SIGNED ) + + col0 FROM tab0
----
-91
196
-91
62
-91
97

skipif mysql # not compatible
query II rowsort label-8860
SELECT DISTINCT ( + - 91 ) AS col0, + CAST ( - - col2 AS INTEGER ) + + col0 FROM tab0
----
-91
196
-91
62
-91
97

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE col2 * + 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT + ( + COUNT( * ) ) * + - COUNT( * ) + 41 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-8862
SELECT + ( + COUNT ( * ) ) * + - COUNT ( * ) + 41 FROM tab2
----
32

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 87 / + - 9 * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 22 AND - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8865
SELECT ALL - + MIN( + col0 ) * 16 * 14 * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - 0 NOT BETWEEN - ( - + col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL - + MIN ( + col0 ) * 16 * 14 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - 0 NOT BETWEEN - ( - + col1 ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL 0 + - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL 0 + - COUNT ( * ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8867
SELECT DISTINCT + CAST( - COUNT( ALL + col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT + CAST ( - COUNT ( ALL + col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + - ( - COUNT( - col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8868
SELECT + - ( - COUNT ( - col0 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 90 * - col1 * col2 * - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col1 FROM tab2 AS cor0
----
69
69
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 82 * + + 51 + col2 / 13 BETWEEN 53 AND - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT ALL 48 AS col0, ( COUNT( * ) ) AS col1 FROM tab1 cor0
----
48
3

skipif mysql # not compatible
query II rowsort label-8873
SELECT ALL 48 AS col0, ( COUNT ( * ) ) AS col1 FROM tab1 cor0
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT - 53 * - 64 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3395

skipif mysql # not compatible
query I rowsort label-8874
SELECT - 53 * - 64 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3395

query I rowsort
SELECT DISTINCT col2 * + col1 * + + col0 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT col0 DIV - 6 AS col2 FROM tab1
----
-14
-15
-8

skipif mysql # not compatible
query I rowsort label-8877
SELECT col0 / - 6 AS col2 FROM tab1
----
-14
-15
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 * - + col2 col0 FROM tab2 cor0
----
-2185
-3800
-5510

query I rowsort
SELECT ALL col0 + - 94 AS col2 FROM tab2
----
-19
-30
-48

query I rowsort
SELECT col2 * 55 + + col2 + - - col1 * + col2 * - + 60 * + col0 + - 50 FROM tab0
----
-1095690
-3423718
-570686

query I rowsort
SELECT - 55 * col1 FROM tab2 AS cor0
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT COUNT( * ) * + - SUM( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-8882
SELECT COUNT ( * ) * + - SUM ( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
309

query I rowsort
SELECT col1 * + - col2 + col0 FROM tab0 cor0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL - COUNT( * ) * + 86 + - COUNT( ALL - - 35 ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-261

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL - COUNT ( * ) * + 86 + - COUNT ( ALL - - 35 ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-261

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 36 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8886
SELECT ALL - col0, col2 FROM tab1 AS cor0 WHERE - CAST( - col2 AS SIGNED ) * - col1 <> - col0
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
query II rowsort label-8886
SELECT ALL - col0, col2 FROM tab1 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) * - col1 <> - col0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL + 62 * + - 58 + + col1 AS col2 FROM tab2 cor0
----
-3519
-3529
-3545

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT COUNT( * ) - - ( + + 65 ) AS col1 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-8888
SELECT COUNT ( * ) - - ( + + 65 ) AS col1 FROM tab2
----
68

query I rowsort
SELECT 4 * - + ( + col2 ) * + col2 + - col1 - col1 AS col0 FROM tab0
----
-39206
-442
-8998

query I rowsort
SELECT ALL col2 + + col2 * - 88 AS col2 FROM tab1
----
-5133
-5916
-8352

query I rowsort
SELECT ALL col1 * + + 33 AS col1 FROM tab0
----
2673
33
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col1 FROM tab1 WHERE NULL >= + + col1 * - 32
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + + 62
----

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8895
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + CAST( - col0 AS SIGNED ), col0 )
----

skipif mysql # not compatible
query III rowsort label-8895
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + CAST ( - col0 AS INTEGER ), col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT - 22 * + + COUNT( * ) AS col1 FROM tab2 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8896
SELECT - 22 * + + COUNT ( * ) AS col1 FROM tab2 cor0
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NOT - - col1 IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + MAX( ALL - + 91 ) * + COUNT( * ) FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-8898
SELECT + MAX ( ALL - + 91 ) * + COUNT ( * ) FROM tab0
----
-273

onlyif mysql # aggregate syntax: 
query II rowsort label-8899
SELECT COUNT( * ) AS col1, COUNT( * ) - 60 FROM tab2
----
3
-57

skipif mysql # not compatible
query II rowsort label-8899
SELECT COUNT ( * ) AS col1, COUNT ( * ) - 60 FROM tab2
----
3
-57

query II rowsort
SELECT DISTINCT + col2 AS col1, col1 * - + 13 FROM tab1
----
59
-65
68
-611
96
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT - CAST( col0 AS SIGNED ) col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8901
SELECT - CAST ( col0 AS INTEGER ) col0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col0 FROM tab2
----
12
12
12

query II rowsort
SELECT - - col1 AS col0, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + + ( + 92 ) AS col0 FROM tab2 cor0
----
92
92
92

query I rowsort
SELECT - col1 * col2 - - 5 AS col1 FROM tab2 AS cor0
----
-1168
-3075
-3881

query II rowsort
SELECT - - 97, + 29 - 42 AS col2 FROM tab1 AS cor0
----
97
-13
97
-13
97
-13

query I rowsort
SELECT ALL + 74 + + col2 * + 84 FROM tab1 WHERE 79 IS NOT NULL
----
5030
5786
8138

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT - 61 * - - COUNT( * ) FROM tab2, tab2 AS cor0
----
-549

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT - 61 * - - COUNT ( * ) FROM tab2, tab2 AS cor0
----
-549

query I rowsort
SELECT + 94 + - 44 FROM tab1
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL + COUNT( + 46 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + COUNT ( + 46 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT 68 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8911
SELECT 68 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
65

query I rowsort
SELECT ALL 4 * + col0 AS col2 FROM tab1 AS cor0
----
204
340
364

query I rowsort
SELECT DISTINCT - 14 * - - 64 AS col0 FROM tab1 AS cor0
----
-896

query I rowsort
SELECT ALL + col0 + - 71 * + col1 AS col0 FROM tab2 AS cor0
----
-3575
-4682
-5403

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT DISTINCT + col2 DIV + + col0 + + col0 col2 FROM tab0 AS cor0
----
18
87
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8915
SELECT DISTINCT + col2 / + + col0 + + col0 col2 FROM tab0 AS cor0
----
18
87
98

query I rowsort
SELECT ALL col1 + + 67 AS col2 FROM tab2 AS cor0
----
118
134
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 17 / - + col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 17 / - + col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 91 + + col2 AS col1 FROM tab0
----
-44
-81
8

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 38 * + 71, col0, 73, + 50 * + - col0 * + col1 / col1, col1, + col2 * col1 - + col0, + col1, - col1 / + ( + col2 ) * + col0 )
----

query I rowsort
SELECT ALL + col2 + + 36 + + - col2 FROM tab0
----
36
36
36

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 22 - - + col1 < - + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8923
SELECT - col2 DIV - col0 - + - 8 - + col0 * - col1 * + + CAST( - + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-201011
-2117
-9987

skipif mysql # not compatible
query I rowsort label-8923
SELECT - col2 / - col0 - + - 8 - + col0 * - col1 * + + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-201011
-2117
-9987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT - + CAST( NULL AS SIGNED ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8924
SELECT - + CAST ( NULL AS INTEGER ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT + MAX( + - 54 ) FROM tab1 AS cor0 WHERE NOT ( NOT + col0 * 67 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT + MAX ( + - 54 ) FROM tab1 AS cor0 WHERE NOT ( NOT + col0 * 67 IS NULL )
----
NULL

query I rowsort
SELECT ALL + ( + col0 ) * col1 FROM tab0 cor0 WHERE NOT - col1 + + 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL MAX( DISTINCT + col1 ) * + MIN( DISTINCT - 63 ) AS col2 FROM tab1 WHERE NOT - col2 IS NULL
----
-2961

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL MAX ( DISTINCT + col1 ) * + MIN ( DISTINCT - 63 ) AS col2 FROM tab1 WHERE NOT - col2 IS NULL
----
-2961

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL COUNT( * ) + + - 70 FROM tab1 WHERE NOT NULL IS NULL
----
-70

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL COUNT ( * ) + + - 70 FROM tab1 WHERE NOT NULL IS NULL
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT - CAST( NULL AS SIGNED ) / + - 91 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT - CAST ( NULL AS INTEGER ) / + - 91 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 76 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
76

query I rowsort
SELECT ALL 46 * - ( + col1 ) * - col0 * - col0 FROM tab0
----
-432814
-7311654
-838350

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT + + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8933
SELECT + + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8934
SELECT DISTINCT * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8934
SELECT DISTINCT * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT ( + - col0 ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT + - col0 DIV - 58 + - - col1 FROM tab2 AS cor0
----
51
68
78

skipif mysql # not compatible
query I rowsort label-8936
SELECT + - col0 / - 58 + - - col1 FROM tab2 AS cor0
----
51
68
78

query I rowsort
SELECT + + col1 + - ( + 66 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-19
-52
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL - MIN( DISTINCT + 52 ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - MIN ( DISTINCT + 52 ) FROM tab2 AS cor0
----
-52

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT 70 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL ( + + MAX( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL ( + + MAX ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + COUNT( * ) * SUM( ALL - - col1 ) AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-8941
SELECT + COUNT ( * ) * SUM ( ALL - - col1 ) AS col1 FROM tab1
----
198

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + + col0 + + + col2 + - + 58 / - - col2 NOT BETWEEN + 68 AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + 87 * SUM( DISTINCT 74 ) FROM tab1
----
6438

skipif mysql # not compatible
query I rowsort label-8943
SELECT + 87 * SUM ( DISTINCT 74 ) FROM tab1
----
6438

query I rowsort
SELECT ALL 66 * 73 FROM tab0
----
4818
4818
4818

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 * + col1 + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8946
SELECT DISTINCT COUNT( - CAST( - + 85 AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT COUNT ( - CAST ( - + 85 AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT DISTINCT - col0 * col1 + col0 + - - 19 + + ( col0 ) * + + col0 * 37 + - 12 DIV + ( 36 ) AS col2 FROM tab2 AS cor0
----
146707
203194
76011

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT - col0 * col1 + col0 + - - 19 + + ( col0 ) * + + col0 * 37 + - 12 / + ( 36 ) AS col2 FROM tab2 AS cor0
----
146707
203194
76011

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8948
SELECT DISTINCT 85 + CAST( + col1 AS SIGNED ) AS col1, 90 DIV + col0 FROM tab2
----
136
1
152
1
162
1

skipif mysql # not compatible
query II rowsort label-8948
SELECT DISTINCT 85 + CAST ( + col1 AS INTEGER ) AS col1, 90 / + col0 FROM tab2
----
136
1
152
1
162
1

query I rowsort
SELECT ALL - col0 * 61 + - col0 * + col1 FROM tab0 AS cor0
----
-2130
-6014
-7134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 85 * + - col0 * + col0 - + 76 col1 FROM tab1 cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * col1 col2 FROM tab0 cor0
----
3726
46
966

query I rowsort
SELECT ALL + - ( 41 ) + + col0 FROM tab1 cor0
----
10
44
50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + col0 ) BETWEEN + col2 * 23 AND - + col0 * - col0 * + 1 * - col0
----

query I rowsort
SELECT ALL + ( - 65 ) AS col1 FROM tab1 AS cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT - - ( + + col1 ) - - + ( ( CAST( - - col1 AS SIGNED ) ) ) - - col0 * ( + + col2 ) FROM tab1 AS cor0
----
4924
5025
6282

skipif mysql # not compatible
query I rowsort label-8955
SELECT - - ( + + col1 ) - - + ( ( CAST ( - - col1 AS INTEGER ) ) ) - - col0 * ( + + col2 ) FROM tab1 AS cor0
----
4924
5025
6282

onlyif mysql # DIV for integer division: 
query I rowsort label-8956
SELECT - col1 DIV + col1 + + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-8956
SELECT - col1 / + col1 + + col1 FROM tab2
----
50
66
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 + + col2 col1 FROM tab2
----
-1
16
34

query I rowsort
SELECT + ( + - col0 ) * - - col2 * + - 15 + - + 3 AS col2 FROM tab0
----
10572
13047
144042

onlyif mysql # DIV for integer division: 
query II rowsort label-8959
SELECT ALL - col1 + col1 + 94 DIV - ( col0 ) + - ( - 35 ) AS col1, 44 FROM tab0
----
29
44
34
44
35
44

skipif mysql # not compatible
query II rowsort label-8959
SELECT ALL - col1 + col1 + 94 / - ( col0 ) + - ( - 35 ) AS col1, 44 FROM tab0
----
29
44
34
44
35
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT + MIN( ALL - + col2 ) + + 10 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-8960
SELECT + MIN ( ALL - + col2 ) + + 10 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT MAX( + col0 ) + 51 col2 FROM tab1
----
142

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8961
SELECT MAX ( + col0 ) + 51 col2 FROM tab1
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-8962
SELECT COUNT( * ) * - 82 AS col1, + 44 FROM tab0 AS cor0
----
-246
44

skipif mysql # not compatible
query II rowsort label-8962
SELECT COUNT ( * ) * - 82 AS col1, + 44 FROM tab0 AS cor0
----
-246
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL - COUNT( * ) * + - MAX( - - 22 ) * + - 35 AS col0 FROM tab0
----
-2310

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL - COUNT ( * ) * + - MAX ( - - 22 ) * + - 35 AS col0 FROM tab0
----
-2310

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT ALL + - col1 DIV - 87 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + - col1 / - 87 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8967
SELECT - 96 AS col2, - COUNT( ALL - col2 ) AS col1 FROM tab1 cor0
----
-96
-3

skipif mysql # not compatible
query II rowsort label-8967
SELECT - 96 AS col2, - COUNT ( ALL - col2 ) AS col1 FROM tab1 cor0
----
-96
-3

query II rowsort
SELECT ALL 39 AS col2, - 67 AS col1 FROM tab1 AS cor0
----
39
-67
39
-67
39
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT COUNT( DISTINCT + - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT COUNT ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT - 56 AS col1, + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-56
15
-56
87
-56
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT DISTINCT + MAX( col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT + MAX ( col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL + col0 * - 32 + - col0 AS col0 FROM tab1
----
-1683
-2805
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT 90 + - 67 + - + COUNT( * ) col0 FROM tab1
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8973
SELECT 90 + - 67 + - + COUNT ( * ) col0 FROM tab1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8974
SELECT * FROM tab1 WHERE + col1 > CAST( - col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8974
SELECT * FROM tab1 WHERE + col1 > CAST ( - col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 2 * - 73 AS col2 FROM tab2
----
-146
-146
-146

query III rowsort
SELECT * FROM tab2 WHERE - 42 IS NULL AND NOT - col2 * 41 NOT BETWEEN + - col0 AND + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8977
SELECT COUNT( * ) DIV + 72 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8977
SELECT COUNT ( * ) / + 72 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8978
SELECT - ( + - MAX( - CAST( - 6 AS SIGNED ) ) ) AS col0, + 81 + - 66 AS col2 FROM tab2 AS cor0
----
6
15

skipif mysql # not compatible
query II rowsort label-8978
SELECT - ( + - MAX ( - CAST ( - 6 AS INTEGER ) ) ) AS col0, + 81 + - 66 AS col2 FROM tab2 AS cor0
----
6
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8979
SELECT - - COUNT( + - col2 ) AS col2, + AVG ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8979
SELECT - - COUNT ( + - col2 ) AS col2, + AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 45 ) col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL + COUNT( * ) + 77 AS col1 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL + COUNT ( * ) + 77 AS col1 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8982
SELECT + COUNT( * ), 70 AS col0 FROM tab1 AS cor0
----
3
70

skipif mysql # not compatible
query II rowsort label-8982
SELECT + COUNT ( * ), 70 AS col0 FROM tab1 AS cor0
----
3
70

query II rowsort
SELECT DISTINCT + col0, col0 + + - ( - - col2 ) * col2 + - + col0 AS col2 FROM tab1 AS cor0
----
51
-9216
85
-3481
91
-4624

query I rowsort
SELECT - 86 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 84 > - col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 28 + col2 + + + ( + - col0 ) FROM tab2 AS cor0
----
11
4
5

query I rowsort
SELECT + + ( + col2 ) * - - 93 * + + col2 - + col1 + - 85 FROM tab2 AS cor0
----
148638
312700
49061

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 66 * + 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL + + 59 - + + SUM( + col2 ) FROM tab0 AS cor0 WHERE NOT - 74 + - - col0 IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + + 59 - + + SUM ( + col2 ) FROM tab0 AS cor0 WHERE NOT - 74 + - - col0 IS NULL
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT - + 54 DIV + col1 + + col1 FROM tab2 AS cor0
----
50
67
77

skipif mysql # not compatible
query I rowsort label-8990
SELECT - + 54 / + col1 + + col1 FROM tab2 AS cor0
----
50
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT DISTINCT + 5 - COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT + 5 - COUNT ( * ) FROM tab0 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 + - + col0 + - col0 col1 FROM tab1 AS cor0
----
-160
-74
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8993
SELECT col0 DIV col1 * + col1, + CAST( NULL AS SIGNED ) * col2 col0 FROM tab1 AS cor0
----
42
NULL
47
NULL
85
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8993
SELECT col0 / col1 * + col1, + CAST ( NULL AS INTEGER ) * col2 col0 FROM tab1 AS cor0
----
42
NULL
47
NULL
85
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT 66 / - - CAST( NULL AS SIGNED ) + ( - + col1 ) AS col2 FROM tab2 cor0 WHERE NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8994
SELECT 66 / - - CAST ( NULL AS INTEGER ) + ( - + col1 ) AS col2 FROM tab2 cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8995
SELECT ALL - col1 FROM tab1 WHERE NOT - 50 * CAST( NULL AS DECIMAL ) IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - col1 FROM tab1 WHERE NOT - 50 * CAST ( NULL AS REAL ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 66 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT DISTINCT - col2 DIV 20 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT - col2 / 20 FROM tab1
----
-2
-3
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-8998
SELECT 80, - col2 DIV 42 AS col2 FROM tab0
----
80
-1
80
-2
80
0

skipif mysql # not compatible
query II rowsort label-8998
SELECT 80, - col2 / 42 AS col2 FROM tab0
----
80
-1
80
-2
80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT DISTINCT COUNT( - + 50 ) FROM tab1 WHERE ( NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT COUNT ( - + 50 ) FROM tab1 WHERE ( NULL IS NULL )
----
3

query I rowsort
SELECT col0 + col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
102
170
182

query II rowsort
SELECT 98 AS col0, + col2 - + 76 + col0 + - + col2 * - col1 FROM tab2
----
98
1166
98
3108
98
3943

query II rowsort
SELECT ALL + col0, col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT + col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9004
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9004
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 91 + + col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 6 / - col2 - col2 * col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT DISTINCT - 16 AS col1 FROM tab1 WHERE NOT ( CAST( col0 AS SIGNED ) ) IS NULL
----
-16

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT - 16 AS col1 FROM tab1 WHERE NOT ( CAST ( col0 AS INTEGER ) ) IS NULL
----
-16

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= + 91
----

query I rowsort
SELECT - 83 AS col0 FROM tab0 WHERE NULL IS NULL
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT MIN( DISTINCT 38 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
38

skipif mysql # not compatible
query I rowsort label-9011
SELECT MIN ( DISTINCT 38 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
38

query I rowsort
SELECT ( col0 ) + 24 FROM tab2
----
70
88
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( 36 ) col2 FROM tab1 WHERE col2 / + col2 + - col1 IN ( - 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT - MAX( ALL - 39 ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-9014
SELECT - MAX ( ALL - 39 ) AS col1 FROM tab2
----
39

query I rowsort
SELECT ALL - col2 + - 35 AS col2 FROM tab0
----
-134
-45
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ( MAX( + col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9016
SELECT ( MAX ( + col1 ) ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT + COUNT( col0 ) + MIN( - col0 ) col1 FROM tab1
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9019
SELECT + COUNT ( col0 ) + MIN ( - col0 ) col1 FROM tab1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT CAST( MAX( - col0 ) AS SIGNED ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9020
SELECT CAST ( MAX ( - col0 ) AS INTEGER ) AS col2 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT col1 * + 51 AS col1 FROM tab0 WHERE NOT ( 87 ) IN ( col2 )
----
1071
4131
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col1 FROM tab0 WHERE col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col2 / col0 FROM tab0 WHERE NOT + col0 NOT BETWEEN + 16 * 28 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 * col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT CAST( COUNT( * ) AS SIGNED ) + + MAX( + col1 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-9025
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + MAX ( + col1 ) FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT + SUM( ALL 36 ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-9026
SELECT + SUM ( ALL 36 ) FROM tab0
----
108

query I rowsort
SELECT ALL ( + col0 ) + ( + col1 ) AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT ALL + 99 * - COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT ( NULL ) <> 22 * 92
----
0

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + 99 * - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT ( NULL ) <> 22 * 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT 66 + + COUNT( * ) AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-9029
SELECT 66 + + COUNT ( * ) AS col1 FROM tab0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col2 FROM tab2
----
44
44
44

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( ( + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT DISTINCT - col1 * ( col2 DIV + col0 ) AS col1 FROM tab1
----
-14
0

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT - col1 * ( col2 / + col0 ) AS col1 FROM tab1
----
-14
0

query I rowsort
SELECT + col2 * ( 86 * + 84 ) + - col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
166106
288896
418917

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT - col2 NOT BETWEEN ( col0 ) AND - col0 * 78
----

query I rowsort
SELECT + ( col0 ) * 41 FROM tab0
----
3567
3977
615

query I rowsort
SELECT + ( + 18 ) * + 93 + 65 FROM tab2 AS cor0
----
1739
1739
1739

query I rowsort
SELECT col2 * - col2 + col1 AS col1 FROM tab1 AS cor0
----
-3476
-4577
-9202

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 = ( 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE - 11 * - col0 <> col2 + + col0 * + col1
----
-3

skipif mysql # not compatible
query I rowsort label-9039
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE - 11 * - col0 <> col2 + + col0 * + col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT ALL col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT + 12 + COUNT( * ) * - 87 AS col1 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-9041
SELECT + 12 + COUNT ( * ) * - 87 AS col1 FROM tab2
----
-249

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT DISTINCT - - col0 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT - - col0 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL 21 * - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
63

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL 21 * - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col1
----
0

query I rowsort
SELECT ALL 38 FROM tab1 AS cor0 WHERE ( + col2 * + col2 ) IS NOT NULL
----
38
38
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9048
SELECT DISTINCT col2 / 18 AS col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + - ( + 7 ) NOT BETWEEN NULL AND ( - 20 )
----

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT col2 / 18 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + - ( + 7 ) NOT BETWEEN NULL AND ( - 20 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 / 80 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col0 - ( col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - - ( col2 ) ) * + col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9052
SELECT ALL - col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - col0 * CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + 12 * + SUM( col2 ) FROM tab0
----
1872

skipif mysql # not compatible
query I rowsort label-9053
SELECT + 12 * + SUM ( col2 ) FROM tab0
----
1872

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9055
SELECT - 79 * - CAST( col0 AS SIGNED ) * 79 FROM tab0
----
542967
605377
93615

skipif mysql # not compatible
query I rowsort label-9055
SELECT - 79 * - CAST ( col0 AS INTEGER ) * 79 FROM tab0
----
542967
605377
93615

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL + MIN( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + MIN ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL ( - - col2 ) AS col2 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT 78 FROM tab1 AS cor0 WHERE NOT NULL = ( - col0 * + col1 + col1 )
----

query I rowsort
SELECT col2 + + col2 FROM tab2 WHERE NOT NULL IN ( + col1 )
----

query II rowsort
SELECT DISTINCT col2 AS col2, - col0 AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT 91 AS col0 FROM tab1 AS cor0 WHERE NOT 91 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / col0 <> NULL
----

query I rowsort
SELECT DISTINCT - 63 * + + ( + - col1 ) * col0 AS col0 FROM tab0 AS cor0
----
115101
6111
76545

query I rowsort
SELECT ( + + col2 ) * 2 * 14 FROM tab0 cor0
----
1316
2772
280

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 88 + - 52 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 + + - col1 col1 FROM tab2 AS cor0
----
-18
-8
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9067
SELECT CAST( - COUNT( * ) AS SIGNED ) + - 87 AS col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9067
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - 87 AS col0 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT ALL - - col2 * + - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + - col2 + + col2 * + 24 FROM tab1 AS cor0
----
1357
1564
2208

query I rowsort
SELECT DISTINCT col0 + - col2 + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1150
-3056
-3869

query I rowsort
SELECT DISTINCT + col1 + + 78 + - col2 + + col2 AS col0 FROM tab1 AS cor0
----
125
83
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT 31 + + 15 + col2 AS col2 FROM tab2
----
104
69
86

query I rowsort
SELECT ALL - ( + 0 ) + + ( + 79 ) FROM tab1
----
79
79
79

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + - 65 + + col1 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NULL ) NOT IN ( - 34 )
----

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NULL ) NOT IN ( - 34 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 * - - col0 + + col0 col2 FROM tab0
----
1311
1935
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT MIN( + col1 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT MIN ( + col1 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT DISTINCT col1 + + 46 DIV + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT col1 + + 46 / + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL col2 + + + col0 AS col0 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 * + - col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL - + SUM( ALL - + col2 ) * + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1404

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL - + SUM ( ALL - + col2 ) * + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1404

query II rowsort
SELECT DISTINCT - 45 AS col1, + col1 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE ( + ( + col2 ) ) > col0
----
1
81

query I rowsort
SELECT ( - - col0 ) - col1 AS col2 FROM tab1 cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT + - MIN( + - 36 ) - - 90 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-9087
SELECT + - MIN ( + - 36 ) - - 90 FROM tab2 AS cor0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT ALL - + col1 + col2 DIV - ( col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL - + col1 + col2 / - ( col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN 14 * - col1 AND ( NULL ) )
----

query I rowsort
SELECT - col1 + - - 24 AS col2 FROM tab2 cor0
----
-27
-43
-53

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 21 < 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT + SUM( ALL col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT + SUM ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT + MAX( - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + MAX ( - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - + ( col2 ) AS col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9095
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) NOT IN ( CAST( - - 5 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9095
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) NOT IN ( CAST ( - - 5 AS INTEGER ) )
----

query I rowsort
SELECT - 40 FROM tab0 AS cor0 WHERE NOT 95 IN ( + col0 * - col1 + - ( - col2 ) )
----
-40
-40
-40

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / - col0 <> ( + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT col0 FROM tab0 WHERE NOT ( NOT col2 / - CAST( ( - col1 ) AS SIGNED ) * 82 IN ( 44 * - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-9099
SELECT col0 FROM tab0 WHERE NOT ( NOT col2 / - CAST ( ( - col1 ) AS INTEGER ) * 82 IN ( 44 * - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT + COUNT( * ) - + - COUNT( * ) col2 FROM tab1, tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9100
SELECT DISTINCT + COUNT ( * ) - + - COUNT ( * ) col2 FROM tab1, tab0 AS cor0
----
18

query I rowsort
SELECT ALL col1 * + + 67 FROM tab1 WHERE NOT + col2 * - 39 = NULL
----

query I rowsort
SELECT - 61 * + col2 AS col0 FROM tab1
----
-3599
-4148
-5856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT - col1 / - CAST( NULL AS SIGNED ) * - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9103
SELECT - col1 / - CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT - SUM( + - col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9104
SELECT - SUM ( + - col1 ) AS col1 FROM tab1 AS cor0
----
66

query II rowsort
SELECT + col0 AS col1, 19 FROM tab2 AS cor0
----
46
19
64
19
75
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 IN ( - col2 + - 76 + + 97 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 73 ) * + col1 + + col0 col0 FROM tab1
----
1073
3522
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9108
SELECT ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT + ( + 68 ) = 17 + - col2 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9108
SELECT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT + ( + 68 ) = 17 + - col2 - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - - 50 * col1 + - col0 + 27 AS col0 FROM tab1 AS cor0
----
192
2286
676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT 15 / - col1 * - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT 15 / - col1 * - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( NOT NULL <= NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * 90 * col1 col0 FROM tab1 cor0
----
103320
346860
36900

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = + - 17 * + 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT col1 + + + col2 + col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT col1 + + + col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT col0 * - + CAST( NULL AS SIGNED ) * + - 28 + - + col2 + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT col0 * - + CAST ( NULL AS INTEGER ) * + - 28 + - + col2 + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 53 + - col0 * - col0 FROM tab2
----
2169
4149
5678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + col1 col2 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL 80 * COUNT( * ) AS col0 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL 80 * COUNT ( * ) AS col0 FROM tab1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT + 66 * 16 + - COUNT( DISTINCT + col1 ) AS col2 FROM tab1
----
1053

skipif mysql # not compatible
query I rowsort label-9119
SELECT + 66 * 16 + - COUNT ( DISTINCT + col1 ) AS col2 FROM tab1
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT COUNT( * ) FROM tab0 WHERE ( - col1 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT COUNT ( * ) FROM tab0 WHERE ( - col1 ) = NULL
----
0

query I rowsort
SELECT ALL + + col2 - - - 62 AS col0 FROM tab1 AS cor0
----
-3
34
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 * + - 37 col2 FROM tab0 AS cor0
----
3404
3404
3404

query II rowsort
SELECT DISTINCT + col2, + col1 * + 59 AS col0 FROM tab2 AS cor0
----
23
3009
40
4543
58
3953

query I rowsort
SELECT ALL - - col1 + + ( col2 ) AS col2 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT DISTINCT + 31 + 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
84

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NULL <> + 92
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9127
SELECT ALL + - CAST( + col0 AS SIGNED ) DIV - col1 + - col1 FROM tab1 cor0
----
-11
-46
12

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + - CAST ( + col0 AS INTEGER ) / - col1 + - col1 FROM tab1 cor0
----
-11
-46
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col1 ) col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + - ( - + col1 ) * + 44 FROM tab1 cor0
----
2068
220
616

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE ( NOT ( col2 / col1 ) IS NOT NULL ) OR NOT ( NULL ) <> col1
----

query I rowsort
SELECT + ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT COUNT( ALL col1 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9132
SELECT COUNT ( ALL col1 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9133
SELECT - COUNT( * ) * - CAST( NULL AS DECIMAL ) * - 8 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT - COUNT ( * ) * - CAST ( NULL AS REAL ) * - 8 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9135
SELECT CAST( 29 AS SIGNED ) * + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT CAST ( 29 AS INTEGER ) * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9136
SELECT DISTINCT col2 col1, - CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9136
SELECT DISTINCT col2 col1, - CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT DISTINCT col1 * + ( + CAST( - col1 AS SIGNED ) ) FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT col1 * + ( + CAST ( - col1 AS INTEGER ) ) FROM tab0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT + col0 DIV - 44 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9138
SELECT + col0 / - 44 FROM tab1
----
-1
-1
-2

query II rowsort
SELECT DISTINCT - 14, - col2 AS col2 FROM tab2
----
-14
-23
-14
-40
-14
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9140
SELECT + COUNT( * ) DIV - - ( - 64 ) DIV - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9140
SELECT + COUNT ( * ) / - - ( - 64 ) / - COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - + 44 >= NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9142
SELECT + 54, ( + - MAX( + col2 ) ) col0 FROM tab2
----
54
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9142
SELECT + 54, ( + - MAX ( + col2 ) ) col0 FROM tab2
----
54
-58

query I rowsort
SELECT - 44 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query II rowsort
SELECT - ( - ( + 45 ) ) + + col2, col1 FROM tab2 cor0
----
103
67
68
51
85
77

query II rowsort
SELECT ALL + col2 * + col1 AS col1, col2 AS col2 FROM tab0 AS cor0
----
210
10
3807
47
99
99

query I rowsort
SELECT + + 19 + - - 93 FROM tab0 AS cor0
----
112
112
112

query I rowsort
SELECT + col2 * - - 17 * - - 1 + - + 67 AS col1 FROM tab2 AS cor0
----
324
613
919

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9149
SELECT ALL + + col2 + + - CAST( - col0 AS SIGNED ) DIV col0 + + ( col2 ) FROM tab1 AS cor0
----
119
137
193

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + + col2 + + - CAST ( - col0 AS INTEGER ) / col0 + + ( col2 ) FROM tab1 AS cor0
----
119
137
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * - col1 col1 FROM tab1 AS cor0
----
-100
-2141
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT + 88 DIV - + COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9151
SELECT + 88 / - + COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
-32

query I rowsort
SELECT DISTINCT + col1 + col1 * + col0 * + - 3 + - col0 AS col1 FROM tab0
----
-3579
-387
-5547

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT - COUNT( * ) * ( + + COUNT( * ) ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9153
SELECT - COUNT ( * ) * ( + + COUNT ( * ) ) col1 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT - 94 FROM tab2 WHERE + + col0 IS NULL
----

query I rowsort
SELECT ALL + col2 + - ( ( + col1 ) ) + 92 AS col2 FROM tab2
----
55
64
83

query I rowsort
SELECT DISTINCT - col1 + + 44 * + 50 FROM tab2
----
2123
2133
2149

query III rowsort
SELECT ALL * FROM tab1 WHERE 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col0 <> NULL
----

query I rowsort
SELECT - col2 * - 83 - + 18 - + + col1 AS col2 FROM tab0 cor0
----
3802
791
8198

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * - col1 >= + ( + + ( - + 65 ) )
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 cor0 WHERE 85 IS NULL
----

query I rowsort
SELECT DISTINCT + - 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT + MAX( 41 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-9163
SELECT + MAX ( 41 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT 14 DIV 77 - - - col2 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9164
SELECT 14 / 77 - - - col2 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT ( - 87 ) AS col2 FROM tab1 AS cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT - col2 * + - CAST( + col2 AS SIGNED ) + - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1560
3306
506

skipif mysql # not compatible
query I rowsort label-9166
SELECT - col2 * + - CAST ( + col2 AS INTEGER ) + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1560
3306
506

query II rowsort
SELECT DISTINCT - + col2, - col0 AS col1 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 / - + col0 + - col1 AND + 68
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 11 * col0 IS NOT NULL
----

query I rowsort
SELECT + + 0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * - 22 * - - col0 * - 26 AS col1 FROM tab2 cor0
----
1464320
2488200
605176

query I rowsort
SELECT ALL col1 * + 6 AS col1 FROM tab2
----
306
402
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col0 FROM tab1
----
60
60
60

query I rowsort
SELECT 93 * col2 AS col0 FROM tab0
----
4371
9207
930

query I rowsort
SELECT ALL col1 * - 56 FROM tab0
----
-1176
-4536
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9177
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + - col1 <= NULL
----

skipif mysql # not compatible
query III rowsort label-9177
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9178
SELECT ALL + col1 DIV - - 57 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL + col1 / - - 57 AS col1 FROM tab2
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9179
SELECT 34 DIV - col0 AS col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9179
SELECT 34 / - col0 AS col1 FROM tab0
----
-2
0
0

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT - col1 + + col2 AS col2, col2 FROM tab2 AS cor0
----
-28
23
-37
40
-9
58

query I rowsort
SELECT + - 22 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT col2 * ( - + 35 ) AS col0 FROM tab0
----
-1645
-3465
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 63 + - - ( - ( + + col2 ) ) FROM tab2 AS cor0
----
23
40
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9186
SELECT ALL - CAST( ( - - MIN( + col1 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - CAST ( ( - - MIN ( + col1 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 80 ) col1 FROM tab2
----
80
80
80

query I rowsort
SELECT 77 - + - col0 AS col0 FROM tab2
----
123
141
152

query I rowsort
SELECT col2 + - ( - col2 ) + - col1 AS col0 FROM tab0
----
-1
13
197

query I rowsort
SELECT - 27 + - - col1 FROM tab2
----
24
40
50

query I rowsort
SELECT col0 + + 68 FROM tab0
----
155
165
83

query I rowsort
SELECT ALL - col2 * + + 51 + col0 * + + 85 FROM tab2
----
2737
3400
3417

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT COUNT( * ) * + 22 + + - 93 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-9194
SELECT COUNT ( * ) * + 22 + + - 93 FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-9195
SELECT 31 DIV + ( 85 ) AS col0, col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-9195
SELECT 31 / + ( 85 ) AS col0, col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9196
SELECT DISTINCT CAST( NULL AS SIGNED ) col1, 42 AS col1 FROM tab2 AS cor0
----
NULL
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9196
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, 42 AS col1 FROM tab2 AS cor0
----
NULL
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9197
SELECT DISTINCT - - COUNT( * ) - + + 19 AS col2, COUNT( * ) FROM tab2 AS cor0
----
-16
3

skipif mysql # not compatible
query II rowsort label-9197
SELECT DISTINCT - - COUNT ( * ) - + + 19 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-16
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT ALL + 80 AS col0, - COUNT( DISTINCT - - 76 ) FROM tab1 AS cor0
----
80
-1

skipif mysql # not compatible
query II rowsort label-9198
SELECT ALL + 80 AS col0, - COUNT ( DISTINCT - - 76 ) FROM tab1 AS cor0
----
80
-1

query II rowsort
SELECT col1, 33 FROM tab2 AS cor0
----
51
33
67
33
77
33

query I rowsort
SELECT ALL - 9 FROM tab0 WHERE NOT 21 NOT IN ( col0, - col0 + ( + 13 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9201
SELECT DISTINCT - 44 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IN ( + 12 - - - col0 * - col1 / + + ( - col0 ), col1 + col2 )
----

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT - 44 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( + 12 - - - col0 * - col1 / + + ( - col0 ), col1 + col2 )
----

query I rowsort
SELECT DISTINCT - col2 * + 43 FROM tab0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT DISTINCT COUNT( * ) * ( - 61 ) AS col1 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT COUNT ( * ) * ( - 61 ) AS col1 FROM tab0
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT ALL - col0 DIV col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9204
SELECT ALL - col0 / col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + col0 / - - 44 * 35 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT - COUNT( ALL - 37 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9207
SELECT - COUNT ( ALL - 37 ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col1 FROM tab0 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT DISTINCT - 55 * + COUNT( * ) * + + 89 - - COUNT( * ) FROM tab2 AS cor0
----
-14682

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT - 55 * + COUNT ( * ) * + + 89 - - COUNT ( * ) FROM tab2 AS cor0
----
-14682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 15 * - + col0, - col2 col2 FROM tab1 cor0
----
-1275
-59
-1365
-68
-765
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - 4 / + col1 AND + ( - + col2 ) * - 86
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9212
SELECT 11, 7 * - - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
11
21

skipif mysql # not compatible
query II rowsort label-9212
SELECT 11, 7 * - - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
11
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9213
SELECT CAST( - - 7 AS SIGNED ) + MIN( ALL + 61 ) AS col0 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-9213
SELECT CAST ( - - 7 AS INTEGER ) + MIN ( ALL + 61 ) AS col0 FROM tab1
----
68

query II rowsort
SELECT - col2 AS col1, 91 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
91
-68
91
-96
91

query I rowsort
SELECT ALL - col1 * - - col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE - col1 >= + + 85 - - + col0
----

query I rowsort
SELECT - 34 + + + col0 * + col2 FROM tab0 AS cor0
----
671
836
9569

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT ALL - 98 DIV - col2 - 14 FROM tab0 AS cor0
----
-12
-14
-5

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL - 98 / - col2 - 14 FROM tab0 AS cor0
----
-12
-14
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 + + 74 col2, col1 - ( + col0 ) FROM tab1 AS cor0
----
125
-37
159
-80
165
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT + - COUNT( * ) + - 58 - + COUNT( * ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9220
SELECT + - COUNT ( * ) + - 58 - + COUNT ( * ) FROM tab1 AS cor0
----
-64

query I rowsort
SELECT ALL 17 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 ) BETWEEN + + col0 * - col2 + - col0 AND ( + + col2 ) + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( col0 ) * + col1 + + + col2 + - + ( col0 ) FROM tab1 cor0
----
399
4254
759

query III rowsort
SELECT * FROM tab0 WHERE - col2 / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT DISTINCT MAX( ALL - col2 ) + - COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT MAX ( ALL - col2 ) + - COUNT ( * ) FROM tab1
----
-62

query I rowsort
SELECT - - col0 + - - 12 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT ALL CAST( NULL AS SIGNED ) * + 94 + + CAST( NULL AS SIGNED ) * + 21 + - + col2 - col0 / - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL CAST ( NULL AS INTEGER ) * + 94 + + CAST ( NULL AS INTEGER ) * + 21 + - + col2 - col0 / - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 57 <= + 83
----

query I rowsort
SELECT + - col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - COUNT( * ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9231
SELECT - COUNT ( * ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 79 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT MAX( + col2 ) col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9233
SELECT MAX ( + col2 ) col0 FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 5 col2, - col1 FROM tab2 AS cor0
----
5
-51
5
-67
5
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL - SUM( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL - SUM ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - COUNT( + 1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9236
SELECT - COUNT ( + 1 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - ( + - col1 ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + 48 + 63 FROM tab2 cor0
----
111

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE + col1 * + col1 / + + col2 IS NOT NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + col1 + 9 AS col0, + ( + 36 ) FROM tab1
----
14
36
23
36
56
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT ALL - col2 / - - col1 + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - col2 / - - col1 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col2 * + + col1 AS col2 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 63 IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 * col2 AS col0 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT col0 + + - col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL - col0 + 2 AS col1 FROM tab0
----
-13
-85
-95

query I rowsort
SELECT DISTINCT 92 - col2 AS col0 FROM tab2
----
34
52
69

query I rowsort
SELECT ALL - 90 * - col2 * - - col0 + + col1 FROM tab0
----
63531
78321
864271

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - col2 > - col1
----

query I rowsort
SELECT - col2 * 53 - - col0 AS col2 FROM tab0 AS cor0
----
-2476
-443
-5150

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL AND NOT NULL BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL + - col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT SUM( ALL - col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT SUM ( ALL - col0 ) FROM tab2 cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT ALL + CAST( NULL AS SIGNED ) + - + 21 / - + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 21 / - + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9255
SELECT col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT col2 + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT ALL - col0 DIV + ( + 70 ) AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - col0 / + ( + 70 ) AS col0 FROM tab0
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9257
SELECT ALL + CAST( NULL AS DECIMAL ) + - ( - ( + 28 ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL + CAST ( NULL AS REAL ) + - ( - ( + 28 ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 53 * + + col0 * - - col0 AS col0 FROM tab1
----
137853
382925
438893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9259
SELECT CAST( COUNT( * ) AS SIGNED ) * 30 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
270

skipif mysql # not compatible
query I rowsort label-9259
SELECT CAST ( COUNT ( * ) AS INTEGER ) * 30 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9260
SELECT DISTINCT col0, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9260
SELECT DISTINCT col0, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL + + SUM( + + 62 ) FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL + + SUM ( + + 62 ) FROM tab0 AS cor0
----
186

query I rowsort
SELECT ALL - 99 * - ( + col2 ) * - + col1 FROM tab2 AS cor0
----
-116127
-304920
-384714

onlyif mysql # DIV for integer division: 
query II rowsort label-9263
SELECT DISTINCT + ( col0 ) * col0 AS col0, - col2 DIV + + col2 FROM tab2 AS cor0
----
2116
-1
4096
-1
5625
-1

skipif mysql # not compatible
query II rowsort label-9263
SELECT DISTINCT + ( col0 ) * col0 AS col0, - col2 / + + col2 FROM tab2 AS cor0
----
2116
-1
4096
-1
5625
-1

query I rowsort
SELECT - - 44 * col0 + + col2 FROM tab2 AS cor0
----
2047
2856
3358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 col2 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL - col2 + 40 * col1 * + col1 + - - col1 AS col1 FROM tab2
----
104068
179569
237197

query I rowsort
SELECT - col2 * + + 39 + - - col2 FROM tab1
----
-2242
-2584
-3648

query I rowsort
SELECT ALL ( + 38 ) + + - col1 AS col2 FROM tab1
----
-9
24
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT ALL - ( - 13 ) DIV - - 56 + col0 - - 14 * col1 * - 49 * + + col2 AS col2 FROM tab1
----
-202285
-2192365
-921933

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - ( - 13 ) / - - 56 + col0 - - 14 * col1 * - 49 * + + col2 AS col2 FROM tab1
----
-202285
-2192365
-921933

query I rowsort
SELECT DISTINCT 25 + ( + 19 ) + col1 - col0 + + - col0 - + col2 * + + col1 FROM tab0
----
-248
-319
-3712

query I rowsort
SELECT DISTINCT 52 * + 74 FROM tab2
----
3848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9272
SELECT - 30 * + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-9272
SELECT - 30 * + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL + MAX( - col2 ) FROM tab0 WHERE ( NULL ) > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL + MAX ( - col2 ) FROM tab0 WHERE ( NULL ) > col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9274
SELECT ALL + CAST( - 67 AS SIGNED ) DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + CAST ( - 67 AS INTEGER ) / col1 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE col0 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT - - SUM( col0 ) * 21 AS col1 FROM tab2 AS cor0
----
3885

skipif mysql # not compatible
query I rowsort label-9277
SELECT - - SUM ( col0 ) * 21 AS col1 FROM tab2 AS cor0
----
3885

query I rowsort
SELECT ALL + 25 - + col1 * 19 FROM tab2 AS cor0
----
-1248
-1438
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT - MIN( DISTINCT col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9279
SELECT - MIN ( DISTINCT col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT - ( + 30 ) * - - 82 AS col2 FROM tab1 AS cor0
----
-2460
-2460
-2460

query II rowsort
SELECT + col0 AS col1, col1 + ( - + col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
28
64
37
75
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT ALL - ( + CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - ( + CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - 56 * - 40 FROM tab1
----
2240
2240
2240

query I rowsort
SELECT DISTINCT ( + + 16 ) FROM tab1
----
16

query I rowsort
SELECT ALL - 10 * col1 FROM tab0
----
-10
-210
-810

query II rowsort
SELECT col0 AS col2, col1 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9287
SELECT 86, col0 DIV + + col2 AS col1 FROM tab0
----
86
0
86
0
86
8

skipif mysql # not compatible
query II rowsort label-9287
SELECT 86, col0 / + + col2 AS col1 FROM tab0
----
86
0
86
0
86
8

query I rowsort
SELECT ALL - ( - col2 ) * - + col1 * - - 17 AS col2 FROM tab2
----
-19941
-52360
-66062

query I rowsort
SELECT + + col2 AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 38 / + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT ALL + col0 DIV 87 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + col0 / 87 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 35 + - ( + + 25 ) AS col2 FROM tab2 AS cor0
----
51
10
67
10
77
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9292
SELECT + - COUNT( * ) col2, 74 FROM tab1 AS cor0
----
-3
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9292
SELECT + - COUNT ( * ) col2, 74 FROM tab1 AS cor0
----
-3
74

query I rowsort
SELECT + col1 * 12 + - - col2 FROM tab1 AS cor0
----
119
264
632

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT - - MAX( ALL + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9294
SELECT - - MAX ( ALL + col1 ) FROM tab1 cor0
----
47

query I rowsort
SELECT - 66 * - 42 FROM tab2 AS cor0
----
2772
2772
2772

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 66 < 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 10 + + 33 AS col1 FROM tab0
----
43
43
43

query II rowsort
SELECT + col0 AS col0, + 87 + - 3 AS col0 FROM tab0
----
15
84
87
84
97
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - COUNT( * ) + 51 AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9299
SELECT - COUNT ( * ) + 51 AS col1 FROM tab2
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 * col1 col0 FROM tab1
----
2397
255
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT DISTINCT + 65 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT + 65 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL <> - col1 * + - 35 + - col2
----

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab0 WHERE + + col2 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - 4 * - - 12 AS col0 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT 38 DIV - 47 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9305
SELECT 38 / - 47 FROM tab1
----
0
0
0

query I rowsort
SELECT 87 - + + col0 AS col1 FROM tab2
----
12
23
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL MIN( DISTINCT col1 ) - + 62 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL MIN ( DISTINCT col1 ) - + 62 FROM tab1 cor0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9308
SELECT DISTINCT + - 87 - - CAST( NULL AS SIGNED ) / - ( - COUNT( * ) ) + + - COUNT( * ) + COUNT( + - col0 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT + - 87 - - CAST ( NULL AS INTEGER ) / - ( - COUNT ( * ) ) + + - COUNT ( * ) + COUNT ( + - col0 ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( + col0, - col1, - 78, + 16 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, + 39 FROM tab1 AS cor0 WHERE + col2 NOT IN ( + col1, col0, + col0 )
----
59
39
68
39
96
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9311
SELECT - col2 * CAST( NULL AS SIGNED ) AS col2, + col1 * + - 52 * 50 FROM tab1 AS cor0
----
NULL
-122200
NULL
-13000
NULL
-36400

skipif mysql # not compatible
query II rowsort label-9311
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col2, + col1 * + - 52 * 50 FROM tab1 AS cor0
----
NULL
-122200
NULL
-13000
NULL
-36400

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL + 65 * + + COUNT( DISTINCT 74 ) AS col2 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + 65 * + + COUNT ( DISTINCT 74 ) AS col2 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT - ( + + 34 ) * COUNT( * ) FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-9313
SELECT - ( + + 34 ) * COUNT ( * ) FROM tab1
----
-102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col1 ) col2 FROM tab0 WHERE NOT + + col1 + 72 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9315
SELECT + 75 DIV + 58 AS col0, 31 FROM tab0
----
1
31
1
31
1
31

skipif mysql # not compatible
query II rowsort label-9315
SELECT + 75 / + 58 AS col0, 31 FROM tab0
----
1
31
1
31
1
31

query I rowsort
SELECT ALL 53 * col2 * - col1 AS col1 FROM tab2
----
-163240
-205958
-62169

query I rowsort
SELECT - ( - 56 ) * + col2 FROM tab1
----
3304
3808
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - 41 * - + MAX( + - ( - - 74 ) ) AS col2 FROM tab1
----
-3034

skipif mysql # not compatible
query I rowsort label-9318
SELECT - 41 * - + MAX ( + - ( - - 74 ) ) AS col2 FROM tab1
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL - + 69 * + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( 55 + + col0, col0 + + + 44, 85 + - + 85 * - col2 * + 38 * + - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL - + 69 * + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( 55 + + col0, col0 + + + 44, 85 + - + 85 * - col2 * + 38 * + - 31 )
----
0

query I rowsort
SELECT - col1 * 72 * 2 * + 81 AS col2 FROM tab0
----
-11664
-244944
-944784

query I rowsort
SELECT - 73 * + + col1 * - 35 * 17 AS col2 FROM tab2
----
2215185
2910145
3344495

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT + 21 * - MAX( DISTINCT - - col2 ) * + + MAX( ALL - col0 ) AS col1 FROM tab0
----
31185

skipif mysql # not compatible
query I rowsort label-9322
SELECT + 21 * - MAX ( DISTINCT - - col2 ) * + + MAX ( ALL - col0 ) AS col1 FROM tab0
----
31185

query I rowsort
SELECT ALL + 32 * col2 FROM tab0
----
1504
3168
320

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL ( COUNT( * ) ) * - 63 * - + COUNT( * ) FROM tab0
----
567

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL ( COUNT ( * ) ) * - 63 * - + COUNT ( * ) FROM tab0
----
567

query III rowsort
SELECT * FROM tab1 WHERE NOT - 15 * - 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 87 * + ( + col0 ) AS col1 FROM tab2
----
4002
5568
6525

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + - 20 * col2 + + 16 NOT IN ( + 87 )
----

query I rowsort
SELECT ALL + + col0 + + - col1 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9329
SELECT DISTINCT col1 + + - 77 DIV - col0 FROM tab0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT col1 + + - 77 / - col0 FROM tab0
----
1
21
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9330
SELECT ( - 69 ), COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-69
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9330
SELECT ( - 69 ), COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-69
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9331
SELECT ALL 27 + + - COUNT( * ) * 54 AS col2, - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-135
9

skipif mysql # not compatible
query II rowsort label-9331
SELECT ALL 27 + + - COUNT ( * ) * 54 AS col2, - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-135
9

query I rowsort
SELECT - 39 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col2, - col1 AS col0 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9334
SELECT ALL 59 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL 59 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
5

query I rowsort
SELECT DISTINCT + - 63 + + + col1 FROM tab0 AS cor0 WHERE NOT - 35 IS NULL
----
-42
-62
18

query II rowsort
SELECT - col1 / col0 / col2, col1 FROM tab2 AS cor0 WHERE + col2 + col2 IN ( col0 + - - 26 + + col1, + col2 + - - col0 )
----

query I rowsort
SELECT col2 * 80 + + col2 AS col0 FROM tab1 AS cor0
----
4779
5508
7776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9338
SELECT ALL + - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + 79 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT ( - 6 ) + + COUNT( * ) * - + 45 - 62 AS col1 FROM tab0 AS cor0
----
-203

skipif mysql # not compatible
query I rowsort label-9340
SELECT ( - 6 ) + + COUNT ( * ) * - + 45 - 62 AS col1 FROM tab0 AS cor0
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col1 / + col1 <> 73
----
3

skipif mysql # not compatible
query I rowsort label-9341
SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col1 / + col1 <> 73
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9342
SELECT + COUNT( * ) + - 5 AS col2, - COUNT( * ) FROM tab0
----
-2
-3

skipif mysql # not compatible
query II rowsort label-9342
SELECT + COUNT ( * ) + - 5 AS col2, - COUNT ( * ) FROM tab0
----
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL MIN( - - ( - col1 ) ) + + + MAX( DISTINCT - + 0 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL MIN ( - - ( - col1 ) ) + + + MAX ( DISTINCT - + 0 ) FROM tab1
----
-47

query I rowsort
SELECT ALL col0 + + - col1 + + col0 AS col2 FROM tab1
----
135
165
88

query III rowsort
SELECT ALL * FROM tab2 WHERE - 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT - MAX( + 79 ) col2 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9346
SELECT - MAX ( + 79 ) col2 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT ( 54 ) * 28 FROM tab1 AS cor0
----
1512
1512
1512

query I rowsort
SELECT + + col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT - SUM( ALL ( - ( col2 ) ) ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9349
SELECT - SUM ( ALL ( - ( col2 ) ) ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT DISTINCT + MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT + MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( ( - 6 ) ) col2 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT - MAX( DISTINCT 48 ) AS col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT - MAX ( DISTINCT 48 ) AS col1 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT + - ( - - 80 ) AS col2 FROM tab1 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9354
SELECT + CAST( NULL AS SIGNED ), - 88 DIV - + 82 col2 FROM tab1 cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9354
SELECT + CAST ( NULL AS INTEGER ), - 88 / - + 82 col2 FROM tab1 cor0
----
NULL
1
NULL
1
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL + + SUM( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL + + SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9356
SELECT ALL - COUNT( * ) * - 82 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - COUNT ( * ) * - 82 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9357
SELECT - col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( col1 - + col0 IS NOT NULL )
----

skipif mysql # not compatible
query II rowsort label-9357
SELECT - col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( col1 - + col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT CAST( + 71 AS SIGNED ) * + 7 * + 40 * + - ( - col1 ) FROM tab0
----
1610280
19880
417480

skipif mysql # not compatible
query I rowsort label-9358
SELECT CAST ( + 71 AS INTEGER ) * + 7 * + 40 * + - ( - col1 ) FROM tab0
----
1610280
19880
417480

query I rowsort
SELECT ALL - col0 * - + 19 AS col2 FROM tab2
----
1216
1425
874

query II rowsort
SELECT ALL 52 AS col2, - col0 * col0 AS col0 FROM tab1
----
52
-2601
52
-7225
52
-8281

query I rowsort
SELECT - ( - - col0 ) * 43 * 3 AS col1 FROM tab0
----
-11223
-12513
-1935

query II rowsort
SELECT ALL + + col0 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT ALL 77 * - - col2 * col0 FROM tab2 AS cor0
----
197120
334950
81466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT CAST( NULL AS SIGNED ) + 72 - + ( - 73 ) AS col0 FROM tab1 WHERE + 43 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9364
SELECT CAST ( NULL AS INTEGER ) + 72 - + ( - 73 ) AS col0 FROM tab1 WHERE + 43 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 43 > col0
----

query I rowsort
SELECT col0 - - - col2 * + 82 * + - 94 AS col2 FROM tab2 AS cor0
----
177330
308384
447139

query I rowsort
SELECT ALL col2 * - col2 + + col1 FROM tab2
----
-1523
-3297
-478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + 93 col0 FROM tab1
----
-25
-34
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT 8 + COUNT( * ) AS col0 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-9369
SELECT 8 + COUNT ( * ) AS col0 FROM tab1
----
11

query I rowsort
SELECT col0 FROM tab0 WHERE + - col2 IS NULL
----

query I rowsort
SELECT ALL - 88 + col1 + + col2 + 35 AS col1 FROM tab1
----
11
57
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT + COUNT( DISTINCT - col0 ) + 50 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-9372
SELECT + COUNT ( DISTINCT - col0 ) + 50 FROM tab0
----
53

query I rowsort
SELECT - 50 * - col1 + + 73 FROM tab0
----
1123
123
4123

onlyif mysql # DIV for integer division: 
query I rowsort label-9374
SELECT + - 4 * col2 DIV - ( - + col0 ) + - col1 col0 FROM tab0 AS cor0
----
-21
-5
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9374
SELECT + - 4 * col2 / - ( - + col0 ) + - col1 col0 FROM tab0 AS cor0
----
-21
-5
-93

query I rowsort
SELECT DISTINCT - 65 * - col1 - + col2 - col1 AS col2 FROM tab2 AS cor0
----
3241
4230
4888

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + 81 IS NULL
----

query II rowsort
SELECT DISTINCT 8 AS col0, 14 FROM tab2 AS cor0
----
8
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ( - SUM( DISTINCT - col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9378
SELECT ( - SUM ( DISTINCT - col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 72 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ALL - 84 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT + SUM( - 57 ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-9381
SELECT + SUM ( - 57 ) FROM tab0
----
-171

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 / - 76 + - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT DISTINCT - COUNT( DISTINCT + - 32 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT - COUNT ( DISTINCT + - 32 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9385
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + - 64 < + - col0
----

skipif mysql # not compatible
query III rowsort label-9385
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + - 64 < + - col0
----

query I rowsort
SELECT 3 * + col1 * - - 94 FROM tab0 AS cor0
----
22842
282
5922

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT + COUNT( * ) * + 5 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT + COUNT ( * ) * + 5 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT - 89 * - ( - COUNT( * ) ) FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-9388
SELECT - 89 * - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-267

query I rowsort
SELECT ALL col1 * - - col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9390
SELECT CAST( NULL AS DECIMAL ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9390
SELECT CAST ( NULL AS REAL ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT col0 * - - ( + 86 ) FROM tab1
----
4386
7310
7826

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT COUNT( - + 38 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9392
SELECT COUNT ( - + 38 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT + MAX( DISTINCT - + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9393
SELECT + MAX ( DISTINCT - + col1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT 97 * - ( 51 ) FROM tab2
----
-4947
-4947
-4947

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 95 + + col0 * col0 >= NULL
----

query I rowsort
SELECT ALL ( - - ( - + 36 ) ) FROM tab2
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9397
SELECT - + ( col1 ) DIV col1 * - col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9397
SELECT - + ( col1 ) / col1 * - col1 AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT MAX( DISTINCT + 80 ) AS col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9398
SELECT MAX ( DISTINCT + 80 ) AS col2 FROM tab2 AS cor0
----
80

query I rowsort
SELECT ALL 39 + col0 * col0 AS col0 FROM tab1 AS cor0
----
2640
7264
8320

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT - MIN( + - 13 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9400
SELECT - MIN ( + - 13 ) FROM tab2 AS cor0
----
13

query I rowsort
SELECT DISTINCT col2 + - + col2 * - + col0 AS col0 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT ALL + col2 * - col1 + + - col1 FROM tab2 cor0
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT + col1 * CAST( NULL AS SIGNED ) + - + col1 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT + col1 * CAST ( NULL AS INTEGER ) + - + col1 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT DISTINCT - + MAX( + - col2 ) * + SUM( 56 ) AS col0 FROM tab1 AS cor0
----
9912

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT - + MAX ( + - col2 ) * + SUM ( 56 ) AS col0 FROM tab1 AS cor0
----
9912

query I rowsort
SELECT 82 + 61 FROM tab2 AS cor0
----
143
143
143

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 17 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT + - CAST( - 35 AS SIGNED ) + - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-11
-45
-81

skipif mysql # not compatible
query I rowsort label-9408
SELECT + - CAST ( - 35 AS INTEGER ) + - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-11
-45
-81

query I rowsort
SELECT ALL - col0 + + 13 - col0 FROM tab1 AS cor0
----
-157
-169
-89

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + - col2 * - 58 FROM tab1
----
3337
3853
5517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9412
SELECT COUNT( * ) DIV 44 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9412
SELECT COUNT ( * ) / 44 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 * 41 col1 FROM tab1 WHERE - 52 IS NULL
----

query II rowsort
SELECT DISTINCT - col0 + - col2 AS col1, 13 AS col2 FROM tab0
----
-196
13
-62
13
-97
13

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE + col1 <> - col2
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col0 - - ( 43 ) AS col2 FROM tab0
----
-44
-54
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL - COUNT( ALL + - col2 ) + + COUNT( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - COUNT ( ALL + - col2 ) + + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9418
SELECT DISTINCT + COUNT( * ) DIV 68 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + COUNT ( * ) / 68 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 92 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT + MAX( DISTINCT + 13 ) * - COUNT( * ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9420
SELECT + MAX ( DISTINCT + 13 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT + COUNT( * ), COUNT( ALL + 21 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9421
SELECT + COUNT ( * ), COUNT ( ALL + 21 ) FROM tab0
----
3
3

query I rowsort
SELECT ( + - ( - 54 ) ) FROM tab1
----
54
54
54

query II rowsort
SELECT col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( NULL ) BETWEEN NULL AND 41 ) )
----

query I rowsort
SELECT ALL + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + MAX( DISTINCT - 11 ) AS col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9426
SELECT + MAX ( DISTINCT - 11 ) AS col0 FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT MIN( + - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9427
SELECT MIN ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9428
SELECT DISTINCT + ( + 79 ) DIV ( - - COUNT( * ) ) DIV + MAX( ALL + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT + ( + 79 ) / ( - - COUNT ( * ) ) / + MAX ( ALL + col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9429
SELECT COUNT( * ) AS col0, - 26 * - COUNT( * ) * + + 21 AS col0 FROM tab1 cor0 WHERE NOT col2 * + col0 IS NULL
----
3
1638

skipif mysql # not compatible
query II rowsort label-9429
SELECT COUNT ( * ) AS col0, - 26 * - COUNT ( * ) * + + 21 AS col0 FROM tab1 cor0 WHERE NOT col2 * + col0 IS NULL
----
3
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT + SUM( + + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT + SUM ( + + col2 ) AS col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT ALL - 95 + + COUNT( * ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL - 95 + + COUNT ( * ) FROM tab2
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-9432
SELECT - col1 * - col0 AS col1, col1 DIV + - 92 FROM tab0
----
1215
0
1827
0
97
0

skipif mysql # not compatible
query II rowsort label-9432
SELECT - col1 * - col0 AS col1, col1 / + - 92 FROM tab0
----
1215
0
1827
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT - COUNT( * ) * - - MAX( DISTINCT col1 ) * + 78 FROM tab1
----
-10998

skipif mysql # not compatible
query I rowsort label-9433
SELECT - COUNT ( * ) * - - MAX ( DISTINCT col1 ) * + 78 FROM tab1
----
-10998

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT col2 >= - + col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL MIN( DISTINCT + 72 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL MIN ( DISTINCT + 72 ) FROM tab2 AS cor0
----
72

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( col0, col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - COUNT( * ) * + + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - COUNT( - 51 ) AS col1 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9438
SELECT - COUNT ( - 51 ) AS col1 FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab0, tab0 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 77 col1 FROM tab1 WHERE - 94 NOT BETWEEN NULL AND + + 86 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL + COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9442
SELECT COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9443
SELECT ALL - + col2 / + 42 * CAST( NULL AS SIGNED ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - + col2 / + 42 * CAST ( NULL AS INTEGER ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - ( col2 ) ) BETWEEN + col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - ( col2 ) ) BETWEEN + col0 AND NULL
----
-3

query I rowsort
SELECT 71 - + col1 FROM tab1 AS cor0
----
24
57
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT + 45 * - COUNT( * ) * 87 col2 FROM tab1 AS cor0
----
-11745

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9446
SELECT DISTINCT + 45 * - COUNT ( * ) * 87 col2 FROM tab1 AS cor0
----
-11745

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - + col0 / + 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT DISTINCT - SUM( DISTINCT - - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT - SUM ( DISTINCT - - col1 ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT 57 + + col1 FROM tab2
----
108
124
134

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 93 + + + col1 FROM tab0
----
-12
-72
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9452
SELECT - MAX( + col0 ) DIV + MAX( col2 ) + + COUNT( * ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9452
SELECT - MAX ( + col0 ) / + MAX ( col2 ) + + COUNT ( * ) * + COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE - 48 * - col2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT DISTINCT COUNT( * ) * 49 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT COUNT ( * ) * 49 FROM tab2
----
147

query I rowsort
SELECT ALL - 10 * - - col2 FROM tab1
----
-590
-680
-960

query I rowsort
SELECT DISTINCT + ( - - col2 ) AS col1 FROM tab0 cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9457
SELECT DISTINCT - - col2 DIV 72 * + col2 AS col1 FROM tab1 cor0
----
0
96

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT - - col2 / 72 * + col2 AS col1 FROM tab1 cor0
----
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9458
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 * col2 * CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9458
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 * col2 * CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT - - 4 + + + ( + COUNT( * ) ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT - - 4 + + + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT - - MAX( DISTINCT + 3 ) FROM tab1 cor0 WHERE NOT + col1 / + + 4 * col2 / + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT - - MAX ( DISTINCT + 3 ) FROM tab1 cor0 WHERE NOT + col1 / + + 4 * col2 / + col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT + 25 + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
112
122
40

skipif mysql # not compatible
query I rowsort label-9461
SELECT + 25 + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
112
122
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 94 * ( - col2 ) > NULL
----

query I rowsort
SELECT col0 + 75 AS col0 FROM tab0
----
162
172
90

query III rowsort
SELECT * FROM tab0 WHERE NOT 17 * + - col0 <= + + col2 + + col1
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT col1 - col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT DISTINCT + MIN( DISTINCT - 99 ) col1 FROM tab1
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9466
SELECT DISTINCT + MIN ( DISTINCT - 99 ) col1 FROM tab1
----
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT - col0 DIV - 71 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9468
SELECT - col0 / - 71 AS col0 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9469
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE ( - col0 ) / col0 BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE ( - col0 ) / col0 BETWEEN col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT COUNT( * ) * - SUM( DISTINCT - 85 * - col2 ) AS col0 FROM tab1
----
-56865

skipif mysql # not compatible
query I rowsort label-9470
SELECT COUNT ( * ) * - SUM ( DISTINCT - 85 * - col2 ) AS col0 FROM tab1
----
-56865

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL - MAX( DISTINCT + col0 ) + + 78 AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL - MAX ( DISTINCT + col0 ) + + 78 AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - col0 col2 FROM tab0
----
3828
4268
660

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - ( - ( col0 ) ) * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT - MAX( - col0 ) * - COUNT( col1 ) AS col2 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-9474
SELECT - MAX ( - col0 ) * - COUNT ( col1 ) AS col2 FROM tab2
----
-138

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 <> ( - ( - col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + col2 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT ALL 34 DIV 70 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL 34 / 70 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + 49 / + col1 + 81 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 49 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9480
SELECT * FROM tab0 WHERE NULL NOT IN ( + col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9480
SELECT * FROM tab0 WHERE NULL NOT IN ( + col2 * CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT IN ( col1 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT MIN( col0 ) + 55 FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT MIN ( col0 ) + 55 FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9483
SELECT ALL SUM( DISTINCT + 33 ) DIV COUNT( * ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL SUM ( DISTINCT + 33 ) / COUNT ( * ) FROM tab0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT col1 * 32 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT col1 * 32 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 45 ) AS col0 FROM tab0
----
-45
-45
-45

query III rowsort
SELECT * FROM tab0 WHERE ( 3 * 89 + col2 ) IN ( - 10 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9487
SELECT CAST( NULL AS SIGNED ) * + col2 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT CAST ( NULL AS INTEGER ) * + col2 + + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT + COUNT( 17 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9488
SELECT + COUNT ( 17 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 + + 22 ) <= + col1
----
85
5
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 87 * - col1 - + 20 * 38 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT ( 8 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT SUM( DISTINCT + ( - 56 ) ) + 77 AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-9492
SELECT SUM ( DISTINCT + ( - 56 ) ) + 77 AS col2 FROM tab1
----
21

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE 56 IS NULL
----

query I rowsort
SELECT ALL col0 + + col2 * + ( - col0 ) FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT + ( + col1 ) / 8 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 36 AS col0 FROM tab0 WHERE NULL BETWEEN ( col1 ) AND + col1
----

query I rowsort
SELECT - col0 + ( - col0 ) FROM tab2
----
-128
-150
-92

query I rowsort
SELECT ALL - 29 AS col2 FROM tab0 WHERE ( col1 * col0 + col1 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT - 10 * CAST( 12 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT - 10 * CAST ( 12 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 73 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT - MAX( - col0 ) * - MAX( ALL col0 + - 48 ) FROM tab1
----
-2193

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT - MAX ( - col0 ) * - MAX ( ALL col0 + - 48 ) FROM tab1
----
-2193

query I rowsort
SELECT ALL 50 * + col2 AS col0 FROM tab0
----
2350
4950
500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9504
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT + ( + 6 ) FROM tab0
----
6
6
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 55 + + 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( 53 ) FROM tab0 AS cor0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 8 ) col2 FROM tab2 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9509
SELECT - + ( + 25 ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9509
SELECT - + ( + 25 ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9510
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col1 + CAST( NULL AS SIGNED ) * col0 ) NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-9510
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col1 + CAST ( NULL AS INTEGER ) * col0 ) NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9512
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 30 NOT IN ( 65 + - CAST( 84 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9512
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 30 NOT IN ( 65 + - CAST ( 84 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9513
SELECT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 46 / - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + - col1 AS col0 FROM tab2 WHERE ( col0 ) * col1 IN ( col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT + MAX( ALL + col0 ) * 32 AS col1 FROM tab2
----
2400

skipif mysql # not compatible
query I rowsort label-9516
SELECT + MAX ( ALL + col0 ) * 32 AS col1 FROM tab2
----
2400

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT ALL col1 DIV col1 * - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL col1 / col1 * - col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT DISTINCT - 99 + + COUNT( * ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT - 99 + + COUNT ( * ) FROM tab2
----
-96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9519
SELECT DISTINCT + col2 * - CAST( + col2 AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT + col2 * - CAST ( + col2 AS REAL ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT SUM( col2 ) FROM tab1 WHERE + col1 NOT BETWEEN 42 * - 73 AND + 1
----
223

skipif mysql # not compatible
query I rowsort label-9520
SELECT SUM ( col2 ) FROM tab1 WHERE + col1 NOT BETWEEN 42 * - 73 AND + 1
----
223

query I rowsort
SELECT DISTINCT + 17 + - - 43 FROM tab0
----
60

query I rowsort
SELECT + col0 + + col1 + col0 AS col2 FROM tab0
----
111
195
195

query I rowsort
SELECT DISTINCT - ( + col1 ) + + col1 * 6 AS col0 FROM tab0
----
105
405
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( col2 ) AND 86
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 29 ) = col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT DISTINCT + col2 * col0 - 75 DIV 51 FROM tab2
----
1057
2559
4349

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT + col2 * col0 - 75 / 51 FROM tab2
----
1057
2559
4349

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> ( ( + ( - 13 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT DISTINCT - 77 / col0 FROM tab2 cor0 WHERE NOT ( col1 ) NOT IN ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT - 77 / col0 FROM tab2 cor0 WHERE NOT ( col1 ) NOT IN ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

query I rowsort
SELECT ALL 76 * + - col2 - - + col2 * ( 37 * 22 ) AS col2 FROM tab2 AS cor0
----
16974
29520
42804

query I rowsort
SELECT - - col0 * + col1 + - col1 - 77 * - col2 AS col0 FROM tab1 AS cor0
----
4963
8092
9466

query I rowsort
SELECT ALL - ( 95 ) + 23 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 + + col2 IN ( 38 * col2 - 36 * col1 )
----
-72
-72
-72

query I rowsort
SELECT ALL - + 23 AS col2 FROM tab2 cor0
----
-23
-23
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 97 BETWEEN + col1 * col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 98 * - col1, + col1 FROM tab2
----
-4998
51
-6566
67
-7546
77

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL COUNT( - col1 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9537
SELECT ALL COUNT ( - col1 ) col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 62 / col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col1 FROM tab0
----
88

query I rowsort
SELECT - col0 * + 69 AS col1 FROM tab0 AS cor0
----
-1035
-6003
-6693

query I rowsort
SELECT ALL - 11 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( - 57 ) BETWEEN NULL AND col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 6 + + ( - col1 ) FROM tab0 AS cor0
----
-27
-7
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - 87 * + 48
----

query I rowsort
SELECT 55 + - + col0 AS col0 FROM tab2 AS cor0
----
-20
-9
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9547
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) IN ( + - ( 79 ) + - 32 ) AND ( + CAST( NULL AS SIGNED ) * - col1 + col2 ) NOT BETWEEN ( - col0 * + 55 ) AND ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-9547
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) IN ( + - ( 79 ) + - 32 ) AND ( + CAST ( NULL AS INTEGER ) * - col1 + col2 ) NOT BETWEEN ( - col0 * + 55 ) AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT + MIN( DISTINCT + col1 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT + MIN ( DISTINCT + col1 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
153

query I rowsort
SELECT col2 + + ( + col1 ) FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL + 22 * + 29 * - - 90 + - COUNT( * ) FROM tab2 AS cor0
----
57417

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL + 22 * + 29 * - - 90 + - COUNT ( * ) FROM tab2 AS cor0
----
57417

query I rowsort
SELECT DISTINCT - + col2 - + 90 + + 56 FROM tab1 AS cor0 WHERE - col0 > + col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( 89 / + + col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT - MIN( ALL + - col2 ) + - COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9553
SELECT - MIN ( ALL + - col2 ) + - COUNT ( * ) FROM tab1 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9554
SELECT ALL col0 DIV 66 + + 36 * - + col2 FROM tab0
----
-1692
-3563
-359

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL col0 / 66 + + 36 * - + col2 FROM tab0
----
-1692
-3563
-359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT ALL + + CAST( NULL AS SIGNED ) + col0 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) >= + col1 )
----

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL + + CAST ( NULL AS INTEGER ) + col0 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) >= + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9556
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT + - MAX( ALL - - col1 ) col2 FROM tab1 WHERE + col0 / - col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9557
SELECT + - MAX ( ALL - - col1 ) col2 FROM tab1 WHERE + col0 / - col0 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT 82 * 79 + + col0 * - + col1 AS col1, - 93 FROM tab2
----
1453
-93
1550
-93
4132
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE - 86 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE - 86 < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 51 col0 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT col2 - - - ( col0 ) AS col2 FROM tab0 cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT ALL - col2 + + CAST( + 8 AS SIGNED ) AS col0 FROM tab1
----
-51
-60
-88

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - col2 + + CAST ( + 8 AS INTEGER ) AS col0 FROM tab1
----
-51
-60
-88

query I rowsort
SELECT + 53 + - col2 FROM tab0
----
-46
43
6

query I rowsort
SELECT + col0 * + ( - - col1 ) FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL - + 84 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-84
-84
-84

query I rowsort
SELECT DISTINCT - - col2 * col1 * - - col2 + + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL <= + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT ( + - COUNT( * ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9567
SELECT DISTINCT ( + - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT - col1 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9569
SELECT DISTINCT + col0, - 19 DIV ( + 24 ) * - col1 AS col2 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-9569
SELECT DISTINCT + col0, - 19 / ( + 24 ) * - col1 AS col2 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9570
SELECT ( + 42 ) DIV + 27, + col1 AS col0 FROM tab1
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-9570
SELECT ( + 42 ) / + 27, + col1 AS col0 FROM tab1
----
1
14
1
47
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9571
SELECT ALL col1, 5 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9571
SELECT ALL col1, 5 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT + MIN( + 81 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9572
SELECT + MIN ( + 81 ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT ( - - col0 ) DIV + 72 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9573
SELECT ( - - col0 ) / + 72 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9574
SELECT DISTINCT col0 AS col1, - CAST( NULL AS SIGNED ) + - + 28 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9574
SELECT DISTINCT col0 AS col1, - CAST ( NULL AS INTEGER ) + - + 28 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT - 47 * - + COUNT( + col1 ) FROM tab2 WHERE - 12 + ( + col0 ) IS NOT NULL
----
141

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT - 47 * - + COUNT ( + col1 ) FROM tab2 WHERE - 12 + ( + col0 ) IS NOT NULL
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col1, - 97 FROM tab2 AS cor0
----
46
-97
64
-97
75
-97

query I rowsort
SELECT + - col2 * - col2 + - - col1 AS col0 FROM tab2 AS cor0
----
1677
3431
580

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT - COUNT( - - col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9579
SELECT - COUNT ( - - col1 ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 64 * + - ( col1 ) col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

query I rowsort
SELECT 60 * - - col0 * - col1 AS col0 FROM tab1 AS cor0
----
-25500
-256620
-42840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 AS cor0 WHERE + 10 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT - ( - 79 ) + - + MAX( - col2 ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT - ( - 79 ) + - + MAX ( - col2 ) FROM tab2
----
102

query I rowsort
SELECT DISTINCT - col1 + + 83 FROM tab1
----
36
69
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NOT NULL AND NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - ( col1 ) * - + col2 * - + 40 * + col2 FROM tab0
----
-392039
-7157079
-83979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 WHERE + - col1 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT col1 * 20 + col2 * + col0 FROM tab2
----
2078
4100
5690

query II rowsort
SELECT ( + ( - 16 ) ) AS col0, + col0 AS col0 FROM tab2 WHERE + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT + MIN( - + col0 ) * - 84 + 90 + + - COUNT( 80 ) * - - 32 AS col1 FROM tab0
----
8142

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT + MIN ( - + col0 ) * - 84 + 90 + + - COUNT ( 80 ) * - - 32 AS col1 FROM tab0
----
8142

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL 11 + - COUNT( * ) AS col2 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL 11 + - COUNT ( * ) AS col2 FROM tab0
----
8

query I rowsort
SELECT DISTINCT 43 - - - 60 * col0 FROM tab1
----
-3017
-5057
-5417

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT 58 + - 11 * + COUNT( DISTINCT - col1 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-9593
SELECT 58 + - 11 * + COUNT ( DISTINCT - col1 ) FROM tab0
----
25

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab1 WHERE - - col1 > + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9595
SELECT ALL CAST( + MAX( col2 ) AS SIGNED ), 80 - COUNT( * ) + - 75 + CAST( NULL AS SIGNED ) + 15 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9595
SELECT ALL CAST ( + MAX ( col2 ) AS INTEGER ), 80 - COUNT ( * ) + - 75 + CAST ( NULL AS INTEGER ) + 15 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL
NULL

query I rowsort
SELECT - 36 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col2, col0 + 78 + ( + - ( + col2 ) ) )
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT ALL - CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL - CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 59 AS col0, 31 col2 FROM tab2 AS cor0
----
59
31
59
31
59
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9601
SELECT + 83 * + col0 AS col0, + col2 * + CAST( col0 AS SIGNED ) FROM tab1
----
4233
4896
7055
5015
7553
6188

skipif mysql # not compatible
query II rowsort label-9601
SELECT + 83 * + col0 AS col0, + col2 * + CAST ( col0 AS INTEGER ) FROM tab1
----
4233
4896
7055
5015
7553
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - 52 col0 FROM tab1
----
2652
4420
4732

onlyif mysql # DIV for integer division: 
query I rowsort label-9603
SELECT + 28 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9603
SELECT + 28 / col2 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 56 * - col1 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - + 16 * - - 4 FROM tab2
----
1472
2560
3712

query I rowsort
SELECT ALL + col2 * col1 * + - col0 + - 53 AS col1 FROM tab2 AS cor0 WHERE NOT - 70 * + 10 NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 * - - ( + - 40 ) + col0 - + col0 + - + 11 col0 FROM tab0 AS cor0
----
3429

query II rowsort
SELECT ALL + 72 * + - col0 AS col2, 5 FROM tab0 AS cor0
----
-1080
5
-6264
5
-6984
5

query I rowsort
SELECT ALL 15 * - - 46 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38697789b3a37278eea78633a9ade369

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

query III rowsort
SELECT * FROM tab1 WHERE + col1 <= ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9612
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9612
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT DISTINCT - - col2 * col1 DIV - col1 + col0 AS col0 FROM tab1 cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT - - col2 * col1 / - col1 + col0 AS col0 FROM tab1 cor0
----
-45
23
26

query II rowsort
SELECT ALL 61 * + col0 * - 63 AS col2, - col1 FROM tab0 AS cor0
----
-334341
-21
-372771
-1
-57645
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT 31 * + CAST( NULL AS SIGNED ) + - 21 / ( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT 31 * + CAST ( NULL AS INTEGER ) + - 21 / ( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL - - SUM( + - 80 ) - - COUNT( * ) + + COUNT( * ) * 27 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT - col0 IN ( col1, col0, + + 83, - 40 ) ) )
----
-156

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL - - SUM ( + - 80 ) - - COUNT ( * ) + + COUNT ( * ) * 27 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT - col0 IN ( col1, col0, + + 83, - 40 ) ) )
----
-156

query I rowsort
SELECT - col1 + - + col1 * col1 * - col2 + - col0 + + col1 FROM tab1 AS cor0
----
1390
150121
18765

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9618
SELECT DISTINCT col1 AS col1, - col1 * - + 50 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-9618
SELECT DISTINCT col1 AS col1, - col1 * - + 50 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT + 50 + - - 82 + + + col2, col2 AS col0 FROM tab2 AS cor0
----
155
23
172
40
190
58

query I rowsort
SELECT ALL - col1 * - 6 FROM tab1 AS cor0
----
282
30
84

query I rowsort
SELECT 71 * + col2 * + 73 AS col0 FROM tab2
----
119209
207320
300614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT DISTINCT - 52 FROM tab1 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT - 52 FROM tab1 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL - COUNT( ALL - col0 ) + - 67 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - COUNT ( ALL - col0 ) + - 67 FROM tab1
----
-70

query I rowsort
SELECT ALL + 80 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + - col2 - - col1 AS col2 FROM tab0
----
-189
-3726
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-9626
SELECT ALL 93 DIV - col1 + col1 * - col2, col1 FROM tab1
----
-1350
14
-313
5
-3197
47

skipif mysql # not compatible
query II rowsort label-9626
SELECT ALL 93 / - col1 + col1 * - col2, col1 FROM tab1
----
-1350
14
-313
5
-3197
47

query I rowsort
SELECT ALL - col1 + - + col2 + - col2 FROM tab0 WHERE NULL <> + 76
----

query III rowsort
SELECT * FROM tab2 WHERE - - 3 * + 76 * - - 78 - - col2 NOT BETWEEN - 95 + col2 AND ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 7 - + - col1 AS col1 FROM tab1 AS cor0
----
12
21
54

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9630
SELECT * FROM tab1 AS cor0 WHERE - col2 - + CAST( + + 28 AS SIGNED ) + - col2 NOT BETWEEN CAST( - - col2 AS DECIMAL ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9630
SELECT * FROM tab1 AS cor0 WHERE - col2 - + CAST ( + + 28 AS INTEGER ) + - col2 NOT BETWEEN CAST ( - - col2 AS REAL ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT DISTINCT - 37 * ( - CAST( + col1 AS SIGNED ) ) + + + 34 + - + col2 FROM tab1 AS cor0
----
160
1705
456

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT - 37 * ( - CAST ( + col1 AS INTEGER ) ) + + + 34 + - + col2 FROM tab1 AS cor0
----
160
1705
456

query II rowsort
SELECT - 73 AS col2, + 75 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to a71e9a20f9fb949b049f11f0b47844cf

query I rowsort
SELECT DISTINCT + + 41 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41

query I rowsort
SELECT col1 * 60 * col2 AS col0 FROM tab2
----
184800
233160
70380

query I rowsort
SELECT DISTINCT + + col2 * + - col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + 17 + 28 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT ALL - 23 * - + 98 / + 27 * + CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL - 23 * - + 98 / + 27 * + CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 66 * - 56 FROM tab0 AS cor0
----
-3696

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 69 * 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT MAX( ALL ( + - col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9640
SELECT MAX ( ALL ( + - col0 ) ) FROM tab0 AS cor0
----
-15

query II rowsort
SELECT ALL + 42 AS col0, + 78 - + + 93 AS col2 FROM tab1 cor0
----
42
-15
42
-15
42
-15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - + col2 * + 15 > + 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT SUM( + col1 ) * 19 FROM tab2 AS cor0
----
3705

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT SUM ( + col1 ) * 19 FROM tab2 AS cor0
----
3705

query II rowsort
SELECT DISTINCT col1 AS col0, + col1 * + ( col0 ) + - col1 FROM tab0 cor0
----
1
96
21
1806
81
1134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9645
SELECT DISTINCT 9 FROM tab1 WHERE NOT + col2 * CAST( + ( - - col1 ) AS SIGNED ) + - - ( - col2 ) + - 47 = - col0
----
9

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT 9 FROM tab1 WHERE NOT + col2 * CAST ( + ( - - col1 ) AS INTEGER ) + - - ( - col2 ) + - 47 = - col0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + ( + col0 ) col2 FROM tab1
----
-2601
-7225
-8281

query II rowsort
SELECT DISTINCT - 25 * 4 * - col0 + col2, + col2 FROM tab1
----
5196
96
8559
59
9168
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT + col2 DIV + - col0 col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9648
SELECT + col2 / + - col0 col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT col0 * + - ( + col2 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT DISTINCT + CAST( - 80 AS SIGNED ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT + CAST ( - 80 AS INTEGER ) FROM tab1 AS cor0
----
-80

query I rowsort
SELECT - ( + 77 ) FROM tab0 AS cor0
----
-77
-77
-77

query II rowsort
SELECT col2 - - col2 AS col2, 24 AS col0 FROM tab1 AS cor0
----
118
24
136
24
192
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + ( + + COUNT( * ) ) + + MAX( ALL + - ( + col2 ) ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-9653
SELECT + ( + + COUNT ( * ) ) + + MAX ( ALL + - ( + col2 ) ) FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL + COUNT( DISTINCT + + 38 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + COUNT ( DISTINCT + + 38 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT - col1 + - + col1 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT 9 + + + ( + SUM( - col1 ) ) * + 62 AS col1 FROM tab1
----
-4083

skipif mysql # not compatible
query I rowsort label-9656
SELECT 9 + + + ( + SUM ( - col1 ) ) * + 62 AS col1 FROM tab1
----
-4083

query III rowsort
SELECT * FROM tab2 WHERE + 98 + + 8 NOT IN ( - - 59, 91, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 59 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab1 cor0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9660
SELECT DISTINCT - 74 * - COUNT( * ), COUNT( * ) AS col0 FROM tab0
----
222
3

skipif mysql # not compatible
query II rowsort label-9660
SELECT DISTINCT - 74 * - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0
----
222
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT DISTINCT - CAST( - MAX( DISTINCT - + 98 ) AS SIGNED ) AS col1 FROM tab1 WHERE - 54 IS NOT NULL
----
-98

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT - CAST ( - MAX ( DISTINCT - + 98 ) AS INTEGER ) AS col1 FROM tab1 WHERE - 54 IS NOT NULL
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9662
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL + COUNT( ALL 83 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + COUNT ( ALL 83 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + 61 FROM tab0 AS cor0 WHERE + 4 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9665
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - col0 * - col2 - - CAST( NULL AS SIGNED ) > + - col0
----

skipif mysql # not compatible
query III rowsort label-9665
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - col0 * - col2 - - CAST ( NULL AS INTEGER ) > + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + 92 * - - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + + + col0 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT - 37 + + COUNT( * ) col0 FROM tab2
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9669
SELECT - 37 + + COUNT ( * ) col0 FROM tab2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9670
SELECT - col1 + col1 + + col2 DIV - col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9670
SELECT - col1 + col1 + + col2 / - col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT ALL + col1 DIV - ( col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + col1 / - ( col0 ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - - 76 AS col1 FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT ALL + - ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL + - ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + + ( - ( 56 ) ) AS col2 FROM tab1 AS cor0
----
3304
3808
5376

onlyif mysql # aggregate syntax: 
query II rowsort label-9677
SELECT - 76, COUNT( + col1 ) AS col2 FROM tab1 AS cor0
----
-76
3

skipif mysql # not compatible
query II rowsort label-9677
SELECT - 76, COUNT ( + col1 ) AS col2 FROM tab1 AS cor0
----
-76
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT COUNT( * ) * 31 * 17 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
1584

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT COUNT ( * ) * 31 * 17 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
1584

query I rowsort
SELECT + ( 46 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT DISTINCT - 92 - - col2 + CAST( NULL AS SIGNED ) / + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - 92 - - col2 + CAST ( NULL AS INTEGER ) / + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 40 + - col0 AS col2 FROM tab2 AS cor0
----
-24
-35
-6

query I rowsort
SELECT DISTINCT + col2 + 46 + 54 FROM tab0 AS cor0
----
110
147
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 88 * - - col1 - + - ( col2 ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-9683
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 88 * - - col1 - + - ( col2 ) AND col2
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + col2 IN ( - 50 * - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 96 * - col0 FROM tab2 AS cor0
----
-4416
-6144
-7200

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT DISTINCT ( + - col0 ) DIV + 6 + - 43 FROM tab2
----
-50
-53
-55

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT ( + - col0 ) / + 6 + - 43 FROM tab2
----
-50
-53
-55

query I rowsort
SELECT - col1 * + 35 AS col0 FROM tab0
----
-2835
-35
-735

query III rowsort
SELECT * FROM tab1 WHERE 43 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 IN ( - - col0 - + 75 )
----

query I rowsort
SELECT DISTINCT - 51 + + col1 + col1 + - col2 * - col0 AS col1 FROM tab0
----
816
861
9554

query II rowsort
SELECT DISTINCT - ( + col0 ), + col0 * + col1 AS col1 FROM tab2
----
-46
2346
-64
4928
-75
5025

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) >= 11 + - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 25 <= - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT - MIN( ALL + 78 ) AS col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9694
SELECT - MIN ( ALL + 78 ) AS col0 FROM tab1 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 col1, col0 FROM tab2 AS cor0
----
29
46
29
64
29
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 61 ) col2 FROM tab1 AS cor0
----
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 48 AND - 27 / 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL - COUNT( * ) + 76 * + 34 FROM tab0
----
2581

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL - COUNT ( * ) + 76 * + 34 FROM tab0
----
2581

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT + ( + MAX( - 11 ) ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT + ( + MAX ( - 11 ) ) FROM tab2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT ALL 38 / + + col0 * + col2 FROM tab2 WHERE NOT + 62 / + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL 38 / + + col0 * + col2 FROM tab2 WHERE NOT + 62 / + CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT SUM( - 29 ) * - COUNT( * ) + ( + COUNT( * ) ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-9701
SELECT SUM ( - 29 ) * - COUNT ( * ) + ( + COUNT ( * ) ) FROM tab0
----
264

query II rowsort
SELECT ALL + ( - + col1 ) AS col2, + ( col1 ) + col1 FROM tab1
----
-14
28
-47
94
-5
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > ( - - ( - + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * 90 col1 FROM tab0 AS cor0
----
-540
-540
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT + MAX( ALL + CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9706
SELECT + MAX ( ALL + CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT DISTINCT - - COUNT( - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT - - COUNT ( - col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9708
SELECT + col0 * 5 AS col1, + 20 + col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 + - col0 AND col2 / + col0 + - + CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-9708
SELECT + col0 * 5 AS col1, + 20 + col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 + - col0 AND col2 / + col0 + - + CAST ( - col2 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL - + 81 * - SUM( ALL - + 14 ) FROM tab1 AS cor0
----
-3402

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL - + 81 * - SUM ( ALL - + 14 ) FROM tab1 AS cor0
----
-3402

query I rowsort
SELECT DISTINCT - col2 + - col1 - + - 85 + col0 * + 67 FROM tab0
----
5883
6484
962

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 24 * 27 AS col0 FROM tab1
----
648
648
648

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT - SUM( DISTINCT - 64 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-9713
SELECT - SUM ( DISTINCT - 64 ) FROM tab2
----
64

query II rowsort
SELECT - col2, 69 * col1 AS col1 FROM tab0
----
-10
1449
-47
5589
-99
69

query II rowsort
SELECT ALL 37, 37 AS col1 FROM tab0
----
37
37
37
37
37
37

query II rowsort
SELECT - col1 AS col2, - col0 AS col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9717
SELECT * FROM tab1 WHERE NOT CAST( - col1 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9717
SELECT * FROM tab1 WHERE NOT CAST ( - col1 AS INTEGER ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT ( + 96 ) DIV col2 + - - col2 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-9718
SELECT ( + 96 ) / col2 + - - col2 FROM tab1
----
60
69
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 5 * + col1 * + 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT + MIN( DISTINCT + + col1 ) col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9720
SELECT DISTINCT + MIN ( DISTINCT + + col1 ) col1 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT SUM( ALL 81 ) AS col2 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT SUM ( ALL 81 ) AS col2 FROM tab2 AS cor0
----
243

query II rowsort
SELECT ALL + col2 AS col2, 51 FROM tab2 AS cor0
----
23
51
40
51
58
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 32 + 10 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col2
----

query I rowsort
SELECT ALL - + 79 AS col1 FROM tab2 cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT - col0 + - - 4 - col2 AS col0 FROM tab1 AS cor0
----
-140
-143
-155

query I rowsort
SELECT + - col1 + ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE - col1 * - col0 IS NULL
----

query I rowsort
SELECT 4 - - col1 FROM tab0 cor0 WHERE ( NULL ) BETWEEN ( - col0 * - col0 * col1 * - + col1 + + 19 ) AND + col1 + - 96 * - ( - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + - col0 col0 FROM tab1
----
-46
-80
-86

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 61 * - - col1 / - 21 / - 33, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9735
SELECT col1 + CAST( + 42 AS SIGNED ) FROM tab0
----
123
43
63

skipif mysql # not compatible
query I rowsort label-9735
SELECT col1 + CAST ( + 42 AS INTEGER ) FROM tab0
----
123
43
63

query I rowsort
SELECT ALL 63 * - + 4 AS col1 FROM tab0
----
-252
-252
-252

query III rowsort
SELECT * FROM tab0 WHERE + + 64 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9738
SELECT DISTINCT + 57 + + CAST( NULL AS DECIMAL ) * + col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT + 57 + + CAST ( NULL AS REAL ) * + col2 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 22 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT + 75 + + - 75 + COUNT( * ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9740
SELECT DISTINCT + 75 + + - 75 + COUNT ( * ) col1 FROM tab0
----
3

query I rowsort
SELECT ALL 15 + - - col1 FROM tab2
----
66
82
92

query I rowsort
SELECT ALL 15 * col1 FROM tab0 cor0
----
1215
15
315

query I rowsort
SELECT + - col2 - - + 84 - + - col0 * - + col2 * ( + col2 ) FROM tab2 AS cor0
----
-102356
-24273
-252274

query I rowsort
SELECT DISTINCT - col1 + ( + 77 ) FROM tab2
----
0
10
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * - col2 + - ( col0 ) < NULL
----

query I rowsort
SELECT ALL 91 - - col0 + - col2 FROM tab2 AS cor0
----
108
114
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9747
SELECT SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 85 * 76 - 38 AS col0 FROM tab2 AS cor0
----
-6498

query I rowsort
SELECT 38 - - 51 + + 85 AS col2 FROM tab0 AS cor0 WHERE + 13 = NULL
----

query I rowsort
SELECT ALL - + col2 * + + col0 * - col1 FROM tab0 AS cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, 98 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( + col0 + - 12 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( 75 * + - 65 + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT col2 + - col0 + + 23 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT - ( ( - COUNT( * ) ) ) + 31 AS col0 FROM tab0 WHERE NOT col0 + - ( - - col0 ) + + 80 IS NOT NULL
----
31

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT - ( ( - COUNT ( * ) ) ) + 31 AS col0 FROM tab0 WHERE NOT col0 + - ( - - col0 ) + + 80 IS NOT NULL
----
31

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT + COUNT( ALL - 66 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9756
SELECT + COUNT ( ALL - 66 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT 42 * - - col1 AS col2 FROM tab0
----
3402
42
882

onlyif mysql # aggregate syntax: 
query II rowsort label-9758
SELECT ALL + - 16, - MIN( ALL 83 ) AS col2 FROM tab0 AS cor0
----
-16
-83

skipif mysql # not compatible
query II rowsort label-9758
SELECT ALL + - 16, - MIN ( ALL 83 ) AS col2 FROM tab0 AS cor0
----
-16
-83

query I rowsort
SELECT DISTINCT 42 * + - col1 - - col0 / + col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9760
SELECT ALL + COUNT( * ) DIV + 6 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL + COUNT ( * ) / + 6 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - 30 + + 0, 66 * + + 70 * col2 * + 29 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-30
12862080
-30
7904820
-30
9110640

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL + SUM( ALL - ( - col0 ) ) FROM tab1 cor0 WHERE NOT NULL = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL + SUM ( ALL - ( - col0 ) ) FROM tab1 cor0 WHERE NOT NULL = ( NULL )
----
NULL

query II rowsort
SELECT + + col2, 0 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT ALL - col1 + - 37 AS col2 FROM tab2 cor0
----
-104
-114
-88

query I rowsort
SELECT DISTINCT col1 / - col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT + - COUNT( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9766
SELECT + - COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + col2 + - - col2, col1 * - 67 AS col0 FROM tab1
----
118
-335
136
-3149
192
-938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT AVG ( ALL 50 ) + + AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT AVG ( ALL 50 ) + + AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT DISTINCT + CAST( col0 AS SIGNED ) col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9769
SELECT DISTINCT + CAST ( col0 AS INTEGER ) col1 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT ALL col0 DIV + + col2 + 95 AS col2 FROM tab0
----
103
95
95

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL col0 / + + col2 + 95 AS col2 FROM tab0
----
103
95
95

query III rowsort
SELECT DISTINCT - col0 - + col0 AS col0, - col0 AS col1, + col2 * - - col1 AS col0 FROM tab0 AS cor0
----
9 values hashing to 4ce8477d291571995dcf4d1839c243c8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 0 * - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 97 - col0 FROM tab1
----
59
12
68
6
96
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL + - 41 * + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + - 41 * + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
369

query I rowsort
SELECT - 98 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT - 66 * SUM( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
13134

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT - 66 * SUM ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
13134

onlyif mysql # DIV for integer division: 
query I rowsort label-9777
SELECT ALL - + col0 DIV col1 * + col2 - col0 FROM tab2 AS cor0
----
-133
-46
-64

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL - + col0 / col1 * + col2 - col0 FROM tab2 AS cor0
----
-133
-46
-64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <= 91
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = 11
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9780
SELECT - CAST( NULL AS DECIMAL ) * + 32 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT - CAST ( NULL AS REAL ) * + 32 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + + 51 * - 75 FROM tab1
----
179775
19125
53550

query I rowsort
SELECT col1 * - + ( - col2 ) FROM tab0
----
210
3807
99

query I rowsort
SELECT ( - - ( - col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT col0 * + + col0 AS col0, + col1 FROM tab0
----
225
81
7569
21
9409
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9785
SELECT * FROM tab0 WHERE NOT - CAST( ( - + ( 39 ) ) AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-9785
SELECT * FROM tab0 WHERE NOT - CAST ( ( - + ( 39 ) ) AS INTEGER ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 66 + - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 46 * - col2 AS col2 FROM tab0
----
-2162
-4554
-460

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 11 IS NULL
----
51
85
91

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT + MAX( - 13 ) AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + MAX ( - 13 ) AS col0 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT ALL col2 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 44 BETWEEN - - 87 AND - col0
----
-3481
-4624
-9216

query II rowsort
SELECT DISTINCT + 32 AS col1, col2 AS col2 FROM tab2 AS cor0
----
32
23
32
40
32
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - 39 + - - 17 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 11 + col2 + + - 13 * - + col2 AS col0 FROM tab1 AS cor0
----
1355
837
963

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * + col0 <> + col2 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + col0 * - + col0 AS col2 FROM tab2 AS cor0
----
-2093
-4056
-5567

query I rowsort
SELECT + ( - 57 ) + - col1 AS col0 FROM tab2 AS cor0
----
-108
-124
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT ALL - CAST( col1 AS SIGNED ) * + col0 col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9798
SELECT ALL - CAST ( col1 AS INTEGER ) * + col0 col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT + 73 + - + ( - MIN( - 25 ) ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT + 73 + - + ( - MIN ( - 25 ) ) AS col2 FROM tab0
----
48

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + col2 * - - ( - col1 ) * + col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9802
SELECT DISTINCT CAST( - MIN( + + 81 ) AS SIGNED ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT CAST ( - MIN ( + + 81 ) AS INTEGER ) FROM tab0
----
-81

query I rowsort
SELECT ALL - - 58 FROM tab0 AS cor0 WHERE NOT 8 BETWEEN - col1 AND 3
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT - + 39 - - + COUNT( * ) - + - 27 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9804
SELECT - + 39 - - + COUNT ( * ) - + - 27 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT - - 7 col0, + SUM( + col1 ) FROM tab1 WHERE NOT + col0 + 68 IS NOT NULL
----
7
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9805
SELECT - - 7 col0, + SUM ( + col1 ) FROM tab1 WHERE NOT + col0 + 68 IS NOT NULL
----
7
NULL

query I rowsort
SELECT ALL - 48 * - col2 FROM tab2 AS cor0
----
1104
1920
2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 col2 FROM tab1 cor0
----
23
23
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9808
SELECT + + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9808
SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + col1 * col2 * + 33 FROM tab1 AS cor0
----
105468
44352
9735

query I rowsort
SELECT - - 60 * + col1 FROM tab2 AS cor0
----
3060
4020
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL - COUNT( ALL + - col2 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9812
SELECT ALL - COUNT ( ALL + - col2 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9813
SELECT - COUNT( * ) * COUNT( * ) DIV - - 46 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT - COUNT ( * ) * COUNT ( * ) / - - 46 AS col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 = - + 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT col1 DIV col2 * 93 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9815
SELECT col1 / col2 * 93 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * 98 * col0 NOT BETWEEN NULL AND + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9817
SELECT ALL - COUNT( * ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9817
SELECT ALL - COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT ALL - col1 + col1 * - + col0 FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL MAX( DISTINCT 84 ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL MAX ( DISTINCT 84 ) AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT - col0 * 65 * col2 FROM tab2
----
-166400
-282750
-68770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9821
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 - - 86 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 - - 86 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9822
SELECT + SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT + SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9823
SELECT COUNT( * ) * ( ( - 68 ) ) AS col2, 18 AS col2 FROM tab1
----
-204
18

skipif mysql # not compatible
query II rowsort label-9823
SELECT COUNT ( * ) * ( ( - 68 ) ) AS col2, 18 AS col2 FROM tab1
----
-204
18

query II rowsort
SELECT DISTINCT - + col1 AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT - + col2 AS col1 FROM tab0 AS cor0 WHERE 56 + + col0 * col0 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT + 27 * 38 * - 35 + - + col2 + col1 + - col2 + - col2 AS col1 FROM tab2 cor0
----
-35928
-35953
-36017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9827
SELECT + - SUM( + col2 ) - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT + - SUM ( + col2 ) - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / 14 <= NULL
----

query I rowsort
SELECT + col2 + + 82 AS col1 FROM tab1
----
141
150
178

query I rowsort
SELECT ALL 47 + + + col0 AS col0 FROM tab0
----
134
144
62

query I rowsort
SELECT 66 + - - 67 AS col0 FROM tab1
----
133
133
133

query I rowsort
SELECT DISTINCT + col0 + + - 25 * + col0 FROM tab1
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL 19 - + SUM( ALL + + col2 ) FROM tab0
----
-137

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL 19 - + SUM ( ALL + + col2 ) FROM tab0
----
-137

query I rowsort
SELECT col0 + - + col2 * + 84 + col2 AS col0 FROM tab2
----
-1863
-3256
-4739

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT 92 * + MAX( ALL - ( - + col1 ) ) + - - 66 AS col1 FROM tab0
----
7518

skipif mysql # not compatible
query I rowsort label-9835
SELECT 92 * + MAX ( ALL - ( - + col1 ) ) + - - 66 AS col1 FROM tab0
----
7518

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL + + 58 - - - MAX( DISTINCT - + col2 ) FROM tab1 cor0
----
117

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + + 58 - - - MAX ( DISTINCT - + col2 ) FROM tab1 cor0
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT + 84 DIV + COUNT( * ) AS col0 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-9837
SELECT + 84 / + COUNT ( * ) AS col0 FROM tab2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT ALL CAST( 50 AS SIGNED ) FROM tab2
----
50
50
50

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL CAST ( 50 AS INTEGER ) FROM tab2
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT - 66 DIV - 5 FROM tab0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-9839
SELECT - 66 / - 5 FROM tab0
----
13
13
13

query I rowsort
SELECT DISTINCT - + 94 AS col2 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

query II rowsort
SELECT + - col0 AS col0, - 24 FROM tab0 AS cor0
----
-15
-24
-87
-24
-97
-24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT col0 * - col0 + CAST( 78 AS SIGNED ) + + - ( - col2 ) * + ( - 74 ) FROM tab0 AS cor0 WHERE NOT NULL = - col2
----

skipif mysql # not compatible
query I rowsort label-9845
SELECT col0 * - col0 + CAST ( 78 AS INTEGER ) + + - ( - col2 ) * + ( - 74 ) FROM tab0 AS cor0 WHERE NOT NULL = - col2
----

query II rowsort
SELECT 82, - col1 AS col1 FROM tab1 AS cor0
----
82
-14
82
-47
82
-5

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + col2 * 97 FROM tab0 AS cor0
----
4559
9603
970

query I rowsort
SELECT DISTINCT + ( - col2 ) * + 82 FROM tab0 AS cor0 WHERE - 17 IS NOT NULL
----
-3854
-8118
-820

onlyif mysql # aggregate syntax: 
query II rowsort label-9850
SELECT ALL MIN( - 55 ) AS col1, 35 FROM tab2
----
-55
35

skipif mysql # not compatible
query II rowsort label-9850
SELECT ALL MIN ( - 55 ) AS col1, 35 FROM tab2
----
-55
35

query I rowsort
SELECT + col0 * + - col2 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT 73 DIV + col1 AS col2 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-9852
SELECT 73 / + col1 AS col2 FROM tab1
----
1
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT + 4 * COUNT( * ) AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9853
SELECT + 4 * COUNT ( * ) AS col2 FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT DISTINCT - CAST( + 40 AS SIGNED ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT - CAST ( + 40 AS INTEGER ) FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT COUNT( * ) * - 61 AS col2 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT COUNT ( * ) * - 61 AS col2 FROM tab1
----
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + col2 col0, col1 * + col1 AS col0 FROM tab0
----
210
441
3807
6561
99
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > + + 13 * + 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col1 + + col2 * - col0 + - 8 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # DIV for integer division: 
query I rowsort label-9860
SELECT 85 DIV col0 * + col1 FROM tab1 AS cor0
----
0
14
5

skipif mysql # not compatible
query I rowsort label-9860
SELECT 85 / col0 * + col1 FROM tab1 AS cor0
----
0
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-9861
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> col2
----
0

query I rowsort
SELECT DISTINCT col1 + + 58 FROM tab2
----
109
125
135

query III rowsort
SELECT * FROM tab2 WHERE - 68 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 + - - col1 col1 FROM tab1
----
-2
40
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL + MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 74 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * + col0 - - - col2 FROM tab0 AS cor0
----
178
7559
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT MIN( DISTINCT + - col2 ) * - 7 AS col1 FROM tab1 AS cor0
----
672

skipif mysql # not compatible
query I rowsort label-9868
SELECT MIN ( DISTINCT + - col2 ) * - 7 AS col1 FROM tab1 AS cor0
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT DISTINCT - + 87 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT - + 87 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * - col0 col0 FROM tab1 AS cor0
----
-2091
-3485
-3731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT + col2 * + + 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-9871
SELECT + col2 * + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9872
SELECT + ( 66 ) DIV + col0 col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9872
SELECT + ( 66 ) / + col0 col0 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9873
SELECT DISTINCT + SUM( ALL + - 22 ) DIV 5 AS col0 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT + SUM ( ALL + - 22 ) / 5 AS col0 FROM tab1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT ALL + COUNT( * ) + 48 AS col1, COUNT( * ) AS col2 FROM tab2
----
51
3

skipif mysql # not compatible
query II rowsort label-9874
SELECT ALL + COUNT ( * ) + 48 AS col1, COUNT ( * ) AS col2 FROM tab2
----
51
3

query I rowsort
SELECT ALL 29 + 78 FROM tab1
----
107
107
107

query I rowsort
SELECT DISTINCT col1 - - + 24 AS col1 FROM tab0
----
105
25
45

query I rowsort
SELECT 0 * + + col2 * 95 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL + - MAX( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL + - MAX ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT 61 AS col2, 87 AS col0 FROM tab2 AS cor0
----
61
87
61
87
61
87

query I rowsort
SELECT DISTINCT + ( + 40 ) AS col0 FROM tab0 AS cor0
----
40

query I rowsort
SELECT - ( - + col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9883
SELECT DISTINCT - ( + MIN( DISTINCT - col0 ) ) AS col2, + AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-9883
SELECT DISTINCT - ( + MIN ( DISTINCT - col0 ) ) AS col2, + AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 60, col1 - + + col2 + 56 + col1 col1 FROM tab2
----
60
132
60
135
60
170

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + + + col1 + 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - MAX( DISTINCT + 4 ) AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-9887
SELECT - MAX ( DISTINCT + 4 ) AS col1 FROM tab1
----
-4

query II rowsort
SELECT DISTINCT col0, - col1 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab2 WHERE NOT + ( - + col1 ) * - col0 = 52 * col2 - - - 33
----
23
40
58

query I rowsort
SELECT - col2 + + 37 FROM tab1
----
-22
-31
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT + 87 + - MIN( ALL 4 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-9891
SELECT + 87 + - MIN ( ALL 4 ) FROM tab2
----
83

query I rowsort
SELECT DISTINCT + - col1 + - + col0 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT MIN( + 26 ) * - 59 FROM tab0 cor0
----
-1534

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT MIN ( + 26 ) * - 59 FROM tab0 cor0
----
-1534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL + - COUNT( * ) * - 71 + + 63 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL + - COUNT ( * ) * - 71 + + 63 FROM tab2 AS cor0
----
276

query II rowsort
SELECT ALL col1 * - col0 AS col2, + col1 FROM tab1
----
-425
5
-4277
47
-714
14

query III rowsort
SELECT * FROM tab1 WHERE + col0 + - 37 = + col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT 41 * - col2 * col0 FROM tab0
----
-28905
-35670
-393723

query II rowsort
SELECT ALL + 16 * - - 12, col0 AS col0 FROM tab2 cor0
----
192
46
192
64
192
75

query I rowsort
SELECT - col1 - - - col1 * - ( - + 18 ) * - - col1 - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-117474
-7089
9584

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL - + 96 - + - COUNT( * ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL - + 96 - + - COUNT ( * ) FROM tab2 AS cor0
----
-93

query II rowsort
SELECT ALL - + ( col1 ) - - col0 AS col1, - 0 * - ( + + col0 ) FROM tab2 AS cor0
----
-13
0
-5
0
8
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9904
SELECT ALL + COUNT( * ) DIV - 49 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9904
SELECT ALL + COUNT ( * ) / - 49 col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9905
SELECT 92 DIV COUNT( * ) + COUNT( * ) + COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9905
SELECT 92 / COUNT ( * ) + COUNT ( * ) + COUNT ( * ) FROM tab1
----
36

query I rowsort
SELECT ALL + ( + col0 ) FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 * + 65 AS col0 FROM tab2
----
1495
2600
3770

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) < - 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT ALL - - col0 DIV + - col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL - - col0 / + - col2 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9910
SELECT * FROM tab2 AS cor0 WHERE NOT 61 * + CAST( NULL AS SIGNED ) IN ( - CAST( 57 AS SIGNED ) * - + col2, - col2 )
----

skipif mysql # not compatible
query III rowsort label-9910
SELECT * FROM tab2 AS cor0 WHERE NOT 61 * + CAST ( NULL AS INTEGER ) IN ( - CAST ( 57 AS INTEGER ) * - + col2, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 54 col2, ( - col1 ) FROM tab0 AS cor0
----
54
-1
54
-21
54
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * col1 IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT DISTINCT CAST( + col0 AS SIGNED ) + col2 AS col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + col2 AS col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT - COUNT( + 75 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9914
SELECT - COUNT ( + 75 ) FROM tab0
----
-3

query I rowsort
SELECT ALL - 1 + - col2 FROM tab2
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT + ( COUNT( - 86 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9916
SELECT + ( COUNT ( - 86 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL + COUNT( 51 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9917
SELECT ALL + COUNT ( 51 ) col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 42 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT MIN( 98 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
98

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT MIN ( 98 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) NOT BETWEEN ( col2 + col0 * - col0 ) AND + col0 * 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 60 + col1 * - col0 AS col2 FROM tab0
----
-1155
-1767
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 col2 FROM tab1
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT col2 * col2 FROM tab0 WHERE NULL <> - CAST( + 3 AS SIGNED ) / 75
----

skipif mysql # not compatible
query I rowsort label-9923
SELECT col2 * col2 FROM tab0 WHERE NULL <> - CAST ( + 3 AS INTEGER ) / 75
----

query I rowsort
SELECT DISTINCT - ( col1 ) + + 83 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
36
69
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col0 FROM tab0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT + col2 * + 36 FROM tab0
----
1692
3564
360

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> ( + 88 )
----

query I rowsort
SELECT - 80 * col1 AS col0 FROM tab2
----
-4080
-5360
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT + COUNT( * ) + + 25 AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-9929
SELECT + COUNT ( * ) + + 25 AS col1 FROM tab1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 * col1 + + 80 col0 FROM tab1
----
-484
-88
20

query I rowsort
SELECT DISTINCT col0 + col2 * + col0 AS col2 FROM tab0
----
720
957
9700

query I rowsort
SELECT 88 FROM tab1 WHERE NOT ( NULL ) BETWEEN col2 / + col0 AND + col1
----

query I rowsort
SELECT ALL col0 * + col1 AS col2 FROM tab2 WHERE 89 + col0 IS NOT NULL
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 * col1 ) = ( 48 )
----

query I rowsort
SELECT DISTINCT col0 * + col0 + + 73 AS col0 FROM tab1
----
2674
7298
8354

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT DISTINCT ( - col0 ) * - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT ( - col0 ) * - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 + 33 FROM tab1
----
38
47
80

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT + col1 IN ( - col2 + + 48 )
----
10
47
99

query I rowsort
SELECT - 6 FROM tab0 WHERE col1 NOT IN ( - 91 * + col0 )
----
-6
-6
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9941
SELECT MIN( - 51 ) * 57 FROM tab1 WHERE NOT col2 * col2 + CAST( + 13 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT MIN ( - 51 ) * 57 FROM tab1 WHERE NOT col2 * col2 + CAST ( + 13 AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( col1 ) + - 55 FROM tab2 AS cor0 WHERE NOT + ( col1 ) / - 42 + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9943
SELECT DISTINCT col1 DIV - col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT col1 / - col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-1
-2
0

query I rowsort
SELECT DISTINCT col0 + + 50 AS col2 FROM tab1
----
101
135
141

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 10 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT + CAST( NULL AS SIGNED ) + + 85 col0 FROM tab0 AS cor0 WHERE - 98 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9947
SELECT + CAST ( NULL AS INTEGER ) + + 85 col0 FROM tab0 AS cor0 WHERE - 98 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 34 )
----

query I rowsort
SELECT - col2 * + col0 FROM tab2 AS cor0 WHERE 44 * col0 + col2 IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NOT col1 + + 50 / - col0 = ( - 50 )
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( - col1 ) col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT col0 / - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT - 41 AS col2 FROM tab2 cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL MAX( DISTINCT 58 ) col0 FROM tab0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9954
SELECT ALL MAX ( DISTINCT 58 ) col0 FROM tab0
----
58

query I rowsort
SELECT 42 FROM tab1 WHERE NOT ( col0 ) > NULL
----

query I rowsort
SELECT DISTINCT col1 + 15 * col1 FROM tab1 WHERE + col2 IS NOT NULL
----
224
752
80

query I rowsort
SELECT - col0 * col2 AS col0 FROM tab1 WHERE NOT ( col2 / 52 ) NOT BETWEEN 26 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL + COUNT( * ) * MAX( - 98 ) FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL + COUNT ( * ) * MAX ( - 98 ) FROM tab1
----
-294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9959
SELECT ALL + CAST( MAX( DISTINCT col0 ) AS SIGNED ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + CAST ( MAX ( DISTINCT col0 ) AS INTEGER ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9961
SELECT ALL + ( - - COUNT( * ) ) DIV 72 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + ( - - COUNT ( * ) ) / 72 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL 35 * + 18 FROM tab0
----
630
630
630

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL - MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + ( col0 ) FROM tab0 AS cor0 WHERE NOT ( ( 50 ) * + col0 + + col2 * + 25 ) IN ( + col0 * ( col2 ) )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT + + ( - - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9965
SELECT + + ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col2 / 35 IS NULL
----
23
40
58

query I rowsort
SELECT + 27 * + 94 AS col1 FROM tab2 AS cor0
----
2538
2538
2538

query I rowsort
SELECT ALL - - ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - 36 * - + col0 AS col1 FROM tab0 AS cor0
----
3132
3492
540

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( col0 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT col1 DIV - col1 FROM tab1 AS cor0 WHERE ( + 58 ) IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9971
SELECT col1 / - col1 FROM tab1 AS cor0 WHERE ( + 58 ) IS NOT NULL
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 + + + 2 * 68 col2 FROM tab0 AS cor0
----
138
168
59

query III rowsort
SELECT * FROM tab2 WHERE - - 53 > ( col0 + + col0 )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col0 * + col0 + + col0 AS col0 FROM tab1
----
2652
7310
8372

query I rowsort
SELECT 89 * - - col2 + - 29 + col1 AS col2 FROM tab1
----
5227
6070
8529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT DISTINCT + col1 * + col1 + + - col2 + + 17 - col0 * + 42 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + col1 * + col1 + + - col2 + + 17 - col0 * + 42 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col0 FROM tab1
----
58
58
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - - col2 ) + + 60 BETWEEN + col2 - - 80 AND 91 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9980
SELECT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT COUNT( DISTINCT + + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9981
SELECT COUNT ( DISTINCT + + col0 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col0 - - + 88 - - 45 * - 14 * - - col2 AS col2 FROM tab0
----
-29537
-62379
-6299

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 32 <> + - col1 + col2 - - 6 * 69 AND ( - col2 * col0 ) BETWEEN - col1 + - col2 AND col0
----

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * 57 + - + col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9986
SELECT - + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9986
SELECT - + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT col0 AS col0, - col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT + 80 DIV - - col2 col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9988
SELECT + 80 / - - col2 col1 FROM tab2
----
1
2
3

query II rowsort
SELECT ALL col0 AS col0, col2 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 82 = ( NULL ) )
----

query I rowsort
SELECT col1 * - 59 + - col1 AS col1 FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL 24 AS col0 FROM tab2 WHERE NOT ( NOT ( + 17 + + 47 > 63 ) )
----
24
24
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9993
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col0 + + 21 + + col2 - - ( - CAST( NULL AS DECIMAL ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9993
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col0 + + 21 + + col2 - - ( - CAST ( NULL AS REAL ) ) IS NULL
----
0

query I rowsort
SELECT - 1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - - 73
----

query I rowsort
SELECT - 78 * - 80 FROM tab1
----
6240
6240
6240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9997
SELECT + COUNT( - 6 ) DIV ( + + SUM( - 71 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT + COUNT ( - 6 ) / ( + + SUM ( - 71 ) ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( - - 70 ) FROM tab1 AS cor0
----
70
70
70

